java.lang.NoClassDefFoundError: org/springframework/roo/support/util/ReflectionUtils

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • At the moment we are using org/springframework/roo/support/util/ReflectionUtils (in TextHandler.publish, for example). Since Spring Roo has replaced this class and is using (and shipping) commons-lang3 libs for that, we should adapt to those libs as well (to allow Roo to remove that old ReflectionUtils class). This should be done for the Spring Roo 1.3.0 adapter only, not for 1.2.1 or previous Roo versions. Here are some details from Alan: Can I please request that for future STS releases that you change the code to remove STS's dependency on this class? The same functionality is available in the commons-lang3 FieldUtils, MethodUtils, and ClassUtils classes. java.lang.NoClassDefFoundError: org/springframework/roo/support/util/ReflectionUtils at org.springframework.roo.shell.eclipse.TextHandler.publish(TextHandler.java:51) at java.util.logging.Logger.log(Logger.java:478) at java.util.logging.Logger.doLog(Logger.java:500) at java.util.logging.Logger.log(Logger.java:523) at java.util.logging.Logger.info(Logger.java:1042) at org.springframework.roo.shell.eclipse.EclipseShell.init(EclipseShell.java:139) at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.ide.eclipse.core.java.ClassUtils.invokeMethod(ClassUtils.java:136) at org.springframework.roo.shell.eclipse.Bootstrap.initShell(Bootstrap.java:557) at org.springframework.roo.shell.eclipse.Bootstrap.access$2(Bootstrap.java:545) at org.springframework.roo.shell.eclipse.Bootstrap$RooShellStartupMonitor.run(Bootstrap.java:619) at java.lang.Thread.run(Thread.java:680)
    via by Martin Lippert,
  • At the moment we are using org/springframework/roo/support/util/ReflectionUtils (in TextHandler.publish, for example). Since Spring Roo has replaced this class and is using (and shipping) commons-lang3 libs for that, we should adapt to those libs as well (to allow Roo to remove that old ReflectionUtils class). This should be done for the Spring Roo 1.3.0 adapter only, not for 1.2.1 or previous Roo versions. Here are some details from Alan: Can I please request that for future STS releases that you change the code to remove STS's dependency on this class? The same functionality is available in the commons-lang3 FieldUtils, MethodUtils, and ClassUtils classes. java.lang.NoClassDefFoundError: org/springframework/roo/support/util/ReflectionUtils at org.springframework.roo.shell.eclipse.TextHandler.publish(TextHandler.java:51) at java.util.logging.Logger.log(Logger.java:478) at java.util.logging.Logger.doLog(Logger.java:500) at java.util.logging.Logger.log(Logger.java:523) at java.util.logging.Logger.info(Logger.java:1042) at org.springframework.roo.shell.eclipse.EclipseShell.init(EclipseShell.java:139) at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.ide.eclipse.core.java.ClassUtils.invokeMethod(ClassUtils.java:136) at org.springframework.roo.shell.eclipse.Bootstrap.initShell(Bootstrap.java:557) at org.springframework.roo.shell.eclipse.Bootstrap.access$2(Bootstrap.java:545) at org.springframework.roo.shell.eclipse.Bootstrap$RooShellStartupMonitor.run(Bootstrap.java:619) at java.lang.Thread.run(Thread.java:680)
    via by Martin Lippert,
    • java.lang.NoClassDefFoundError: org/springframework/roo/support/util/ReflectionUtils at org.springframework.roo.shell.eclipse.TextHandler.publish(TextHandler.java:51) at java.util.logging.Logger.log(Logger.java:478) at java.util.logging.Logger.doLog(Logger.java:500) at java.util.logging.Logger.log(Logger.java:523) at java.util.logging.Logger.info(Logger.java:1042) at org.springframework.roo.shell.eclipse.EclipseShell.init(EclipseShell.java:139) at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.ide.eclipse.core.java.ClassUtils.invokeMethod(ClassUtils.java:136) at org.springframework.roo.shell.eclipse.Bootstrap.initShell(Bootstrap.java:557) at org.springframework.roo.shell.eclipse.Bootstrap.access$2(Bootstrap.java:545) at org.springframework.roo.shell.eclipse.Bootstrap$RooShellStartupMonitor.run(Bootstrap.java:619) at java.lang.Thread.run(Thread.java:680)
    No Bugmate found.