[seam-dev] Seam 2.x dependency on Javassist and how to check for regressions when using a newer Javassist version...

Marek Novotny mnovotny at redhat.com
Thu Jul 11 16:11:46 EDT 2013


hey Scott,

 thanks for notification.

Dne 11.7.2013 16:43, Scott Marlow napsal(a):
> https://issues.jboss.org/browse/JASSIST-206 is about a Javassist 3.18.0 
> signature change that broke Seam 2.x applications.
> 
> Could someone let me know if the Seam 2.x testsuite also hits the same 
> regression when using Javassist 3.18.0?
yes, the latest working javassist version is 3.16.1-GA and the above
issue has got correct affected versions which breaks all Seam 2.x versions.

pure Seam core unit test shows the failure org.jboss.seam.test.unit.CoreTest

Tests run: 120, Failures: 1, Errors: 0, Skipped: 119, Time elapsed:
2.533 sec <<< FAILURE!
triggerComponentScan(org.jboss.seam.test.unit.CoreTest)  Time elapsed:
2203 sec  <<< FAILURE!
java.lang.NoSuchMethodError:
javassist.util.proxy.RuntimeSupport.find2Methods(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/reflect/Method;)V
	at
org.jboss.seam.el.JBossELReferenceCache_$$_javassist_seam_0.writeReplace(JBossELReferenceCache_$$_javassist_seam_0.java)
	at org.jboss.seam.Component.postConstructJavaBean(Component.java:1465)
	at org.jboss.seam.Component.postConstruct(Component.java:1382)
	at org.jboss.seam.Component.newInstance(Component.java:2193)
	at org.jboss.seam.contexts.Contexts.startup(Contexts.java:343)
	at org.jboss.seam.contexts.Contexts.startup(Contexts.java:317)
	at
org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:143)
	at org.jboss.seam.init.Initialization.init(Initialization.java:813)
	at org.jboss.seam.test.unit.CoreTest.triggerComponentScan(CoreTest.java:22)


Results :

Failed tests:   triggerComponentScan(org.jboss.seam.test.unit.CoreTest):
javassist.util.proxy.RuntimeSupport.find2Methods(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/reflect/Method;)V

> 
> I'm trying to answer a related question about how we can tell if a 
> patched Javassist 3.15.x still works with Seam 2.x applications.  If 
> running the Seam 2.x testsuite hits the JASSIST-206, it might be good 
> for us to run the Seam 2.x testsuite after patching/upgrading Javassist.


> 
> Thanks for your advise.
> 
> Scott
> _______________________________________________
> seam-dev mailing list
> seam-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/seam-dev
> 


-- 
Marek Novotny
--
JBoss Seam and WFK Productization Lead

Red Hat Czech s.r.o.
Purkynova 99
612 45 Brno

Email: mnovotny at redhat.com
Office phone: +420 532 294 287, ext. 82-62 087
mobile: +420 608 509 230


More information about the seam-dev mailing list