Announcement Announcement Module
Collapse
No announcement yet.
Project generation problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Project generation problem

    Hi,

    I just downloaded SpringSource Tool Suite, and tried to generate a demo application using roo, but i'm getting error below

    Code:
    Created /home/dev/springsource/workspace/demo/pom.xml
    Undo create /home/dev/springsource/workspace/demo/pom.xml
    Invalid dependency scope: PROVİDED
    [Timer-0] NullPointerException at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:84)
    What is the problem? is this Maven issue?

    Using: Ubuntu 8.10, SpringSource Tool Suite, Roo 1.1.0.M1

    Thanks.

  • #2
    anyone can help?

    Comment


    • #3
      Can you please execute "development mode" so we can see more exception details, then log a bug report at https://jira.springsource.org/browse/ROO so we can fix this?

      Thanks

      Comment


      • #4
        Originally posted by Ben Alex View Post
        Can you please execute "development mode" so we can see more exception details, then log a bug report at https://jira.springsource.org/browse/ROO so we can fix this?

        Thanks
        Hi Ben.

        Enabled development mode manually on Roo command line.
        using
        Code:
        development mode true
        Im not using Jira, I'll paste error log here

        Code:
        project --topLevelPackage com.demo.application
        This is the details;

        Code:
        Created /home/dev/springsource/workspace/demo/pom.xml
        Undo create /home/dev/springsource/workspace/demo/pom.xml
        Invalid dependency scope: PROVİDED
        java.lang.IllegalArgumentException: Invalid dependency scope: PROVİDED
            at org.springframework.roo.project.Dependency.<init>(Dependency.java:126)
            at org.springframework.roo.addon.maven.MavenProjectMetadataProvider.get(MavenProjectMetadataProvider.java:105)
            at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:133)
            at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:151)
            at org.springframework.roo.addon.gwt.GwtFileListener.onFileEvent(GwtFileListener.java:46)
            at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:354)
            at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:224)
            at org.springframework.roo.process.manager.internal.DefaultFileManager.scan(DefaultFileManager.java:201)
            at org.springframework.roo.addon.maven.MavenOperationsImpl.createProject(MavenOperationsImpl.java:132)
            at org.springframework.roo.addon.maven.MavenCommands.createProject(MavenCommands.java:51)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
            at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:34)
            at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:169)
            at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:132)
            at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:32)
            at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:158)
            at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:200)
            at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:126)
            at java.lang.Thread.run(Thread.java:619)
        [Timer-0] java.lang.NullPointerException
                      at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:84)
                      at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:170)
                      at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:244)
                      at org.springframework.roo.addon.maven.MavenProjectMetadataProvider.onFileEvent(MavenProjectMetadataProvider.java:510)
                      at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:354)
                      at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:327)
                      at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:167)
                      at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:114)
                      at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:225)
                      at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:75)
                      at java.util.TimerThread.mainLoop(Timer.java:512)
                      at java.util.TimerThread.run(Timer.java:462)
        com.demo.application roo>
        Thanks.

        Comment


        • #5
          Found a small fix. it was locale problem.

          I added JVM arguments in roo.sh: -Duser.language=en
          and it work.

          Comment


          • #6
            Thanks for sharing the report and workaround.

            BTW Jira is free for anyone to sign up to and helps up greatly in tracking issues. We also use it so that other people can vote for issues they'd like fixed.

            I have logged your report and also your workaround as https://jira.springsource.org/browse/ROO-897 - we'll get it fixed ASAP.

            Thanks
            Ben

            Comment


            • #7
              Originally posted by Ben Alex View Post
              Thanks for sharing the report and workaround.

              BTW Jira is free for anyone to sign up to and helps up greatly in tracking issues. We also use it so that other people can vote for issues they'd like fixed.

              I have logged your report and also your workaround as https://jira.springsource.org/browse/ROO-897 - we'll get it fixed ASAP.

              Thanks
              Ben
              Hi,

              Looks like bug wont fixed. Still affects lastest release.
              Nothing changed manually, for STS, or Roo installation.
              Please re-issue this ticket
              https://jira.springsource.org/browse/ROO-897

              Thanks

              Comment

              Working...
              X