Is there a particular reason you are trying to use the JVMTI profiler and not the PI based profiler that is more integrated? We have done JBoss and other J2EE servers many times with that agent technology.
Thanks for your time.
--------------------------------------------------------------------------
Harm Sluiman, STSM,
phone:905-413-4032 fax: 4920
cell: 1-647-300-4758
mailto:[EMAIL PROTECTED]
Admin : Arlene Treanor [EMAIL PROTECTED] Tie: 969-2323 1-905-413-2323
"Rafael Nami" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]07/28/2006 01:01 PM
Please respond to
TPTP Tracing and Profiling Tools Project developer discussions < tptp-tracing-profiling-tools-dev@eclipse.org>
To"TPTP Tracing and Profiling Tools Project developer discussions" < tptp-tracing-profiling-tools-dev@eclipse.org> cc SubjectRe: [tptp-tracing-profiling-tools-dev] Java Profiler makes myJ2EE/JBoss app inconsistent in standalone mode
Well, I've tried to filter all *$$CGLIBENHANCED$$* classes, but with no luck. It's still complaining about the CGLIB and classpaths... I'll try to add JBoss in the javaprofiler classpath (or the javaprofiler in JBoss classpath) to fix this.
Best regards
2006/7/28, Rafael Nami < [EMAIL PROTECTED]>:
I've tried, same result - I think is something with $CGLIB... I'll try to add a filter on this...
2006/7/28, Rafael Nami <[EMAIL PROTECTED] >:
Sorry for the lack of information, Yaffe.
Sun JDK 1.5.0 Update 7B3
Hibernate 2.7
EJB 2.1
EHCache
Windows 32 bits
I'll try your suggestions
Thanks and best regards
Rafael Mauricio Nami
2006/7/28, Yaffe, Asaf < [EMAIL PROTECTED]>:Hi,
Please provide us with the following information:
- The version and vendor of the JVM you are using.
- The 3rd-party technologies your J2EE application uses ( e.g, Hibernate? anything else?)
- O/S version (Windows, Linux, …) and processor architecture (including whether it is 32 or 64 bit).
This problem probably happens as a result of the byte code instrumentation the JVMTI Profiler is doing in order to track your application. You may have found a problem with our implementation.
You can try to filter-out the JBoss and Hibernate classes (and any other system classes you probably don't really care about) and see if it helps.
To do that, create a regular text file, and define a filter set similar to the following:
myapppackage.* * INCLUDE
* * EXCLUDE
Where "myapppackage" refers to the top-level package of your application. The exact format of the filter file is specified in the TPTP documentation under "Profiling your application in standalone mode".
Add the following argument to the –agentlib:… Java option: filters=<full path to the filter text file>
Example: -agentlib:JPIBootLoader:JPIAgent:server=standalone, filters=filters.txt;CGProf
Then try to profile your application with these filters enabled and see whether the problem persists.
HTH,
Asaf
--
Asaf Yaffe
Eclipse TPTP Committer, Platform Project (JVMTI Profiler)
From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] ] On Behalf Of Rafael Nami
Sent: Friday, July 28, 2006 2:50 PM
To: TPTP Tracing and Profiling Tools Project developer discussions
Subject: [tptp-tracing-profiling-tools-dev] Java Profiler makes myJ2EE/JBoss app inconsistent in standalone mode
Dear All
I'm trying to profile in standalone mode an application running on a jboss server (3.2.7).
To use the Java Profiler, I have to call the application with the -agentlib:JPIBootLoader=JPIAgent:server=standalone;CGProf
parameter. Well, I've added this in the JAVA_OPTS configuration on the run.bat in jboss.
This application is a J2EE app, with EJB 2.1, and classloader share between the webapplication (app.war) and the ejb classloader (app.ear and framework.ear ).
If I start the application without profile, it works fine, but when I try to start profiling, the profiler works correctly, but mades the application inconsistent - the application in profiling throws the following error on startup:
08:34:52,734 INFO [ReflectHelper] reflection optimizer disabled for: br.com.net
servicos.core.bean.sn.SnTipoCobrancaBean, VerifyError: (class: br/com/netservico
s/core/bean/sn/SnTipoCobrancaBean$$BulkBeanByCGLIB$$f81284bc, method: setPropert
yValues signature: (Ljava/lang/Object;[Ljava/lang/Object;)V) Inconsistent stack
height 1 != 3
08:34:52,765 INFO [ReflectHelper] reflection optimizer disabled for: br.com.net
servicos.core.bean.cp.CpBaseAcessoBean, VerifyError: (class: br/com/netservicos/
core/bean/cp/CpBaseAcessoBean$$BulkBeanByCGLIB$$dd5a3645, method: setPropertyVal
ues signature: (Ljava/lang/Object;[Ljava/lang/Object;)V) Inconsistent stack heig
ht 1 != 3
08:34:52,796 INFO [ReflectHelper] reflection optimizer disabled for: br.com.net
servicos.core.bean.so.SoConsumidorMatBean, VerifyError: (class: br/com/netservic
os/core/bean/so/SoConsumidorMatBean$$BulkBeanByCGLIB$$cb7c496c, method: setPrope
rtyValues signature: (Ljava/lang/Object;[Ljava/lang/Object;)V) Inconsistent stac
k height 1 != 3
08:34:53,015 ERROR [LazyInitializer] CGLIB Enhancement failed
java.lang.VerifyError: (class: br/com/netservicos/core/bean/so/SoConsumidorMatBe
an$$EnhancerByCGLIB$$b017acd2, method: CGLIB$STATICHOOK1 signature: ()V) Inconsi
stent stack height 1 != 2at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
at java.lang.Class.getDeclaredMethod(Class.java :1907)
at net.sf.cglib.proxy.Enhancer.getCallbacksSetter(Enhancer.java:558)
at net.sf.cglib.proxy.Enhancer.setCallbacksHelper (Enhancer.java:546)
at net.sf.cglib.proxy.Enhancer.setThreadCallbacks (Enhancer.java:536)
at net.sf.cglib.proxy.Enhancer.createUsingReflection ( Enhancer.java:562)
at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:493)
at net.sf.cglib.core.AbstractClassGenerator.create (AbstractClassGenerato
r.java:220)
at net.sf.cglib.proxy.Enhancer.createHelper (Enhancer.java:368)
at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:280)
at net.sf.cglib.proxy.Enhancer.create (Enhancer.java :597)
at net.sf.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazy
Initializer.java:74)
at net.sf.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFa
ctory.java :36)
at net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEnt
ityPersister.java:817)
at net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.jav
a:690)
at net.sf.hibernate.persister.PersisterFactory.createClassPersister(Pers
isterFactory.java:42)
at net.sf.hibernate.impl.SessionFactoryImpl .<init>(SessionFactoryImpl.ja
va:137)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory (Configuration.
java:805)
at net.sf.hibernate.jmx.HibernateService.buildSessionFactory(HibernateSe
rvice.java:163)
at net.sf.hibernate.jmx.HibernateService.start (HibernateService.java:130
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:60)
at org.jboss.mx.server.Invocation.dispatch (Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java :54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.
java:198)
at org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:473)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:911)
at $Proxy19.start(Unknown Source)
at org.jboss.system.ServiceController.start (ServiceController.java:415)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:60)
at org.jboss.mx.server.Invocation.dispatch (Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke (Invocation.java :82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.
java:198)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke (MBeanProxyExt.java:176)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start (SARDeployer.java:251)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:829)
at org.jboss.deployment.MainDeployer.start (MainDeployer.java :821)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java :604)
at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke (Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch (ReflectedDispatcher.
java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch (Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke (Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.
java:198)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke (MBeanProxyExt.java:176)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:304)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan (URLDeploymentS
canner.java:478)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread .
doScan(AbstractDeploymentScanner.java:201)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService (A
bstractDeploymentScanner.java:274)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart (ServiceMBeanS
upport.java:271)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:221)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke (Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:60)
at org.jboss.mx.server.Invocation.dispatch (Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch (Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke (Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:198)
at org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:473)
at org.jboss.system.ServiceController$ServiceProxy.invoke (ServiceControl
ler.java:899)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start (ServiceController.java:415)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java :82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:198)
at org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke (MBeanProxyExt.java:176)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
at org.jboss.deployment.MainDeployer.start (MainDeployer.java:829)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java :641)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java :588)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke (Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch (ReflectedDispatcher.
java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch (Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke ( Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:198)
at org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke (MBeanProxyExt.java:176)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart (ServerImpl.java :407)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
at org.jboss.Main.boot (Main.java:191)
at org.jboss.Main$1.run (Main.java:480)
at java.lang.Thread.run(Thread.java :595)
08:34:53,031 INFO [HibernateServiceMBean] Could not build SessionFactory using
the MBean classpath - will try again using client classpath: CGLIB Enhancement f
ailed
What am I doing wrong?
Thanks in advance and best regards
Rafael Mauricio Nami
_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev
_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev
_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev
_______________________________________________ tptp-tracing-profiling-tools-dev mailing list tptp-tracing-profiling-tools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev