-
Bug
-
Resolution: Done
-
Major
-
2.2.2
-
None
-
None
It looks like when the sub class is an inner class it fails with a CNF
Example Script:
RULE trace java.io.InputStream.close() CLASS ^java.io.InputStream METHOD close AT ENTRY BIND this=$0; DO traceln("BYTEMAN", formatStack("[BYTEMAN-2] closing " + this)); ENDRULE
Exception:
trace java.io.InputStream.close() : java.lang.NoClassDefFoundError: java/util/zip/ZipFile/ZipFileInputStream trace java.io.InputStream.close() : java.lang.NoClassDefFoundError: java/util/zip/ZipFile/ZipFileInflaterInputStream Exception in thread "main" org.jboss.byteman.rule.exception.ExecuteException: trace java.io.InputStream.close() : caught java.lang.NoClassDefFoundError: java/util/zip/ZipFile/ZipFileInputStream at org.jboss.byteman.rule.Rule.execute(Rule.java:716) at org.jboss.byteman.rule.Rule.execute(Rule.java:653) at java.util.zip.ZipFile$ZipFileInputStream.close(ZipFile.java) at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:687) at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:415) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at sun.misc.IOUtils.readFully(IOUtils.java:65) at java.util.jar.JarFile.getBytes(JarFile.java:387) at java.util.jar.JarFile.initializeVerifier(JarFile.java:341) at java.util.jar.JarFile.getInputStream(JarFile.java:412) at sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:775) at sun.misc.Resource.cachedInputStream(Resource.java:77) at sun.misc.Resource.getByteBuffer(Resource.java:160) at java.net.URLClassLoader.defineClass(URLClassLoader.java:436) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482) Suppressed: org.jboss.byteman.rule.exception.ExecuteException: trace java.io.InputStream.close() : caught java.lang.NoClassDefFoundError: java/util/zip/ZipFile/ZipFileInflaterInputStream at org.jboss.byteman.rule.Rule.execute(Rule.java:716) at org.jboss.byteman.rule.Rule.execute(Rule.java:653) at java.util.zip.ZipFile$ZipFileInflaterInputStream.close(ZipFile.java) at java.util.jar.JarFile.getBytes(JarFile.java:388) ... 15 more Caused by: java.lang.NoClassDefFoundError: java/util/zip/ZipFile/ZipFileInflaterInputStream at org.jboss.byteman.rule.helper.Helper_HelperAdapter_Compiled_2.execute0(InputStream.btm:41) at org.jboss.byteman.rule.helper.Helper_HelperAdapter_Compiled_2.execute(InputStream.btm) at org.jboss.byteman.rule.Rule.execute(Rule.java:684) ... 18 more Caused by: java.lang.ClassNotFoundException: java.util.zip.ZipFile.ZipFileInflaterInputStream at java.lang.ClassLoader.findClass(ClassLoader.java:531) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 21 more Caused by: java.lang.NoClassDefFoundError: java/util/zip/ZipFile/ZipFileInputStream at org.jboss.byteman.rule.helper.Helper_HelperAdapter_Compiled_1.execute0(InputStream.btm:41) at org.jboss.byteman.rule.helper.Helper_HelperAdapter_Compiled_1.execute(InputStream.btm) at org.jboss.byteman.rule.Rule.execute(Rule.java:684) ... 22 more Caused by: java.lang.ClassNotFoundException: java.util.zip.ZipFile.ZipFileInputStream at java.lang.ClassLoader.findClass(ClassLoader.java:531) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 25 more
- is related to
-
BYTEMAN-236 Instances of anonymous classes cannot be accessed via bound vars in compiled rule code
- Closed