Announcement Announcement Module
Collapse
No announcement yet.
reverse engineer --testAutomatically true fails between 1.1.5 - 1.2.0 same dbase Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • reverse engineer --testAutomatically true fails between 1.1.5 - 1.2.0 same dbase

    When running the following script over spring bacth job repository files 1.2.0 fails

    // Spring Roo 1.1.5.RELEASE [rev d3a68c3] log opened at 2012-01-17 18:00:19
    project --topLevelPackage uk.co.stub.TESTSB115
    persistence setup --database MYSQL --provider HIBERNATE --databaseName test12 --userName new_user --password password
    database reverse engineer --schema test12 --package ~.domain --testAutomatically true

    suceeds but...

    project --topLevelPackage uk.co.stub.TESTSB120
    persistence setup --database MYSQL --provider HIBERNATE --databaseName test12 --userName new_user --password password
    // [failed] database reverse engineer --schema test12 --package ~.domain --testAutomatically true

    fails with the following

    17366a9 Created SRC_MAIN_JAVA/uk/co/stub/testsb120/domain/BatchStepExecutionSeq_Roo_Jpa_ActiveRecord.aj
    f9989c3 Created SRC_MAIN_JAVA/uk/co/stub/testsb120/domain/BatchStepExecutionSeq_Roo_ToString.aj
    java.lang.IllegalStateException: java.lang.IllegalArgumentException: Invalid dependency between upstream 'MID:org.springframework.roo.addon.dod.DataOnDeman dMetadata#SRC_TEST_JAVA?uk.co.stub.testsb120.domai n.BatchStepExecutionContextDataOnDemand' and downstream 'MID:org.springframework.roo.addon.dod.DataOnDeman dMetadata#SRC_TEST_JAVA?uk.co.stub.testsb120.domai n.BatchStepExecutionDataOnDemand'
    java.lang.IllegalStateException: java.lang.IllegalStateException: java.lang.IllegalArgumentException: Invalid dependency between upstream 'MID:org.springframework.roo.addon.dod.DataOnDeman dMetadata#SRC_TEST_JAVA?uk.co.stub.testsb120.domai n.BatchStepExecutionContextDataOnDemand' and downstream 'MID:org.springframework.roo.addon.dod.DataOnDeman dMetadata#SRC_TEST_JAVA?uk.co.stub.testsb120.domai n.BatchStepExecutionDataOnDemand'
    at org.springframework.roo.metadata.DefaultMetadataSe rvice.getInternal(DefaultMetadataService.java:182)
    at org.springframework.roo.metadata.DefaultMetadataSe rvice.get(DefaultMetadataService.java:84)
    at org.springframework.roo.metadata.DefaultMetadataSe rvice.get(DefaultMetadataService.java:220)
    at org.springframework.roo.addon.test.IntegrationTest MetadataProviderImpl.getMetadata(IntegrationTestMe tadataProviderImpl.java:160)
    at org.springframework.roo.classpath.itd.AbstractItdM etadataProvider.get(AbstractItdMetadataProvider.ja va:324)
    at org.springframework.roo.metadata.DefaultMetadataSe rvice.getInternal(DefaultMetadataService.java:150)
    at org.springframework.roo.metadata.DefaultMetadataSe rvice.evictAndGet(DefaultMetadataService.java:285)
    at org.springframework.roo.classpath.itd.AbstractItdM etadataProvider.notify(AbstractItdMetadataProvider .java:158)
    at org.springframework.roo.metadata.DefaultMetadataSe rvice.notify(DefaultMetadataService.java:240)
    at org.springframework.roo.metadata.internal.DefaultM etadataDependencyRegistry.notifyDownstream(Default MetadataDependencyRegistry.java:214)
    at org.springframework.roo.classpath.DefaultPhysicalT ypeMetadataProvider.onFileEvent(DefaultPhysicalTyp eMetadataProvider.java:97)
    at org.springframework.roo.file.monitor.polling.Polli ngFileMonitorService.publish(PollingFileMonitorSer vice.java:350)
    at org.springframework.roo.file.monitor.polling.Polli ngFileMonitorService.publishRequestedFileEvents(Po llingFileMonitorService.java:173)
    at org.springframework.roo.file.monitor.polling.Polli ngFileMonitorService.scanNotified(PollingFileMonit orService.java:148)
    at org.springframework.roo.process.manager.internal.D efaultProcessManager.doTransactionally(DefaultProc essManager.java:192)
    at org.springframework.roo.process.manager.internal.D efaultProcessManager.execute(DefaultProcessManager .java:146)
    at org.springframework.roo.process.manager.ProcessMan agerHostedExecutionStrategy.execute(ProcessManager HostedExecutionStrategy.java:47)
    at org.springframework.roo.shell.AbstractShell.execut eCommand(AbstractShell.java:205)
    at org.springframework.roo.shell.jline.JLineShell.pro mptLoop(JLineShell.java:404)
    at org.springframework.roo.shell.jline.JLineShell.run (JLineShell.java:158)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.IllegalStateException: java.lang.IllegalArgumentException: Invalid dependency between upstream 'MID:org.springframework.roo.addon.dod.DataOnDeman dMetadata#SRC_TEST_JAVA?uk.co.stub.testsb120.domai n.BatchStepExecutionContextDataOnDemand' and downstream 'MID:org.springframework.roo.addon.dod.DataOnDeman dMetadata#SRC_TEST_JAVA?uk.co.stub.testsb120.domai n.BatchStepExecutionDataOnDemand'
    at org.springframework.roo.metadata.DefaultMetadataSe rvice.getInternal(DefaultMetadataService.java:182)
    at org.springframework.roo.metadata.DefaultMetadataSe rvice.get(DefaultMetadataService.java:84)
    at org.springframework.roo.metadata.DefaultMetadataSe rvice.get(DefaultMetadataService.java:220)
    at org.springframework.roo.addon.dod.DataOnDemandMeta dataProviderImpl.locateCollaboratingMetadata(DataO nDemandMetadataProviderImpl.java:318)
    at org.springframework.roo.addon.dod.DataOnDemandMeta dataProviderImpl.getLocatedFields(DataOnDemandMeta dataProviderImpl.java:228)
    at org.springframework.roo.addon.dod.DataOnDemandMeta dataProviderImpl.getMetadata(DataOnDemandMetadataP roviderImpl.java:173)
    at org.springframework.roo.classpath.itd.AbstractItdM etadataProvider.get(AbstractItdMetadataProvider.ja va:324)
    at org.springframework.roo.metadata.DefaultMetadataSe rvice.getInternal(DefaultMetadataService.java:150)
    ... 20 more


    Attached are the 2 projects with dbre.xml's

  • #2
    I've re-opened https://jira.springsource.org/browse/ROO-2702 for this issue.

    Comment

    Working...
    X