Announcement Announcement Module
Collapse
No announcement yet.
DBRE with MYSQL - NullPointerException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DBRE with MYSQL - NullPointerException

    I'm using DBRE, but i got this error:
    NullPointerException at org.springframework.roo.addon.dbre.DbreMetadata.ad dManyToManyFields(DbreMetadata.java:151)

    my log.roo
    Code:
    persistence setup --provider HIBERNATE --database MYSQL --userName root --databaseName visentin
    osgi obr url add --url http://spring-roo-repository.springsource.org/repository.xml
    osgi obr start --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java
    osgi obr url remove --url http://spring-roo-repository.springsource.org/repository.xml
    addon install bundle --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java
    
    database introspect --schema no-schema-required 
    database reverse engineer --schema no-schema-required --package it.s26.model

    Code:
    roo> database reverse engineer --schema no-schema-required --package it.s26.model 
    
    Deleted SRC_MAIN_JAVA/it/s26/model/AccessoClienti.java
    Created SRC_MAIN_JAVA/it/s26/model/AbMovimentiHeader.java
    Created SRC_MAIN_JAVA/it/s26/model/Abmovimenti.java
    Created SRC_MAIN_JAVA/it/s26/model/Abpdc.java
    Created SRC_MAIN_JAVA/it/s26/model/AbperiodCustomerPK.java
    Created SRC_MAIN_JAVA/it/s26/model/AbperiodCustomer.java
    Created SRC_MAIN_JAVA/it/s26/model/Abtemplate.java
    Created SRC_MAIN_JAVA/it/s26/model/AbtemplateDetailMappingPK.java
    Created SRC_MAIN_JAVA/it/s26/model/AbtemplateDetailMapping.java
    Created SRC_MAIN_JAVA/it/s26/model/AbtemplateSubMappingPK.java
    Created SRC_MAIN_JAVA/it/s26/model/AbtemplateSubMapping.java
    Created SRC_MAIN_JAVA/it/s26/model/Abtemplatedetail.java
    Created SRC_MAIN_JAVA/it/s26/model/Abtemplatesub.java
    Created SRC_MAIN_JAVA/it/s26/model/Allegati.java
    Created SRC_MAIN_JAVA/it/s26/model/Anagrafiche.java
    ...
    
    Updated ROOT/.roo-dbre
    Created SRC_MAIN_JAVA/it/s26/model/AbtemplateDetailMappingPK_Roo_Identifier.aj
    Undo create SRC_MAIN_JAVA/it/s26/model/AbtemplateDetailMappingPK_Roo_Identifier.aj
    Undo manage ROOT/.roo-dbre
    Undo create SRC_MAIN_JAVA/it/s26/model/AbtemplateDetailMapping_Roo_Entity.aj
    Undo create SRC_MAIN_JAVA/it/s26/model/AbtemplateDetailMapping_Roo_ToString.aj
    Undo create SRC_MAIN_JAVA/it/s26/model/AbtemplateDetailMapping_Roo_Configurable.aj
    Undo manage SRC_MAIN_RESOURCES/META-INF/persistence.xml
    Undo create SRC_MAIN_JAVA/it/s26/model/Utenti.java
    Undo create SRC_MAIN_JAVA/it/s26/model/TopMenu.java
    Undo create SRC_MAIN_JAVA/it/s26/model/TmovPratiche.java
    Undo create SRC_MAIN_JAVA/it/s26/model/TipoProtocollo.java
    Undo create SRC_MAIN_JAVA/it/s26/model/TipoPratiche.java
    Undo create SRC_MAIN_JAVA/it/s26/model/TipoInvio.java
    ...
    NullPointerException at org.springframework.roo.addon.dbre.DbreMetadata.addManyToManyFields(DbreMetadata.java:151)
    Where can i find more details?

  • #2
    You will need to attach your DDL to a new Jira request so I can attempt to reproduce it

    Comment


    • #3
      Solved

      https://jira.springsource.org/browse/ROO-1740

      Comment


      • #4
        I'm curious though as to what version of Roo you are using. With the current code, at line 151, I am doing an NPE check for the inverse table of a many-to-many relationship. Just wanted to make sure I am handling the condition somewhat more gracefully.

        Comment

        Working...
        X