Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Expception I cannot explain: NPE at java.lang.Thread
 Post subject: Expception I cannot explain: NPE at java.lang.Thread Post rating: 0   New post Posted: Thu 07 Jul, 2011, 18:41 

User rating: 0
Joined: Wed 18 May, 2011, 08:40
Posts: 43
Location: RU
Don't understand why this exception is thrown while testing with JForex API:

java.lang.NullPointerException
   at java.lang.Thread.setPriority(Thread.java:817)
   at com.dukascopy.charts.data.datacache.bq.run(Unknown Source)
   at com.dukascopy.charts.data.datacache.ah.c(Unknown Source)
   at com.dukascopy.dds2.greed.agent.strategy.tester.a.d.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:736)
2011-07-07 21:33:45.713 ERROR a -
java.lang.NullPointerException
   at java.lang.Thread.setPriority(Thread.java:817)
   at com.dukascopy.charts.data.datacache.bq.run(Unknown Source)
   at com.dukascopy.charts.data.datacache.ah.c(Unknown Source)
   at com.dukascopy.dds2.greed.agent.strategy.tester.a.d.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:736)
2011-07-07 21:33:51.338 DEBUG c - (d-jd-gva-64-147.dukascopy.com/194.8.15.147:10443) message factory created
2011-07-07 21:34:49.692 DEBUG t - Disconnected from data feed server, reason - CLIENT_APP_REQUEST


The same strategy was running well before switching to 64 bit Windows, 64 bit Eclipse and 32 bits Java.

Other projects run well after this switching. The project in my job contains more than 200 Eclipse-projects and all run well.


 
 Post subject: Re: Expception I cannot explain Post rating: 0   New post Posted: Sun 10 Jul, 2011, 12:01 

User rating: 0
Joined: Wed 18 May, 2011, 08:40
Posts: 43
Location: RU
Found some information about this issue:

https://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5073365

Could you please apply the workaround described there?


 
 Post subject: Re: Expception I cannot explain Post rating: 0   New post Posted: Mon 18 Jul, 2011, 13:25 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Could you please provide a stategy (desirably a simplified version of your strategy) which recreates the error?


 
 Post subject: Re: Expception I cannot explain Post rating: 0   New post Posted: Fri 22 Jul, 2011, 08:32 

User rating: 0
Joined: Wed 18 May, 2011, 08:40
Posts: 43
Location: RU
Support wrote:
Could you please provide a strategy (desirably a simplified version of your strategy) which recreates the error?


Hi. Sorry, but I don't have time for this. And honestly saying I don't understand why you need my code. The exception is thrown in your code (API). I thought the problem is very well described under the link I posted previously.

P.S. However after I switched from IBM JRE to standard JRE 1.6.x the problem disappeared. But according to the description the use of JRE 1.2.1 or 1.4.2 will lead to this exception. Apparently no one posted about this issue in the forum, because the majority use later java versions.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com