IbcAlpha / IBC

Automation of Interactive Brokers TWS. You can download the latest release here: https://github.com/ibcalpha/ibc/releases/latest
GNU General Public License v3.0
974 stars 174 forks source link

String index out of range: 4 because of The attribute "clip-path" represents an invalid CSS value ("url(#b)"). #212

Closed Unlik closed 1 year ago

Unlik commented 1 year ago

Hello, I would like to report the minor issue, probably connected to TWS version or/and java version: In version 3.16.2 with TWS 1012 several times found in the IBC log the same error (the entry point is different):

LogModuleConfigurator-Init: Log4j Ver2.x found on classpath
LogModuleConfigurator-Init: LogModuleConfigurator initialized with Log4j Verd.x
org.w3c.dom.DOMException: jar:file:/C:/Jts/1012/jars/jts4launch-1012.jar!/trader/common/images/PAXOS_Badge_Dark_TWS_w44_h15.svg:
The attribute "clip-path" represents an invalid CSS value ("url(#b)").
Original message:
String index out of range: 4
    at org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap(CSSEngine.java:776)

What could be wrong? However TWS is started and runs.

Environment:

2023-05-15 09:17:55:612 IBC: Version: 3.16.2
System Properties
------------------------------------------------------------
jtsConfigDir = C:\Jts
swing.boldMetal = false
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = c:\users\xxx\.i4j_jres\1.8.0_152-tzdata2019c_64\bin
java.vm.version = 25.152-b16
sun.awt.nopixfmt = true
vmOptionsPath = C:\Jts\1012\tws.vmoptions
java.vm.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
path.separator = ;
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg = sun.io
user.country = US
user.script = 
sun.java.launcher = SUN_STANDARD
sun.os.patch.level = 
java.vm.specification.name = Java Virtual Machine Specification
user.dir = C:\Jts
java.runtime.version = 1.8.0_152-b16
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs = c:\users\xxx\.i4j_jres\1.8.0_152-tzdata2019c_64\lib\endorsed
os.arch = amd64
java.io.tmpdir = C:\Users\xxx\AppData\Local\Temp\
line.separator = 
java.vm.specification.vendor = Oracle Corporation
user.variant = 
os.name = Windows Server 2016
sun.java2d.noddraw = true
sun.jnu.encoding = Cp1252
java.specification.name = Java Platform API Specification
java.class.version = 52.0
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
exe4j.isInstall4j = true
os.version = 10.0
user.timezone = Europe/Paris
java.awt.printerjob = sun.awt.windows.WPrinterJob
file.encoding = Cp1252
java.specification.version = 1.8
java.class.path = C:\Jts\1012\jars\jts4launch-1012.jar;C:\Jts\1012\jars\jxbrowser-7.20.jar;C:\Jts\1012\jars\jxbrowser-swing-7.20.jar;C:\Jts\1012\jars\jxbrowser-win64-7.20.jar;C:\Jts\1012\jars\locales.jar;C:\Jts\1012\jars\log4j-api-2.17.1.jar;C:\Jts\1012\jars\log4j-core-2.17.1.jar;C:\Jts\1012\jars\total-2020.jar;C:\Jts\1012\jars\twslaunch-1012.jar;C:\Jts\1012\jars\twslaunch-install4j-1.10.jar;C:\Jts\1012\.install4j\i4jruntime.jar;C:\IBC\IBC.jar
user.name = xxx
channel = latest
java.vm.specification.version = 1.8
sun.java.command = ibcalpha.ibc.IbcTws C:\Users\xxx\yyy\IBC\config.ini
java.home = c:\users\xxx\.i4j_jres\1.8.0_152-tzdata2019c_64
sun.arch.data.model = 64
user.language = en
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.windows.WToolkit
java.vm.info = mixed mode
java.version = 1.8.0_152
java.ext.dirs = c:\users\xxx\.i4j_jres\1.8.0_152-tzdata2019c_64\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path = c:\users\xxx\.i4j_jres\1.8.0_152-tzdata2019c_64\lib\resources.jar;c:\users\xxx\.i4j_jres\1.8.0_152-tzdata2019c_64\lib\rt.jar;c:\users\xxx\.i4j_jres\1.8.0_152-tzdata2019c_64\lib\sunrsasign.jar;c:\users\xxx\.i4j_jres\1.8.0_152-tzdata2019c_64\lib\jsse.jar;c:\users\xxx\.i4j_jres\1.8.0_152-tzdata2019c_64\lib\jce.jar;c:\users\xxx\.i4j_jres\1.8.0_152-tzdata2019c_64\lib\charsets.jar;c:\users\xxx\.i4j_jres\1.8.0_152-tzdata2019c_64\lib\jfr.jar;c:\users\xxx\.i4j_jres\1.8.0_152-tzdata2019c_64\classes
java.vendor = Oracle Corporation
file.separator = \
twslaunch.autoupdate.serviceImpl = com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
install4jType = standalone
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
sun.desktop = windows
sun.locale.formatasdefault 
rlktradewright commented 1 year ago

This is a TWS issue, and nothing to do with IBC.

I believe it occurs when TWS wants to show the Paxos icon when it starts up. Paxos is the company that supplies crypto-currency services to IB. Clearly there is something wrong with a CSS value within the jts4launch-1012.jar module, which is part of TWS/Gateway.

I suggest you upgrade to the current stable version of TWS, which is 1019.1m.