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 - Enable to instrument AOP loaded classes
Summary: Enable to instrument AOP loaded classes
Status: RESOLVED DUPLICATE of bug 125645
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on: 122631
Blocks:
  Show dependency tree
 
Reported: 2008-03-12 10:27 UTC by elkouti
Modified: 2008-03-12 11:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***