java.lang.NoSuchMethodError: org.springframework.roo.addon.entity.EntityMetadata.getEntityName()Ljava/lang/String;

Spring JIRA | Antti Hätinen | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    When I run: script clinic.roo I get this error message: roo> finder add --finderName findPetsByNameAndWeight --class ~.domain.Pet Exception in thread "Spring Roo JLine Shell" java.lang.NoSuchMethodError: org.springframework.roo.addon.entity.EntityMetadata.getEntityName()Ljava/lang/String; at org.springframework.roo.addon.finder.FinderOperationsImpl.installFinder(FinderOperationsImpl.java:168) at org.springframework.roo.addon.finder.FinderCommands.installFinders(FinderCommands.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:180) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:165) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132) at java.lang.Thread.run(Thread.java:595)

    Spring JIRA | 6 years ago | Antti Hätinen
    java.lang.NoSuchMethodError: org.springframework.roo.addon.entity.EntityMetadata.getEntityName()Ljava/lang/String;
  2. 0

    When I run: script clinic.roo I get this error message: roo> finder add --finderName findPetsByNameAndWeight --class ~.domain.Pet Exception in thread "Spring Roo JLine Shell" java.lang.NoSuchMethodError: org.springframework.roo.addon.entity.EntityMetadata.getEntityName()Ljava/lang/String; at org.springframework.roo.addon.finder.FinderOperationsImpl.installFinder(FinderOperationsImpl.java:168) at org.springframework.roo.addon.finder.FinderCommands.installFinders(FinderCommands.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:180) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:165) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132) at java.lang.Thread.run(Thread.java:595)

    Spring JIRA | 6 years ago | Antti Hätinen
    java.lang.NoSuchMethodError: org.springframework.roo.addon.entity.EntityMetadata.getEntityName()Ljava/lang/String;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.springframework.roo.addon.entity.EntityMetadata.getEntityName()Ljava/lang/String;

      at org.springframework.roo.addon.finder.FinderOperationsImpl.installFinder()
    2. org.springframework.roo
      FinderCommands.installFinders
      1. org.springframework.roo.addon.finder.FinderOperationsImpl.installFinder(FinderOperationsImpl.java:168)
      2. org.springframework.roo.addon.finder.FinderCommands.installFinders(FinderCommands.java:74)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    4. org.springframework.roo
      JLineShell.run
      1. org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
      2. org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49)
      3. org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:180)
      4. org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143)
      5. org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
      6. org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:165)
      7. org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358)
      8. org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132)
      8 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame