Our vBulletin migration is complete.
Welcome vBulletin users! All content and user information from the Micro Focus Forums (vBulletin) site has been migrated to this site. READ MORE.
Highlighted
Established Member.. Iegor S
Established Member..
637 views

Diagnostics Agent - Application starts with errors after instrumentation.

Hello! I’m trying to set up monitoring of a Java application (WSO2 Enterprise Integrator 6.1, EI) with Diagnostics 9.40 agent. WSO2 EI works on Oracle Java 8u144. The application starts with errors after instrumentation, the web admin GUI of the EI is unavailable bus some services are working. The agent is connecting to the Diag server and shows some monitoring data.

At the same time, an older version of the application (WSO2 Enterprise Service Bus 4.9) works fine being instrumented in the same way.

 

Here are the options I added to startup script:

set AGENT_HOME=C:\DiagnosticsJavaAgent

set PROBE_ID=WinEI61

"%JAVA_HOME%\bin\java" -jar %AGENT_HOME%\lib\jreinstrumenter.jar -f %PROBE_ID%

set PROBE_OPTS=-Xbootclasspath/p:%AGENT_HOME%\classes\%PROBE_ID%\instr.jre

set PROBE_OPTS=%PROBE_OPTS% -agentpath:%AGENT_HOME%\lib\x86-windows64\jvmti.dll

set PROBE_OPTS=%PROBE_OPTS% -javaagent:%AGENT_HOME%\lib\probeagent.jar

set PROBE_OPTS=%PROBE_OPTS% -Dprobe.id=%PROBE_ID%

set JAVA_OPTS=%JAVA_OPTS% %PROBE_OPTS%

 

And here are the application errors:

2017-12-08 04:13:16,817] [] ERROR - CarbonUIServiceComponent Failed to activate Carbon UI bundle

java.lang.NoClassDefFoundError: javax/servlet/ServletRequest

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

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

       at org.wso2.carbon.ui.deployment.UIBundleDeployer.processServletDefinitions(UIBundleDeployer.java:314)

       at org.wso2.carbon.ui.deployment.UIBundleDeployer.processComponentXML(UIBundleDeployer.java:259)

       at org.wso2.carbon.ui.deployment.UIBundleDeployer.processUIBundle(UIBundleDeployer.java:170)

       at org.wso2.carbon.ui.deployment.UIBundleDeployer.deploy(UIBundleDeployer.java:92)

       at org.wso2.carbon.ui.internal.CarbonUIServiceComponent.start(CarbonUIServiceComponent.java:299)

       at org.wso2.carbon.ui.internal.CarbonUIServiceComponent.activate(CarbonUIServiceComponent.java:132)

       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

       at java.lang.reflect.Method.invoke(Method.java:498)

       at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)

       at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)

       at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)

       at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)

       at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)

     at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)

       at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)

       at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)

       at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)

       at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

      at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

       at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)

       at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)

       at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)

       at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)

       at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)

       at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)

       at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:514)

       at org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290)

       at org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118)

       at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)

       at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

       at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletRequest cannot be found by org.wso2.carbon.dataservices.google.tokengen_4.4.10

       at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)

       at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)

       at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)

       at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

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

       ... 35 more

 

I will be appreciate for ideas on how to fix it.

Tags (2)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.