NPE in resolver if module version is unspecified
------------------------------------------------
Key: CDV-691
URL: https://jira.terracotta.org/jira//browse/CDV-691
Project: Community Development
Issue Type: Bug
Affects Versions: 2.6-stable0
Reporter: Alex Miller
Assignee: Alex Miller
I think this may only be possible when specifying a module programmatically as
the config schema should require it, but the resolver blindly assumes the
version is not null which then results in this:
2008-04-01 16:05:12,258 [Thread-17] ERROR com.tc.plugins.ModulesLoader -
Exception thrown
java.lang.NullPointerException
at com.tc.bundles.Resolver.findJars(Resolver.java:148)
at com.tc.bundles.Resolver.resolveLocation(Resolver.java:234)
at com.tc.bundles.Resolver.resolve(Resolver.java:108)
at com.tc.bundles.Resolver.resolve(Resolver.java:126)
at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:145)
at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:95)
at
com.tc.object.bytecode.hook.impl.DSOContextImpl.<init>(DSOContextImpl.java:88)
at
com.tc.object.bytecode.hook.impl.DSOContextImpl.createContext(DSOContextImpl.java:72)
at
com.tc.object.loaders.IsolationClassLoader.init(IsolationClassLoader.java:63)
at
com.tc.simulator.app.DSOApplicationBuilder.initializeClassLoader(DSOApplicationBuilder.java:90)
at
com.tc.simulator.app.DSOApplicationBuilder.newApplication(DSOApplicationBuilder.java:70)
at
com.tc.simulator.container.Container.newExecutionInstance(Container.java:198)
at
com.tc.simulator.container.Container.startInstances(Container.java:212)
at com.tc.simulator.container.Container.run(Container.java:98)
at java.lang.Thread.run(Thread.java:613)
I've repro'ed in a unit test. Fix coming soon.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.terracotta.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev