[
https://issues.jboss.org/browse/WFLY-3796?page=com.atlassian.jira.plugin....
]
Martin Kouba commented on WFLY-3796:
------------------------------------
I see. The code in {{LogoutModel}} seems to be fine. Would it be possible to create a
simple reproducer?
Also, does it work on WildFly 8.1.0?
org.jboss.weld.exceptions.IllegalArgumentException during
HttpSession.invalidate
--------------------------------------------------------------------------------
Key: WFLY-3796
URL:
https://issues.jboss.org/browse/WFLY-3796
Project: WildFly
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: CDI / Weld, JSF
Affects Versions: 9.0.0.Beta1
Reporter: Juergen Zimmermann
Assignee: Martin Kouba
I'm using WildFly 9.0.0.Alpha1 snapshot. When I invoke HttpSession.invalidate() after
PicketLink's logout method I'm getting a
org.jboss.weld.exceptions.IllegalArgumentException (see stacktrace below). I also tried
weld-core-impl-2.2.4.Final, but got the same stacktrace.
The Session Bean "ListKundenModel" has these annotations:
@Named
@ViewScoped
@Stateful
{code}
WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] #{logoutModel.logout}:
org.jboss.weld.exceptions.IllegalArgumentException: WELD-000085: Cannot destroy null
instance of Session bean [class de.shop.kundenverwaltung.web.ListKundenModel with
qualifiers [@Default @Any @Named]; local interfaces are [ListKundenModel]:
javax.faces.FacesException: #{logoutModel.logout}:
org.jboss.weld.exceptions.IllegalArgumentException: WELD-000085: Cannot destroy null
instance of Session bean [class de.shop.kundenverwaltung.web.ListKundenModel with
qualifiers [@Default @Any @Named]; local interfaces are [ListKundenModel]
at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
[jsf-impl-2.2.8-jbossorg-1.jar:]
at javax.faces.component.UICommand.broadcast(UICommand.java:315)
[jboss-jsf-api_2.2_spec-2.2.8.jar:2.2.8]
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
[jboss-jsf-api_2.2_spec-2.2.8.jar:2.2.8]
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
[jboss-jsf-api_2.2_spec-2.2.8.jar:2.2.8]
at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
[jsf-impl-2.2.8-jbossorg-1.jar:]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
[jsf-impl-2.2.8-jbossorg-1.jar:]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
[jsf-impl-2.2.8-jbossorg-1.jar:]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
[jboss-jsf-api_2.2_spec-2.2.8.jar:2.2.8]
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at
org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
[undertow-core-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
[undertow-core-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
[undertow-core-1.1.0.Beta6.jar:1.1.0.Beta6]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Beta6.jar:1.1.0.Beta6]
at
org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Beta6.jar:1.1.0.Beta6]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:259)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:246)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:75)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:165)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)
[undertow-core-1.1.0.Beta6.jar:1.1.0.Beta6]
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:737)
[undertow-core-1.1.0.Beta6.jar:1.1.0.Beta6]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_20]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_20]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_20]
Caused by: javax.faces.el.EvaluationException:
org.jboss.weld.exceptions.IllegalArgumentException: WELD-000085: Cannot destroy null
instance of Session bean [class de.shop.kundenverwaltung.web.ListKundenModel with
qualifiers [@Default @Any @Named]; local interfaces are [ListKundenModel]
at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)
[jboss-jsf-api_2.2_spec-2.2.8.jar:2.2.8]
at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
[jsf-impl-2.2.8-jbossorg-1.jar:]
... 33 more
Caused by: org.jboss.weld.exceptions.IllegalArgumentException: WELD-000085: Cannot
destroy null instance of Session bean [class de.shop.kundenverwaltung.web.ListKundenModel
with qualifiers [@Default @Any @Named]; local interfaces are [ListKundenModel]
at org.jboss.weld.bean.SessionBean.destroy(SessionBean.java:155)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at
com.sun.faces.application.view.ViewScopeContextManager.destroyBeans(ViewScopeContextManager.java:177)
[jsf-impl-2.2.8-jbossorg-1.jar:]
at
com.sun.faces.application.view.ViewScopeContextManager.sessionDestroyed(ViewScopeContextManager.java:339)
[jsf-impl-2.2.8-jbossorg-1.jar:]
at
com.sun.faces.application.view.ViewScopeManager.sessionDestroyed(ViewScopeManager.java:371)
[jsf-impl-2.2.8-jbossorg-1.jar:]
at
com.sun.faces.application.WebappLifecycleListener.sessionDestroyed(WebappLifecycleListener.java:181)
[jsf-impl-2.2.8-jbossorg-1.jar:]
at com.sun.faces.config.ConfigureListener.sessionDestroyed(ConfigureListener.java:377)
[jsf-impl-2.2.8-jbossorg-1.jar:]
at
io.undertow.servlet.core.ApplicationListeners.sessionDestroyed(ApplicationListeners.java:264)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.servlet.core.SessionListenerBridge.sessionDestroyed(SessionListenerBridge.java:66)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.server.session.SessionListeners.sessionDestroyed(SessionListeners.java:56)
[undertow-core-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.server.session.InMemorySessionManager$SessionImpl.invalidate(InMemorySessionManager.java:395)
[undertow-core-1.1.0.Beta6.jar:1.1.0.Beta6]
at
io.undertow.server.session.InMemorySessionManager$SessionImpl.invalidate(InMemorySessionManager.java:381)
[undertow-core-1.1.0.Beta6.jar:1.1.0.Beta6]
at io.undertow.servlet.spec.HttpSessionImpl.invalidate(HttpSessionImpl.java:197)
[undertow-servlet-1.1.0.Beta6.jar:1.1.0.Beta6]
at de.shop.iam.web.LogoutModel.logout(LogoutModel.java:55) [classes:]
at de.shop.iam.web.LogoutModel$Proxy$_$$_WeldSubclass.logout(Unknown Source) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_20]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[rt.jar:1.8.0_20]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_20]
at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_20]
at
org.jboss.weld.interceptor.proxy.SimpleInterceptionChain.interceptorChainCompleted(SimpleInterceptionChain.java:51)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at
org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNextInterceptor(AbstractInterceptionChain.java:96)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at
org.jboss.weld.interceptor.proxy.InterceptorInvocationContext.proceed(InterceptorInvocationContext.java:149)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at de.shop.util.interceptor.LogInterceptor.log(LogInterceptor.java:96) [classes:]
at sun.reflect.GeneratedMethodAccessor2531.invoke(Unknown Source) [:1.8.0_20]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_20]
at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_20]
at
org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:74)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at
org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNext(AbstractInterceptionChain.java:116)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at
org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNextInterceptor(AbstractInterceptionChain.java:94)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at
org.jboss.weld.interceptor.proxy.InterceptorInvocationContext.proceed(InterceptorInvocationContext.java:149)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at
com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorBase.invokeInOurTx(TransactionalInterceptorBase.java:92)
[narayana-jts-jacorb-5.0.2.Final.jar:5.0.2.Final (revision: d1e56)]
at
com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorRequired.intercept(TransactionalInterceptorRequired.java:52)
[narayana-jts-jacorb-5.0.2.Final.jar:5.0.2.Final (revision: d1e56)]
at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source) [:1.8.0_20]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_20]
at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_20]
at
org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:74)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at
org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNext(AbstractInterceptionChain.java:116)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at
org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNextInterceptor(AbstractInterceptionChain.java:94)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at
org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:43)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at
org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:36)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at
org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:51)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at de.shop.iam.web.LogoutModel$Proxy$_$$_WeldSubclass.logout(Unknown Source) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_20]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[rt.jar:1.8.0_20]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_20]
at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_20]
at com.sun.el.parser.AstValue.invoke(AstValue.java:292)
[javax.el-impl-3.0.1-b05-jbossorg-1.jar:3.0.1-b05-jbossorg-1]
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)
[javax.el-impl-3.0.1-b05-jbossorg-1.jar:3.0.1-b05-jbossorg-1]
at
org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at
org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
[weld-core-impl-2.2.3.Final.jar:2014-07-07 07:39]
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
[jsf-impl-2.2.8-jbossorg-1.jar:]
at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
[jboss-jsf-api_2.2_spec-2.2.8.jar:2.2.8]
... 34 more
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)