This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

UnsupportedClassVersionError

 
Ramakrishnan Ponmudi
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to resolve this Error, it comes when try to deploy AdviceBean in weblogic,
Unexpected exception:

java.lang.UnsupportedClassVersionError: headfirst/AdviceBean (Unsupported major.minor version 49.0)

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:537)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)

at java.net.URLClassLoader.access$100(URLClassLoader.java:55)

at java.net.URLClassLoader$1.run(URLClassLoader.java:194)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

at java.lang.ClassLoader.loadClass(ClassLoader.java:282)

at java.lang.ClassLoader.loadClass(ClassLoader.java:282)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:223)

at weblogic.ejb20.deployer.BeanInfoImpl.loadClass(BeanInfoImpl.java:340)

at weblogic.ejb20.deployer.BeanInfoImpl.<init>(BeanInfoImpl.java:189)

at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.<init>(ClientDrivenBeanInfoImpl.java:179)

at weblogic.ejb20.deployer.SessionBeanInfoImpl.<init>(SessionBeanInfoImpl.java:74)

at weblogic.ejb20.deployer.BeanInfoImpl.createBeanInfoImpl(BeanInfoImpl.java:364)

at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:548)

at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:232)

at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:155)

at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:415)

at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:397)

at weblogic.ejbc20.runBody(ejbc20.java:517)

at weblogic.utils.compiler.Tool.run(Tool.java:146)

at weblogic.utils.compiler.Tool.run(Tool.java:103)

at weblogic.marathon.tasks.EJBCTask.runBackground(EJBCTask.java:140)

at weblogic.tools.jellybeans.core.task.TaskThread.execute(TaskThread.java:127)

at weblogic.tools.jellybeans.core.task.TaskThread.run(TaskThread.java:64)

Was caught at:

weblogic.tools.jellybeans.util.AssertionFailureException: Unexpected exception: headfirst/AdviceBean (Unsupported major.minor version 49.0)

at weblogic.tools.jellybeans.util.AssertUtil.handleUnexpectedException(AssertUtil.java:46)

at weblogic.marathon.tasks.EJBCTask.runBackground(EJBCTask.java:202)

at weblogic.tools.jellybeans.core.task.TaskThread.execute(TaskThread.java:127)

at weblogic.tools.jellybeans.core.task.TaskThread.run(TaskThread.java:64)
 
Rajasekar Elango
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This exception will be thrown if you try to run a class in jvm version that is not compactible with the java version in which the program is compiled.

Recompile you application with the java version in which you are deploying..

Regards,
Raja
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!