开云体育

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Help with jre 21 & BNC 3.20

 

Hi Jonathan,
I am also just migrating to IBC on Raspberry Pi and found this link extremely helpful:

I had to download the JDK 8 from Oracle and I used this version from Bellsoft for the libraries: .
I had to add -XX:+UnlockExperimentalVMOptions to ibgateway.vmoptions

I have got to a stage where the script runs without errors but I am still not being able to log in with the following error:
IBC Closing after TWS/Gateway failed to display login dialog
Exit Code : 1112
Exit Status : 88

Gateway Version 1033
IBC Version 3.20.0


Re: Help with jre 21 & BNC 3.20

 

开云体育

Jonathan

The command to run Gateway without IBC on my Ubuntu system (and without the Install4J stuff that the IBKR Installer uses, and which you presumably won't need) is shown below. This should presumably work on any platform.

Note that this uses the standard locations that IBKR's installer uses. The Gateway libraries and dependencies are in /home/richard/Jts/ibgateway/1033: obviously you wouldn't want to use my username, and in fact you could put the whole lot wherever you like provided you keep all the relative paths the same.

I would very much recommend sticking with the same version of Java (ie 1.8.0_202_64), but if that version on ARM doesn't have the full JavaFX implementation then by all means use Java 11 if you already know that works.

If this works, then I see no reason why it shouldn't work running under IBC, but I think trying to run with Java 21 is probably doomed to failure. In any case it would give you no benefit at all.

Here's the command:

java -DjtsConfigDir=/home/richard/Jts -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -DvmOptionsPath=/home/richard/Jts/ibgateway/1033/ibgateway.vmoptions -Dsun.awt.nopixfmt=true -Dsun.java2d.noddraw=true -Dswing.boldMetal=false -Dsun.locale.formatasdefault=true -classpath /home/richard/Jts/ibgateway/1033/jars/jackson-databind-2.12.3.jar:/home/richard/Jts/ibgateway/1033/jars/log4j-api-2.17.1.jar:/home/richard/Jts/ibgateway/1033/jars/twslaunch-1033.jar:/home/richard/Jts/ibgateway/1033/jars/xmlgraphics-commons-2.8.jar:/home/richard/Jts/ibgateway/1033/jars/jackson-core-2.12.3.jar:/home/richard/Jts/ibgateway/1033/jars/jts4launch-1033.jar:/home/richard/Jts/ibgateway/1033/jars/commons-io-2.11.0.jar:/home/richard/Jts/ibgateway/1033/jars/fop-2.8.jar:/home/richard/Jts/ibgateway/1033/jars/jackson-annotations-2.12.3.jar:/home/richard/Jts/ibgateway/1033/jars/jxbrowser-7.41.3.jar:/home/richard/Jts/ibgateway/1033/jars/batik-all-1.16.jar:/home/richard/Jts/ibgateway/1033/jars/jxbrowser-linux64-7.41.3.jar:/home/richard/Jts/ibgateway/1033/jars/jxbrowser-swing-7.41.3.jar:/home/richard/Jts/ibgateway/1033/jars/log4j-core-2.17.1.jar:/home/richard/Jts/ibgateway/1033/jars/total-2023.jar ibgateway.GWClient


Good luck

Richard


On 16/12/2024 12:22, Jonathan S via groups.io wrote:

Hi Richard,

Thank you for your feedback! I really appreciate your insights.

The reason I’m trying to set up IB Gateway with IBC on my Raspberry Pi is because I’m updating Gonzo’s Dockerfile for the ARM64 branch. I’m working on upgrading the versions of IB Gateway and IBC (). I attached my new Dockerfile here.
Currently, I’m using Gonzo’s aarch64 image, which works well, but it’s based on JRE 11.
I initially thought I could upgrade the JRE version in the image to use a newer one, such as JRE 21, without running into major compatibility issues.

I did not try running the gateway without IBC how could I test that ??
Best from Paris,

Jonathan


Re: Help with jre 21 & BNC 3.20

 

Hi Richard,

Thank you for your feedback! I really appreciate your insights.

The reason I’m trying to set up IB Gateway with IBC on my Raspberry Pi is because I’m updating Gonzo’s Dockerfile for the ARM64 branch. I’m working on upgrading the versions of IB Gateway and IBC (). I attached my new Dockerfile here.
Currently, I’m using Gonzo’s aarch64 image, which works well, but it’s based on JRE 11.
I initially thought I could upgrade the JRE version in the image to use a newer one, such as JRE 21, without running into major compatibility issues.

I did not try running the gateway without IBC how could I test that ??
Best from Paris,

Jonathan


Re: Help with jre 21 & BNC 3.20

 

开云体育

TWS is built with Java 8, as is IBC. I wouldn’t either to run on Java 21 without modification. As a matter of interest, does Gateway run properly on this setup when you run it without IBC?

?

When you install TWS with IBKR’s installer, it includes a hidden Java v8, the exact same one that IBKR use for development and testing – version 1.8.0_202_64. This is loaded in preference to any other version or variant of Java that may be installed. This makes life much easier for IBKR, since they only have to get it all working on one Java platform, and greatly reduces their support load.

?

Since there is no installer for ARM provided by IBKR, this nice simple arrangement is not available to you..

?

I’m not able to provide any in-depth assistance on this topic, but I strongly advise you to use the appropriate version of Java runtime.

?

There have been a few previous threads here on related ?topics, which may be helpful: search “JavaFX” or “OpenJDK”.

?

Richard

?


Help with jre 21 & BNC 3.20

 

Hi all,
I’m currently trying to set up IB Gateway 10.30.1s with IBC 3.20.0 on my Raspberry Pi, using a custom Dockerfile based on Ubuntu 24.04 for running IB on my raspi (ARM64).
```FROM ubuntu:24.04 AS setup ENV
IB_GATEWAY_VERSION=10.30.1s
ENV IB_GATEWAY_RELEASE_CHANNEL=stable
ENV IBC_VERSION=3.20.0
```
For Java, I’m using an ARM-compatible version of the JDK from BellSoft:?
However, I’m encountering an issue when running the gateway. The log shows this error:
```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 @8f4ea7c```

it appears that the issue is related to?IBC's interaction with?Java's module system. Specifically, it seems to be a problem with access restrictions on Java’s ```javax.swing```?package, which is enforced by the?java.desktop?module in newer Java versions

I’ve considered adding the following JVM argument to the?```ibgateway.vmoptions```?file:
```--add-opens java.desktop/javax.swing=ALL-UNNAMED```

?

This argument would open up the necessary parts of?```javax.swing```?to the unnamed module and may allow the gateway to function properly.

At this point, I’m unsure whether the root cause is due to IBC not being fully compatible with Java 21 or if there is another configuration issue. Has anyone else faced this problem or have any advice on how to properly configure?IBC?with?Java 21?in a Docker environment?

Many thanks from Paris
John



Re: New IBS user

 

Well, the User Guide does tell you to set the permissions, so I don't know why that was difficult...?

twsstartmacos.sh is a script that you execute in the terminal. Don't paste its content in, just type this command:

.\twsstartmacos.sh

If you're not familiar with the basics of using the command line, spend some time finding out.?

Richard?




From: [email protected] <[email protected]> on behalf of Frederic.lescaroux via groups.io <Frederic.lescaroux@...>
Sent: Friday, November 29, 2024 12:22:50 pm
To: [email protected] <[email protected]>
Subject: [ibc] New IBS user

I'm having the hardest time trying to set up IBC on MacOS.I downloaded the .zip, created all the folders and saved the corresponding files in them (I used the default configuration described in the user guide)
At first I had access right issues:

Error: no execute permission for scripts in ${IBC_PATH}/scripts

?

The command sudo chmod o+x *.sh */*.sh seems to have solved that issue.

?

But now I get

XXX-MBP:~ username$ -bash -inline

-bash: -bash: command not found

?

Just to be sure I'm doing things properly:

I'm pasting the text in twsstartmacos.sh in the terminal, and new window opens with the above message

?

Any help would be much appreciated



New IBS user

 

I'm having the hardest time trying to set up IBC on MacOS.I downloaded the .zip, created all the folders and saved the corresponding files in them (I used the default configuration described in the user guide)
At first I had access right issues:

Error: no execute permission for scripts in ${IBC_PATH}/scripts

?

The command sudo chmod o+x *.sh */*.sh seems to have solved that issue.

?

But now I get

XXX-MBP:~ username$ -bash -inline

-bash: -bash: command not found

?

Just to be sure I'm doing things properly:

I'm pasting the text in twsstartmacos.sh in the terminal, and new window opens with the above message

?

Any help would be much appreciated


Re: New error message

 

开云体育

Hi,

I’m using TWS with IBC in docker (https://github.com/gnzsnz/ib-gateway-docker)

You need to install?libnspr4 and libnss3 (on Debian/ubuntu) for TWS to stop complaining

I will test ibgateway, in the past this was not needed but maybe it’s the case now.


Cheers


On 24 Oct 2024, at 01:34, Bennie <ken360@...> wrote:

Hi 闯ü谤驳别苍,

I am using IBGW, version 10.31.1j

Bennie



Re: New error message

 

Hi 闯ü谤驳别苍,

I am using IBGW, version 10.31.1j

Bennie


Re: New error message

 

Thank you for the update, Bennie.
?
Are you using an instance of TWS or IB Gateway? IBGW may be more tolerant to a missing on non-fuctional Chromium browser.
?
On Wed, Oct 23, 2024 at 05:18 PM, Bennie wrote:

Thanks, 闯ü谤驳别苍. For the record, I have not noticed any issues. It still connects and logs in just fine. I will start paying closer attention, though.

Bennie


Re: New error message

 

Thanks, 闯ü谤驳别苍. For the record, I have not noticed any issues. It still connects and logs in just fine. I will start paying closer attention, though.

Bennie


Re: New error message

 

There is not too much to add to Richard's post and I agree that you can ignore the message if you do not experience issues with TWS/IBGW. Having said that, I expect that you may eventually (or already have) run into issues, especially with TWS. In that case, here some context.

TWS/IBGW use JavaFX and JxBrowser to render all their screens (both) and the more? complex multimedia content and video (TWS). There are various implementations of JxBrowser developers can chose from, but the Google Chromium browser based version is the most feature rich. That is the version TWS/IBGW ship with.

TWS/IBGW maintain a private JxBrowser/Chromium installation. In case they don't find their installation, they will make one during startup. On Linux that is ~420M in /tmp/JxBrowser and ~50M in /tmp/UserData. Multiple instances of TWS/IBGW that are based on the same JxBrowser version share the same installation. On Linux that is for the current "stable TWS/IBGW 10.30" /tmp/JxBrowser/7.29. I have seen situations where more than one Chromium was installed when "very old" and "very recent" TWS were started on the same system, or if the system runs for a very long time without reboot.

I don't use any of the multi-media content in TWS, Chromium installations and running browsers use valuable server resources, and I don't see any benefit from having a Google Chromium browser (that does talk with Google all the time) living so close to the brokerage account. So I removed Google Chromium from a TWS installation a few months ago just to see whether that would work. TWS came up, login worked just fine, most of the forms, screens, and windows worked as expected, but eventually some of the regular features just did not work well or failed and error messages complaining about the missing JxBrowser popped up.

For now, I am running stock TWS/IBGW with JxBrowser/Chromium but I want to try some firewall settings that severely restrict, whom Chromium can communicate with. One of those days.

You might want to install the missing libraries in case you do run into TWS/IBGW issues. Hope this helps,

闯ü谤驳别苍

?
On Wed, Oct 23, 2024 at 11:15 AM, Bennie wrote:

Just got a new error message pop up:

java.util.concurrent.CompletionException: com.teamdev.jxbrowser.engine.MissingDependencyException: Missing dependencies have been detected: chromium => libnssutil3.so libnss3.so libgbm.so.1 libsmime3.so libnspr4.so

Is that someting from IBC, or elsewhere?

Thanks


Re: New error message

 

Thank you, Richard!


Re: New error message

 

开云体育

No, that message is from TWS/Gateway.

?

Nearly all messages from the IBC program start with a timestamp and “IBC: “ like this:

?

2024-10-22 22:12:26:085 IBC: Login has completed

?

The exceptions are the “IBC Settings” list and the “System Properties” list.

?

All other messages are either from the IBC scripts, or from TWS/Gateway.

?

It seems that IBKR are somewhat undisciplined about their logging: the vast majority of it is sensibly logged to the TWS/Gateway logfile (via the open source Log4J package), which is fine. But some things are just written out to stderr or stdout, and anything sent there ends up in the IBC logfile. Sometimes this information is useful, but most of the time it’s of no relevance to the end user and can be rather intrusive when trying to look through the IBC logfile.

?

My advice is to not worry about log messages from TWS/Gateway, unless they are clearly related to some issue with them (in which case you might consider reporting them to IBKR). However if you’re reporting a problem with IBC to me, always include the full IBC logfile: don’t try to weed out the stuff from TWS/Gateway.

?

As far as this particular message is concerned. If it’s preventing TWS/Gateway running properly you probably need to address it. I hit this when I was setting up a minimal Ubuntu Server a year or so ago, and had to ferret around to find out what (and how) to install. The libnss libraries is a Network Security Services component. I’m afraid I can’t offer any advice on what you should do.

?

?

?

From: [email protected] <[email protected]> On Behalf Of Bennie
Sent: 23 October 2024 17:16
To: [email protected]
Subject: [ibc] New error message

?

Just got a new error message pop up:

java.util.concurrent.CompletionException: com.teamdev.jxbrowser.engine.MissingDependencyException: Missing dependencies have been detected: chromium => libnssutil3.so libnss3.so libgbm.so.1 libsmime3.so libnspr4.so

Is that someting from IBC, or elsewhere?

Thanks


New error message

 

Just got a new error message pop up:

java.util.concurrent.CompletionException: com.teamdev.jxbrowser.engine.MissingDependencyException: Missing dependencies have been detected: chromium => libnssutil3.so libnss3.so libgbm.so.1 libsmime3.so libnspr4.so

Is that someting from IBC, or elsewhere?

Thanks


Re: Diagnozing why ibc is not launching after upgrading to 3.20

 

I'm glad to hear that.

Another thing I should do is add a reminder to Release notes to
re-permission the scripts when they have been updated. You're by no means
the first person to trip over this...

R.

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Pranav Lal
Sent: 04 September 2024 15:58
To: [email protected]
Subject: Re: [ibc] Diagnozing why ibc is not launching after upgrading to
3.20

Hi Richard,

You make excellent points. I have found the problem and am back up.

The problem was that the new scripts did not have the execute permission.
My primary scripts are renamed so I did not lose them. I updated the
gateway to 10.31, modified my gatewayStartLive.sh and gatewayStartPaper.sh
scripts and was back.

Pranav

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Richard L King
Sent: Wednesday, September 4, 2024 3:37 PM
To: [email protected]
Subject: Re: [ibc] Diagnozing why ibc is not launching after upgrading to
3.20

Pranav

Using that command will unpack the whole of the zip and overwrite all the
files, thereby overwriting all your customisations.

My instructions in the Release Notes say this:

'To upgrade to this Release, download the relevant zip file and extract
the IBC.jar and version files, copying them over the current versions in
your IBC installation folder.' So it is only those two files, specifically
mentioned, that should have been touched.

Clearly that message didn't get through.

For future releases I'll try to remember to add a reminder that it's
always safest to make a backup copy of your IBC configuration before doing
any upgrades.

Iif you did make such a backup copy, then put it back in place, and try
again with just those two files.

If you don't have a backup (and you really ought to have one in your
general computer backup), then I'm afraid you'll have to set it up from
scratch again.

Richard


Re: Diagnozing why ibc is not launching after upgrading to 3.20

 

Hi Richard,

You make excellent points. I have found the problem and am back up.

The problem was that the new scripts did not have the execute permission.
My primary scripts are renamed so I did not lose them. I updated the
gateway to 10.31, modified my gatewayStartLive.sh and gatewayStartPaper.sh
scripts and was back.

Pranav

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Richard L King
Sent: Wednesday, September 4, 2024 3:37 PM
To: [email protected]
Subject: Re: [ibc] Diagnozing why ibc is not launching after upgrading to
3.20

Pranav

Using that command will unpack the whole of the zip and overwrite all the
files, thereby overwriting all your customisations.

My instructions in the Release Notes say this:

'To upgrade to this Release, download the relevant zip file and extract the
IBC.jar and version files, copying them over the current versions in your
IBC installation folder.' So it is only those two files, specifically
mentioned, that should have been touched.

Clearly that message didn't get through.

For future releases I'll try to remember to add a reminder that it's always
safest to make a backup copy of your IBC configuration before doing any
upgrades.

Iif you did make such a backup copy, then put it back in place, and try
again with just those two files.

If you don't have a backup (and you really ought to have one in your general
computer backup), then I'm afraid you'll have to set it up from scratch
again.

Richard


Re: Diagnozing why ibc is not launching after upgrading to 3.20

 

Pranav

Using that command will unpack the whole of the zip and overwrite all the
files, thereby overwriting all your customisations.

My instructions in the Release Notes say this:

'To upgrade to this Release, download the relevant zip file and extract the
IBC.jar and version files, copying them over the current versions in your
IBC installation folder.' So it is only those two files, specifically
mentioned, that should have been touched.

Clearly that message didn't get through.

For future releases I'll try to remember to add a reminder that it's always
safest to make a backup copy of your IBC configuration before doing any
upgrades.

Iif you did make such a backup copy, then put it back in place, and try
again with just those two files.

If you don't have a backup (and you really ought to have one in your general
computer backup), then I'm afraid you'll have to set it up from scratch
again.

Richard


Diagnozing why ibc is not launching after upgrading to 3.20

 

Hi all,

I upgraded to ibc 3.20 by overwriting the files in the /opt/ibc folder via
the unzip command.
sudo unzip ~/s/IBCLinux-3.20.zip -d \
/opt/ibc
Since then, ibc refuses to launch. There are no log entries therefore I do
not know what to do.

I have tested the integrity of the zip file and have even tried inflating
the ibc.jar file. Both those tests have worked which means that ibc has been
correctly downloaded.

I did not change the configuration files in this release since no changes
had to be made.

I am running ibc on linux.
What am I missing?
Pranav


Re: Removing Order Precautions

 

I think it worked! Thank you!
?
?