开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

IBC 3.21.0

 

开云体育

I have just released version 3.21.0 of IBC. You can find it on GitHub at:

?

?

This release provides support for TWS/Gateway 1034 running on Linux. For this release, IBKR have updated the installer so that, on Linux, TWS and Gateway use the Azul Zulu Java 17 runtime environment rather than the Oracle 8 JRE used in previous releases.

?

NB: TWS/Gateway 1034 on Linux will not work with previous releases of IBC.

?

If you are not running TWS/Gateway 1034 on Linux, you do not need to upgrade to this release. There are a couple of other minor changes in this release, but no harm should occur if you don't install this release on Windows.

?

To do this upgrade from IBC 3.20.0 it is only necessary to extract the IBC.jar and version files to your IBC installation folder, and extract the ibccstart.sh script to your scripts subfolder.

?

If you are currently using an earlier IBC version than 3.20.0, do a full install.

?

[The situation with macOS is uncertain at present. It would be helpful if someone with a macOS machine could experiment with IBC 3.20.0 and TWS/Gateway 1034, and if that doesn't work try updating to IBC 3.21.0. Feed back the results via the issues register.]

?

Richard

?


Re: Help with jre 21 & BNC 3.20

 

开云体育

Thanks for the thanks, but I’d actually forgotten I’d been any help on this.

?

I did get a Raspberry Pi 5 over the Christmas period, and was getting on nicely with it (though I hadn’t actually installed TWS or Gateway yet), but then I was hit by a disaster that I still haven’t fully dug my way out of. This was caused by the Windows 11 24H2 update from Microsoft. I must have read everything on the internet about this issue, but I’m still missing something fundamental. I’m sure it’s related to some security improvements made in this release, which are not interoperating correctly with my Windows Server Essentials domain controller, but Microsoft’s documentation in this area is scattered all over the place, practically incomprehensible to non-exerts, and generally frustrating beyond measure!

?

So I’m hoping I’ll soon be able to get back to the Pi, and the 1034 TWS/Gateway release has been very enlightening.

?

Richard


Re: tws hangs on ibc startup

 

I didn't have any luck with the above suggestions, but the beta release of IBC 3.21 worked! Thanks Richard!


Re: Help with jre 21 & BNC 3.20

 

Hi Jurgen here is the latest Dockerfile integrating your insights. Again thanks a lot and thanks to Richard for helping me on this challenge !?


Re: Help with jre 21 & BNC 3.20

 

Hi 闯ü谤驳别苍,

Thanks a lot for the info. I just finished building my Docker image yesterday (joined in this message) , and I’ll be able to upgrade it further thanks to your explanation. I’ll share the updated version as well!


Re: Help with jre 21 & BNC 3.20

 

As Richard mentioned in this post, the Linux distributions of TWS/IBGW 10.34 now ship with a Java JRE17. That means that IBKR has made the appropriate changes in the source code so that TWS/IBGW now support the Java language changes introduced by Java 11 and Java 17.

That makes it much more feasible for TWS/IBGW on ARM devices, In fact, I was just now able to install and run TWS (not just IBGW) for the first time on my loyal but tired Raspberry Pi 2:
  • 900MHz quad-core ARM Cortex-A7 32bit CPU
  • 1GB RAM
  • Raspbian/Debian 12.9 (bookworm)

Before we go on, one quick disclaimer. TWS/IBGW have not been designed for the ARM architecture and their extensive dependence on Java 8 (until now) and Java FX2 features places significant (undocumented) requirements on the system, the Java JRE, and JavaFX . While running TWS/IBGW on ARM is an interesting exercise, seems to become quite stable, and will be useful in many scenarios, using them to trade in a live account is still a really bad idea.

With that out of the way, here the simple steps that I went through to bring up TWS. No modification of TWS scripts are required:

  • Install the BellSoft Full Java JRE 17.0.14 (in my case in /opt/Java/jre-17.0.14-full). JRE 21 will not work.

  • Install libgtk2.0 since TWS/IBGW need libgdk-x11-2.0.so.0. Most Linux versions now ship with GTK3 or GTK4

  • Download TWS from:

  • Install TWS with:

    app_java_home="/opt/Java/jre-17.0.14-full" sh tws-latest-standalone-linux-x64.sh

  • Run TWS with:
    JAVA_HOME="/opt/Java/jre-17.0.14-full" \
    ? ? INSTALL4J_JAVA_HOME="${JAVA_HOME}" \
    ? ? ? ? app_java_home="${JAVA_HOME}" \
    ? ? ? ? ? ? ? ? sh ~/Jts/1034/tws

That's it. It takes a while to start up (all spent in "Reading layout settings ..") but here it is ...

闯ü谤驳别苍

?

?
?
?
On Sun, Jan 5, 2025 at 04:07 PM, Jonathan S wrote:

OK Richard I will try again this week and review the launcher.log I ll keep you updates !?
Again, many thanks !?


Re: tws hangs on ibc startup

 

Thanks very much for you time and suggestions Richard.?I will try these and report back.?


Re: tws hangs on ibc startup

 

here's the whole log file for reference


Re: tws hangs on ibc startup

 

开云体育

What you’ve sent provides no useful information for this case. I can’t even tell which versions of TWS and IBC you’re running. The full logfile contains practically everything I could possibly want to know, so in future please always send the whole thing. Also don’t quote it, attach it to your post so I can easily view it in a text editor, compare it with other logs etc.

?

Having said that, I suspect that you’re trying to run TWS 1034 on Linux. There is a known problem in this case, because IBKR have switched from the Oracle Java 8 Runtime Environment to the Azul Zulu Java 17 runtime, which requires some adjustments to the Java command.

?

I have fixed this and will release a new version at the weekend. In the meantime, either:

?

  1. Revert to an earlier version of TWS

?

  1. Or do the following:

?

  1. Open this file with a text editor:

?

~/Jts/1034/.install4j/pref_jre.cfg

?

  1. Replace the single line that it contains with this:

?

/home/<linuxusername>/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64

?

  1. This change tells it to run with the Oracle Java 8 runtime, as in previous releases.

?

  1. Now run IBC again and it should work fine.

?

Just for completeness, the Windows Installer for TWS 1034 still sets it up to run with the Oracle runtime, so no changes are needed there.

?

Richard

?

?

?

From: [email protected] <[email protected]> On Behalf Of tbrown122387 via groups.io
Sent: 13 February 2025 21:02
To: [email protected]
Subject: [ibc] tws hangs on ibc startup

?

I've recently reinstalled everything on my server and I'm having a little trouble getting IBC going again.

?

After following the instructions in the subsection "" on the IBC user guide, I can run the startup script, the xterm window pops up, the TWS window pops up, 2 factor successfully completes, but then the TWS window hangs on the message "Processing startup parameters"

?

Below is the tail end of the log file.

?

It should be noted that I can run TWS without IBC just fine and I get that same GLX error mentioned below but it doesn't appear to be a problem when running TWS without IBC.

?

2025-02-13 20:48:13:717 IBC: Starting TWS?
java.lang.reflect.InaccessibleObjectException: Unable to make private static javax.swing.UIManager$LAFState javax.swing.UIManager.getLAFState() accessible: module java.desktop does not "opens javax.swing" to unnamed module @2ea41516
? ? ? ? at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
? ? ? ? at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
? ? ? ? at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
? ? ? ? at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
? ? ? ? at feature.search.recorder.JtsMultiLookAndFeel.a(JtsMultiLookAndFeel.java:107)
? ? ? ? at twslaunch.jclient.login.b.d(b.java:430)
? ? ? ? at twslaunch.jclient.login.q.a(q.java:461)
? ? ? ? at jclient.LoginFrame.main(LoginFrame.java:461)
? ? ? ? at ibcalpha.ibc.IbcTws.startTws(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.startTwsOrGateway(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.load(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.main(Unknown Source)
ES2 Prism: Error - GLX extension is not supported
? ? GLX version 1.3 or higher is required
2025-02-13 15:48:18:022 IBC: detected frame entitled: Login; event=Opened
2025-02-13 15:48:18:023 IBC: Login dialog WINDOW_OPENED: LoginState is LOGGED_OUT
2025-02-13 15:48:18:024 IBC: trading mode from settings: tradingMode=live
2025-02-13 15:48:18:024 IBC: Setting Trading mode = live
2025-02-13 15:48:18:108 IBC: Setting user name
2025-02-13 15:48:18:110 IBC: Setting password
2025-02-13 15:48:18:115 IBC: Login attempt: 1
2025-02-13 15:48:18:115 IBC: trading mode from settings: tradingMode=live
2025-02-13 15:48:18:115 IBC: Waiting for Login frame to become SecondFactorAuthenticationDialog
2025-02-13 15:48:18:120 IBC: detected frame entitled: Login; event=Activated
2025-02-13 15:48:18:125 IBC: detected frame entitled: Login; event=Focused
2025-02-13 15:48:18:169 IBC: Click button: Log In
2025-02-13 15:48:18:379 IBC: Button now disabled: Log In
2025-02-13 15:48:25:730 IBC: Login frame has now become SecondFactorAuthenticationDialog
2025-02-13 15:48:25:730 IBC: detected frame entitled: Second Factor Authentication; event=Opened
2025-02-13 15:48:25:730 IBC: Second Factor Authentication initiated
2025-02-13 15:48:29:954 IBC: detected dialog entitled: Second Factor Authentication; event=Closed
2025-02-13 15:48:29:954 IBC: Duration since login: 11 seconds
2025-02-13 15:48:32:018 IBC: detected dialog entitled: Downloading settings from server; event=Closed
IBC returned exit status 0
autorestart file not found

TWS finished

?

?

?


tws hangs on ibc startup

 

I've recently reinstalled everything on my server and I'm having a little trouble getting IBC going again.
?
After following the instructions in the subsection "" on the IBC user guide, I can run the startup script, the xterm window pops up, the TWS window pops up, 2 factor successfully completes, but then the TWS window hangs on the message "Processing startup parameters"
?
Below is the tail end of the log file.
?
It should be noted that I can run TWS without IBC just fine and I get that same GLX error mentioned below but it doesn't appear to be a problem when running TWS without IBC.
?
2025-02-13 20:48:13:717 IBC: Starting TWS?
java.lang.reflect.InaccessibleObjectException: Unable to make private static javax.swing.UIManager$LAFState javax.swing.UIManager.getLAFState() accessible: module java.desktop does not "opens javax.swing" to unnamed module @2ea41516
? ? ? ? at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
? ? ? ? at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
? ? ? ? at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
? ? ? ? at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
? ? ? ? at feature.search.recorder.JtsMultiLookAndFeel.a(JtsMultiLookAndFeel.java:107)
? ? ? ? at twslaunch.jclient.login.b.d(b.java:430)
? ? ? ? at twslaunch.jclient.login.q.a(q.java:461)
? ? ? ? at jclient.LoginFrame.main(LoginFrame.java:461)
? ? ? ? at ibcalpha.ibc.IbcTws.startTws(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.startTwsOrGateway(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.load(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.main(Unknown Source)
ES2 Prism: Error - GLX extension is not supported
? ? GLX version 1.3 or higher is required
2025-02-13 15:48:18:022 IBC: detected frame entitled: Login; event=Opened
2025-02-13 15:48:18:023 IBC: Login dialog WINDOW_OPENED: LoginState is LOGGED_OUT
2025-02-13 15:48:18:024 IBC: trading mode from settings: tradingMode=live
2025-02-13 15:48:18:024 IBC: Setting Trading mode = live
2025-02-13 15:48:18:108 IBC: Setting user name
2025-02-13 15:48:18:110 IBC: Setting password
2025-02-13 15:48:18:115 IBC: Login attempt: 1
2025-02-13 15:48:18:115 IBC: trading mode from settings: tradingMode=live
2025-02-13 15:48:18:115 IBC: Waiting for Login frame to become SecondFactorAuthenticationDialog
2025-02-13 15:48:18:120 IBC: detected frame entitled: Login; event=Activated
2025-02-13 15:48:18:125 IBC: detected frame entitled: Login; event=Focused
2025-02-13 15:48:18:169 IBC: Click button: Log In
2025-02-13 15:48:18:379 IBC: Button now disabled: Log In
2025-02-13 15:48:25:730 IBC: Login frame has now become SecondFactorAuthenticationDialog
2025-02-13 15:48:25:730 IBC: detected frame entitled: Second Factor Authentication; event=Opened
2025-02-13 15:48:25:730 IBC: Second Factor Authentication initiated
2025-02-13 15:48:29:954 IBC: detected dialog entitled: Second Factor Authentication; event=Closed
2025-02-13 15:48:29:954 IBC: Duration since login: 11 seconds
2025-02-13 15:48:32:018 IBC: detected dialog entitled: Downloading settings from server; event=Closed
IBC returned exit status 0
autorestart file not found
TWS finished
?
?
?


Re: How to set the logoff radio button to "Auto Restart"

 

Ah, that is common sense, and I should have thought of that.
?
Thank you so much for clarifying this.


Re: How to set the logoff radio button to "Auto Restart"

 

开云体育

Setting the time sets the radio button.

?

?

From: [email protected] <[email protected]> On Behalf Of pythontrader
Sent: 10 February 2025 18:34
To: [email protected]
Subject: Re: [ibc] How to set the logoff radio button to "Auto Restart"

?

?

Hi Richard,

?

I did read the notes for the following settings

?

AutoLogoffTime – Specifies a time for TWS to shut down without restarting.
AutoRestartTime – Specifies a time for TWS to shut down and restart automatically.
ColdRestartTime – Specifies a Sunday-specific restart time to ensure full authentication, as required by IBKR.

?

?

To my understanding, they do NOT change the radio button from "Auto Logoff" to "Auto Restart"? . They meant for setting the time, not the radio button. Did I get it wrong?

?

Thank you,


Re: How to set the logoff radio button to "Auto Restart"

 

?
Hi Richard,
?
I did read the notes for the following settings
?
AutoLogoffTime – Specifies a time for TWS to shut down without restarting.
AutoRestartTime – Specifies a time for TWS to shut down and restart automatically.
ColdRestartTime – Specifies a Sunday-specific restart time to ensure full authentication, as required by IBKR.
?
?
To my understanding, they do NOT change the radio button from "Auto Logoff" to "Auto Restart"? . They meant for setting the time, not the radio button. Did I get it wrong?
?
Thank you,


Re: How to set the logoff radio button to "Auto Restart"

 

开云体育

The notes in config.ini for these settings explain everything in some detail.

?

Have you not read them? And if you have, please explain why you don’t understand them.

?

Richard

?

?

From: [email protected] <[email protected]> On Behalf Of pythontrader
Sent: 10 February 2025 17:22
To: [email protected]
Subject: [ibc] How to set the logoff radio button to "Auto Restart"

?

Greetings,

Based on the recommendation from, I like to set Choose "Auto Restart" instead of "Auto Logoff" in the "Auto Logoff Timer" section.?

?

?

When I start my IBC with the default Confi.ini, I get this:?

?

?

?

?

What Config.ini settings changes "Auto logoff" to "Auto Restart"?

?

?

?

I am aware of these settings, but not sure which one changes the radio button?

?

AutoLogoffTime=
AutoRestartTime=
ColdRestartTime=

?

?

Thank you!

?

?


How to set the logoff radio button to "Auto Restart"

 

Greetings,

Based on the recommendation from, I like to set Choose "Auto Restart" instead of "Auto Logoff" in the "Auto Logoff Timer" section.?
?
?
When I start my IBC with the default Confi.ini, I get this:?
?
?
?
?
What Config.ini settings changes "Auto logoff" to "Auto Restart"?
?
?
?
I am aware of these settings, but not sure which one changes the radio button?
?
AutoLogoffTime=
AutoRestartTime=
ColdRestartTime=
?
?
Thank you!
?
?


Re: Java Error Linux

 

开云体育

I’m afraid I can’t offer any advice on how best to do encryption on Linux.

?

Any solution that involves something like eCryptFS is going to involve manual intervention at some point, for example to enter a passphrase, so I don’t know whether full automation is possible.

?

But you could for example add the mount command to a script in your login profile. You would then get the passphrase prompt each time you log in, and the folder would then be decrypted (so IBC can read it). That might be acceptable.

?

Richard

?

?


Re: Java Error Linux

 

Sorry! Figured easy enough to just cat it since short.

Thanks for the pointer, I think I know the problem, my .ini is completely marbled up when I encrypted the folder. I encrypted using:

Do you have a link for how to do the encryption properly on linux? Or like how does IBC know how to properly read the folder?


On Thu, Feb 6, 2025 at 5:36?PM Richard L King via <rlking=[email protected]> wrote:

I said “Attach it to your reply – don’t just quote it.” So you’ve quoted it…

?

Never mind, it’s quite short so let’s leave it like it is.

?

It looks like your config.ini file contains a property value that is incorrectly encoded using Unicode escape characters, in the form /uxxxx. That should be easy enough to find and fix.

?

Richard

?

?

?

?

From: [email protected] <[email protected]> On Behalf Of Salvador Barragan-Santana via
Sent: 06 February 2025 22:02
To: [email protected]
Subject: Re: [ibc] Java Error Linux

?

Appreciate the help, this is the whole thing:

?

================================================================================

Starting IBC version 3.20.0 on 2025-02-06 at 10:39:35

Operating system: Linux prod-server-nyc1 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Arguments:

TWS version = 1030
Program = Gateway
Entry point = ibcalpha.ibc.IbcGateway
--tws-path = /home/sally/Jts
--tws-settings-path =
--ibc-path = /opt/ibc
--ibc-ini = /home/sally/ibc/config.ini
--mode =
--java-path =
--user =
--pw =
--fix-user =
--fix-pw =

=================================
Generating the classpath
Classpath=/home/sally/Jts/ibgateway/1030/jars/batik-all-1.16.jar:/home/sally/Jts/ibgateway/1030/jars/commons-io-2.11.0.jar:/home/sally/Jts/ibgateway/1030/jars/fop-2.8.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-annotations-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-core-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-databind-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jts4launch-1030.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-linux64-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-swing-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/locales.jar:/home/sally/Jts/ibgateway/1030/jars/log4j-api-2.17.1.jar:/home/sally/Jts/ibgateway/1030/jars/log4j-core-2.17.1.jar:/home/sally/Jts/ibgateway/1030/jars/total-2023.jar:/home/sally/Jts/ibgateway/1030/jars/twslaunch-1030.jar:/home/sally/Jts/ibgateway/1030/jars/twslaunch-install4j-1.12.jar:/home/sally/Jts/ibgateway/1030/jars/xmlgraphics-commons-2.8.jar:/home/sally/Jts/ibgateway/1030/.install4j/i4jruntime.jar:/opt/ibc/IBC.jar

Generating the JAVA VM options
autorestart file not found

Java VM Options=-Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/sally/Jts -Dibcsessionid=KVNyxArC

Determining the location of java executable
Location of java executable=/home/sally/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin

Renaming IB's TWS or Gateway start script to prevent restart without IBC

Starting Gateway with this command:
"/home/sally/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin/java" -cp "/home/sally/Jts/ibgateway/1030/jars/batik-all-1.16.jar:/home/sally/Jts/ibgateway/1030/jars/commons-io-2.11.0.jar:/home/sally/Jts/ibgateway/1030/jars/fop-2.8.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-annotations-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-core-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-databind-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jts4launch-1030.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-linux64-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-swing-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/locales.jar:/home/sally/Jts/ibgateway/1030/jars/log4j-api-2.17.1.jar:/home/sally/Jts/ibgateway/1030/jars/log4j-core-2.17.1.jar:/home/sally/Jts/ibgateway/1030/jars/total-2023.jar:/home/sally/Jts/ibgateway/1030/jars/twslaunch-1030.jar:/home/sally/Jts/ibgateway/1030/jars/twslaunch-install4j-1.12.jar:/home/sally/Jts/ibgateway/1030/jars/xmlgraphics-commons-2.8.jar:/home/sally/Jts/ibgateway/1030/.install4j/i4jruntime.jar:/opt/ibc/IBC.jar" -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/sally/Jts -Dibcsessionid=KVNyxArC ibcalpha.ibc.IbcGateway "/home/sally/ibc/config.ini" ?

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2025-02-06 10:39:36:085 IBC: An exception has occurred:
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
at java.util.Properties.loadConvert(Properties.java:574)
at java.util.Properties.load0(Properties.java:391)
at java.util.Properties.load(Properties.java:341)
at ibcalpha.ibc.DefaultSettings.load(Unknown Source)
at ibcalpha.ibc.DefaultSettings.<init>(Unknown Source)
at ibcalpha.ibc.IbcTws.setupDefaultEnvironment(Unknown Source)
at ibcalpha.ibc.IbcGateway.main(Unknown Source)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2025-02-06 10:39:36:089 IBC: Exiting with exit code=1100
IBC returned exit status 76
autorestart file not found

Gateway finished

?

On Thu, Feb 6, 2025 at 4:48?PM Richard L King via <rlking=[email protected]> wrote:

Please send your IBC logfile – the whole of it. Attach it to your reply – don’t just quote it.

?

Richard

?

?

From: [email protected] <[email protected]> On Behalf Of salvador.barragan14 via
Sent: 06 February 2025 15:25
To: [email protected]
Subject: [ibc] Java Error Linux

?

Something in my set-up is wrong? I used to have a java configuration but removed it (had downloaded for IBController)

?

Getting this error:

?

java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
? ? ? ? at java.util.Properties.loadConvert(Properties.java:574)
? ? ? ? at java.util.Properties.load0(Properties.java:391)
? ? ? ? at java.util.Properties.load(Properties.java:341)
? ? ? ? at ibcalpha.ibc.DefaultSettings.load(Unknown Source)
? ? ? ? at ibcalpha.ibc.DefaultSettings.<init>(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.setupDefaultEnvironment(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.main(Unknown Source)


Re: Java Error Linux

 

开云体育

I said “Attach it to your reply – don’t just quote it.” So you’ve quoted it…

?

Never mind, it’s quite short so let’s leave it like it is.

?

It looks like your config.ini file contains a property value that is incorrectly encoded using Unicode escape characters, in the form /uxxxx. That should be easy enough to find and fix.

?

Richard

?

?

?

?

From: [email protected] <[email protected]> On Behalf Of Salvador Barragan-Santana via groups.io
Sent: 06 February 2025 22:02
To: [email protected]
Subject: Re: [ibc] Java Error Linux

?

Appreciate the help, this is the whole thing:

?

================================================================================

Starting IBC version 3.20.0 on 2025-02-06 at 10:39:35

Operating system: Linux prod-server-nyc1 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Arguments:

TWS version = 1030
Program = Gateway
Entry point = ibcalpha.ibc.IbcGateway
--tws-path = /home/sally/Jts
--tws-settings-path =
--ibc-path = /opt/ibc
--ibc-ini = /home/sally/ibc/config.ini
--mode =
--java-path =
--user =
--pw =
--fix-user =
--fix-pw =

=================================
Generating the classpath
Classpath=/home/sally/Jts/ibgateway/1030/jars/batik-all-1.16.jar:/home/sally/Jts/ibgateway/1030/jars/commons-io-2.11.0.jar:/home/sally/Jts/ibgateway/1030/jars/fop-2.8.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-annotations-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-core-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-databind-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jts4launch-1030.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-linux64-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-swing-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/locales.jar:/home/sally/Jts/ibgateway/1030/jars/log4j-api-2.17.1.jar:/home/sally/Jts/ibgateway/1030/jars/log4j-core-2.17.1.jar:/home/sally/Jts/ibgateway/1030/jars/total-2023.jar:/home/sally/Jts/ibgateway/1030/jars/twslaunch-1030.jar:/home/sally/Jts/ibgateway/1030/jars/twslaunch-install4j-1.12.jar:/home/sally/Jts/ibgateway/1030/jars/xmlgraphics-commons-2.8.jar:/home/sally/Jts/ibgateway/1030/.install4j/i4jruntime.jar:/opt/ibc/IBC.jar

Generating the JAVA VM options
autorestart file not found

Java VM Options=-Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/sally/Jts -Dibcsessionid=KVNyxArC

Determining the location of java executable
Location of java executable=/home/sally/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin

Renaming IB's TWS or Gateway start script to prevent restart without IBC

Starting Gateway with this command:
"/home/sally/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin/java" -cp "/home/sally/Jts/ibgateway/1030/jars/batik-all-1.16.jar:/home/sally/Jts/ibgateway/1030/jars/commons-io-2.11.0.jar:/home/sally/Jts/ibgateway/1030/jars/fop-2.8.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-annotations-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-core-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-databind-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jts4launch-1030.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-linux64-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-swing-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/locales.jar:/home/sally/Jts/ibgateway/1030/jars/log4j-api-2.17.1.jar:/home/sally/Jts/ibgateway/1030/jars/log4j-core-2.17.1.jar:/home/sally/Jts/ibgateway/1030/jars/total-2023.jar:/home/sally/Jts/ibgateway/1030/jars/twslaunch-1030.jar:/home/sally/Jts/ibgateway/1030/jars/twslaunch-install4j-1.12.jar:/home/sally/Jts/ibgateway/1030/jars/xmlgraphics-commons-2.8.jar:/home/sally/Jts/ibgateway/1030/.install4j/i4jruntime.jar:/opt/ibc/IBC.jar" -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/sally/Jts -Dibcsessionid=KVNyxArC ibcalpha.ibc.IbcGateway "/home/sally/ibc/config.ini" ?

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2025-02-06 10:39:36:085 IBC: An exception has occurred:
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
at java.util.Properties.loadConvert(Properties.java:574)
at java.util.Properties.load0(Properties.java:391)
at java.util.Properties.load(Properties.java:341)
at ibcalpha.ibc.DefaultSettings.load(Unknown Source)
at ibcalpha.ibc.DefaultSettings.<init>(Unknown Source)
at ibcalpha.ibc.IbcTws.setupDefaultEnvironment(Unknown Source)
at ibcalpha.ibc.IbcGateway.main(Unknown Source)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2025-02-06 10:39:36:089 IBC: Exiting with exit code=1100
IBC returned exit status 76
autorestart file not found

Gateway finished

?

On Thu, Feb 6, 2025 at 4:48?PM Richard L King via <rlking=[email protected]> wrote:

Please send your IBC logfile – the whole of it. Attach it to your reply – don’t just quote it.

?

Richard

?

?

From: [email protected] <[email protected]> On Behalf Of salvador.barragan14 via
Sent: 06 February 2025 15:25
To: [email protected]
Subject: [ibc] Java Error Linux

?

Something in my set-up is wrong? I used to have a java configuration but removed it (had downloaded for IBController)

?

Getting this error:

?

java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
? ? ? ? at java.util.Properties.loadConvert(Properties.java:574)
? ? ? ? at java.util.Properties.load0(Properties.java:391)
? ? ? ? at java.util.Properties.load(Properties.java:341)
? ? ? ? at ibcalpha.ibc.DefaultSettings.load(Unknown Source)
? ? ? ? at ibcalpha.ibc.DefaultSettings.<init>(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.setupDefaultEnvironment(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.main(Unknown Source)


Re: Java Error Linux

 

Appreciate the help, this is the whole thing:

================================================================================

Starting IBC version 3.20.0 on 2025-02-06 at 10:39:35

Operating system: Linux prod-server-nyc1 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Arguments:

TWS version = 1030
Program = Gateway
Entry point = ibcalpha.ibc.IbcGateway
--tws-path = /home/sally/Jts
--tws-settings-path =
--ibc-path = /opt/ibc
--ibc-ini = /home/sally/ibc/config.ini
--mode =
--java-path =
--user =
--pw =
--fix-user =
--fix-pw =

=================================
Generating the classpath
Classpath=/home/sally/Jts/ibgateway/1030/jars/batik-all-1.16.jar:/home/sally/Jts/ibgateway/1030/jars/commons-io-2.11.0.jar:/home/sally/Jts/ibgateway/1030/jars/fop-2.8.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-annotations-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-core-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-databind-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jts4launch-1030.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-linux64-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-swing-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/locales.jar:/home/sally/Jts/ibgateway/1030/jars/log4j-api-2.17.1.jar:/home/sally/Jts/ibgateway/1030/jars/log4j-core-2.17.1.jar:/home/sally/Jts/ibgateway/1030/jars/total-2023.jar:/home/sally/Jts/ibgateway/1030/jars/twslaunch-1030.jar:/home/sally/Jts/ibgateway/1030/jars/twslaunch-install4j-1.12.jar:/home/sally/Jts/ibgateway/1030/jars/xmlgraphics-commons-2.8.jar:/home/sally/Jts/ibgateway/1030/.install4j/i4jruntime.jar:/opt/ibc/IBC.jar

Generating the JAVA VM options
autorestart file not found

Java VM Options=-Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/sally/Jts -Dibcsessionid=KVNyxArC

Determining the location of java executable
Location of java executable=/home/sally/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin

Renaming IB's TWS or Gateway start script to prevent restart without IBC

Starting Gateway with this command:
"/home/sally/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin/java" -cp "/home/sally/Jts/ibgateway/1030/jars/batik-all-1.16.jar:/home/sally/Jts/ibgateway/1030/jars/commons-io-2.11.0.jar:/home/sally/Jts/ibgateway/1030/jars/fop-2.8.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-annotations-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-core-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jackson-databind-2.12.3.jar:/home/sally/Jts/ibgateway/1030/jars/jts4launch-1030.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-linux64-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/jxbrowser-swing-7.29.jar:/home/sally/Jts/ibgateway/1030/jars/locales.jar:/home/sally/Jts/ibgateway/1030/jars/log4j-api-2.17.1.jar:/home/sally/Jts/ibgateway/1030/jars/log4j-core-2.17.1.jar:/home/sally/Jts/ibgateway/1030/jars/total-2023.jar:/home/sally/Jts/ibgateway/1030/jars/twslaunch-1030.jar:/home/sally/Jts/ibgateway/1030/jars/twslaunch-install4j-1.12.jar:/home/sally/Jts/ibgateway/1030/jars/xmlgraphics-commons-2.8.jar:/home/sally/Jts/ibgateway/1030/.install4j/i4jruntime.jar:/opt/ibc/IBC.jar" -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/sally/Jts -Dibcsessionid=KVNyxArC ibcalpha.ibc.IbcGateway "/home/sally/ibc/config.ini" ?

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2025-02-06 10:39:36:085 IBC: An exception has occurred:
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
at java.util.Properties.loadConvert(Properties.java:574)
at java.util.Properties.load0(Properties.java:391)
at java.util.Properties.load(Properties.java:341)
at ibcalpha.ibc.DefaultSettings.load(Unknown Source)
at ibcalpha.ibc.DefaultSettings.<init>(Unknown Source)
at ibcalpha.ibc.IbcTws.setupDefaultEnvironment(Unknown Source)
at ibcalpha.ibc.IbcGateway.main(Unknown Source)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2025-02-06 10:39:36:089 IBC: Exiting with exit code=1100
IBC returned exit status 76
autorestart file not found

Gateway finished


On Thu, Feb 6, 2025 at 4:48?PM Richard L King via <rlking=[email protected]> wrote:

Please send your IBC logfile – the whole of it. Attach it to your reply – don’t just quote it.

?

Richard

?

?

From: [email protected] <[email protected]> On Behalf Of salvador.barragan14 via
Sent: 06 February 2025 15:25
To: [email protected]
Subject: [ibc] Java Error Linux

?

Something in my set-up is wrong? I used to have a java configuration but removed it (had downloaded for IBController)

?

Getting this error:

?

java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
? ? ? ? at java.util.Properties.loadConvert(Properties.java:574)
? ? ? ? at java.util.Properties.load0(Properties.java:391)
? ? ? ? at java.util.Properties.load(Properties.java:341)
? ? ? ? at ibcalpha.ibc.DefaultSettings.load(Unknown Source)
? ? ? ? at ibcalpha.ibc.DefaultSettings.<init>(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.setupDefaultEnvironment(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.main(Unknown Source)


Re: Java Error Linux

 

开云体育

Please send your IBC logfile – the whole of it. Attach it to your reply – don’t just quote it.

?

Richard

?

?

From: [email protected] <[email protected]> On Behalf Of salvador.barragan14 via groups.io
Sent: 06 February 2025 15:25
To: [email protected]
Subject: [ibc] Java Error Linux

?

Something in my set-up is wrong? I used to have a java configuration but removed it (had downloaded for IBController)

?

Getting this error:

?

java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
? ? ? ? at java.util.Properties.loadConvert(Properties.java:574)
? ? ? ? at java.util.Properties.load0(Properties.java:391)
? ? ? ? at java.util.Properties.load(Properties.java:341)
? ? ? ? at ibcalpha.ibc.DefaultSettings.load(Unknown Source)
? ? ? ? at ibcalpha.ibc.DefaultSettings.<init>(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.setupDefaultEnvironment(Unknown Source)
? ? ? ? at ibcalpha.ibc.IbcTws.main(Unknown Source)