Menu

#8 Getting NumberFormatExceptions when starting JNLP app

v1.0 (example)
open
nobody
None
5
2013-01-17
2013-01-17
No

Hi there,

I'm trying to use the Netx library (I'm very impressed by the simple API) to start a JNLP based application.
Seems to be almost working, however when I try to start the application (which runs fine with the javaws command), I'm getting NumberFormatExceptions somewhere in a newly created thread which I'm unable to debug properly. Do you have any idea how I can get this fixed?

Getting a few stackdumps like:

java.lang.NumberFormatException: null
at java.lang.Long.parseLong(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at netx.jnlp.cache.CacheEntry.isCurrent(Unknown Source)
at netx.jnlp.cache.CacheUtil.isCurrent(Unknown Source)
at netx.jnlp.cache.ResourceTracker.initializeResource(Unknown Source)
at netx.jnlp.cache.ResourceTracker.processResource(Unknown Source)
at netx.jnlp.cache.ResourceTracker.access$400(Unknown Source)
at netx.jnlp.cache.ResourceTracker$Downloader.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Code I'm using to start the app:

java.net.URL myUrl = new java.net.URL("http://myIdpAddress/main.jsp");
netx.jnlp.JNLPFile jnlpFile = new netx.jnlp.JNLPFile(myUrl);

netx.jnlp.Launcher launcher = new netx.jnlp.Launcher();
launcher.setUpdatePolicy(netx.jnlp.cache.UpdatePolicy.ALWAYS);

launcher.launchExternal(jnlpFile);

Thanks for your feedback!

Discussion


Log in to post a comment.