• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • DSO:L1
  • hhuynh
  • Reporter: gbevin
  • February 23, 2007
  • 0
  • Watchers: 1
  • March 27, 2008
  • January 16, 2008

Attachments

Description

Just thought I’d file this, I was working on RIFE support, started up tomcat and went away. When I came back 10 mins later, I found this exception on the console. Sadly I can’t reproduce it.

INFO: Server startup in 3901 ms java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.__tc_remove(ArrayList.java:392) at java.util.ArrayList.remove(ArrayList.java) at com.tc.asm.commons.AdviceAdapter.popValue(AdviceAdapter.java:580) at com.tc.asm.commons.AdviceAdapter.visitInsn(AdviceAdapter.java:118) at com.tc.object.bytecode.TransparencyCodeAdapter.visitInsn(TransparencyCodeAdapter.java:300) at com.tc.asm.ClassReader.accept(ClassReader.java:951) at com.tc.asm.ClassReader.accept(ClassReader.java:300) at com.tc.object.bytecode.hook.impl.DefaultWeavingStrategy.transform(DefaultWeavingStrategy.java:259) at com.tc.object.bytecode.hook.impl.DSOContextImpl.preProcess(DSOContextImpl.java:109) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.defineClass0Pre(ClassProcessorHelper.java:415) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at com.uwyn.rife.engine.EngineClassLoader.loadClass(EngineClassLoader.java:501) at com.uwyn.rife.engine.EngineClassLoader.loadClass(EngineClassLoader.java:179) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at com.uwyn.rife.engine.ElementInfoProcessorFactory.(ElementInfoProcessorFactory.java:26) at com.uwyn.rife.engine.ElementInfoBuilder.process(ElementInfoBuilder.java:113) at com.uwyn.rife.engine.ElementInfoBuilder.process(ElementInfoBuilder.java:92) at com.uwyn.rife.engine.SiteBuilder.setupElements(SiteBuilder.java:908) at com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java:1613) at com.uwyn.rife.engine.SiteBuilder.__tc_wrapped_finish(SiteBuilder.java:260) at com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java) at com.uwyn.rife.engine.SiteBuilder.__tc_wrapped_process(SiteBuilder.java:251) at com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java) at com.uwyn.rife.engine.SiteBuilder.__tc_wrapped_getSite(SiteBuilder.java:177) at com.uwyn.rife.engine.SiteBuilder.getSite(SiteBuilder.java) at com.uwyn.rife.rep.participants.ParticipantSite.initialize(ParticipantSite.java:36) at com.uwyn.rife.rep.BlockingParticipant.run(BlockingParticipant.java:230) at java.lang.Thread.run(Thread.java:613) Feb 23, 2007 3:13:11 PM com.uwyn.rife.rep.participants.ParticipantSite initialize SEVERE: java.lang.ExceptionInInitializerError at com.uwyn.rife.engine.ElementInfoBuilder.process(ElementInfoBuilder.java:113) at com.uwyn.rife.engine.ElementInfoBuilder.process(ElementInfoBuilder.java:92) at com.uwyn.rife.engine.SiteBuilder.setupElements(SiteBuilder.java:908) at com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java:1613) at com.uwyn.rife.engine.SiteBuilder.__tc_wrapped_finish(SiteBuilder.java:260) at com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java) at com.uwyn.rife.engine.SiteBuilder.__tc_wrapped_process(SiteBuilder.java:251) at com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java) at com.uwyn.rife.engine.SiteBuilder.__tc_wrapped_getSite(SiteBuilder.java:177) at com.uwyn.rife.engine.SiteBuilder.getSite(SiteBuilder.java) at com.uwyn.rife.rep.participants.ParticipantSite.initialize(ParticipantSite.java:36) at com.uwyn.rife.rep.BlockingParticipant.run(BlockingParticipant.java:230) at java.lang.Thread.run(Thread.java:613) Caused by: -1; java.lang.ArrayIndexOutOfBoundsException: -1 at com.tc.object.bytecode.hook.impl.DefaultWeavingStrategy.transform(DefaultWeavingStrategy.java:282) at com.tc.object.bytecode.hook.impl.DSOContextImpl.preProcess(DSOContextImpl.java:109) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.defineClass0Pre(ClassProcessorHelper.java:415) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at com.uwyn.rife.engine.EngineClassLoader.loadClass(EngineClassLoader.java:501) at com.uwyn.rife.engine.EngineClassLoader.loadClass(EngineClassLoader.java:179) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at com.uwyn.rife.engine.ElementInfoProcessorFactory.(ElementInfoProcessorFactory.java:26) ... 13 more Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.__tc_remove(ArrayList.java:392) at java.util.ArrayList.remove(ArrayList.java) at com.tc.asm.commons.AdviceAdapter.popValue(AdviceAdapter.java:580) at com.tc.asm.commons.AdviceAdapter.visitInsn(AdviceAdapter.java:118) at com.tc.object.bytecode.TransparencyCodeAdapter.visitInsn(TransparencyCodeAdapter.java:300) at com.tc.asm.ClassReader.accept(ClassReader.java:951) at com.tc.asm.ClassReader.accept(ClassReader.java:300) at com.tc.object.bytecode.hook.impl.DefaultWeavingStrategy.transform(DefaultWeavingStrategy.java:259) ... 22 more

Comments

Tim Eck 2007-02-23

We don’t know what caused this, but we spotted something in TransparencyCodeAdapter that doesn’t look quite right. To try to reproduce, we instrumented every class in the rife-jdk15 jar, but did not get this exception

Tim Eck 2007-02-26

moving this moraga, but it will probably get pushed out since we don’t really know what the underlying issue is

Tim Eck 2007-04-06

Eugene and I have reviewed TransparencyCodeAdapter quite a bit recently for any cases where this sort of problem is bound to happen (ie. calling on the delegate visitor directly instead of letting AdviceAdapter do that). There was also a bug fix for AdviceAdapter in ASM 3 (now in trunk).

closing this for now

orion 2008-01-15

Viktor Klang gave us a reproducible case.

orion 2008-01-15

Viktor Klang sez this reproduces the issue.

Fiona OShea 2008-01-16

Can you see if there is anything obvious in this that we can resolve this week? If not assign back to DRB

Alex Miller 2008-01-16

Assigning to Tim to update with ASM upgrade info.

Tim Eck 2008-01-16

this is fixed in trunk already

Fiona OShea 2008-01-23

I think this is in 2.5.1 can you verify? thanks

Hung Huynh 2008-01-23

Tim confirmed it’s not merged to 2.5 branch.

Fiona OShea 2008-01-23

Fix is in trunk nightly builds and will be included in Terracotta 2.6 release