Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1826

Upstream dependency is an invalid metadata identification string ('null')

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1.1.RELEASE
    • Fix Version/s: None
    • Component/s: WEB MVC
    • Labels:
      None
    • Environment:
      Roo HEAD (commit fe702c8e4a874e2ad13b34d5858c587a91d6f80f)

      Description

      Hello,

      I'm using the latest Roo from the git repository. I run the command
      roo-dev script master.roo
      where master.roo contains:

      project --topLevelPackage com.myapp --projectName selfcare-war --java 6

      persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY

      enum type --class ~.domain.CivilityEnum

      enum constant --name SIR

      enum constant --name MADAM

      enum constant --name MISS

      entity --class ~.domain.AccountCreation

      field enum --fieldName civility --type CivilityEnum

      field string --fieldName firstName --notNull --sizeMax 30

      field string --fieldName lastName --notNull --sizeMax 30

      field date --fieldName birthDate --type java.util.Date

      ...
      controller all --package ~.web

      This script fails with an exception on a fresh project. Roo 1.1.0 RELEASE works well on the same project.

      Created SRC_MAIN_WEBAPP/WEB-INF/web.xml
      Managed SRC_MAIN_WEBAPP/WEB-INF/web.xml
      Managed ROOT/pom.xml [Added dependency org.springframework:spring-web:${spring.version}]
      Managed ROOT/pom.xml [Added dependency org.springframework:spring-webmvc:${spring.version}]
      Managed ROOT/pom.xml [Added dependency org.springframework.webflow:spring-js-resources:2.2.0.RELEASE]
      Managed ROOT/pom.xml [Added dependency commons-digester:commons-digester:2.0]
      Managed ROOT/pom.xml [Added dependency commons-fileupload:commons-fileupload:1.2.1]
      Managed ROOT/pom.xml [Added dependency javax.servlet:jstl:1.2]
      Managed ROOT/pom.xml [Added dependency javax.el:el-api:1.0]
      Managed ROOT/pom.xml [Added dependency joda-time:joda-time:1.6]
      Managed ROOT/pom.xml [Added dependency javax.servlet.jsp:jsp-api:2.1]
      Managed ROOT/pom.xml
      Created SRC_MAIN_JAVA/com/...ServiceFactoryBean.java
      Managed SRC_MAIN_WEBAPP/WEB-INF/spring/webmvc-config.xml
      Undo manage SRC_MAIN_WEBAPP/WEB-INF/spring/webmvc-config.xml
      Undo create SRC_MAIN_JAVA/com/lbpoker/selfcare/web/ApplicationConversionServiceFactoryBean.java
      Undo manage ROOT/pom.xml
      Undo manage SRC_MAIN_WEBAPP/WEB-INF/web.xml
      Undo create SRC_MAIN_WEBAPP/WEB-INF/web.xml
      Undo manage SRC_MAIN_WEBAPP/WEB-INF/views/menu.jspx
      ...
      Undo create SRC_MAIN_JAVA/com/lbpoker/selfcare/web
      Upstream dependency is an invalid metadata identification string ('null')
      java.lang.IllegalArgumentException: Upstream dependency is an invalid metadata identification string ('null')
      at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65)
      at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.isValidDependency(DefaultMetadataDependencyRegistry.java:138)
      at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.registerDependency(DefaultMetadataDependencyRegistry.java:61)
      at org.springframework.roo.addon.web.mvc.controller.ConversionServiceMetadataProviderImpl.registerDependencies(ConversionServiceMetadataProviderImpl.java:112)
      at org.springframework.roo.addon.web.mvc.controller.ConversionServiceMetadataProviderImpl.getMetadata(ConversionServiceMetadataProviderImpl.java:54)
      at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:251)
      at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:139)
      at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:125)
      at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:179)
      at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:262)
      at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.onFileEvent(JavaParserMetadataProvider.java:138)
      at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:344)
      at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:217)
      at org.springframework.roo.process.manager.internal.DefaultFileManager.scan(DefaultFileManager.java:195)
      at org.springframework.roo.addon.web.mvc.controller.ConversionServiceOperationsImpl.installConversionService(ConversionServiceOperationsImpl.java:56)
      at org.springframework.roo.addon.web.mvc.controller.ControllerOperationsImpl.createAutomaticController(ControllerOperationsImpl.java:120)
      at org.springframework.roo.addon.web.mvc.controller.ControllerOperationsImpl.generateAll(ControllerOperationsImpl.java:76)
      at org.springframework.roo.addon.web.mvc.controller.ControllerCommands.generateAll(ControllerCommands.java:52)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Please wait - still loading
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. [org.springframework.roo.process.manager [55]] ServiceEvent UNREGISTERING
      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:49)
      at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:177)
      at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:140)
      at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
      at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:165)
      at org.springframework.roo.shell.AbstractShell.executeScriptLine(AbstractShell.java:106)
      at org.springframework.roo.shell.AbstractShell.script(AbstractShell.java:86)
      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:49)
      at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:177)
      at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:140)
      at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
      at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:165)
      at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:123)
      at java.lang.Thread.run(Thread.java:662)
      Script execution aborted
      java.lang.IllegalStateException: Script execution aborted
      at org.springframework.roo.shell.AbstractShell.script(AbstractShell.java:89)
      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:49)
      at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:177)
      at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:140)
      at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
      at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:165)
      at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:123)
      at java.lang.Thread.run(Thread.java:662)

        Attachments

          Activity

            People

            • Assignee:
              sschmidt Stefan Schmidt
              Reporter:
              ludovicc Ludovic Claude
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: