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.
Summary: | Remote profiling Glassfish v2U1 abruptly ends with NPE | ||
---|---|---|---|
Product: | profiler | Reporter: | J Bachorik <yardus> |
Component: | Base | Assignee: | J Bachorik <yardus> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
J Bachorik
2008-01-21 09:22:54 UTC
This is caused by a synthetic class being loaded by the system classloader. The profiler tries to load the bytecode from the file defining the class but there is none. Added a simple check for this cases. Checking in ClassBytesLoader.java; /cvs/profiler/libs/jfluid/src/org/netbeans/lib/profiler/server/ClassBytesLoader.java,v <-- ClassBytesLoader.java new revision: 1.2; previous revision: 1.1 done changing milestone *** Issue 122631 has been marked as a duplicate of this issue. *** *** Issue 129874 has been marked as a duplicate of this issue. *** *** Issue 133062 has been marked as a duplicate of this issue. *** I'm using the 6.1 version of the profiler and the issue seems to be there, I'm trying to profile tomcat 5x remotely : Exception in thread "Thread-6" 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) at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:229) at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69) at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52) at java.lang.Class.initAnnotationsIfNecessary(Class.java:2998) at java.lang.Class.getAnnotation(Class.java:2958) at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:104) at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:64) at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:202) at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69) at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52) at java.lang.Class.initAnnotationsIfNecessary(Class.java:2998) at java.lang.Class.getAnnotation(Class.java:2958) at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:104) at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:64) at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:202) ... Best regards, Anis From the stacktrace it looks like you are running old version of the code. Note that for remote profiling the fix is in 6.1 remote pack. So it does not matter if you are using NetBeans 6.1, you have to have correct remote pack. VERIFIED in build 200812180001 |