JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
June 04, 2023, 06:26:56 PM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: NullPointerException from JPPFExecutorService example on Future.get()  (Read 4398 times)

southermark

  • JPPF Padawan
  • *
  • Posts: 4

Dear all,

I cannot get the JPPFExecutorService example on p49 of the JPPF-User-Guide to work. It did have compile problems which I fixed in the attachment. I have a server and node running on a remote machine. The standard TemplateApplicationRunner example DOES work.

The exception comes when Future.get() is called from a submitted task.

Assistance appreciated, thanks!

~Mark.
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: NullPointerException from JPPFExecutorService example on Future.get()
« Reply #1 on: February 10, 2012, 04:31:20 AM »

Hello Mark,

I can indeed rerpoduce the same problem. I registered a JPPF bug for it: 3486440 - JPPFExecutorService.throws NPE on Future.get()
I also published a patch for it, which you can ghet from there.

Can you give it a try and let us know of the outcome?

Sincerely,
-Laurent
Logged

southermark

  • JPPF Padawan
  • *
  • Posts: 4
Re: NullPointerException from JPPFExecutorService example on Future.get()
« Reply #2 on: February 10, 2012, 04:25:39 PM »

Hi Laurent,

That does appear to fix it. The code runs as expected, thank you! I am also experiencing another problem which I believe to be Eclipse based. I will post that in another topic.

Thank you,
~Mark.
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads