-sh-2.05b# ./startup_jensor.sh
Finding Platform info ...
Current platform is Linux
Executing Shell Command
>>> START_AT_APPLICATION_BOOT=true
>>> CAPTURE_OBJECT_INSTANTIATION=false
>>> Currently not capturing Object Instantiations data
Filter Application Details : FALSE : false
JC-000: Jensor v1.8 is being used
JC-001: Java Profiler: starting
JC-002: Available Processors 1
JC-003: Initialized with memory 253MB
JC-004: Current free memory 252MB
JC-005: Current working Directory /root/osgi
JC-006: JENSOR_HOME : /root/Jensor
JC-008: **** No class filters applied. Profiler will profile all application classes ****
JC-009: JensorServer listening at port 21999
osgi> log4j:WARN No appenders could be found for logger (ch.ethz.iks.slp.impl.SLPCore).
log4j:WARN Please initialize the log4j system properly.
org.osgi.framework.BundleException: The activator XXX.XXXX.dpd.baekdu.core.subsystems.authorization.AuthorizationActivator for bundle CoreSS_Authorization is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Unknown Source)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(Unknown Source)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(Unknown Source)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(Unknown Source)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: com/tcs/perc/jensor/core/Profile
Plz Help me.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For Jensor to work, it is important that all the Jensor classes get loaded before any instrumented class is called. Try putting Jensor jar first in the classpath followed by osgi jar. Not sure if this will work, but its worth a try.
Besides, the output that you see on the console comes from Profile class only, so why suddenly a java.lang.NoClassDefFoundError is a mystery to me right now.
Havent tried Jensor on Eclipse anytime. Will try it out and revert if I find a fix.
Regards,
Amol
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi~
I am using osgi framework. I run osgi with Jensor.
-------------------------------------------------------------------------
java -cp org.eclipse.osgi.jar:$JENSOR_HOME/lib/jensorjdk14-v18-unix.jar \ org.eclipse.core.runtime.adaptor.EclipseStarter \ -configuration file:runtime/osgi -os linux -console
--------------------------------------> startup_jensor.sh
But, The following error occurs.
-sh-2.05b# ./startup_jensor.sh
Finding Platform info ...
Current platform is Linux
Executing Shell Command
>>> START_AT_APPLICATION_BOOT=true
>>> CAPTURE_OBJECT_INSTANTIATION=false
>>> Currently not capturing Object Instantiations data
Filter Application Details : FALSE : false
JC-000: Jensor v1.8 is being used
JC-001: Java Profiler: starting
JC-002: Available Processors 1
JC-003: Initialized with memory 253MB
JC-004: Current free memory 252MB
JC-005: Current working Directory /root/osgi
JC-006: JENSOR_HOME : /root/Jensor
JC-008: **** No class filters applied. Profiler will profile all application classes ****
JC-009: JensorServer listening at port 21999
osgi> log4j:WARN No appenders could be found for logger (ch.ethz.iks.slp.impl.SLPCore).
log4j:WARN Please initialize the log4j system properly.
org.osgi.framework.BundleException: The activator XXX.XXXX.dpd.baekdu.core.subsystems.authorization.AuthorizationActivator for bundle CoreSS_Authorization is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Unknown Source)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(Unknown Source)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(Unknown Source)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(Unknown Source)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: com/tcs/perc/jensor/core/Profile
Plz Help me.
Hi Sunny,
For Jensor to work, it is important that all the Jensor classes get loaded before any instrumented class is called. Try putting Jensor jar first in the classpath followed by osgi jar. Not sure if this will work, but its worth a try.
Besides, the output that you see on the console comes from Profile class only, so why suddenly a java.lang.NoClassDefFoundError is a mystery to me right now.
Havent tried Jensor on Eclipse anytime. Will try it out and revert if I find a fix.
Regards,
Amol