Rule.typecheck : unknown helper class
pacman77 Jul 14, 2017 5:15 PMI'm trying to inspect a code which is within an existing jar. I have created a custom helper to trace the content for a parameter. Although the app is throwing an exception when reaching that point
org.jboss.byteman.agent.Transformer : unexpected error parsing rule trace watermark selection
org.jboss.byteman.rule.exception.TypeException: Rule.typecheck : unknown helper class org.jboss.byteman.SelectorIterator for rule trace watermark selection
org.jboss.byteman.rule.exception.TypeException: Rule.typecheck : unknown helper class org.jboss.byteman.SelectorIterator for rule trace watermark selection
at org.jboss.byteman.rule.Rule.<init>(Rule.java:233)
at org.jboss.byteman.rule.Rule.create(Rule.java:356)
at org.jboss.byteman.agent.TransformContext.parseRule(TransformContext.java:173)
at org.jboss.byteman.agent.TransformContext.transform(TransformContext.java:83)
at org.jboss.byteman.agent.Transformer.transform(Transformer.java:748)
at org.jboss.byteman.agent.Transformer.tryTransform(Transformer.java:815)
at org.jboss.byteman.agent.Transformer.tryTransform(Transformer.java:787)
at org.jboss.byteman.agent.Transformer.transform(Transformer.java:260)
at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428)
I'm running the app from within eclipse, the arguments defined as part of my conf option is below,
-XX:PermSize=128M -XX:MaxPermSize=256M -Dorg.jboss.byteman.verbose -Dorg.jboss.byteman.transform.all -Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.byteman -javaagent:/Users/pablo.crespo/byteman-download-3.0.10/lib/byteman.jar=script:/Users/pablo.crespo/AnypointStudio/wks/watermark-troubleshooting/src/main/resources/byteman-scripts/watermark-inspector.btm
The custom helper code is part of my project, it looks like this problem is related to a class loader issue. Although it is not clear to me why this is not properly handled by eclipse itself.