This discussion is archived
11 Replies Latest reply: Feb 7, 2012 9:17 AM by Charles Lamb RSS

Bad version number in .class file

302043 Newbie
Currently Being Moderated
oracle@phoenix /backup/oracle/kv-1.1.100/bin> ./run-kvlite.sh
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  • 1. Re: Bad version number in .class file
    guy.k.hillyer Newbie
    Currently Being Moderated
    This message probably means that an older version of the java runtime is being used. NoSQL Database requires Java SE 6. Which java are you using?

    Edited by: Guy Hillyer, Oracle on Oct 18, 2011 9:18 PM
  • 2. Re: Bad version number in .class file
    302043 Newbie
    Currently Being Moderated
    root@dragon /shareplex/oracle/kv-1.1.100/bin> kvctl runadmin -port 5001
    Exception in thread "main" java.rmi.ConnectException: Connection refused to host: dragon; nested exception is:
    java.net.ConnectException: Connection refused
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at oracle.kv.impl.util.registry.RegistryUtils.getAdmin(RegistryUtils.java:197)
    at oracle.kv.impl.admin.client.KVAdmin.connect(KVAdmin.java:876)
    at oracle.kv.impl.admin.client.KVAdmin.main(KVAdmin.java:2107)
    Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:189)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
  • 3. Re: Bad version number in .class file
    302043 Newbie
    Currently Being Moderated
    Fixed already, thanks anyway.
  • 4. Re: Bad version number in .class file
    Charles Lamb Pro
    Currently Being Moderated
    Just to be clear, does this mean you fixed the Bad Version in .class file exception or you figured out the problem with starting an admin and port 5001?

    Charles Lamb
  • 5. Re: Bad version number in .class file
    302043 Newbie
    Currently Being Moderated
    Both fixed, thanks Guy & Charles.
  • 6. Re: Bad version number in .class file
    915089 Newbie
    Currently Being Moderated
    Hi may i know how to fix this?

    i am getting this exception when executing this command : java -jar lib/kvstore-1.2.123.jar ping -port 5000 -host testhost

    Could not connect to registry at BLRKIET0052PC:5000: Connection refused to host: testhost; nested exception is:
    java.net.ConnectException: Connection refused: connect

    ?
  • 7. Re: Bad version number in .class file
    Charles Lamb Pro
    Currently Being Moderated
    912086 wrote:
    Hi may i know how to fix this?

    i am getting this exception when executing this command : java -jar lib/kvstore-1.2.123.jar ping -port 5000 -host testhost

    Could not connect to registry at BLRKIET0052PC:5000: Connection refused to host: testhost; nested exception is:
    java.net.ConnectException: Connection refused: connect
    Is there an alias for testhost and BLRKIET0052PC? Do they point to the same machine on the same interface?

    Charles Lamb
  • 8. Re: Bad version number in .class file
    915089 Newbie
    Currently Being Moderated
    Hi thanks for da quick reply....

    both are same only.


    i am getting this exception when executing this command : java -jar lib/kvstore-1.2.123.jar ping -port 5000 -host testhost

    Could not connect to registry at testhost:5000: Connection refused to host: testhost; nested exception is:
    java.net.ConnectException: Connection refused: connect
    ?
  • 9. Re: Bad version number in .class file
    Charles Lamb Pro
    Currently Being Moderated
    912086 wrote:
    Hi thanks for da quick reply....

    both are same only.


    i am getting this exception when executing this command : java -jar lib/kvstore-1.2.123.jar ping -port 5000 -host testhost

    Could not connect to registry at testhost:5000: Connection refused to host: testhost; nested exception is:
    java.net.ConnectException: Connection refused: connect
    Is there any NoSQL Database process running on testhost? What does jps -m show?
  • 10. Re: Bad version number in .class file
    915089 Newbie
    Currently Being Moderated
    jps -m is givng me the following information...........


    4812
    3460 Jps -m
    4408 Bootstrap start
    5488
  • 11. Re: Bad version number in .class file
    Charles Lamb Pro
    Currently Being Moderated
    912086 wrote:
    jps -m is givng me the following information...........


    4812
    3460 Jps -m
    4408 Bootstrap start
    5488
    Are there any clues in the kvroot/.../*.log files on that host?

    Charles Lamb

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points