Layer0ApiDemo Exception
Layer0ApiDemo Exception
Hi,
I've tried the Layer0ApiDemo https://github.com/BookmapAPI/Layer0ApiDemo with the following stack:
1. Windows 10
2. Bookmap version 7 build 55
3. Eclipse IDE Version: 2018-12 (4.10.0) Build id: 20181214-0600
Loading the example VIA configuration files causes the following exception when launching Bookmap: And the log contains the following text:
java.lang.IllegalArgumentException: Failed to detect version based on entry point velox.api.layer0.live.DemoExternalRealtimeTradingProvider
at velox.bookmap.td.<init>(SourceFile:72)
at velox.bookmap.bn.a(SourceFile:107)
at velox.bookmap.bn.b(SourceFile:159)
at velox.ib.Main.b(SourceFile:2279)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: velox.api.layer0.live.DemoExternalRealtimeTradingProvider
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at velox.bookmap.td.<init>(SourceFile:66)
... 4 more
The DemoExternalRealtimeTradingProvider.class exists in the bin folder ....bin\main\velox\api\layer0\live\
and so does DemoExternalRealtimeProvider.class and DemoExternalRealtimeProvider$Instrument.class
When loading the example via a JAR file exported to ...Bookmap\API\Layer0ApiModules\, Bookmap is successfully started, a permissions.bin file is generated in ....Bookmap\API\Layer0ApiModules\ folder but I can't see the new demo providers in Bookmap.
Please advise
I've tried the Layer0ApiDemo https://github.com/BookmapAPI/Layer0ApiDemo with the following stack:
1. Windows 10
2. Bookmap version 7 build 55
3. Eclipse IDE Version: 2018-12 (4.10.0) Build id: 20181214-0600
Loading the example VIA configuration files causes the following exception when launching Bookmap: And the log contains the following text:
java.lang.IllegalArgumentException: Failed to detect version based on entry point velox.api.layer0.live.DemoExternalRealtimeTradingProvider
at velox.bookmap.td.<init>(SourceFile:72)
at velox.bookmap.bn.a(SourceFile:107)
at velox.bookmap.bn.b(SourceFile:159)
at velox.ib.Main.b(SourceFile:2279)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: velox.api.layer0.live.DemoExternalRealtimeTradingProvider
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at velox.bookmap.td.<init>(SourceFile:66)
... 4 more
The DemoExternalRealtimeTradingProvider.class exists in the bin folder ....bin\main\velox\api\layer0\live\
and so does DemoExternalRealtimeProvider.class and DemoExternalRealtimeProvider$Instrument.class
When loading the example via a JAR file exported to ...Bookmap\API\Layer0ApiModules\, Bookmap is successfully started, a permissions.bin file is generated in ....Bookmap\API\Layer0ApiModules\ folder but I can't see the new demo providers in Bookmap.
Please advise
-
- Posts: 548
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 85 times
Re: Layer0ApiDemo Exception
Hi rubys,
Please archive your Program Files\Bookmap\lib\UserModules folder into a .zip file and sent it to [email protected]
Please archive your Program Files\Bookmap\lib\UserModules folder into a .zip file and sent it to [email protected]
-
- Posts: 548
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 85 times
Re: Layer0ApiDemo Exception
Hi rubys
1) does your license start with U2LX... ?
2) please add '\main' to the DemoExternalRealtimeProvider path so becomes 'd:\work\development\rubys\bookmap\layer0-api-demo\bin\main'
Please let me know what happens next. If the problem remains, send me your zipped 'd:\work\development\rubys\bookmap\layer0-api-demo\bin' folder.
1) does your license start with U2LX... ?
2) please add '\main' to the DemoExternalRealtimeProvider path so becomes 'd:\work\development\rubys\bookmap\layer0-api-demo\bin\main'
Please let me know what happens next. If the problem remains, send me your zipped 'd:\work\development\rubys\bookmap\layer0-api-demo\bin' folder.
Re: Layer0ApiDemo Exception
Thanks AndreyR
You might want to update Layer0APIGettingstarted.pdf accordingly:
velox.api.layer0.live.DemoExternalRealtimeTradingProvider D:\Layer0ApiDemo\bin
should be:
velox.api.layer0.live.DemoExternalRealtimeTradingProvider D:\Layer0ApiDemo\bin\main
Still having problems with loading the module from a jar file.
Thanks
correct
Now it's working (loading the module from a config file)!
You might want to update Layer0APIGettingstarted.pdf accordingly:
velox.api.layer0.live.DemoExternalRealtimeTradingProvider D:\Layer0ApiDemo\bin
should be:
velox.api.layer0.live.DemoExternalRealtimeTradingProvider D:\Layer0ApiDemo\bin\main
Still having problems with loading the module from a jar file.
Thanks
-
- Posts: 548
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 85 times
Re: Layer0ApiDemo Exception
To make it work from a jar, could you please send me logs and if possible the jar itself
Re: Layer0ApiDemo Exception
Hi,
Sorry for the misleading information, it's now working great using JAR file. Was is a license credentials issue? because I haven't changed anything in my trading and development environment .
Thanks
-
- Posts: 548
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 85 times