java.lang.ClassNotFoundException: int

JIRA | 8 years ago
  1. 0

    When running jmx client command line to call a method on a bean which have a primitive as one of its parameters, the call fails. Details of the attributes of my MBean: java -jar cmdline-jmxclient-0.10.3.jar - 10.0.9.39:8084 com.miranda.adapter.vroom.proxy.mbeans:name=EDIDDetectorService Attributes: NotificationInfo: Attribute exposed for management (type=[Ljavax.management.MBeanNotificationInfo;) Operations: getDetectedResolutionSettingsUUID: Operation exposed for management Parameters 1, return type=java.lang.String name=p1 type=int removeNotificationListener: Operation exposed for management Parameters 3, return type=void name=p1 type=javax.management.NotificationListener name=p2 type=javax.management.NotificationFilter name=p3 type=java.lang.Object addNotificationListener: Operation exposed for management Parameters 3, return type=void name=p1 type=javax.management.NotificationListener name=p2 type=javax.management.NotificationFilter name=p3 type=java.lang.Object removeNotificationListener: Operation exposed for management Parameters 1, return type=void name=p1 type=javax.management.NotificationListener As you can see the operation getDetectedResolutionSettingsUUID takes a int as argument. When trying to execute this operation, I get this exception: java -jar cmdline-jmxclient-0.10.3.jar - 10.0.9.39:8084 com.miranda.adapter.vroom.proxy.mbeans:name=EDIDDetectorService getDetectedResolutionSettingsUUID=0 Exception in thread "main" java.lang.ClassNotFoundException: int at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.archive.jmx.Client.doBeanOperation(Client.java:513) at org.archive.jmx.Client.doSubCommand(Client.java:326) at org.archive.jmx.Client.doBean(Client.java:282) at org.archive.jmx.Client.execute(Client.java:242) at org.archive.jmx.Client.main(Client.java:154) I created a patch that fixes this issue (added as attachement).

    JIRA | 8 years ago
    java.lang.ClassNotFoundException: int
  2. 0

    GitHub comment 18#76179171

    GitHub | 2 years ago | orenku
    java.lang.ClassNotFoundException: com.phonegap.plugins.flurry
  3. 0

    GitHub comment 18#76179913

    GitHub | 2 years ago | jfpsf
    java.lang.ClassNotFoundException: com.phonegap.plugins.flurry
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Reflections - Failed to invoke remote method with primitive argument

    Oracle Community | 1 decade ago | 843798
    java.lang.ClassNotFoundException: int
  6. 0

    Why do I get a ClassNotFoundException when using Class.forName(...)?

    Stack Overflow | 6 years ago | Amir Afghani
    java.lang.ClassNotFoundException: TestHello_1289950330167

  1. gehel 1 times, last 1 week ago
  2. malhobayyeb 3 times, last 1 week ago
  3. Kialandei 1 times, last 2 weeks ago
  4. Indri Yunita 1 times, last 2 weeks ago
  5. Alexandru Popa 2 times, last 2 weeks ago
47 more registered users
48 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.ClassNotFoundException

    int

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader$1.run(Unknown Source)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(Unknown Source)
    4. java.lang.ClassLoader.loadClass(Unknown Source)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    6. java.lang.ClassLoader.loadClass(Unknown Source)
    7. java.lang.ClassLoader.loadClassInternal(Unknown Source)
    8. java.lang.Class.forName0(Native Method)
    9. java.lang.Class.forName(Unknown Source)
    9 frames
  3. org.archive.jmx
    Client.main
    1. org.archive.jmx.Client.doBeanOperation(Client.java:513)
    2. org.archive.jmx.Client.doSubCommand(Client.java:326)
    3. org.archive.jmx.Client.doBean(Client.java:282)
    4. org.archive.jmx.Client.execute(Client.java:242)
    5. org.archive.jmx.Client.main(Client.java:154)
    5 frames