[webbeans-issues] [JBoss JIRA] Created: (WBRI-208) Producer field on session bean throws IllegalArgumentException
by Shane Bryzak (JIRA)
Producer field on session bean throws IllegalArgumentException
--------------------------------------------------------------
Key: WBRI-208
URL: https://jira.jboss.org/jira/browse/WBRI-208
Project: Web Beans
Issue Type: Bug
Affects Versions: 1.0.0.BETA1
Reporter: Shane Bryzak
See the following two tests in org.jboss.jsr299.tck.tests.implementation.producer.field.definition.enterprise.EnterpriseProducerFieldDefinitionTest to reproduce:
testNonStaticProducerFieldNotInherited()
testNonStaticProducerFieldNotIndirectlyInherited()
The test is throwing the following exception - it seems that ProducerFieldBean.produceInstance() is trying to use the session bean's local interface to set the field value. On a side note, the exception message produced by Reflections.getAndWrap() could probably be improved.
FAILED: testNonStaticProducerFieldNotInherited
javax.inject.ExecutionException: Error getting field egg on class org.jboss.jsr299.tck.tests.implementation.producer.field.definition.enterprise.Chicken
at org.jboss.webbeans.util.Reflections.getAndWrap(Reflections.java:460)
at org.jboss.webbeans.introspector.jlr.AnnotatedFieldImpl.get(AnnotatedFieldImpl.java:93)
at org.jboss.webbeans.bean.ProducerFieldBean.produceInstance(ProducerFieldBean.java:83)
at org.jboss.webbeans.bean.AbstractProducerBean.create(AbstractProducerBean.java:337)
at org.jboss.webbeans.context.DependentContext.get(DependentContext.java:78)
at org.jboss.webbeans.ManagerImpl.getInstance(ManagerImpl.java:663)
at org.jboss.webbeans.ManagerImpl.getInstance(ManagerImpl.java:626)
at org.jboss.webbeans.ManagerImpl.getInstance(ManagerImpl.java:619)
at org.jboss.webbeans.ManagerImpl.getInstanceByType(ManagerImpl.java:788)
at org.jboss.webbeans.ManagerImpl.getInstanceByType(ManagerImpl.java:756)
at org.jboss.jsr299.tck.tests.implementation.producer.field.definition.enterprise.EnterpriseProducerFieldDefinitionTest.testNonStaticProducerFieldNotInherited(EnterpriseProducerFieldDefinitionTest.java:28)
at org.jboss.testharness.AbstractTest.run(AbstractTest.java:238)
at org.jboss.testharness.impl.runner.TestRunner.run(TestRunner.java:61)
at org.jboss.testharness.impl.runner.servlet.ServletTestRunner.doGet(ServletTestRunner.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.webbeans.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Can not set org.jboss.jsr299.tck.tests.implementation.producer.field.definition.enterprise.Egg field org.jboss.jsr299.tck.tests.implementation.producer.field.definition.enterprise.Chicken.egg to org.jboss.jsr299.tck.tests.implementation.producer.field.definition.enterprise.ChickenLocal_$$_javassist_51
at org.jboss.webbeans.util.Reflections.getAndWrap(Reflections.java:456)
... 64 more
... Removed 31 stack frames
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 4 months
[webbeans-issues] [JBoss JIRA] Created: (WBRI-140) Proxied beans cannot be deserialized
by David Allen (JIRA)
Proxied beans cannot be deserialized
------------------------------------
Key: WBRI-140
URL: https://jira.jboss.org/jira/browse/WBRI-140
Project: Web Beans RI
Issue Type: Bug
Affects Versions: 1.0.0.ALPHA2
Reporter: David Allen
The test ClientProxyTest.testSimpleWebBeanClientProxyIsSerializable fails when run in a container due to classloader issues. Javassist is trying to use its own classloader, which in JBoss AS is a server classloader, to load the class loaded by the WAR classloader. The correct classloaders need to be setup with Javassist in order for persistence to work.
Current error in the server is:
java.io.InvalidClassException: org.jboss.jsr299.tck.unit.lookup.clientProxy.TunedTuna
at javassist.util.proxy.SerializedProxy.readResolve(SerializedProxy.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1061)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1762)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at org.jboss.jsr299.tck.AbstractTest.deserialize(AbstractTest.java:268)
at org.jboss.jsr299.tck.unit.lookup.clientProxy.ClientProxyTest.testSimpleWebBeanClientProxyIsSerializable(ClientProxyTest.java:55)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 5 months