[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3029) SeamPhaseListener swallowing NullPointerException
by asookazian (JIRA)
SeamPhaseListener swallowing NullPointerException
-------------------------------------------------
Key: JBSEAM-3029
URL: http://jira.jboss.com/jira/browse/JBSEAM-3029
Project: Seam
Issue Type: Bug
Affects Versions: 2.0.1.GA
Environment: Seam 2.0.1.GA
JBoss 4.2.1.GA
RF3.2.0.SR1
Windows XP 5.1 SP2
Reporter: asookazian
Not sure what the root cause of this is, how to reproduce it, or what damage it may cause while executing use cases in the app. As directed by Dan Allen, posting stack trace here:
11:42:10,468 ERROR [SeamPhaseListener] uncaught exception
java.lang.NullPointerException
at org.apache.catalina.connector.Request.parseParameters(Request.java:2409)
at org.apache.catalina.connector.Request.getParameterNames(Request.java:1073)
at org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFacade.java:371)
at javax.servlet.ServletRequestWrapper.getParameterNames(ServletRequestWrapper.java:178)
at com.sun.faces.context.RequestParameterMap.getEntryIterator(ExternalContextImpl.java:1174)
at com.sun.faces.context.BaseContextMap$EntrySet.iterator(ExternalContextImpl.java:575)
at com.sun.faces.context.BaseContextMap$BaseSet.size(ExternalContextImpl.java:563)
at java.util.Collections$UnmodifiableCollection.size(Unknown Source)
at java.util.AbstractMap.size(Unknown Source)
at java.util.Collections$UnmodifiableMap.size(Unknown Source)
at org.jboss.seam.contexts.EntityBeanMap.passivateAll(EntityBeanMap.java:65)
at org.jboss.seam.contexts.AbstractEntityBeanCollection.passivate(AbstractEntityBeanCollection.java:43)
at org.jboss.seam.contexts.ServerConversationContext.isAttributeDirty(ServerConversationContext.java:307)
at org.jboss.seam.contexts.ServerConversationContext.flush(ServerConversationContext.java:280)
at org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:371)
at org.jboss.seam.contexts.FacesLifecycle.endRequest(FacesLifecycle.java:112)
at org.jboss.seam.jsf.SeamPhaseListener.afterRenderResponse(SeamPhaseListener.java:502)
at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:235)
at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:182)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:118)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:362)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
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:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
11:42:10,468 ERROR [SeamPhaseListener] swallowing exception
java.lang.NullPointerException
at org.apache.catalina.connector.Request.parseParameters(Request.java:2409)
at org.apache.catalina.connector.Request.getParameterNames(Request.java:1073)
at org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFacade.java:371)
at javax.servlet.ServletRequestWrapper.getParameterNames(ServletRequestWrapper.java:178)
at com.sun.faces.context.RequestParameterMap.getEntryIterator(ExternalContextImpl.java:1174)
at com.sun.faces.context.BaseContextMap$EntrySet.iterator(ExternalContextImpl.java:575)
at com.sun.faces.context.BaseContextMap$BaseSet.size(ExternalContextImpl.java:563)
at java.util.Collections$UnmodifiableCollection.size(Unknown Source)
at java.util.AbstractMap.size(Unknown Source)
at java.util.Collections$UnmodifiableMap.size(Unknown Source)
at org.jboss.seam.contexts.EntityBeanMap.passivateAll(EntityBeanMap.java:65)
at org.jboss.seam.contexts.AbstractEntityBeanCollection.passivate(AbstractEntityBeanCollection.java:43)
at org.jboss.seam.contexts.ServerConversationContext.isAttributeDirty(ServerConversationContext.java:307)
at org.jboss.seam.contexts.ServerConversationContext.flush(ServerConversationContext.java:280)
at org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:371)
at org.jboss.seam.contexts.FacesLifecycle.endRequest(FacesLifecycle.java:112)
at org.jboss.seam.jsf.SeamPhaseListener.afterRenderResponse(SeamPhaseListener.java:502)
at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:235)
at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:182)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:118)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:362)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
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:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 8 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2158) Can't inject a org.hibernate.classic.Session
by Clint Popetz (JIRA)
Can't inject a org.hibernate.classic.Session
--------------------------------------------
Key: JBSEAM-2158
URL: http://jira.jboss.com/jira/browse/JBSEAM-2158
Project: JBoss Seam
Issue Type: Feature Request
Components: Core
Affects Versions: 2.0.0.CR3
Reporter: Clint Popetz
If one does
import org.hibernate.classic.Session;
@In Session session;
the injection throws an IllegalArgumentException, because HibernateSessionProxy doesn't implement the classic Session interface. It seems harmless to do this, and would allow for easier migration of large source bases from loyal hibernate early adoptees that are now transitioning to the next-big-thing.
If making HibernateSessionProxy implement the classic interface would be acceptable, please make note of it here and I'll create a patch to that effect.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 8 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3042) General export wrapper for JSF components (mainly datatables)
by Nicklas Karlsson (JIRA)
General export wrapper for JSF components (mainly datatables)
-------------------------------------------------------------
Key: JBSEAM-3042
URL: http://jira.jboss.com/jira/browse/JBSEAM-3042
Project: Seam
Issue Type: Feature Request
Components: Core
Reporter: Nicklas Karlsson
It would be handy to have a centralized way of exporting data from the view (as outlined in the forum reference)
A seam component with the methods like
public void export(String componentID, String exportFormat);
public void registerExporter(String exportFormat, String componentName);
and registered exporters for xls, pdf, jpg, csv, xml etc. that would be capable of fetching the component by ID and rendering them to the requesting format
A custom toolbar-component with icons for registered formats could also be handy
(could be useful to generalize the PDF DocumentStore concept for a case like this)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 8 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3038) Integrate Comet (Reverse Ajax) into Seam
by Senthilkumar Muthusamy (JIRA)
Integrate Comet (Reverse Ajax) into Seam
----------------------------------------
Key: JBSEAM-3038
URL: http://jira.jboss.com/jira/browse/JBSEAM-3038
Project: Seam
Issue Type: Feature Request
Components: Core, Remoting
Environment: It is a feature request. Should need a Comet Javascript client on top of existing remoting API and Server side Seam Components to handle Comet Events
Reporter: Senthilkumar Muthusamy
Priority: Critical
Comet is good programing technique where the server side changes will be pushed to the client without client asking for (pull). One of the Java Script libraries which has comet support implemented is Dojo. For more info about comet is at http://alex.dojotoolkit.org/?p=545.
In the Server Side, Servlet Spec 3.0 also going to support comet programing model using HttpServletRequest/Response with
suspend/resume etc method. Jetty has continuation api which does the same (http://docs.codehaus.org/display/JETTY/Continuation)
It is something different than JMS API exposed to clients like what Seam has. Since Seam is deep integration framework not only with JEE specs but also with good client side support thanks to remoting API. It is almost all the hard lifting done but need this enhancement for future web developments. It would be greater selling point for Seam too.
http://docs.codehaus.org/display/JETTY/Continuations.
In other note,
I am currently using comet model existing in Glassfish Application server (Grizzly) with Dojo and Seam. I extensively used Seam Eventing framework to notify server changes to Central Comet Seam Component which handles/integrates the Glassfish specific comet features.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 8 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2427) Email rendering from async method/event fails to find web resources
by Allon Rauer (JIRA)
Email rendering from async method/event fails to find web resources
-------------------------------------------------------------------
Key: JBSEAM-2427
URL: http://jira.jboss.com/jira/browse/JBSEAM-2427
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 2.0.0.GA
Reporter: Allon Rauer
Priority: Minor
Our system sometimes renders emails (system status, etc.) triggered by a periodic async event.
In this context, the email renderer cannot find the xhtml email templates that reside in the web resources directory.
Solution: in org.jboss.seam.ui.facelet.FaceletsRenderer
modify this block (to propagate the servlet context)....
from:
// If a FacesContext isn't available, set one up
if (FacesContext.getCurrentInstance() == null)
{
MockFacesContext mockFacesContext = new MockFacesContext(new MockExternalContext())
.setCurrent();
mockFacesContext.createViewRoot();
}
to:
// If a FacesContext isn't available, set one up
if (FacesContext.getCurrentInstance() == null)
{
MockFacesContext mockFacesContext = new MockFacesContext(new MockExternalContext(ServletLifecycle.getServletContext()))
.setCurrent();
mockFacesContext.createViewRoot();
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 8 months