cancel
Showing results for 
Search instead for 
Did you mean: 

Issue while running WDJ app on EP7.4

Former Member
0 Kudos

My NWDS version is SAP NetWeaver Developer Studio SAP NetWeaver 7.3 SP02 PAT0003 while the portal version is 7.40

While i am able to deploy the Custom WDJ but when i am running the WD application , I am getting the given error message:

The initial exception that caused the request to fail, was:

java.lang.UnsupportedClassVersionError: com/sap/demo/test/wd/comp/new1comp/wdp/InternalNew1Comp : Unsupported major.minor version 51.0

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

    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:735)

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

    at com.sap.engine.boot.loader.ResourceMultiParentClassLoader.loadClassLocal(ResourceMultiParentClassLoader.java:189)

    at com.sap.engine.boot.loader.MultiParentClassLoader.findClassInLoaderGraph(MultiParentClassLoader.java:316)

    ... 56 more

See full exception chain for details.

******************

Detailed Exception Chain

java.lang.UnsupportedClassVersionError: com/sap/demo/test/wd/comp/new1comp/wdp/InternalNew1Comp : Unsupported major.minor version 51.0

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

  at java.lang.ClassLoader.defineClassCond(ClassLoader.java:735)

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

  at com.sap.engine.boot.loader.ResourceMultiParentClassLoader.loadClassLocal(ResourceMultiParentClassLoader.java:189)

  at com.sap.engine.boot.loader.MultiParentClassLoader.findClassInLoaderGraph(MultiParentClassLoader.java:316)

  at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:275)

  at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:247)

  at java.lang.Class.forName0(Native Method)

  at java.lang.Class.forName(Class.java:249)

  at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:62)

  at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:79)

  at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:381)

  at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:564)

  at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doPreprocessing(ClientApplication.java:1457)

  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:660)

  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:349)

  at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:326)

  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)

  at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:89)

  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:55)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

  at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)

  at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)

  at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:457)

  at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)

  at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)

  at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)

  at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)

  at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

  at ***************************

com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.

Accepted Solutions (1)

Accepted Solutions (1)

Stefan-EA
Contributor
0 Kudos

Saket Kumar wrote:

My NWDS version is SAP NetWeaver Developer Studio SAP NetWeaver 7.3 SP02 PAT0003 while the portal version is 7.40

While i am able to deploy the Custom WDJ but when i am running the WD application , I am getting the given error message:

The initial exception that caused the request to fail, was:

java.lang.UnsupportedClassVersionError: com/sap/demo/test/wd/comp/new1comp/wdp/InternalNew1Comp : Unsupported major.minor version 51.0

You compiled your code with Java 7; it needs to be compiled with Java 6. You should also use NWDS 7.31 with NW 7.40.

Download SAP JVM 6 from here

https://nwds.sap.com/swdc/downloads/updates/netweaver/nwds/nw/731/doc/prerequisites.html

Download NWDS 7.31 from here

https://nwds.sap.com/swdc/downloads/updates/netweaver/nwds/nw/731/doc/auto_com.sap.ide.updatesite.to...

Once you have installed NWDS, add the following to the "SapNetweaverDeveloperStudio.ini" file


-vm

C:\Program Files\SAP\SAP JVM 6 (61_REL i486 opt)\bin

Former Member
0 Kudos

Hi Stefen,

1)So you want me to download the NWDS 7.31 from the link provided.

2)Once the NWDS 7.31 is installed you want me to

3)download SAP JVM 6 from the link provided and

4)install the same.

5)Once this SAP JVM 6 is installed you want me

6)to include the corresponding JRE for SAP JVM 6 in the NWDS path Windows->Preference->Java->Installed JRE as per screen provided.

Please correct the steps above as mentioned. In case the above mentioned steps are fine. Is it required to set the JAVA_HOME path to this new JVM. I am having eclipse which uses JDK 7 , so i have to keep the same on my system

Stefan-EA
Contributor
0 Kudos

Saket,

Please perform the following steps

1) Download SAP JVM 6 and and the native libraries from here

https://nwds.sap.com/swdc/downloads/updates/netweaver/nwds/nw/731/doc/prerequisites.html

2) Download NWDS 7.31 from here

https://nwds.sap.com/swdc/downloads/updates/netweaver/nwds/nw/731/doc/auto_com.sap.netweaver.develop...

3) Install the native libraries

4) Install SAP JVM 6

5) Unzip NWDS 7.31 in a folder. Create a shortcut and add it to your start menu

6) Adjust the "SapNetweaverDeveloperStudio.ini" file to point to the installed SAP JVM 6

-vm

C:\Program Files\SAP\SAP JVM 6 (61_REL i486 opt)\bin

Double check that NWDS is using the SAP JVM 6 and not JDK 1.7.

SAP JVM 6 should not interfere with JDK 1.7 (or another other JDK) or other versions of Eclipse.

Former Member
0 Kudos

Hi Stefen,

Thanks for the response. I was able to deploy the custom WDJ on the EP7.4 with the SAP JVM. The higer version of NWDS wasnt required and i was able to deploy on EP7.4 with NWDS  SAP NetWeaver Developer Studio SAP NetWeaver 7.3 SP02 PAT0003. Just added the new SAP JVM path in the NWDS.

I have another query now. I could see the custom WDJ on the portal within the WDJ Application  section of the Content Admin ->PCD. Now i want to delete the same, i dont see the option of deleting the custom WDJ. Kindly advise.

Stefan-EA
Contributor
0 Kudos

The higer version of NWDS wasnt required and i was able to deploy on EP7.4 with NWDS

It will work, but for for maximum compatibility, you should use NWDS 7.31 with NW 7.40


I have another query now. I could see the custom WDJ on the portal within the WDJ Application  section of the Content Admin ->PCD. Now i want to delete the same, i dont see the option of deleting the custom WDJ. Kindly advise.

You will need to undeploy the application from NWDS using the deployment perspective

Former Member
0 Kudos

Hi Stefen,

Thanks for your support.

While I am able to deploy my WDJ ( please refer below screen)

I cant still see the same in the deployment perspective.( please refer below)

Stefan-EA
Contributor
0 Kudos

In the deployment perspective, there should be a Repository Explorer. This will give you an overview of everything that is deployed on the server. To undeploy the DC, right click on it and add it to your undeployment list (as per your screen shot).

Former Member
0 Kudos

Hi Stefen,

I have now installed SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.3 SP11 PAT0002 as per the instruction provided above. This is now working for me  and i am able to deploy the custom WDJ and able to run it.

I have now another problem :

1) when i define the SAP AS JAVA system in NWDS as per the screen below. It  only remains for that session. The entry does not reflect in the wizard though i am able to run the application on the server.

2) When i go to the deployment perspective i get the given error message , please refer the screen below and detailed error message below.Seems the SAP AS Java details are not being fetched, though i am able to run the application on the server. Seems the system details are not getting stored.

java.lang.NullPointerException: while trying to invoke the method java.lang.String.equals(java.lang.Object) of an object returned from com.sap.deployment.ui.nodes.SystemNode.getName()

  at com.sap.deployment.ui.nodes.SystemRootNode.addSystem(SystemRootNode.java:67)

Stefan-EA
Contributor
0 Kudos

The two problems may be related to a security setting on the AS Java.

Take a look at the following to see if that may solve the issue.

http://wiki.scn.sap.com/wiki/display/Java/NWDS+Troubleshooting#NWDSTroubleshooting-TSG_NWDS0

Former Member
0 Kudos

Hi Saket,

I am also facing same problem, once i deployed Webdynpro appliation. please find below error message:

Please let me know, how you solved the issue.

Error Message:

An exception "java.lang.UnsupportedClassVersionError: com/sap/demo/testwebdynpro/wd/comp/testcomp/wdp/InternalTestComp : Unsupported major.minor version 51.0" has occured during application processing. During exception handling, an additional exception "java.lang.SecurityException: User not authorized." was thrown. Both exception has been written to the logfile!

Please find below log file screenshots.

1. Log 1

2. Log 2

3.Installed JREs

4. Compiler

5.  Execution  Environment

6. JAVA_HOME path

7. Path

Thanks

Siva.

Stefan-EA
Contributor
0 Kudos

Siva,

You need to use SAP JVM6 and not JDK 1.7

Take a look here on installing JVM6

Former Member
0 Kudos

Hi Stefan,

Thanks for your quick reply.

As you mentioned in above discussion, i tried to download the JVM6, but it is asking authorization shown in below screen.

how can i get this authorization access.

JVM Screenshot

Thanks

Siva.

junwu
Active Contributor
0 Kudos

sap service market account

junwu
Active Contributor
0 Kudos

for u, just use jdk6. not jdk7,  no need for sap jvm

Former Member
0 Kudos

Hi Siva,

I was facing the same issue, I installed SAP JVM which fixed the issue.

Kindly install SAP JVM. You would need a SAP marketplace ID for the same.

Once you have installed the SAP JVM, you need to configure the path for the same in the installed JRE as per screenshot 3 provided by you above.

Rgds

Saket Kumar

Answers (1)

Answers (1)

Former Member
0 Kudos

Make sure you use compatible JDK versions on NWDS and AS JAVA. Also make sure your NWDS is updated to match the SP of AS JAVA. See SAP note 1791485 for details.