java.lang.IllegalArgumentException: Version is required

Spring JIRA | Nikhilkumar Jadhav | 5 years ago
  1. 0

    I am getting this message when I try to run roo using roo-dev. [FelixDispatchQueue] Version is required java.lang.IllegalArgumentException: Version is required at org.springframework.roo.support.util.Assert.hasText(Assert.java:160) at org.springframework.roo.project.GAV.<init>(GAV.java:59) at org.springframework.roo.project.maven.Pom.<init>(Pom.java:110) at org.springframework.roo.project.maven.PomFactoryImpl.getInstance(PomFactoryImpl.java:102) at org.springframework.roo.project.PomManagementServiceImpl.parseUnparsedPoms(PomManagementServiceImpl.java:203) at org.springframework.roo.project.PomManagementServiceImpl.updatePomCache(PomManagementServiceImpl.java:333) at org.springframework.roo.project.PomManagementServiceImpl.getModuleForFileIdentifier(PomManagementServiceImpl.java:128) at org.springframework.roo.project.AbstractProjectOperations.getModuleForFileIdentifier(AbstractProjectOperations.java:510) at org.springframework.roo.classpath.TypeLocationServiceImpl.getProposedJavaType(TypeLocationServiceImpl.java:343) at org.springframework.roo.classpath.TypeLocationServiceImpl.doesPathIndicateJavaType(TypeLocationServiceImpl.java:114) at org.springframework.roo.classpath.TypeLocationServiceImpl.getPhysicalTypeIdentifier(TypeLocationServiceImpl.java:247) at org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.onFileEvent(DefaultPhysicalTypeMetadataProvider.java:177) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:419) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:632) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:39) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:1) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:169) at org.springframework.roo.process.manager.internal.DefaultProcessManager.completeStartup(DefaultProcessManager.java:139) at org.springframework.roo.process.manager.internal.DefaultProcessManager.access$1(DefaultProcessManager.java:130) 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:636) How do I solve this problem?

    Spring JIRA | 5 years ago | Nikhilkumar Jadhav
    java.lang.IllegalArgumentException: Version is required
  2. 0

    I am getting this message when I try to run roo using roo-dev. [FelixDispatchQueue] Version is required java.lang.IllegalArgumentException: Version is required at org.springframework.roo.support.util.Assert.hasText(Assert.java:160) at org.springframework.roo.project.GAV.<init>(GAV.java:59) at org.springframework.roo.project.maven.Pom.<init>(Pom.java:110) at org.springframework.roo.project.maven.PomFactoryImpl.getInstance(PomFactoryImpl.java:102) at org.springframework.roo.project.PomManagementServiceImpl.parseUnparsedPoms(PomManagementServiceImpl.java:203) at org.springframework.roo.project.PomManagementServiceImpl.updatePomCache(PomManagementServiceImpl.java:333) at org.springframework.roo.project.PomManagementServiceImpl.getModuleForFileIdentifier(PomManagementServiceImpl.java:128) at org.springframework.roo.project.AbstractProjectOperations.getModuleForFileIdentifier(AbstractProjectOperations.java:510) at org.springframework.roo.classpath.TypeLocationServiceImpl.getProposedJavaType(TypeLocationServiceImpl.java:343) at org.springframework.roo.classpath.TypeLocationServiceImpl.doesPathIndicateJavaType(TypeLocationServiceImpl.java:114) at org.springframework.roo.classpath.TypeLocationServiceImpl.getPhysicalTypeIdentifier(TypeLocationServiceImpl.java:247) at org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.onFileEvent(DefaultPhysicalTypeMetadataProvider.java:177) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:419) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:632) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:39) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:1) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:169) at org.springframework.roo.process.manager.internal.DefaultProcessManager.completeStartup(DefaultProcessManager.java:139) at org.springframework.roo.process.manager.internal.DefaultProcessManager.access$1(DefaultProcessManager.java:130) 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:636) How do I solve this problem?

    Spring JIRA | 5 years ago | Nikhilkumar Jadhav
    java.lang.IllegalArgumentException: Version is required
  3. 0

    I have reproduced this and am attaching a small Roo 1.2 project that shows the issue. If you expand a copy of Dojo 1.5 (distributed edition, not the one from Spring Javascript Resources) so that you can use the uncompressed Dojo for debugging purposes, Roo 1.1 was happy to oblige, and would let you configure and mount it. However, something changed in the classpath scanning mechanism of Felix on Roo 1.2 RC1 and above. I get a stack trace when starting up any project with Dojo 1.5 in it. It seems that a Java project is embedded in the distribution, ShrinkSafe, in the util/shrinksafe directory, and when Roo starts up it thinks that the classpath is invalid, even though this project is not being used. The stack trace follows: {code} [FelixDispatchQueue] Illegal name 'META-INF.web-resources.dojo-1.5.util.buildscripts.webbuild.server.src.org.dtk.FileUtil' (illegal character) java.lang.IllegalArgumentException: Illegal name 'META-INF.web-resources.dojo-1.5.util.buildscripts.webbuild.server.src.org.dtk.FileUtil' (illegal character) at org.springframework.roo.model.JavaSymbolName.assertJavaNameLegal(JavaSymbolName.java:51) at org.springframework.roo.model.JavaType.<init>(JavaType.java:164) at org.springframework.roo.model.JavaType.<init>(JavaType.java:137) at org.springframework.roo.classpath.TypeLocationServiceImpl.findIdentifier(TypeLocationServiceImpl.java:167) at org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.onFileEvent(DefaultPhysicalTypeMetadataProvider.java:97) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:350) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:323) at org.springframework.roo.project.ProjectPathMonitoringInitializer.notify(ProjectPathMonitoringInitializer.java:74) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:233) at org.springframework.roo.project.MavenProjectMetadataProvider.onFileEvent(MavenProjectMetadataProvider.java:243) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:350) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:323) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:36) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:14) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:184) at org.springframework.roo.process.manager.internal.DefaultProcessManager.completeStartup(DefaultProcessManager.java:106) at org.springframework.roo.process.manager.internal.DefaultProcessManager.access$100(DefaultProcessManager.java:34) at org.springframework.roo.process.manager.internal.DefaultProcessManager$1.frameworkEvent(DefaultProcessManager.java:59) 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:680) {code} I set Roo into development mode to get the stack trace. Maybe this is a more restrictive scanner but I have no idea why it would be looking in the directory and not in the dependency Dojo jar normally.

    Spring JIRA | 5 years ago | Ken Rimple
    java.lang.IllegalArgumentException: Illegal name 'META-INF.web-resources.dojo-1.5.util.buildscripts.webbuild.server.src.org.dtk.FileUtil' (illegal character)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I have reproduced this and am attaching a small Roo 1.2 project that shows the issue. If you expand a copy of Dojo 1.5 (distributed edition, not the one from Spring Javascript Resources) so that you can use the uncompressed Dojo for debugging purposes, Roo 1.1 was happy to oblige, and would let you configure and mount it. However, something changed in the classpath scanning mechanism of Felix on Roo 1.2 RC1 and above. I get a stack trace when starting up any project with Dojo 1.5 in it. It seems that a Java project is embedded in the distribution, ShrinkSafe, in the util/shrinksafe directory, and when Roo starts up it thinks that the classpath is invalid, even though this project is not being used. The stack trace follows: {code} [FelixDispatchQueue] Illegal name 'META-INF.web-resources.dojo-1.5.util.buildscripts.webbuild.server.src.org.dtk.FileUtil' (illegal character) java.lang.IllegalArgumentException: Illegal name 'META-INF.web-resources.dojo-1.5.util.buildscripts.webbuild.server.src.org.dtk.FileUtil' (illegal character) at org.springframework.roo.model.JavaSymbolName.assertJavaNameLegal(JavaSymbolName.java:51) at org.springframework.roo.model.JavaType.<init>(JavaType.java:164) at org.springframework.roo.model.JavaType.<init>(JavaType.java:137) at org.springframework.roo.classpath.TypeLocationServiceImpl.findIdentifier(TypeLocationServiceImpl.java:167) at org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.onFileEvent(DefaultPhysicalTypeMetadataProvider.java:97) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:350) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:323) at org.springframework.roo.project.ProjectPathMonitoringInitializer.notify(ProjectPathMonitoringInitializer.java:74) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:233) at org.springframework.roo.project.MavenProjectMetadataProvider.onFileEvent(MavenProjectMetadataProvider.java:243) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:350) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:323) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:36) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:14) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:184) at org.springframework.roo.process.manager.internal.DefaultProcessManager.completeStartup(DefaultProcessManager.java:106) at org.springframework.roo.process.manager.internal.DefaultProcessManager.access$100(DefaultProcessManager.java:34) at org.springframework.roo.process.manager.internal.DefaultProcessManager$1.frameworkEvent(DefaultProcessManager.java:59) 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:680) {code} I set Roo into development mode to get the stack trace. Maybe this is a more restrictive scanner but I have no idea why it would be looking in the directory and not in the dependency Dojo jar normally.

    Spring JIRA | 5 years ago | Ken Rimple
    java.lang.IllegalArgumentException: Illegal name 'META-INF.web-resources.dojo-1.5.util.buildscripts.webbuild.server.src.org.dtk.FileUtil' (illegal character)
  6. 0

    JdbcTemplate and IllegalArgumentException (Spring forum at Coderanch)

    coderanch.com | 7 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'motoristService' defined in class path resource [springapp-servlet.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'dataSource' is required

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Version is required

      at org.springframework.roo.support.util.Assert.hasText()
    2. org.springframework.roo
      DefaultProcessManager$1.frameworkEvent
      1. org.springframework.roo.support.util.Assert.hasText(Assert.java:160)
      2. org.springframework.roo.project.GAV.<init>(GAV.java:59)
      3. org.springframework.roo.project.maven.Pom.<init>(Pom.java:110)
      4. org.springframework.roo.project.maven.PomFactoryImpl.getInstance(PomFactoryImpl.java:102)
      5. org.springframework.roo.project.PomManagementServiceImpl.parseUnparsedPoms(PomManagementServiceImpl.java:203)
      6. org.springframework.roo.project.PomManagementServiceImpl.updatePomCache(PomManagementServiceImpl.java:333)
      7. org.springframework.roo.project.PomManagementServiceImpl.getModuleForFileIdentifier(PomManagementServiceImpl.java:128)
      8. org.springframework.roo.project.AbstractProjectOperations.getModuleForFileIdentifier(AbstractProjectOperations.java:510)
      9. org.springframework.roo.classpath.TypeLocationServiceImpl.getProposedJavaType(TypeLocationServiceImpl.java:343)
      10. org.springframework.roo.classpath.TypeLocationServiceImpl.doesPathIndicateJavaType(TypeLocationServiceImpl.java:114)
      11. org.springframework.roo.classpath.TypeLocationServiceImpl.getPhysicalTypeIdentifier(TypeLocationServiceImpl.java:247)
      12. org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.onFileEvent(DefaultPhysicalTypeMetadataProvider.java:177)
      13. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:419)
      14. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:632)
      15. org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:39)
      16. org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:1)
      17. org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:169)
      18. org.springframework.roo.process.manager.internal.DefaultProcessManager.completeStartup(DefaultProcessManager.java:139)
      19. org.springframework.roo.process.manager.internal.DefaultProcessManager.access$1(DefaultProcessManager.java:130)
      20. org.springframework.roo.process.manager.internal.DefaultProcessManager$1.frameworkEvent(DefaultProcessManager.java:68)
      20 frames
    3. Apache Felix Framework
      EventDispatcher$1.run
      1. org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
      2. org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
      3. org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
      4. org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
      5. org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
      5 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:636)
      1 frame