on 03-22-2010 1:01 PM
Hello All,
I am getting the following Error when I run a recently deployed aplication. Please suggest a solution
java.lang.UnsupportedClassVersionError: com/pg/sns/npi/admin/config/wdp/InternalNPIConfigurationComp (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:540)
at com.sap.engine.services.deploy.server.ApplicationLoader.defineClassWithInterception(ApplicationLoader.java:168)
at com.sap.engine.services.deploy.server.ApplicationLoader.loadLocalClass(ApplicationLoader.java:140)
at com.sap.engine.frame.core.load.ResourceLoader.loadClass(ResourceLoader.java:127)
at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:365)
at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:65)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:51)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:382)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:783)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:303)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Mrinalini
Hi,
This message appears when you are trying to deploy a application on an environment where the JDK version used to compile the code is not compatible. Example : Using NWDS 7.1 CE (Compile) and NW2004s (Deploy)
Please give details about you environment.
Best regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Both the previous answers are correct. If you are using NWDS 7.0, which supports JDK 1.4. while installing NWDS you might have not noticed that it asks for JDK to select and by default it selects the higher version of JDK. You migh tbe having higher Java version in your system.
Take a backup of project and reinstall NWDS 7.0 with JDK 1.4, It should fix the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
We have a file .ini on same directory of Developer Studio Executable. Edit this file and put the jdk that you want to use.
It like follow:
-
SapNetweaverDeveloperStudio.ini -
-vm
C:\Java\jdk1.5.0_22\bin\javaw.exe
-showsplash
com.sap.netweaver.developerstudio
--launcher.XXMaxPermSize
256m
-vmargs
-Xmx512m
-Xms128m
-XX:PermSize=32m
-XX:MaxPermSize=256m
-Dfile.encoding=UTF-8
-Dosgi.requiredJavaVersion=1.5
This sample is of a 7.1 version, so maybe your 7.0 is different, just verify the -vm parameter
Best regards
Small FYI in addition to comment from previous poster: Whenever you compile Java source code, the compiler adds certain information into the class file. Part of this is information about which Java version is required to run the source code, which is indicated via a major/minor version (see e.g. [class file format specification|http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#75883] or the [Wikipedia page|http://en.wikipedia.org/wiki/Class_%28file_format%29]).
Note that you could still utilize a newer javac version to compile Java classes for a lower version of the JVM. That's what the compiler options -source and -target are used for. E.g. for JDK 5 you can find the help on javac on Windows [here|http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javac.html].
Anyhow in your specific case version 49.0 points to JSE 5.0; if you get a complaint about that, you must be trying to run those compiled class files in a JVM of version lower than 5.0.
Cheers, harald
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.