JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report JPPF-60  -  NPE: AbstractJPPFClassLoader.findResources(284)
Posted Sep 06, 2012 - updated Sep 08, 2012
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Closed
  • Assigned to
     lolo4j
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     jandam
  • Owned by
    Not owned by anyone
  • Category
    Node
  • Resolution
    RESOLVED
  • Priority
    Normal
  • Reproducability
    Always
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png JPPF 3.2
Issue description
2012-09-06 11:01:45,833 [main] [DEBUG][org.jppf.classloader.AbstractJPPFClassLoader.findResources(262)]: resource [META-INF/services/org.jppf.startup.JPPFNodeStartupSPI] not found locally, attempting remote lookup
2012-09-06 11:01:45,834 [main] [DEBUG][org.jppf.classloader.AbstractJPPFClassLoaderLifeCycle.loadResourceData(130)]: loading remote definition for resource [META-INF/services/org.jppf.startup.JPPFNodeStartupSPI]
2012-09-06 11:01:45,834 [main] [DEBUG][org.jppf.classloader.AbstractJPPFClassLoaderLifeCycle.loadResourceData0(158)]: loading remote definition for resource [META-INF/services/org.jppf.startup.JPPFNodeStartupSPI], requestUuid = null
2012-09-06 11:01:45,834 [PeriodicTask] [DEBUG][org.jppf.classloader.ClassLoaderRequestHandler.run(136)]: sending batch of 1 class loading requests: CompositeResourceWrapper[dynamic=false, asResource=false, state=null, data={resources=[JPPFResourceWrapper[dynamic=false, asResource=false, state=NODE_REQUEST, data={name=META-INF/services/org.jppf.startup.JPPFNodeStartupSPI, multiple=true}]]}]
2012-09-06 11:01:45,841 [PeriodicTask] [DEBUG][org.jppf.classloader.ClassLoaderRequestHandler.run(141)]: got response CompositeResourceWrapper[dynamic=false, asResource=false, state=null, data={resources=[JPPFResourceWrapper[dynamic=false, asResource=false, state=NODE_RESPONSE, data={name=META-INF/services/org.jppf.startup.JPPFNodeStartupSPI, multiple=true}]]}]
2012-09-06 11:01:45,841 [main] [DEBUG][org.jppf.classloader.AbstractJPPFClassLoaderLifeCycle.loadResourceData0(160)]: remote definition for resource [META-INF/services/org.jppf.startup.JPPFNodeStartupSPI] not found
2012-09-06 11:01:45,841 [main] [DEBUG][org.jppf.classloader.AbstractJPPFClassLoader.findRemoteResources(313)]: resource [META-INF/services/org.jppf.startup.JPPFNodeStartupSPI] not found remotely
2012-09-06 11:01:45,842 [main] [DEBUG][org.jppf.classloader.AbstractJPPFClassLoader.findResources(284)]: 
java.lang.NullPointerException
	at org.jppf.classloader.AbstractJPPFClassLoader.findRemoteResources(AbstractJPPFClassLoader.java:327)
	at org.jppf.classloader.AbstractJPPFClassLoader.findResources(AbstractJPPFClassLoader.java:273)
	at java.lang.ClassLoader.getResources(ClassLoader.java:1176)
	at org.jppf.utils.ServiceFinder.resourcesList(ServiceFinder.java:103)
	at org.jppf.utils.ServiceFinder.findServiceDefinitions(ServiceFinder.java:126)
	at org.jppf.utils.ServiceFinder.findProviders(ServiceFinder.java:58)
	at org.jppf.utils.ServiceFinder.findProviders(ServiceFinder.java:89)
	at org.jppf.utils.ServiceFinder.lookupProviders(ServiceFinder.java:177)
	at org.jppf.startup.JPPFStartupLoader.load(JPPFStartupLoader.java:49)
	at org.jppf.server.node.JPPFNode.init(JPPFNode.java:244)
	at org.jppf.server.node.JPPFNode.run(JPPFNode.java:113)
	at org.jppf.node.NodeRunner.main(NodeRunner.java:142)
2012-09-06 11:01:45,843 [main] [DEBUG][org.jppf.utils.ServiceFinder.resourcesList(109)]: java.io.IOException: java.lang.NullPointerException
java.io.IOException: java.lang.NullPointerException
	at org.jppf.classloader.AbstractJPPFClassLoader.findResources(AbstractJPPFClassLoader.java:286)
	at java.lang.ClassLoader.getResources(ClassLoader.java:1176)
	at org.jppf.utils.ServiceFinder.resourcesList(ServiceFinder.java:103)
	at org.jppf.utils.ServiceFinder.findServiceDefinitions(ServiceFinder.java:126)
	at org.jppf.utils.ServiceFinder.findProviders(ServiceFinder.java:58)
	at org.jppf.utils.ServiceFinder.findProviders(ServiceFinder.java:89)
	at org.jppf.utils.ServiceFinder.lookupProviders(ServiceFinder.java:177)
	at org.jppf.startup.JPPFStartupLoader.load(JPPFStartupLoader.java:49)
	at org.jppf.server.node.JPPFNode.init(JPPFNode.java:244)
	at org.jppf.server.node.JPPFNode.run(JPPFNode.java:113)
	at org.jppf.node.NodeRunner.main(NodeRunner.java:142)
Caused by: java.lang.NullPointerException
	at org.jppf.classloader.AbstractJPPFClassLoader.findRemoteResources(AbstractJPPFClassLoader.java:327)
	at org.jppf.classloader.AbstractJPPFClassLoader.findResources(AbstractJPPFClassLoader.java:273)
	... 10 more
Steps to reproduce this issue
This is introduced by new caching in JPPF class loaders

#3
Comment posted by
 lolo4j
Sep 08, 10:19
Fixed along with implementation of Feature request JPPF-40 - Provide ClientDataProvider functionality in the tasks

The issue was updated with the following change(s):
  • This issue has been closed
  • The status has been updated, from New to Closed.
  • This issue's progression has been updated to 100 percent completed.
  • The resolution has been updated, from Not determined to RESOLVED.
  • Information about the user working on this issue has been changed, from lolo4j to Not being worked on.