skip to main content

SAP NetWeaver Newbie

Invalid layout of preloaded class when starting SAP JVM

Most admins would have set up the SAP systems to get it monitored or analyzed by Solution Manager systems. Therefore the SAP JVMs are enabled with a connector to Wily Introscope. The AutoProbe Connector is compiled using the current JVM and can only be started if the JVM remains unchanged.

You cant start JVM without compiling connector and you cant compile connector without JVM


When you patch the JVM or switch from third party JVM to SAP JVM, the connector class does not load. The JVM startup fails with one of the following errors:
  • Invalid layout of java.lang.ClassLoader at uniqueId
  • fatal error: Invalid layout of preloaded class
  • Attempting to run an AutoProbe Connector with an incompatible JVM
  • Attempting to run an AutoProbe Connector with an different JVM

To get the JVM to start, remove the following VM parameters using Config Tool:

-Dcom.wily.introscope.agent.agentName=<SID>_<Instance>_server<x>

-Dcom.wily.introscope.agentProfile=D:/usr/sap/<SID>/.../applications.config/com.sap.smd.agent.application.wily/BytecodeAgent/ISAGENT.8.2.4.006-26/wily/IntroscopeAgent.profile

-Xbootclasspath/p:D:/usr/sap/<SID>/.../applications.config/com.sap.smd.agent.application.wily/BytecodeAgent/ISAGENT.8.2.4.0-201226/wily/connectors/AutoProbeConnector.jar;D:/usr/sap/<SID>/.../applications.config/com.sap.smd.agent.application.wily/BytecodeAgent/ISAGENT.2012-06-26/wily/Agent.jar

In order to get the AutoProbe Connector working again, you have to recompile the connector using the JVM you intend to use.

You can do this using SOLMAN_SETUP > "Managed Systems Setup" > "Configure Automatically"  > "Byte Code Adpater Installation"

or compile the AutoProbe connector manually by executing the following example commands

cd /usr/sap/<SID>/SMDA<Instance-ID>/SMDAgent/applications.config/com.sap.smd.agent.application.wily/BytecodeAgent/ISAGENT*/wily/connectors

java -jar CreateAutoProbeConnector.jar -jvm /sapmnt/<SID>/exe/sapjvm_5 -output connector.jar

2 comments:

  1. Thanks for the post, it helped in a lot and saved my time.

    ReplyDelete

Email Subscription

Get every new post into your inbox by subscribing us.

Want a reason to subscribe?
1. This sitemap might convince you to subscribe.
2. We do not misuse email IDs. We respect privacy.

© 2008 - 2017 sapnwnewbie. All rights reserved.