java.lang.NoSuchMethodException: org.springframework.richclient.settings.TestEnum.<init>()

Spring JIRA | Benoit Xhenseval | 1 decade ago
  1. 0

    Hi, Doing mvn install completes but there are a couple of exceptions like this one thrown along the way. I did a mvn -U install and still same prob. [INFO] ---------------------------------------------------------------------------- [INFO] Building Spring richclient sandbox [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Setting reports dir: E:\project\spring-richclient\sandbox\target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- java.lang.NoSuchMethodException: org.springframework.richclient.settings.TestEnum.<init>() at java.lang.Class.getConstructor0(Class.java:2647) at java.lang.Class.getConstructor(Class.java:1629) at org.apache.maven.surefire.battery.JUnitBattery.getTestConstructor(JUnitBattery.java:307) at org.apache.maven.surefire.battery.JUnitBattery.processTestClass(JUnitBattery.java:150) at org.apache.maven.surefire.battery.JUnitBattery.<init>(JUnitBattery.java:81) at org.apache.maven.surefire.SurefireUtils.instantiateBattery(SurefireUtils.java:63) at org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:262) at org.apache.maven.surefire.Surefire.run(Surefire.java:140) at org.apache.maven.surefire.Surefire.run(Surefire.java:87) 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.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285) at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201) at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) RUN ABORTED java.lang.NoSuchMethodException org.apache.maven.surefire.Runner An exception or error caused a run to abort. org.springframework.richclient.settings.TestEnum.<init>() Results : [surefire] Tests run: 0, Failures: 0, Errors: 1

    Spring JIRA | 1 decade ago | Benoit Xhenseval
    java.lang.NoSuchMethodException: org.springframework.richclient.settings.TestEnum.<init>()
  2. 0

    Hi, Doing mvn install completes but there are a couple of exceptions like this one thrown along the way. I did a mvn -U install and still same prob. [INFO] ---------------------------------------------------------------------------- [INFO] Building Spring richclient sandbox [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Setting reports dir: E:\project\spring-richclient\sandbox\target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- java.lang.NoSuchMethodException: org.springframework.richclient.settings.TestEnum.<init>() at java.lang.Class.getConstructor0(Class.java:2647) at java.lang.Class.getConstructor(Class.java:1629) at org.apache.maven.surefire.battery.JUnitBattery.getTestConstructor(JUnitBattery.java:307) at org.apache.maven.surefire.battery.JUnitBattery.processTestClass(JUnitBattery.java:150) at org.apache.maven.surefire.battery.JUnitBattery.<init>(JUnitBattery.java:81) at org.apache.maven.surefire.SurefireUtils.instantiateBattery(SurefireUtils.java:63) at org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:262) at org.apache.maven.surefire.Surefire.run(Surefire.java:140) at org.apache.maven.surefire.Surefire.run(Surefire.java:87) 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.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285) at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201) at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) RUN ABORTED java.lang.NoSuchMethodException org.apache.maven.surefire.Runner An exception or error caused a run to abort. org.springframework.richclient.settings.TestEnum.<init>() Results : [surefire] Tests run: 0, Failures: 0, Errors: 1

    Spring JIRA | 1 decade ago | Benoit Xhenseval
    java.lang.NoSuchMethodException: org.springframework.richclient.settings.TestEnum.<init>()
  3. 0

    Android Weather Forecast -Error

    Stack Overflow | 5 years ago | Piraba
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.anddev.android.weatherforecast/org.anddev.android.weatherforecast.WeatherForecast}: android.view.InflateException: Binary XML file line #55: Error inflating class org.anddev.android.weatherforecast.views.SingleWeatherInfoView
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    db:: 4.34::makepkg and premature termination cm

    hivmr.com | 12 months ago
    java.lang.NoSuchMethodException: org.jboss.soa.esb.actions.routing.JMSRouter.init(org.jboss.soa.esb.helpers.ConfigTree)
  6. 0

    NodeDescriptor.transform(Object value) includes the following: Constructor constructor = theClass.getConstructor(new Class[]{value.getClass()}); if (constructor != null) { return constructor.newInstance(new Object[] {value}); } else { return value; } It should be: Constructor constructor = null; try { constructor = theClass.getConstructor(new Class[]{value.getClass()}); } catch (NoSuchMethodError ignore) { } if (constructor != null) { return constructor.newInstance(new Object[] {value}); }| else { return value; } To test: IMObject object = archetypeService.create("act.estimation"); archetypeService.save(object); object = archetypeService.getById(object.getArchetypeId(), object.getUid()); ArchetypeDescriptor archetype = archetypeService.getArchetypeDescriptor("act.estimation"); NodeDescriptor dateDesc = archetype.getNodeDescriptor("estimationDate"); Object value = dateDesc.getValue(object); // an instance of java.sql.Date dateDesc.setValue(object, value); The last line fails with the exception: java.lang.NoSuchMethodException: java.util.Date.<init>(java.sql.Date) at java.lang.Class.getConstructor0(Class.java:2647) at java.lang.Class.getConstructor(Class.java:1629) at org.openvpms.component.business.domain.im.archetype.descriptor.NodeDescriptor.transform(NodeDescriptor.java:1408) at org.openvpms.component.business.domain.im.archetype.descriptor.NodeDescriptor.setValue(NodeDescriptor.java:1353)

    JIRA | 1 decade ago | Tim Anderson
    java.lang.NoSuchMethodException: java.util.Date.<init>(java.sql.Date)

  1. Riyaz 2 times, last 4 days ago
  2. bmacedo 6 times, last 5 days ago
  3. bluebunnty 1 times, last 2 weeks ago
  4. Aria Pahlavan 1 times, last 3 weeks ago
  5. Alexandru Popa 4 times, last 3 weeks ago
23 more registered users
24 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoSuchMethodException

    org.springframework.richclient.settings.TestEnum.<init>()

    at java.lang.Class.getConstructor0()
  2. Java RT
    Class.getConstructor
    1. java.lang.Class.getConstructor0(Class.java:2647)
    2. java.lang.Class.getConstructor(Class.java:1629)
    2 frames
  3. org.apache.maven
    JUnitBattery.<init>
    1. org.apache.maven.surefire.battery.JUnitBattery.getTestConstructor(JUnitBattery.java:307)
    2. org.apache.maven.surefire.battery.JUnitBattery.processTestClass(JUnitBattery.java:150)
    3. org.apache.maven.surefire.battery.JUnitBattery.<init>(JUnitBattery.java:81)
    3 frames
  4. SureFire
    Surefire.run
    1. org.apache.maven.surefire.SurefireUtils.instantiateBattery(SurefireUtils.java:63)
    2. org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:262)
    3. org.apache.maven.surefire.Surefire.run(Surefire.java:140)
    4. org.apache.maven.surefire.Surefire.run(Surefire.java:87)
    4 frames
  5. 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
  6. SureFire
    SurefireBooter.run
    1. org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285)
    2. org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201)
    2 frames
  7. org.apache.maven
    SurefirePlugin.execute
    1. org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366)
    1 frame
  8. Maven Plugin
    DefaultPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
    1 frame
  9. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
    2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
    3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
    4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
    5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
    6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
    7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
    8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
    8 frames
  10. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
    1 frame
  11. 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
  12. Plexus
    Launcher.main
    1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    4 frames