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 55580 - jEdit crashes in a reflection call
Summary: jEdit crashes in a reflection call
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: mishadmitriev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-27 09:53 UTC by mishadmitriev
Modified: 2006-07-24 14:31 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 mishadmitriev 2005-02-27 09:53:48 UTC
When I try to CPU profile jEdit (version 4.1
final) using whole app instrumentation, it crashes
with the following exception:

[error] java.lang.IllegalAccessException: Class
java.lang.reflect.Method can not
 access a member of class org.gjt.sp.jedit.Java14
with modifiers "public static"

[error]         at
sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)

[error]         at
java.lang.reflect.Method.invoke(Method.java:319)
[error]         at
org.gjt.sp.jedit.jEdit.main(Unknown Source)
[error]         at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[error]         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[error]         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[error]         at
java.lang.reflect.Method.invoke(Method.java:324)
[error]         at
com.sun.tools.profiler.server.ProfilerServer.runTargetApp(Pro
filerServer.java:292)
[error]         at
com.sun.tools.profiler.server.ProfilerServer.main(ProfilerSer
ver.java:126)


The most likely reason is that the JVM dislikes
our instrumented copy of
java.lang.reflect.Method.invoke() - it's different
from the reference to that method it remembers
since startup time. But this problem has never
been observed before, thus it needs a deep enough
investigation.
Comment 1 mishadmitriev 2005-02-27 20:06:15 UTC
Raising the priority in accordance with guidelines.
Comment 2 mishadmitriev 2005-03-09 18:37:00 UTC
Fixed in M6 by making a modification to our customized JVM. A bug is filed for
the same issue against the mainstream JDK 5/6 JVM.
Comment 3 ehucka 2006-07-24 14:31:26 UTC
old issue, closed