[jboss-jira] [JBoss JIRA] (JASSIST-177) javassist.bytecode.BadBytecode on weblogic.jdbc.jts.Driver:

ami tabak (JIRA) jira-events at lists.jboss.org
Tue Nov 20 03:00:24 EST 2012


     [ https://issues.jboss.org/browse/JASSIST-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ami tabak updated JASSIST-177:
------------------------------

    Attachment: weblogicBugSampleWithOracleDriver.zip


Getting the following error.
One thing I noticed is that simple one line instrumentation, for example System.out.println("foo");
didnt reproduce the issue. Once I add a try catch clause it appears.

The error
=========

(45)javassist.CtMethod at 33a644f9[public synchronized close ()V]
(53)javassist.CtMethod at e8e92e3d[public synchronized close (Ljava/util/Properties;)V]
Found method:(Ljava/util/Properties;)V
Fetching method attribute:
Exception in thread "main" javassist.CannotCompileException: by javassist.bytecode.BadBytecode: close (Ljava/util/Properties;)V in oracle.jdbc.driver.PhysicalConnection: dead code detected at 52.  No stackmap table generated.
	at javassist.CtBehavior.insertAfter(CtBehavior.java:867)
	at javassist.CtBehavior.insertAfter(CtBehavior.java:788)
	at com.optier.bug.report.Test.oracleTestCase(Test.java:94)
	at com.optier.bug.report.Test.main(Test.java:18)
Caused by: javassist.bytecode.BadBytecode: close (Ljava/util/Properties;)V in oracle.jdbc.driver.PhysicalConnection: dead code detected at 52.  No stackmap table generated.
	at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:110)
	at javassist.bytecode.MethodInfo.rebuildStackMap(MethodInfo.java:423)
	at javassist.bytecode.MethodInfo.rebuildStackMapIf6(MethodInfo.java:405)
	at javassist.CtBehavior.insertAfter(CtBehavior.java:858)
	... 3 more
Caused by: javassist.bytecode.BadBytecode: dead code detected at 52.  No stackmap table generated.
	at javassist.bytecode.stackmap.MapMaker.fixDeadcode(MapMaker.java:328)
	at javassist.bytecode.stackmap.MapMaker.fixTypes(MapMaker.java:311)
	at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:165)
	at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:107)
	... 6 more


                
> javassist.bytecode.BadBytecode on weblogic.jdbc.jts.Driver:
> -----------------------------------------------------------
>
>                 Key: JASSIST-177
>                 URL: https://issues.jboss.org/browse/JASSIST-177
>             Project: Javassist
>          Issue Type: Bug
>    Affects Versions: 3.17.0-GA
>            Reporter: ami tabak
>            Assignee: Shigeru Chiba
>             Fix For: 3.17.1-GA
>
>         Attachments: javassist-3-17-GA-weblogicBugSample.zip, weblogicBugSampleWithOracleDriver.zip
>
>
> Once upgraded from 3.13 to 3.17 GA started receiving the following error:
> Might be reappearance of JASSIST-125.
> I tried to run the test with JDK 1.5 / 6/ 7 Same result.
> java version:1.6.0_16
> test: loading class data from pool:weblogic.jdbc.jts.Driver
> (2)javassist.CtMethod at 3b9ab065[public connect (Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;]
> Found method:(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;
> Fetching method attribute:
> Exception in thread "main" javassist.CannotCompileException: by javassist.bytecode.BadBytecode: connect (Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection; in weblogic.jdbc.jts.Driver: dead code detected at 664.  No stackmap table generated.
> 	at javassist.CtBehavior.insertBefore(CtBehavior.java:773)
> 	at javassist.CtBehavior.insertBefore(CtBehavior.java:730)
> 	at com.optier.bug.report.Test.main(Test.java:76)
> Caused by: javassist.bytecode.BadBytecode: connect (Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection; in weblogic.jdbc.jts.Driver: dead code detected at 664.  No stackmap table generated.
> 	at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:103)
> 	at javassist.bytecode.MethodInfo.rebuildStackMap(MethodInfo.java:423)
> 	at javassist.bytecode.MethodInfo.rebuildStackMapIf6(MethodInfo.java:405)
> 	at javassist.CtBehavior.insertBefore(CtBehavior.java:764)
> 	... 2 more
> Caused by: javassist.bytecode.BadBytecode: dead code detected at 664.  No stackmap table generated.
> 	at javassist.bytecode.stackmap.MapMaker.fixDeadcode(MapMaker.java:314)
> 	at javassist.bytecode.stackmap.MapMaker.fixTypes(MapMaker.java:297)
> 	at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:151)
> 	at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:100)
> 	... 5 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list