java.lang.IllegalArgumentException: No metadata provider is currently registered to provide metadata for identifier 'MID:org.springframework.roo.project.ProjectMetadata#the_project' (class 'MID:org.springframework.roo.project.ProjectMetadata')

Spring JIRA | Shahzada Hatim | 6 years ago
  1. 0

    To reproduce use the rev in the roo header, in an empty dir, then just press quit. It is non fatal {code} / __ \/ __ \/ __ \ / /_/ / / / / / / / / _, _/ /_/ / /_/ / /_/ |_|\____/\____/ 1.1.1.RELEASE [rev 1a484e8] Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. roo> quit [Timer-1] No metadata provider is currently registered to provide metadata for identifier 'MID:org.springframework.roo.project.ProjectMetadata#the_project' (class 'MID:org.springframework.roo.project.ProjectMetadata') java.lang.IllegalArgumentException: No metadata provider is currently registered to provide metadata for identifier 'MID:org.springframework.roo.project.ProjectMetadata#the_project' (class 'MID:org.springframework.roo.project.ProjectMetadata') at org.springframework.roo.support.util.Assert.notNull(Assert.java:112) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:130) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:159) at org.springframework.roo.addon.gwt.GwtFileListener.onFileEvent(GwtFileListener.java:46) 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.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:175) at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:122) at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:233) 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) roo> Total execution time 9 seconds Roo exited with code 0 hatim@hatim-laptop:~/test$ roo-dev ____ ____ ____ / __ \/ __ \/ __ \ / /_/ / / / / / / / / _, _/ /_/ / /_/ / /_/ |_|\____/\____/ 1.1.1.RELEASE [rev 1a484e8] Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. roo> quit Total execution time 8 seconds Roo exited with code 0 {code}

    Spring JIRA | 6 years ago | Shahzada Hatim
    java.lang.IllegalArgumentException: No metadata provider is currently registered to provide metadata for identifier 'MID:org.springframework.roo.project.ProjectMetadata#the_project' (class 'MID:org.springframework.roo.project.ProjectMetadata')
  2. 0

    To reproduce use the rev in the roo header, in an empty dir, then just press quit. It is non fatal {code} / __ \/ __ \/ __ \ / /_/ / / / / / / / / _, _/ /_/ / /_/ / /_/ |_|\____/\____/ 1.1.1.RELEASE [rev 1a484e8] Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. roo> quit [Timer-1] No metadata provider is currently registered to provide metadata for identifier 'MID:org.springframework.roo.project.ProjectMetadata#the_project' (class 'MID:org.springframework.roo.project.ProjectMetadata') java.lang.IllegalArgumentException: No metadata provider is currently registered to provide metadata for identifier 'MID:org.springframework.roo.project.ProjectMetadata#the_project' (class 'MID:org.springframework.roo.project.ProjectMetadata') at org.springframework.roo.support.util.Assert.notNull(Assert.java:112) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:130) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:159) at org.springframework.roo.addon.gwt.GwtFileListener.onFileEvent(GwtFileListener.java:46) 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.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:175) at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:122) at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:233) 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) roo> Total execution time 9 seconds Roo exited with code 0 hatim@hatim-laptop:~/test$ roo-dev ____ ____ ____ / __ \/ __ \/ __ \ / /_/ / / / / / / / / _, _/ /_/ / /_/ / /_/ |_|\____/\____/ 1.1.1.RELEASE [rev 1a484e8] Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. roo> quit Total execution time 8 seconds Roo exited with code 0 {code}

    Spring JIRA | 6 years ago | Shahzada Hatim
    java.lang.IllegalArgumentException: No metadata provider is currently registered to provide metadata for identifier 'MID:org.springframework.roo.project.ProjectMetadata#the_project' (class 'MID:org.springframework.roo.project.ProjectMetadata')
  3. 0

    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)

    Spring JIRA | 6 years ago | James Tyrrell
    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')
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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}

    Spring JIRA | 5 years ago | Alan Stewart
    java.lang.IllegalArgumentException: Metadata identification string 'null' does not identify a metadata instance
  6. 0

    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)

    Spring JIRA | 6 years ago | James Tyrrell
    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')

    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

      No metadata provider is currently registered to provide metadata for identifier 'MID:org.springframework.roo.project.ProjectMetadata#the_project' (class 'MID:org.springframework.roo.project.ProjectMetadata')

      at org.springframework.roo.support.util.Assert.notNull()
    2. org.springframework.roo
      DefaultMetadataService.get
      1. org.springframework.roo.support.util.Assert.notNull(Assert.java:112)
      2. org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:130)
      3. org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:159)
      3 frames
    3. Spring Roo - Annotations (ASLv2 Licensed)
      GwtFileListener.onFileEvent
      1. org.springframework.roo.addon.gwt.GwtFileListener.onFileEvent(GwtFileListener.java:46)
      1 frame
    4. org.springframework.roo
      DefaultProcessManager$2.run
      1. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:344)
      2. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:318)
      3. org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:175)
      4. org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:122)
      5. org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:233)
      6. org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:75)
      6 frames
    5. Java RT
      TimerThread.run
      1. java.util.TimerThread.mainLoop(Timer.java:512)
      2. java.util.TimerThread.run(Timer.java:462)
      2 frames