users@glassfish.java.net

Re: Problems with GFv3 and OSGI Web bundle

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Mar 2010 10:18:57 PDT

I have tried the same application with nightly build, now at least there is an exception in log. As far as I understand it is smth about the injection of a bean created by a producer

[#|2010-03-16T18:08:29.394+0100|INFO|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=22;_ThreadName=Thread-1;|Installed /home/mykhailos/java/sun/glassfishv3.1/glassfish/domains/domain1/autodeploy/bundles/AdminTst.jar|#]

[#|2010-03-16T18:08:29.865+0100|INFO|glassfishv3.0|org.glassfish.osgijavaeebase|_ThreadID=22;_ThreadName=Thread-1;|Expanded at file:/tmp/osgiapp868949376842461963/|#]

[#|2010-03-16T18:08:33.459+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool 60 at position41|#]

[#|2010-03-16T18:08:33.461+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool -26 at position42|#]

[#|2010-03-16T18:08:33.462+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool -70 at position43|#]

[#|2010-03-16T18:08:33.462+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool -99 at position44|#]

[#|2010-03-16T18:08:33.462+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool 60 at position45|#]

[#|2010-03-16T18:08:33.462+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool -23 at position46|#]

[#|2010-03-16T18:08:33.462+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool -119 at position47|#]

[#|2010-03-16T18:08:34.903+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool 60 at position41|#]

[#|2010-03-16T18:08:34.904+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool -26 at position42|#]

[#|2010-03-16T18:08:34.904+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool -70 at position43|#]

[#|2010-03-16T18:08:34.904+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool -99 at position44|#]

[#|2010-03-16T18:08:34.904+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool 60 at position45|#]

[#|2010-03-16T18:08:34.904+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool -23 at position46|#]

[#|2010-03-16T18:08:34.904+0100|SEVERE|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=22;_ThreadName=Thread-1;|Unknow type constant pool -119 at position47|#]

[#|2010-03-16T18:08:35.631+0100|INFO|glassfishv3.0|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=22;_ThreadName=Thread-1;|Portable JNDI names for EJB Configuration : [java:global/com.synchronica.admin.AdminTst_5.0.0.mykhailos-SNAPSHOT/Configuration!com.synchronica.admin.Configuration, java:global/com.synchronica.admin.AdminTst_5.0.0.mykhailos-SNAPSHOT/Configuration]|#]

[#|2010-03-16T18:08:35.640+0100|INFO|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=22;_ThreadName=Thread-1;|Configuration.Configuration|#]

[#|2010-03-16T18:08:35.726+0100|INFO|glassfishv3.0|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=22;_ThreadName=Thread-1;|Portable JNDI names for EJB DataBean : [java:global/com.synchronica.admin.AdminTst_5.0.0.mykhailos-SNAPSHOT/DataBean!com.synchronica.admin.DataBean, java:global/com.synchronica.admin.AdminTst_5.0.0.mykhailos-SNAPSHOT/DataBean]|#]

[#|2010-03-16T18:08:35.788+0100|INFO|glassfishv3.0|org.jboss.weld.Version|_ThreadID=22;_ThreadName=Thread-1;|WELD-000900 1.0.1 (Final)|#]

[#|2010-03-16T18:08:35.865+0100|INFO|glassfishv3.0|org.hibernate.validator.util.Version|_ThreadID=22;_ThreadName=Thread-1;|Hibernate Validator bean-validator-3.0-JBoss-4.0.2_03|#]

[#|2010-03-16T18:08:35.878+0100|INFO|glassfishv3.0|org.hibernate.validator.engine.resolver.DefaultTraversableResolver|_ThreadID=22;_ThreadName=Thread-1;|Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.|#]

[#|2010-03-16T18:08:36.399+0100|SEVERE|glassfishv3.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=22;_ThreadName=Thread-1;|Exception while loading the app
org.glassfish.deployment.common.DeploymentException: java.lang.IllegalArgumentException: Can not set static javassist.util.proxy.MethodHandler field javax.transaction.UserTransaction_$$_javassist_0.default_interceptor to org.jboss.weld.util.CleanableMethodHandler
        at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:171)
        at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:125)
        at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:237)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:341)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:186)
        at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:153)
        at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:112)
        at org.glassfish.osgijavaeebase.OSGiContainer.deployJavaEEArtifacts(OSGiContainer.java:193)
        at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:101)
        at org.glassfish.osgiweb.WebExtender.deploy(WebExtender.java:167)
        at org.glassfish.osgiweb.WebExtender.bundleChanged(WebExtender.java:119)
        at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728)
        at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3576)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1690)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:902)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1027)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1013)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:398)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:206)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Can not set static javassist.util.proxy.MethodHandler field javax.transaction.UserTransaction_$$_javassist_0.default_interceptor to org.jboss.weld.util.CleanableMethodHandler
        at javassist.util.proxy.ProxyFactory.setField(ProxyFactory.java:358)
        at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:340)
        at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:314)
        at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:273)
        at org.jboss.weld.util.Proxies.createProxyClass(Proxies.java:187)
        at org.jboss.weld.util.Proxies.createProxy(Proxies.java:154)
        at org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:53)
        at org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:66)
        at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:140)
        at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:377)
        at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:169)
        ... 22 more
Caused by: java.lang.IllegalArgumentException: Can not set static javassist.util.proxy.MethodHandler field javax.transaction.UserTransaction_$$_javassist_0.default_interceptor to org.jboss.weld.util.CleanableMethodHandler
        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
        at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(UnsafeStaticObjectFieldAccessorImpl.java:61)
        at java.lang.reflect.Field.set(Field.java:657)
        at javassist.util.proxy.ProxyFactory.setField(ProxyFactory.java:354)
        ... 32 more
|#]

[#|2010-03-16T18:08:36.407+0100|INFO|glassfishv3.0|org.glassfish.osgijavaeebase|_ThreadID=22;_ThreadName=Thread-1;|failed to deploy com.synchronica.admin.AdminTst [225] for following reason: Exception while loading the app : org.glassfish.deployment.common.DeploymentException: java.lang.IllegalArgumentException: Can not set static javassist.util.proxy.MethodHandler field javax.transaction.UserTransaction_$$_javassist_0.default_interceptor to org.jboss.weld.util.CleanableMethodHandler |#]

[#|2010-03-16T18:08:36.463+0100|INFO|glassfishv3.0|org.glassfish.osgijavaeebase|_ThreadID=22;_ThreadName=Thread-1;|Deleted /tmp/osgiapp868949376842461963|#]

[#|2010-03-16T18:08:36.463+0100|SEVERE|glassfishv3.0|org.glassfish.osgijavaeebase|_ThreadID=22;_ThreadName=Thread-1;|Exception deploying bundle file:/home/mykhailos/java/sun/glassfishv3.1/glassfish/domains/domain1/autodeploy/bundles/AdminTst.jar|#]

[#|2010-03-16T18:08:36.463+0100|SEVERE|glassfishv3.0|org.glassfish.osgijavaeebase|_ThreadID=22;_ThreadName=Thread-1;|Exception Stack Trace
java.lang.Exception: Deployment of com.synchronica.admin.AdminTst [225] failed because of following reason: Exception while loading the app : org.glassfish.deployment.common.DeploymentException: java.lang.IllegalArgumentException: Can not set static javassist.util.proxy.MethodHandler field javax.transaction.UserTransaction_$$_javassist_0.default_interceptor to org.jboss.weld.util.CleanableMethodHandler
        at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:103)
        at org.glassfish.osgiweb.WebExtender.deploy(WebExtender.java:167)
        at org.glassfish.osgiweb.WebExtender.bundleChanged(WebExtender.java:119)
        at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728)
        at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3576)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1690)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:902)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1027)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1013)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:398)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:206)
|#]

[#|2010-03-16T18:08:36.476+0100|INFO|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=22;_ThreadName=Thread-1;|Activator.start|#]

[#|2010-03-16T18:08:36.506+0100|INFO|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=22;_ThreadName=Thread-1;|Started bundle: file:/home/mykhailos/java/sun/glassfishv3.1/glassfish/domains/domain1/autodeploy/bundles/AdminTst.jar|#]
[Message sent by forum member 'smikesh' (mshtelma_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=392204