2 Replies Latest reply on Mar 2, 2006 7:57 AM by 807596

    java.lang.UnsupportedClassVersionError

    807596
      Everytime when I started SUN Application Server after starting the pointbase Database, I would face the following error message from server.log file:

      ======================================================
      [#|2006-02-21T20:26:31.656+0800|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.core|_ThreadID=10;|core.unexpected_error_occured_while_loading_system_app
      java.lang.UnsupportedClassVersionError:
      com/sun/ejb/containers/TimerBean_2100919770_ConcreteImpl
      (Unsupported major.minor version 49.0)
      at java.lang.ClassLoader.defineClass0(Native
      Method)
      at
      java.lang.ClassLoader.defineClass(ClassLoader.java:539)
      at
      java.lang.ClassLoader.defineClass(ClassLoader.java:448)
      at
      com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:494)
      at
      java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      at
      java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      at
      com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:267)
      at
      com.sun.ejb.containers.EntityContainer.<init>(EntityContainer.java:219)
      at
      com.sun.ejb.containers.TimerBeanContainer.<init>(TimerBeanContainer.java:39)
      at
      com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:234)
      at
      com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:477)
      at
      com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:125)
      at
      com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:95)
      at
      com.sun.enterprise.server.AbstractManager.loadSystem(AbstractManager.java:277)
      at
      com.sun.enterprise.server.SystemAppLifecycle.loadSystemApps(SystemAppLifecycle.java:134)
      at
      com.sun.enterprise.server.SystemAppLifecycle.onStartup(SystemAppLifecycle.java:75)
      at
      com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
      at
      com.sun.enterprise.server.PEMain.run(PEMain.java:294)
      at
      com.sun.enterprise.server.PEMain.main(PEMain.java:220)
      ======================================================

      The aftermath of the problem was that the TimerService became unavailable when accessing it. The relevant error messages were:

      --------------------------------------------------------------------------------------------------
      [#|2006-02-24T15:42:28.515+0800|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.ejb|_ThreadID=13;|EJB5018: An exception was thrown during an ejb invocation on [TimerSessionBean]|#]

      [#|2006-02-24T15:42:28.515+0800|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.ejb|_ThreadID=13;|
      javax.ejb.EJBException: EJB Timer service not available
      at com.sun.ejb.containers.SessionContextImpl.getTimerService(SessionContextImpl.java:75)
      at TimerSessionBean.myCreateTimer(TimerSessionBean.java:42)
      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:324)
      at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:153)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:950)
      at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:158)
      at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:128)
      at $Proxy43.myCreateTimer(Unknown Source)
      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:324)
      at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:123)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1709)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1569)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:951)
      at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:721)
      at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:469)
      at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1258)
      at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:409)
      |#]
      -------------------------------------------------------------------------------------------------

      Any idea for the problem?
        • 1. Re: java.lang.UnsupportedClassVersionError
          807596
          Please avoid posting the same question in multiple forums! It appears you are not waiting enough - you are posting the same question in different forums - all in the same day!

          I just answered the same question in VM forum:
          http://forum.java.sun.com/thread.jspa?threadID=711668&messageID=4117611#4117611
          • 2. Re: java.lang.UnsupportedClassVersionError
            807596
            From "Unsupported major.minor version 49.0", it appears that you are running JDK 1.4.2_xx or earlier. Starting from JDK 5.0 class file version 49.0 is used. You may want to try JDK 5.0.

            Other option would be to compile everything with JDK 1.4.2_xx -- not sure whether you can do this (for eg. you may depend external jar files compiled with JDK 5.0.

            I think it is does not only the jdk version 's problem...
            perhaps that the class is not support for this jdk...