Layer0ApiDemo Exception

Custom indicators, trading strategies, data export and recording and more...
rubys
Posts: 5
Joined: Sun Jan 20, 2019 9:16 am
Has thanked: 2 times

Layer0ApiDemo Exception

Post by rubys » Sun Jan 20, 2019 11:17 am

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:
Capture.PNG
Capture.PNG (196.89 KiB) Viewed 9834 times
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

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Layer0ApiDemo Exception

Post by Andry API support » Mon Jan 21, 2019 9:11 am

Hi rubys,
Please archive your Program Files\Bookmap\lib\UserModules folder into a .zip file and sent it to [email protected]

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Layer0ApiDemo Exception

Post by Andry API support » Tue Jan 22, 2019 10:14 am

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.

rubys
Posts: 5
Joined: Sun Jan 20, 2019 9:16 am
Has thanked: 2 times

Re: Layer0ApiDemo Exception

Post by rubys » Tue Jan 22, 2019 3:04 pm

Thanks AndreyR
AndreyR wrote:
Tue Jan 22, 2019 10:14 am
1) does your license start with U2LX... ?
correct
AndreyR wrote:
Tue Jan 22, 2019 10:14 am
2) please add '\main' to the DemoExternalRealtimeProvider path so becomes 'd:\work\development\rubys\bookmap\layer0-api-demo\bin\main'
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

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Layer0ApiDemo Exception

Post by Andry API support » Tue Jan 22, 2019 4:42 pm

To make it work from a jar, could you please send me logs and if possible the jar itself

rubys
Posts: 5
Joined: Sun Jan 20, 2019 9:16 am
Has thanked: 2 times

Re: Layer0ApiDemo Exception

Post by rubys » Wed Jan 23, 2019 6:19 am

rubys wrote:
Tue Jan 22, 2019 3:04 pm
Still having problems with loading the module from a jar file.
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

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Layer0ApiDemo Exception

Post by Andry API support » Wed Jan 23, 2019 10:11 am

Hi rubys,
Yes it was.

Post Reply