[webbeans-issues] [JBoss JIRA] Created: (WBRI-122) throws ClassFormatError if an implementation class implements Serializable
by Kent Tong (JIRA)
throws ClassFormatError if an implementation class implements Serializable
--------------------------------------------------------------------------
Key: WBRI-122
URL: https://jira.jboss.org/jira/browse/WBRI-122
Project: Web Beans RI
Issue Type: Bug
Affects Versions: 1.0.0.ALPHA1
Environment: JBoss AS 5.0.0.GA. JDK 1.6.0_07.
Reporter: Kent Tong
For the following code:
package faq;
import java.io.Serializable;
import javax.webbeans.Named;
import javax.webbeans.RequestScoped;
@Named
@RequestScoped
public class Foo implements Serializable {
public String getMsg() {
return "Hi";
}
}
foo.xhtml:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
#{foo.msg}
</html>
It will fail with the following exception:
java.lang.ClassFormatError: Duplicate interface name in class file faq/Foo_$$_javassist_7
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
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 javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:181)
at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:163)
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:339)
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:314)
at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:273)
at org.jboss.webbeans.bean.proxy.ProxyPool.createClientProxy(ProxyPool.java:123)
at org.jboss.webbeans.bean.proxy.ProxyPool.access$100(ProxyPool.java:42)
at org.jboss.webbeans.bean.proxy.ProxyPool$1.call(ProxyPool.java:164)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at org.jboss.webbeans.util.ConcurrentCache.putIfAbsent(ConcurrentCache.java:123)
at org.jboss.webbeans.bean.proxy.ProxyPool.getClientProxy(ProxyPool.java:154)
at org.jboss.webbeans.ManagerImpl.getInstance(ManagerImpl.java:467)
at org.jboss.webbeans.ManagerImpl.getInstanceByName(ManagerImpl.java:497)
at org.jboss.webbeans.el.WebBeansELResolver.getValue(WebBeansELResolver.java:70)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:61)
at org.apache.el.parser.AstValue.getValue(AstValue.java:107)
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
at com.sun.facelets.el.ELText$ELTextVariable.writeText(ELText.java:184)
at com.sun.facelets.el.ELText$ELTextComposite.writeText(ELText.java:108)
at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:45)
at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
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:828)
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)
Note that it will NOT fail if Foo implements another interface such as a user-defined interface. That is, it seems to occur only
with java.io.Serializable.
--
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, 10 months
[webbeans-issues] [JBoss JIRA] Created: (WBRI-121) Make JBossEjbResolver an MC Bean
by Pete Muir (JIRA)
Make JBossEjbResolver an MC Bean
--------------------------------
Key: WBRI-121
URL: https://jira.jboss.org/jira/browse/WBRI-121
Project: Web Beans RI
Issue Type: Feature Request
Reporter: Pete Muir
Assignee: Pete Muir
Fix For: 1.0.0.ALPHA2
For instance, I'd been expecting JBossEjbResolver to itself be an MC bean, where the EjbReferenceResolver would be an injected instance member.
Like I do in ejb3-mc-int:
...declares the EjbReferenceResolver impl:
<bean name="org.jboss.ejb3.EjbReferenceResolver" class="org.jboss.ejb3.common.resolvers.spi.EjbReferenceResolver">
<constructor factoryClass="org.jboss.ejb3.common.resolvers.spi.EjbReferenceResolverFactory"
factoryMethod="newInstance">
<parameter>org.jboss.ejb3.common.resolvers.plugins.FirstMatchEjbReferenceResolver</parameter>
</constructor>
</bean>
...injects the EjbReferenceResolver into something that uses it.
<bean name="org.jboss.ejb3.EjbReferenceAnnotationPlugin"
class="org.jboss.ejb3.mcint.metadata.plugins.EjbReferenceAnnotationPlugin">
<constructor>
<parameter><inject bean="org.jboss.ejb3.EjbReferenceResolver" /></parameter>
</constructor>
</bean>
--
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, 10 months