java.lang.NoSuchMethodException: Outer$Inner.<init>(java.lang.Integer)

Oracle Community | 843798 | 9 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp . Or join the community to write better ones.
  1. 0

    Inner Reflection (and Instantiating Inner Classes)

    Oracle Community | 9 years ago | 843798
    java.lang.NoSuchMethodException: Outer$Inner.<init>(java.lang.Integer)
  2. 0
    samebug tip
    Spark-notebook cannot load json from gzipped files. Uncompress them before loading.
    via GitHub by cagalli83
  3. 0
    samebug tip
    I downgraded to spark-notebook scala 2.10 with hadoop 2.6.0 then it worked. Finally switched to Apache Drill, works like a charm for diverse datasets.
  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 | 1 year 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. SteVio1989 1 times, last 2 weeks ago
  2. tomthomas 1 times, last 3 weeks ago
  3. Andreas Häber 5 times, last 3 weeks ago
  4. arturgajowy 12 times, last 1 month ago
  5. Sanjay Kumar 1 times, last 1 month ago
29 more registered users
25 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

    Outer$Inner.<init>(java.lang.Integer)

    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. Unknown
    InnerReflectTest.main
    1. Outer.<init>(InnerReflectTest.java:17)
    2. InnerReflectTest.main(InnerReflectTest.java:7)
    2 frames