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 107545 - Can't attach profiler to weblogic due to aspectj5 error
Summary: Can't attach profiler to weblogic due to aspectj5 error
Status: RESOLVED INVALID
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
: 130444 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-20 23:46 UTC by xigua
Modified: 2008-03-19 21:26 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 xigua 2007-06-20 23:46:58 UTC
I was able to manually modified the weblogic9.1 startup script but as soon as the profiler was attached to the JVM, I
started getting a lot of Exception about AspectJ5 can't weave hotswapped class. Our web app uses the load time weaving
feature of aspectj5 and I tried both the 5.1.3 version of the aspectjweaver.jar and the current development version of
the aspectjweaver.jar but neither worked. 

java.lang.Exception: AspectJ5 does not weave hotswapped class (sun/nio/cs/MS1252)
        at org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:56)
        at sun.instrument.TransformerManager.transform(TransformerManager.java:131)
        at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:155)
        at com.sun.tools.profiler.server.system.Classes.doRedefineClasses(Native Method)
        at com.sun.tools.profiler.server.system.Classes.redefineClasses(Classes.java:59)
        at com.sun.tools.profiler.server.ProfilerInterface.instrumentMethodGroupNow(ProfilerInterface.java:628)
        at com.sun.tools.profiler.server.ProfilerInterface.getAndInstrumentClasses(ProfilerInterface.java:484)
        at com.sun.tools.profiler.server.ProfilerInterface.classLoadHook(ProfilerInterface.java:794)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at sun.nio.cs.FastCharsetProvider.lookup(FastCharsetProvider.java:110)
        at sun.nio.cs.FastCharsetProvider.charsetForName(FastCharsetProvider.java:120)
        at java.nio.charset.Charset.lookup2(Charset.java:450)
        at java.nio.charset.Charset.lookup(Charset.java:438)
        at java.nio.charset.Charset.isSupported(Charset.java:477)
Comment 1 Tomas Hurka 2007-06-21 09:07:23 UTC
I do not see anything wrong from the profiler point of view. Profiler wants to redefine sun/nio/cs/MS1252 class, which is probably generated on the fly and 
aspectj does not handle it. Note that java.lang.Exception is used to print stack trace only, there is no throw statement. 
ClassPreProcessorAgentAdapter.java source is available here:
http://dev.eclipse.org/viewcvs/index.cgi/org.aspectj/modules/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java?
root=Tools_Project&view=markup

Comment 2 J Bachorik 2008-03-19 21:26:19 UTC
*** Issue 130444 has been marked as a duplicate of this issue. ***