[
https://jira.jboss.org/browse/WELD-677?page=com.atlassian.jira.plugin.sys...
]
David Allen commented on WELD-677:
----------------------------------
This problem is definitely bean resolution. The BeanManager is being given the correct
type here, but is returning a bean of a completely different type. It also appears that
since the bean types include Serializable as well as the requested type, the checks are
passed that the bean represents that type (is assignable).
ConversationManager throws IllegalArgumentException when running many
clients at the same time
----------------------------------------------------------------------------------------------
Key: WELD-677
URL:
https://jira.jboss.org/browse/WELD-677
Project: Weld
Issue Type: Bug
Components: Conversations, Proxies
Environment: Affected weld version - WELD-000900 1.1.0 (2010-09-09 00:04)
Reporter: Martin Gencur
Assignee: Stuart Douglas
Fix For: 1.1.0.Beta2
This exception arises when running around 23+ sessions.
Stacktrace:
2010/09/10 02:34:51:045 EDT [WARN ][Runner - 7] HOST
qa05.mw.lab.eng.bos.redhat.com:rootProcess:weld-numberguess-perf - Error sampling data:
<org.jboss.smartfrog.loaddriver.RequestProcessingException: Invalid response code: 500
Content: <html><head><title>JBoss Web/3.0.0-beta-6 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color
: black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 500 - </h1><HR size="1"
noshade="noshade"><p><b>type</b> Exception
report</p><p><b>message</b>
<u></u></p><p><b>description</b> <u>The server
encountered an internal error () that prevented it from fulfilling this
request.</u></p><p><b>exception</b>
<pre>javax.servlet.ServletException: Can not set
org.jboss.weld.conversation.ConversationManager2 field
org.jboss.weld.conversation.ConversationImpl.conversationManager to java.lang.Long
javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)
</pre></p><p><b>root cause</b>
<pre>java.lang.IllegalArgumentException: Can not set org.jboss.weld.
conversation.ConversationManager2 field
org.jboss.weld.conversation.ConversationImpl.conversationManager to java.lang.Long
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
java.lang.reflect.Field.set(Field.java:657)
org.jboss.weld.introspector.jlr.WeldFieldImpl.set(WeldFieldImpl.java:95)
org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:118)
org.jboss.weld.util.Beans.injectBoundFields(Beans.java:840)
org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:852)
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:184)
org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:54)
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:178)
org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:144)
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:172)
org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:339)
org.jboss.weld.context.AbstractMapContext.get(AbstractMapContext.java:116)
org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:89)
org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:94)
org.jboss.weld.conversation.org$jboss$weld$bean-weld-ManagedBean-class_org$jboss$weld$conversation$ConversationImpl_$$_WeldProxy.
isTransient(org$jboss$weld$bean-weld-ManagedBean-class_org$jboss$weld$conversation$ConversationImpl_$$_WeldProxy.java)
org.jboss.weld.jsf.ConversationAwareViewHandler.getActionURL(ConversationAwareViewHandler.java:72)
com.sun.faces.renderkit.html_basic.FormRenderer.getActionStr(FormRenderer.java:234)
com.sun.faces.renderkit.html_basic.FormRenderer.encodeBegin(FormRenderer.java:137)
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:823)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:1611)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:380)
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira