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 71270 - ArrayIndexOutOfBoundsException and Profiler Agent Error: Redefinition failed
Summary: ArrayIndexOutOfBoundsException and Profiler Agent Error: Redefinition failed
Status: RESOLVED WORKSFORME
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: J Bachorik
URL:
Keywords:
: 79417 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-11 15:10 UTC by jchristi
Modified: 2007-01-09 14: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 jchristi 2006-01-11 15:10:11 UTC
Profiler Agent: Redefining 100 classes at idx 0, out of total 765
Profiler Agent: Redefining 100 classes at idx 100, out of total 765
Profiler Agent: Redefining 100 classes at idx 200, out of total 765
Profiler Agent: Redefining 100 classes at idx 300, out of total 765
Profiler Agent: Redefining 100 classes at idx 400, out of total 765
Profiler Agent: Redefining 100 classes at idx 500, out of total 765
<R,01/09/06 19:31:09 UTC,STDERR> Jan 9, 2006 7:31:09 PM <one of our log messages
here>
Profiler Agent: Redefining 100 classes at idx 600, out of total 765
Profiler Agent: Redefining 65 classes at idx 700, out of total 765
WARNING: Unexpected error while executing job.
java.lang.ArrayIndexOutOfBoundsException: 1470
       at
com.sun.tools.profiler.server.ProfilerRuntimeCPUFullInstr.methodEntry(ProfilerRuntimeCPUFullInstr.java:92)
       at java.lang.CharacterDataLatin1.toUpperCase(CharacterDataLatin1.java:156)
       at java.lang.Character.toUpperCase(Character.java:4307)
       at java.lang.Character.toUpperCase(Character.java:4274)
       at java.lang.String.regionMatches(String.java:1214)
       at java.lang.String.equalsIgnoreCase(String.java:950)
       at sun.net.spi.DefaultProxySelector$2.run(DefaultProxySelector.java:193)
       at java.security.AccessController.doPrivileged(Native Method)
       at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:182)
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:358)
       at java.net.Socket.connect(Socket.java:507)
       at java.net.Socket.connect(Socket.java:457)
       at java.net.Socket.<init>(Socket.java:365)
       at java.net.Socket.<init>(Socket.java:178)
       at
org.apache.commons.net.DefaultSocketFactory.createSocket(DefaultSocketFactory.java:53)
       at org.apache.commons.net.SocketClient.connect(SocketClient.java:162)
       < A BUNCH OF STACK FRAMES POINTING TO OUR CODE HERE>
       at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
       at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
<R,01/09/06 19:31:22 UTC,STDERR> Jan 9, 2006 7:31:22 PM <one of our log messages
here>
Profiler Agent: 250 classes cached.
Profiler Agent: Redefining 100 classes at idx 0, out of total 299
Profiler Agent: Redefining 100 classes at idx 100, out of total 299
Profiler Agent: Redefining 99 classes at idx 200, out of total 299
Profiler Agent: Redefining 100 classes at idx 0, out of total 304
Profiler Agent: Redefining 100 classes at idx 100, out of total 304
Profiler Agent: Redefining 100 classes at idx 200, out of total 304
Profiler Agent: Redefining 4 classes at idx 300, out of total 304
Profiler Agent: Redefining 100 classes at idx 0, out of total 492
Profiler Agent: Redefining 100 classes at idx 100, out of total 492
<R,01/09/06 19:31:37 UTC,STDERR> Jan 9, 2006 7:31:37 PM <one of our log messages
here>
Profiler Agent: Redefining 100 classes at idx 200, out of total 492
Profiler Agent: Redefining 100 classes at idx 300, out of total 492
Profiler Agent: Redefining 92 classes at idx 400, out of total 492
Profiler Agent: Redefining 100 classes at idx 0, out of total 105
Profiler Agent: Redefining 5 classes at idx 100, out of total 105
Seen with a pre-release of M12

<R,01/09/06 19:32:07 UTC,STDERR> Jan 9, 2006 7:32:07 PM <one of our log messages
here>
<O,01/09/06 19:32:27 UTC,STDOUT> Profiler Agent Error: Redefinition failed for
classes:
<O,01/09/06 19:32:27 UTC,STDOUT> java.util.TreeMap$1
<O,01/09/06 19:32:27 UTC,STDOUT> java.util.Collections$EmptySet
<O,01/09/06 19:32:27 UTC,STDOUT> java.util.Hashtable$KeySet
<O,01/09/06 19:32:27 UTC,STDOUT> java.util.HashMap$EntrySet
<O,01/09/06 19:32:27 UTC,STDOUT> org.jboss.util.collection.ListSet
<O,01/09/06 19:32:27 UTC,STDOUT> java.util.TreeMap$3
<O,01/09/06 19:32:27 UTC,STDOUT> java.util.Hashtable$EntrySet
<O,01/09/06 19:32:27 UTC,STDOUT> java.lang.ProcessEnvironment$CheckedEntrySet
<O,01/09/06 19:32:27 UTC,STDOUT> java.util.AbstractMap$1
<O,01/09/06 19:32:27 UTC,STDOUT> javax.management.Attribute
<O,01/09/06 19:32:27 UTC,STDOUT> java.util.HashSet
<O,01/09/06 19:32:27 UTC,STDOUT> $Proxy42
<O,01/09/06 19:32:27 UTC,STDOUT> java.util.TreeMap$SubMap$EntrySetView
<O,01/09/06 19:32:27 UTC,STDOUT> java.util.TreeSet
<O,01/09/06 19:32:27 UTC,STDOUT> java.util.HashMap$KeySet
<O,01/09/06 19:32:27 UTC,STDOUT> Profiler Agent Error: with message:
Redefinition failed with error 63
Check JVMTI documentation for this error code.
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
java.util.TreeMap$1, into file: java.util.TreeMap$1.class
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
java.util.Collections$EmptySet, into file:
java.util.Collections$EmptySet.class
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
java.util.Hashtable$KeySet, into file:
java.util.Hashtable$KeySet.class
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
java.util.HashMap$EntrySet, into file:
java.util.HashMap$EntrySet.class
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
org.jboss.util.collection.ListSet, into file:
org.jboss.util.collection.ListSet.class
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
java.util.TreeMap$3, into file: java.util.TreeMap$3.class
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
java.util.Hashtable$EntrySet, into file:
java.util.Hashtable$EntrySet.class
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
java.lang.ProcessEnvironment$CheckedEntrySet, into file:
java.lang.ProcessEnvironment$CheckedEntrySet.cl
ass
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
java.util.AbstractMap$1, into file: java.util.AbstractMap$1.class
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
javax.management.Attribute, into file:
javax.management.Attribute.class
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
java.util.HashSet, into file: java.util.HashSet.class
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file: $Proxy42,
into file: $Proxy42.class
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
java.util.TreeMap$SubMap$EntrySetView, into file:
java.util.TreeMap$SubMap$EntrySetView.class
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
java.util.TreeSet, into file: java.util.TreeSet.class
<O,01/09/06 19:32:27 UTC,STDOUT> Debug: writing class file:
java.util.HashMap$KeySet, into file: java.util.HashMap$KeySet.class
<R,01/09/06 19:32:36 UTC,STDERR> Jan 9, 2006 7:32:36 PM <one of our log messages
here>
Comment 1 matthiasmann 2006-03-09 20:22:18 UTC
I also have a crash with the same stack trace - but this happens only if I press
"Reset Collected Results Buffer" in the Profiler GUI. If I don't use this button
everything runs fine.

Here is the stack trace:
init:
profile-init:
deps-jar:
compile:
profile:
Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds
(Protocol version: 2)
Profiler Agent: Established local connection with the tool
java.lang.ArrayIndexOutOfBoundsException: 8500
        at
com.sun.tools.profiler.server.ProfilerRuntimeCPU.writeTimeStampedEvent(ProfilerRuntimeCPU.java:160)
        at
com.sun.tools.profiler.server.ProfilerRuntimeCPUFullInstr.methodEntry(ProfilerRuntimeCPUFullInstr.java:100)
        at
com.sun.tools.profiler.server.ProfilerRuntimeCPUFullInstr.rootMethodEntry(ProfilerRuntimeCPUFullInstr.java:43)
        at
de.matthiasmann.worldscape.terrain.TerrainGeoNV.fanVertex(TerrainGeoNV.java:39)
        at de.matthiasmann.worldscape.terrain.mini.Tile.drawmap(Tile.java:464)
        ....... [More of my code] ........
        at de.matthiasmann.worldscape.test.TestBench.run(TestBench.java:85)
        at de.matthiasmann.worldscape.test.TerrainTest.main(TerrainTest.java:288)
Profiler Agent: Connection with agent closed
Profiler Agent: Connection with agent closed
Profiler Agent: Initializing...
Profiler Agent: Options: >"C:\Programme\netbeans-5.0\profiler1\lib",5140,10<
Profiler Agent: Initialized succesfully
BUILD SUCCESSFUL (total time: 21 seconds)
Comment 2 Tomas Hurka 2006-03-16 09:32:45 UTC
This is not the same issue and this is not the same stack trace. I filed separate issue #73632. 
There is also no reason this issue is P1. 
Comment 3 Tomas Hurka 2006-06-30 10:33:48 UTC
*** Issue 79417 has been marked as a duplicate of this issue. ***
Comment 4 Tomas Hurka 2006-06-30 10:34:47 UTC
See issue #73632 for possible steps how to reproduce it.
Comment 5 J Bachorik 2007-01-09 08:50:11 UTC
assigned for reevaluation as the issue #73945 which is somewhat similar is
resolved in the trunk
Comment 6 J Bachorik 2007-01-09 14:08:11 UTC
Tried to reproduce the bug using the steps described in #79417 on the trunk
profiler build. I wasn't able to generate the aforementioned AIOOBE. This issue
seems to be no longer valid.
In case you are still able to reproduce it on the current builds of NB and
Profiler, please, reopen.