Description

When starting Roo shell with a multi module project where the <version /> is specified only in the parent pom, a NullPointerException is thrown at startup. Roo should support projects where the <version /> is only specified in the parent pom.

The obvious workaround is to specify <version /> in each module.

Here is the output of the Roo shell startup :

Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
roo> ERROR: Bundle org.springframework.roo.process.manager [54] EventDispatcher: Error during dispatch. (java.lang.NullPointerException)
java.lang.NullPointerException
at org.springframework.roo.process.manager.internal.DefaultProcessManager.logException(DefaultProcessManager.java:264)
at org.springframework.roo.process.manager.internal.DefaultProcessManager.completeStartup(DefaultProcessManager.java:146)
at org.springframework.roo.process.manager.internal.DefaultProcessManager.access$100(DefaultProcessManager.java:35)
at org.springframework.roo.process.manager.internal.DefaultProcessManager$1.frameworkEvent(DefaultProcessManager.java:68)
at org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
at org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
at org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
at java.lang.Thread.run(Thread.java:679)

Bob Fields
added a comment - 01/Nov/12 12:51 PM See https://jira.springsource.org/browse/ROO-1193#comment-84782 . Same error in 1.2.3 SNAPSHOT, and similar fix for that JIRA entry (groupId only in parent pom). I couldn't add an issue link from either the source or target issue.