java.lang.UnsupportedClassVersionError

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?

[5354 byte] By [liaodongyana] at [2007-10-2 13:14:32]
# 1
Well.. I'm a newb. but I'm guessing it might mean the class is an old version, therfore being incompatible with the new compiler? I have no idea, but I hope i'm somewhat right.
thesmileyknighta at 2007-7-13 10:45:15 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...