This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 129874

Summary: Enable to instrument AOP loaded classes
Product: profiler Reporter: elkouti <elkouti>
Component: BaseAssignee: issues@profiler <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 122631    
Bug Blocks:    

Description elkouti 2008-03-12 10:27:31 UTC
I've tried to instrument a J2ee application deployed on jonas server.
my application is using Springframework for building my business objects (using AOP).
Netbeans profiler failed to instrument all proxy classes that where loaded and previously instrumented by spring
framework; a NullPointerException was raised by netbeans profiler code and blocked the application. The exception is
raised when classes loaded and initialized by spring are instrumented.
Please find below a snapshot of the top exception trace:

java.lang.NullPointerException
	at org.netbeans.lib.profiler.server.ClassBytesLoader.getClassFileBytes(ClassBytesLoader.java:72)
	at org.netbeans.lib.profiler.server.ProfilerInterface.classLoadHook(ProfilerInterface.java:860)
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
	at java.lang.Class.getConstructor0(Class.java:2640)
	at java.lang.Class.getConstructor(Class.java:1629)
	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:587)
	at sun.reflect.annotation.AnnotationParser.annotationForMap(AnnotationParser.java:239)
Comment 1 elkouti 2008-03-12 10:33:32 UTC
It seems to be related to Annotation as cited by issue N° 122631

regards,
Anis
Comment 2 J Bachorik 2008-03-12 11:08:42 UTC

*** This issue has been marked as a duplicate of 125645 ***