This WebLog is only valid for those SAP NetWeaver CE Trial Versions which were …
- downloaded from SDN prior to May 7th 2007,
- installed on the SAP NetWeaver CE Trial Version DVD distributed at Sun’s JavaOne Conference 2007 in San Francisco.
Also look at SAP Note 1051564 which addresses the same issue.
When running a Web Dynpro Java application from the Web Dynpro Tools by selecting the context menu item Deploy new Archive and Run or just Run, the SAP NetWeaver CE Developer Studio will attach the two URL parameters sap-ser-report-level=3 and sap-mem-report-level=3 by default:.
The Web Dynpro Runtime version installed in the current SAP NetWeaver CE Trial Version throws a java.lang.NoClassDefFoundError exception in case the Web Dynpro session and memory analyis is activated via these two specific URL parameters:
“Application error occurred during the request procession.”
java.lang.NoClassDefFoundError: com/sap/vmc/core/impl/sapjvm/sharing/NativeSharedClosureImpl : cannot initialize class because prior initialization attempt failed at
Solution – Deactivate Session and Memory Analysis
To avoid this runtime error you just have to deactivate the Web Dynpro session and memory analysis within the Web Dynpro – Project Handling preferences inside the Developer Studio of your SAP NetWeaver CE Trial Version.
- Select menu item Window – Preferences
- In the preferences tree open node Web Dynpro – Project Handling.
- In the group box URL parameters deactivate session and memory analysis.
When running your Web Dynpro application again the above runtime exception will not occur.
Enjoy Web Dynpro Java in the new SAP NetWeaver CE Trial Version,
Bertram Ganz, NW ESI F UI – Web Dynpro Foundation for Java, SAP AG