Spring Roo
  1. Spring Roo
  2. ROO-3083

Roo shell should support multi module projects with <version /> specified only in parent pom

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1.RELEASE
    • Fix Version/s: None
    • Component/s: @ ROO SHELL
    • Labels:
      None
    • Environment:
      Ubuntu 11.10

      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)

      {/code}

        Activity

        Hide
        Daniel Serodio added a comment -

        I'm using Roo 1.2.2 and I don't get a NPE, but Roo reports an error and refuses to go on:

            ____  ____  ____  
           / __ \/ __ \/ __ \ 
          / /_/ / / / / / / / 
         / _, _/ /_/ / /_/ /  
        /_/ |_|\____/\____/    1.2.2.RELEASE [rev 7d75659]
        
        Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
        Version is required for com.example.project:module
        roo> hint
        Version is required for com.example.project:module
        
        Show
        Daniel Serodio added a comment - I'm using Roo 1.2.2 and I don't get a NPE, but Roo reports an error and refuses to go on: ____ ____ ____ / __ \/ __ \/ __ \ / /_/ / / / / / / / / _, _/ /_/ / /_/ / /_/ |_|\____/\____/ 1.2.2.RELEASE [rev 7d75659] Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. Version is required for com.example.project:module roo> hint Version is required for com.example.project:module
        Hide
        Bob Fields added a comment -

        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.

        Show
        Bob Fields added a comment - 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.

          People

          • Assignee:
            Unassigned
            Reporter:
            Guillaume Lederrey
          • Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated: