I have installed Jensor1.8. I created a project called TEST using the jensor GUI. And when i try instrumenting a WAR file it throws the below error :
java.lang.NoSuchMethodError: org.objectweb.asm.jensor.ClassReader.accept(Lorg/ob
jectweb/asm/jensor/ClassVisitor;I)V
at com.tcs.perc.jensor.core.StaticInstrumenter.instrument(StaticInstrume
nter.java:409)
at com.tcs.perc.jensor.instrument.Instrumenter.setFullInstrument(Instrum
enter.java:624)
at com.tcs.perc.jensor.UI.modeInstrument.actionPerformed(modeInstrument.
java:213)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
49)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
uItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1766)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.NoS
uchMethodError: org.objectweb.asm.jensor.ClassReader.accept(Lorg/objectweb/asm/j
ensor/ClassVisitor;I)V
at com.tcs.perc.jensor.core.StaticInstrumenter.instrument(StaticInstrume
nter.java:428)
at com.tcs.perc.jensor.instrument.Instrumenter.setFullInstrument(Instrum
enter.java:624)
at com.tcs.perc.jensor.UI.modeInstrument.actionPerformed(modeInstrument.
java:213)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
49)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
uItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1766)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.jensor.ClassReader.acc
ept(Lorg/objectweb/asm/jensor/ClassVisitor;I)V
at com.tcs.perc.jensor.core.StaticInstrumenter.instrument(StaticInstrume
nter.java:409)
... 28 more
I tried including jensorjdk14-v18-win32.jar in WEB-INF\lib folder in my WAR before instrumentation. But the same error appears even then.
Can you please help me in this issue.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We are trying to replicate the issue at our end, but have not succeeded till this point in time.
However one point is that no need to include the jensorjdk14-v18-win32.jar in the WEB-INF\lib directory of the war file.
We would revert back once the resolution is reached.
Regards,
Suresh.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have installed Jensor1.8. I created a project called TEST using the jensor GUI. And when i try instrumenting a WAR file it throws the below error :
java.lang.NoSuchMethodError: org.objectweb.asm.jensor.ClassReader.accept(Lorg/ob
jectweb/asm/jensor/ClassVisitor;I)V
at com.tcs.perc.jensor.core.StaticInstrumenter.instrument(StaticInstrume
nter.java:409)
at com.tcs.perc.jensor.instrument.Instrumenter.setFullInstrument(Instrum
enter.java:624)
at com.tcs.perc.jensor.UI.modeInstrument.actionPerformed(modeInstrument.
java:213)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
49)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
uItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1766)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.NoS
uchMethodError: org.objectweb.asm.jensor.ClassReader.accept(Lorg/objectweb/asm/j
ensor/ClassVisitor;I)V
at com.tcs.perc.jensor.core.StaticInstrumenter.instrument(StaticInstrume
nter.java:428)
at com.tcs.perc.jensor.instrument.Instrumenter.setFullInstrument(Instrum
enter.java:624)
at com.tcs.perc.jensor.UI.modeInstrument.actionPerformed(modeInstrument.
java:213)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
49)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
uItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1766)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.jensor.ClassReader.acc
ept(Lorg/objectweb/asm/jensor/ClassVisitor;I)V
at com.tcs.perc.jensor.core.StaticInstrumenter.instrument(StaticInstrume
nter.java:409)
... 28 more
I tried including jensorjdk14-v18-win32.jar in WEB-INF\lib folder in my WAR before instrumentation. But the same error appears even then.
Can you please help me in this issue.
Hi,
We are trying to replicate the issue at our end, but have not succeeded till this point in time.
However one point is that no need to include the jensorjdk14-v18-win32.jar in the WEB-INF\lib directory of the war file.
We would revert back once the resolution is reached.
Regards,
Suresh.