[JBoss JIRA] Created: (WELDINT-42) Injecting Session Beans into Servlet in EAR archiv throws exception
by Martin Gencur (JIRA)
Injecting Session Beans into Servlet in EAR archiv throws exception
-------------------------------------------------------------------
Key: WELDINT-42
URL: https://jira.jboss.org/jira/browse/WELDINT-42
Project: Weld Integration
Issue Type: Bug
Environment: JBossAS 6.0.0.M1 udpated with current version of Weld core
Reporter: Martin Gencur
Assignee: Pete Muir
Attachments: pastietrimmed.zip
Injecting Session bean using either @Inject annotation directly or Instance<T> with following .get() into Servlet in EAR archiv throws an exception
Steps to reproduce:
1) download attached zip file and unpack it among weld/jsf examples
2) run "mvn clean package" in root directory of the new project
3) deploy resulting weld-pastie.ear into JBossAS default configuration
4) go to localhost: http://localhost:8080/weld-pastie/download //which invokes the servlet
5) now you can see following exception at jboss console:
08:52:56,537 ERROR [[/weld-pastie]] StandardWrapper.Throwable
java.lang.NullPointerException
at org.jboss.weld.examples.pastie.DownloadServlet.init(DownloadServlet.java:31)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
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:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
08:52:56,538 ERROR [[DownloadServlet]] Allocate exception for servlet DownloadServlet
java.lang.NullPointerException
at org.jboss.weld.examples.pastie.DownloadServlet.init(DownloadServlet.java:31)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
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:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
--
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
14 years, 10 months
[JBoss JIRA] Created: (WELD-387) Conversation exceptions not thrown
by Nicklas Karlsson (JIRA)
Conversation exceptions not thrown
----------------------------------
Key: WELD-387
URL: https://jira.jboss.org/jira/browse/WELD-387
Project: Weld
Issue Type: Bug
Components: Conversations
Affects Versions: 1.0.0.GA
Reporter: Nicklas Karlsson
Assignee: Nicklas Karlsson
Fix For: 1.0.1.CR1
"If the propagated conversation cannot be restored, the container must associate the request with a new transient conversation
and throw an exception of type javax.enterprise.context.NonexistentConversationException from the restore
view phase of the JSF lifecycle"
and
"If the container rejects a request, it must associate the request with a new transient conversation
and throw an exception of type javax.enterprise.context.BusyConversationException from the restore view
phase of the JSF lifecycle"
--
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
14 years, 11 months
[JBoss JIRA] Created: (WELD-403) Activate session scope after call to HttpSession.invalidate()
by steven verborgh (JIRA)
Activate session scope after call to HttpSession.invalidate()
-------------------------------------------------------------
Key: WELD-403
URL: https://jira.jboss.org/jira/browse/WELD-403
Project: Weld
Issue Type: Feature Request
Components: Scopes & Contexts
Affects Versions: 1.0.0.GA
Reporter: steven verborgh
Attachments: session_invalidate.tar.bz2
When calling HttpSession.invalidate() and redirecting to a page that uses a SessionScoped Bean a ContextNotActiveException exception gets thrown.
This is a different behavior than when using the optional JSF annotations (ManagedBean, SessionScoped) and is also different from the standard HttpRequest behaviour where a call HttpRequest.getSession() by default creates a new Session, even after a call to invalidate in the same request/response cycle.
--
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
14 years, 11 months