com.pedantus.packagerepository.domain.Package

Spring JIRA | Michael Kelly | 7 years ago
  1. 0

    Steps to Reproduce: # Create a project. # Install JPA. # Create a persistence class with the following command: new persistent class jpa -name ~.domain.Package # Create a field with the following command: add field string -fieldName name -notNull Expected Behavior: The user should be told that "Package" is a reserved word at the time of the persistent class creation, and no files should be generated. Actual Behavior: The creation of the persistent class appears to succeed, but the user gets the following error when adding the field: Java source code details unavailable for type SRC_MAIN_JAVA/com.pedantus.package repository.domain.Package java.lang.IllegalArgumentException: Java source code details unavailable for typ e SRC_MAIN_JAVA/com.pedantus.packagerepository.domain.Package at org.springframework.roo.support.util.Assert.notNull(Assert.java:112) at org.springframework.roo.classpath.operations.ClasspathOperations.addField (ClasspathOperations.java:170) at org.springframework.roo.classpath.operations.FieldCommands.insertField(Fi eldCommands.java:89) at org.springframework.roo.classpath.operations.FieldCommands.addFieldString (FieldCommands.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(Reflect ionUtils.java:191) at org.springframework.roo.bootstrap.ProcessManagerHostedExecutionStrategy$1 .callback(ProcessManagerHostedExecutionStrategy.java:33) at org.springframework.roo.process.manager.internal.DefaultProcessManager.do Transactionally(DefaultProcessManager.java:127) at org.springframework.roo.process.manager.internal.DefaultProcessManager.ex ecute(DefaultProcessManager.java:90) at org.springframework.roo.bootstrap.ProcessManagerHostedExecutionStrategy.e xecute(ProcessManagerHostedExecutionStrategy.java:31) at org.springframework.roo.shell.internal.AbstractShell.executeCommand(Abstr actShell.java:120) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java :80) at org.springframework.roo.bootstrap.Bootstrap.run(Bootstrap.java:109) at org.springframework.roo.bootstrap.Bootstrap.main(Bootstrap.java:49)

    Spring JIRA | 7 years ago | Michael Kelly
    com.pedantus.packagerepository.domain.Package
  2. 0

    Steps to Reproduce: # Create a project. # Install JPA. # Create a persistence class with the following command: new persistent class jpa -name ~.domain.Package # Create a field with the following command: add field string -fieldName name -notNull Expected Behavior: The user should be told that "Package" is a reserved word at the time of the persistent class creation, and no files should be generated. Actual Behavior: The creation of the persistent class appears to succeed, but the user gets the following error when adding the field: Java source code details unavailable for type SRC_MAIN_JAVA/com.pedantus.package repository.domain.Package java.lang.IllegalArgumentException: Java source code details unavailable for typ e SRC_MAIN_JAVA/com.pedantus.packagerepository.domain.Package at org.springframework.roo.support.util.Assert.notNull(Assert.java:112) at org.springframework.roo.classpath.operations.ClasspathOperations.addField (ClasspathOperations.java:170) at org.springframework.roo.classpath.operations.FieldCommands.insertField(Fi eldCommands.java:89) at org.springframework.roo.classpath.operations.FieldCommands.addFieldString (FieldCommands.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(Reflect ionUtils.java:191) at org.springframework.roo.bootstrap.ProcessManagerHostedExecutionStrategy$1 .callback(ProcessManagerHostedExecutionStrategy.java:33) at org.springframework.roo.process.manager.internal.DefaultProcessManager.do Transactionally(DefaultProcessManager.java:127) at org.springframework.roo.process.manager.internal.DefaultProcessManager.ex ecute(DefaultProcessManager.java:90) at org.springframework.roo.bootstrap.ProcessManagerHostedExecutionStrategy.e xecute(ProcessManagerHostedExecutionStrategy.java:31) at org.springframework.roo.shell.internal.AbstractShell.executeCommand(Abstr actShell.java:120) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java :80) at org.springframework.roo.bootstrap.Bootstrap.run(Bootstrap.java:109) at org.springframework.roo.bootstrap.Bootstrap.main(Bootstrap.java:49)

    Spring JIRA | 7 years ago | Michael Kelly
    com.pedantus.packagerepository.domain.Package

    Root Cause Analysis

    1. com.pedantus.packagerepository.domain.Package

      No message provided

      at org.springframework.roo.support.util.Assert.notNull()
    2. org.springframework.roo
      FieldCommands.addFieldString
      1. org.springframework.roo.support.util.Assert.notNull(Assert.java:112)
      2. org.springframework.roo.classpath.operations.ClasspathOperations.addField(ClasspathOperations.java:170)
      3. org.springframework.roo.classpath.operations.FieldCommands.insertField(FieldCommands.java:89)
      4. org.springframework.roo.classpath.operations.FieldCommands.addFieldString(FieldCommands.java:140)
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    4. org.springframework.roo
      Bootstrap.main
      1. org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
      2. org.springframework.roo.bootstrap.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:33)
      3. org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:127)
      4. org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:90)
      5. org.springframework.roo.bootstrap.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:31)
      6. org.springframework.roo.shell.internal.AbstractShell.executeCommand(AbstractShell.java:120)
      7. org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:80)
      8. org.springframework.roo.bootstrap.Bootstrap.run(Bootstrap.java:109)
      9. org.springframework.roo.bootstrap.Bootstrap.main(Bootstrap.java:49)
      9 frames