java.lang.IllegalArgumentException: '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When I use this script: {code} project --topLevelPackage org.chariot.multimodule.demo --projectName multi-module module create --moduleName business-tier --topLevelPackage ~.business module focus --moduleName ~ module create --moduleName web-tier --topLevelPackage ~.web module focus --moduleName business-tier jpa setup --database HYPERSONIC_PERSISTENT --provider HIBERNATE entity jpa --class ~.model.Course --activeRecord false field string --fieldName name repository jpa --interface ~.orm.CourseRepository --entity ~.model.Course service --interface ~.service.CourseService --entity ~.model.Course module focus --moduleName ~ module focus --moduleName web-tier web mvc setup web mvc scaffold --class ~.controller.CourseController --backingType business-tier|~.model.Course business-tier|~.model.Course roo> {code} I get this exception with the current trunk build as of the spring-roo-1.2.0.BUILD-SNAPSHOT_20111108.053941-75f95ca.zip snapshot and pulling / building Roo from trunk. It appears that the scaffold fails because it is attempting to add the converters to the business project, not the web one. It then sets the focus of the shell to the business tier. Is this a bug, or something you're working on in-flight that I'm seeing not completely sewn up in trunk? Thanks, Ken {code} roo> module focus --moduleName web-tier web-tier roo> web mvc scaffold --class web-tier|~.controller.CourseController --backingType business-tier|~.model.Course '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist java.lang.IllegalArgumentException: '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65) at org.springframework.roo.addon.web.mvc.controller.WebMvcOperationsImpl.installConversionService(WebMvcOperationsImpl.java:71) at org.springframework.roo.addon.web.mvc.controller.ControllerOperationsImpl.createAutomaticController(ControllerOperationsImpl.java:120) at org.springframework.roo.addon.web.mvc.controller.ControllerCommands.webMvcScaffold(ControllerCommands.java:115) 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:183) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:146) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:204) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:403) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:158) at java.lang.Thread.run(Thread.java:680) {code}
    via by Ken Rimple,
  • When I use this script: {code} project --topLevelPackage org.chariot.multimodule.demo --projectName multi-module module create --moduleName business-tier --topLevelPackage ~.business module focus --moduleName ~ module create --moduleName web-tier --topLevelPackage ~.web module focus --moduleName business-tier jpa setup --database HYPERSONIC_PERSISTENT --provider HIBERNATE entity jpa --class ~.model.Course --activeRecord false field string --fieldName name repository jpa --interface ~.orm.CourseRepository --entity ~.model.Course service --interface ~.service.CourseService --entity ~.model.Course module focus --moduleName ~ module focus --moduleName web-tier web mvc setup web mvc scaffold --class ~.controller.CourseController --backingType business-tier|~.model.Course business-tier|~.model.Course roo> {code} I get this exception with the current trunk build as of the spring-roo-1.2.0.BUILD-SNAPSHOT_20111108.053941-75f95ca.zip snapshot and pulling / building Roo from trunk. It appears that the scaffold fails because it is attempting to add the converters to the business project, not the web one. It then sets the focus of the shell to the business tier. Is this a bug, or something you're working on in-flight that I'm seeing not completely sewn up in trunk? Thanks, Ken {code} roo> module focus --moduleName web-tier web-tier roo> web mvc scaffold --class web-tier|~.controller.CourseController --backingType business-tier|~.model.Course '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist java.lang.IllegalArgumentException: '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65) at org.springframework.roo.addon.web.mvc.controller.WebMvcOperationsImpl.installConversionService(WebMvcOperationsImpl.java:71) at org.springframework.roo.addon.web.mvc.controller.ControllerOperationsImpl.createAutomaticController(ControllerOperationsImpl.java:120) at org.springframework.roo.addon.web.mvc.controller.ControllerCommands.webMvcScaffold(ControllerCommands.java:115) 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:183) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:146) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:204) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:403) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:158) at java.lang.Thread.run(Thread.java:680) {code}
    via by Ken Rimple,
  • The 'solr all' command executed on the petclinic project produces the following stack trace: {code} ~.web roo> solr all Managed SRC_MAIN_JAVA/com/springsource/petclinic/domain/Visit.java [org.springframework.roo.wrapping.inflector [70]] BundleEvent STOPPED Managed SRC_MAIN_JAVA/com/springsource/petclinic/domain/Vet.java Managed SRC_MAIN_JAVA/com/springsource/petclinic/domain/Pet.java Managed SRC_MAIN_JAVA/com/springsource/petclinic/domain/Owner.java Managed SRC_MAIN_JAVA/com/springsource/petclinic/SolrSearchAsyncTaskExecutor.aj Created SRC_MAIN_JAVA/com/springsource/petclinic/domain/Pet_Roo_SolrSearch.aj Undo create SRC_MAIN_JAVA/com/springsource/petclinic/domain/Pet_Roo_SolrSearch.aj Undo manage SRC_MAIN_JAVA/com/springsource/petclinic/SolrSearchAsyncTaskExecutor.aj Undo manage SRC_MAIN_JAVA/com/springsource/petclinic/domain/Owner.java Undo manage SRC_MAIN_JAVA/com/springsource/petclinic/domain/Pet.java Undo manage SRC_MAIN_JAVA/com/springsource/petclinic/domain/Vet.java Undo manage SRC_MAIN_JAVA/com/springsource/petclinic/domain/Visit.java Invalid dependency between upstream 'MID:org.springframework.roo.addon.solr.SolrMetadata#SRC_MAIN_JAVA?com.springsource.petclinic.domain.Pet' and downstream 'MID:org.springframework.roo.addon.tostring.ToStringMetadata#SRC_MAIN_JAVA?com.springsource.petclinic.domain.Pet' java.lang.IllegalArgumentException: Invalid dependency between upstream 'MID:org.springframework.roo.addon.solr.SolrMetadata#SRC_MAIN_JAVA?com.springsource.petclinic.domain.Pet' and downstream 'MID:org.springframework.roo.addon.tostring.ToStringMetadata#SRC_MAIN_JAVA?com.springsource.petclinic.domain.Pet' at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.registerDependency(DefaultMetadataDependencyRegistry.java:61) at org.springframework.roo.addon.tostring.ToStringMetadataProvider.getMetadata(ToStringMetadataProvider.java:36) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:250) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:139) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:124) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:179) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:244) 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.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:183) 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:162) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:326) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:119) at java.lang.Thread.run(Thread.java:637) {code}
    via by Stefan Schmidt,
  • The addFieldAnnotation(DeclaredFieldAnnotationDetails declaredFieldAnnotationDetails) method in ItdTypeDetailsBuilder doesn't take into account whether the DeclaredFieldAnnotationDetails is to remove an annotation and fails assuming that the annotation has been declared multiple time. The assertion fail messages also need to be tweaked to produce more accurate messages. Field annotation '@ManyToOne' already defined in target type 'org.springsource.roo.extrack.server.domain.Expense.report' (ITD target 'org.springsource.roo.extrack.server.domain.Expense_Roo_Gae')                     java.lang.IllegalArgumentException: Field annotation '@ManyToOne' already defined in target type 'org.springsource.roo.extrack.server.domain.Expense.report' (ITD target 'org.springsource.roo.extrack.server.domain.Expense_Roo_Gae')                         at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65)                         at org.springframework.roo.classpath.details.ItdTypeDetailsBuilder.addFieldAnnotation(ItdTypeDetailsBuilder.java:103)                         at org.springframework.roo.addon.gae.GaeMetadata.<init>(GaeMetadata.java:57)                         at org.springframework.roo.addon.gae.GaeMetadataProvider.getMetadata(GaeMetadataProvider.java:42)                         at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:250)                         at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:139)                         at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:159)                         at org.springframework.roo.classpath.scanner.MemberDetailsScannerImpl.getMemberDetails(MemberDetailsScannerImpl.java:98)                         at org.springframework.roo.addon.beaninfo.BeanInfoMetadataProviderImpl.getMetadata(BeanInfoMetadataProviderImpl.java:34)                         at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:250)                         at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:139)                         at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:159)                         at org.springframework.roo.addon.dod.DataOnDemandMetadataProvider.getMetadata(DataOnDemandMetadataProvider.java:56)                         at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:250)                         at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:139)                         at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:159)                         at org.springframework.roo.addon.test.IntegrationTestMetadataProvider.getMetadata(IntegrationTestMetadataProvider.java:57)                         at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:250)                         at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:139)                         at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:124)                         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.scanAll(PollingFileMonitorService.java:318)                         at org.springframework.roo.process.manager.internal.DefaultFileManager.notify(DefaultFileManager.java:183)                         at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:276)                         at org.springframework.roo.addon.maven.MavenProjectMetadataProvider.onFileEvent(MavenProjectMetadataProvider.java:691)                         at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:344)                         at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:318)                         at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:36)                         at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:15)                         at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:177)                         at org.springframework.roo.process.manager.internal.DefaultProcessManager.completeStartup(DefaultProcessManager.java:99)                         at org.springframework.roo.process.manager.internal.DefaultProcessManager$1.frameworkEvent(DefaultProcessManager.java:62)                         at org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:767)                         at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:724)                         at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:942)                         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:637)
    via by James Tyrrell,
  • 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)
    via by Ludovic Claude,
  • Using Roo 1.1.1 snapshot, I'm getting this exception: controller scaffold --class ~.web.ChangeUserDataController --entity ~.domain.ChangeUserData --disallowedOperations update,delete [...] controller all --package ~.web SRC_MAIN_JAVA/com/myapp/web/ChangeUserDataController.java already exists java.lang.IllegalArgumentException: SRC_MAIN_JAVA/com/lbpoker/selfcare/web/ChangeUserDataController.java already exists at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65) at org.springframework.roo.classpath.operations.ClasspathOperationsImpl.generateClassFile(ClasspathOperationsImpl.java:119) at org.springframework.roo.addon.web.mvc.controller.ControllerOperationsImpl.createAutomaticController(ControllerOperationsImpl.java:116) at org.springframework.roo.addon.web.mvc.controller.ControllerOperationsImpl.generateAll(ControllerOperationsImpl.java:75) at org.springframework.roo.addon.web.mvc.controller.ControllerCommands.generateAll(ControllerCommands.java:52) 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.promptLoop(JLineShell.java:358) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132) at java.lang.Thread.run(Thread.java:662) This seems to contradict the documentation... roo> help controller all Keyword: controller all Description: Scaffold a controller for all entities without an existing controlle,
    via by Ludovic Claude,
  • For some reason GwtMetadataProviderImpl also acts as FileEventListener (James would know why) which triggers an exception (see below) when running the 'project' command. To reproduce paste the following lines into a fresh project while the Roo shell still loads (the command execution will be deferred until the shell has completely loaded but it will still fail): {code} project --topLevelPackage com.testing.teststuff --projectName Stuff --java 5 persistence setup --database MYSQL --provider HIBERNATE --databaseName stuff --userName sa entity --class ~.Stuff --testAutomatically {code} Exception: {code} Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. roo> project --topLevelPackage com.testing.teststuff --projectName Stuff --java 5 5838c4e Created ROOT/pom.xml 01b61c5 Updated ROOT/pom.xml [Added dependencies javax.annotation:jsr250-api:1.0, javax.xml.bind:jaxb-api:2.1] 2ad3c24 Updated ROOT/pom.xml 5742550 Updated ROOT/pom.xml [Added dependencies com.google.gwt:gwt-servlet:2.2.0, com.google.gwt:gwt-user:2.2.0, org.json:json:20090211, com.googlecode.gwt.inject:gin:1.5, javax.validation:validation-api:1.0.0.GA, xalan:xalan:2.7.1] a4a412a Updated ROOT/pom.xml [Added plugin gwt-maven-plugin] web.xml not found; cannot continue java.lang.IllegalArgumentException: web.xml not found; cannot continue at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65) at org.springframework.roo.addon.gwt.GwtConfigServiceImpl.updateWebXml(GwtConfigServiceImpl.java:257) at org.springframework.roo.addon.gwt.GwtConfigServiceImpl.updateConfiguration(GwtConfigServiceImpl.java:78) at org.springframework.roo.addon.gwt.GwtMetadataProviderImpl.onFileEvent(GwtMetadataProviderImpl.java:94) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:213) at org.springframework.roo.process.manager.internal.DefaultFileManager.scan(DefaultFileManager.java:141) at org.springframework.roo.project.MavenOperationsImpl.createProject(MavenOperationsImpl.java:108) at org.springframework.roo.project.MavenCommands.createProject(MavenCommands.java:36) 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:180) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:181) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132) at java.lang.Thread.run(Thread.java:680) {code} Does this MD provider really need to listen to File events?
    via by Stefan Schmidt,
  • Since Git commit 91b7f045137b3d244ed730a7962a3f44d5098e4e (for ROO-120), DBRE gives the following error when attempting to reverse engineer a database: {code} roo> database reverse engineer --schema "roo2424 roo2425" --package ~.domain 0420398 Created SRC_MAIN_RESOURCES/dbre.xml fe0ade3 Updated ROOT/pom.xml 7425e2d Updated SRC_MAIN_RESOURCES/META-INF/persistence.xml Metadata identification string 'null' does not identify a metadata instance java.lang.IllegalArgumentException: Metadata identification string 'null' does not identify a metadata instance at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:87) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:83) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:219) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.getPhysicalTypeMetadata(DbreDatabaseListenerImpl.java:568) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.getIdentifierType(DbreDatabaseListenerImpl.java:546) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.manageIdentifier(DbreDatabaseListenerImpl.java:374) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.createNewManagedEntityFromTable(DbreDatabaseListenerImpl.java:323) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.reverseEngineer(DbreDatabaseListenerImpl.java:152) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.deserializeDatabase(DbreDatabaseListenerImpl.java:112) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.onFileEvent(DbreDatabaseListenerImpl.java:91) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:350) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:231) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:193) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:147) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:204) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:403) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:158) at java.lang.Thread.run(Thread.java:680) {code}
    via by Alan Stewart,
  • Create a wrapper addon, e.g. as follows: {code}addon create wrapper --groupId commons-lang --artifactId commons-lang --version 2.5 --topLevelPackage org.apache --vendorName Apache --licenseUrl http://www.apache.org{code} The Roo shell throws this error: {code}Invalid artifactId '${project.groupId}.${pkgArtifactId}' java.lang.IllegalArgumentException: Invalid artifactId '${project.groupId}.${pkgArtifactId}' at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65) at org.springframework.roo.project.GAV.<init>(GAV.java:46) at org.springframework.roo.project.maven.Pom.<init>(Pom.java:88) at org.springframework.roo.project.maven.PomFactoryImpl.getInstance(PomFactoryImpl.java:75) at org.springframework.roo.project.PomManagementServiceImpl.parseUnparsedPoms(PomManagementServiceImpl.java:166) at org.springframework.roo.project.PomManagementServiceImpl.updatePomCache(PomManagementServiceImpl.java:140) at org.springframework.roo.project.PomManagementServiceImpl.getFocusedModule(PomManagementServiceImpl.java:111) at org.springframework.roo.project.PomManagementServiceImpl.getFocusedModuleName(PomManagementServiceImpl.java:119) at org.springframework.roo.project.AbstractProjectOperations.getFocusedModuleName(AbstractProjectOperations.java:149) at org.springframework.roo.project.AbstractProjectOperations.isFocusedProjectAvailable(AbstractProjectOperations.java:129) at org.springframework.roo.addon.dbre.model.DbreModelServiceImpl.getDbreXmlPath(DbreModelServiceImpl.java:119) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.onFileEvent(DbreDatabaseListenerImpl.java:89) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:352) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publishRequestedFileEvents(PollingFileMonitorService.java:175) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:150) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:192) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:146) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:204) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:403) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:158){code} Note that the generated addon project is valid and can be built by Maven, but with warnings: {code}aswan: addon > mvn clean install [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache:org.apache.commons-lang:bundle:2.5.0001 [WARNING] 'artifactId' contains an expression but should be a constant. @ org.apache:${project.groupId}.${pkgArtifactId}:${osgiVersion}, /Users/aswan/projects/addon/pom.xml, line 5, column 17 [WARNING] 'version' contains an expression but should be a constant. @ org.apache:${project.groupId}.${pkgArtifactId}:${osgiVersion}, /Users/aswan/projects/addon/pom.xml, line 7, column 14 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.{code} The solution to both the Roo shell error and the Maven warning is to change the generated POM not to use expressions in either the "{{artifactId}}" or "{{version}}" elements.
    via by Andrew Swan,
    • java.lang.IllegalArgumentException: '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65) at org.springframework.roo.addon.web.mvc.controller.WebMvcOperationsImpl.installConversionService(WebMvcOperationsImpl.java:71) at org.springframework.roo.addon.web.mvc.controller.ControllerOperationsImpl.createAutomaticController(ControllerOperationsImpl.java:120) at org.springframework.roo.addon.web.mvc.controller.ControllerCommands.webMvcScaffold(ControllerCommands.java:115) 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:183) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:146) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:204) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:403) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:158) at java.lang.Thread.run(Thread.java:680)
    No Bugmate found.