Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3991

NullPointerException adding Finder

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0.RELEASE
    • Fix Version/s: None
    • Component/s: @ ROO SHELL
    • Labels:
      None
    • Environment:
      Windows 10 Java 1.8

      Description

      Running the following script as a starting point and attempting to add a finder throws a NullPointerException.

       

      // start script

      project setup --topLevelPackage com.test.rnr --projectName rolesAndResponsibilites

      jpa setup --provider HIBERNATE --database H2_IN_MEMORY

       

      entity jpa --class ~.model.Role_Assignment --entityFormatExpression "#{project} #{area} #{roleName}" --serializable
      focus --class ~.model.Role_Assignment
      field string --fieldName area --column AREA
      field string --fieldName project --column PROJECT
      field string --fieldName userId --column USERID
      field string --fieldName roleName --column ROLENAME
      field string --fieldName spec --column SPEC
      dto --class ~.model.Role_Assignment_DTO --serializable 
      field string --fieldName project 
      field string --fieldName spec 

      // end script

       

      roo> finder add --entity ~.model.Role_Assignment --name findProjectBySpec --formBean ~.model.Role_Assignment_DTO

      NullPointerException at org.springframework.roo.addon.layers.repository.jpa.addon.RepositoryJpaMetadata.createIdentifier(RepositoryJpaMetadata.java:77)

       

        Attachments

          Activity

            People

            Assignee:
            eruiz Enrique Ruiz (DiSiD)
            Reporter:
            datatribe datatribe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: