[JBoss Seam] - Exception when page is re-rendered after missing required fi
by rlhr
hello,
I'm using jboss-4.2.0.CR1 and jboss-seam-CVS.20070416.
This flow was working fine with jboss-4.0.5.GA and previous version of Seam
I have xhtml page containing multiple required fields. The page is part of a page flow. If I click the next button without filling out the required field, an exception is thrown when the page is re-rendered due to a class not being loaded properly.
The class is used in the custom method pc:displayType.
This methods works fine is that same page. It is only when redisplayig the page because some required field are null, that the exception occurs.
Here is the part of the xhtml:
| <f:subview id="select" rendered="#{pageAction.displayChoice}">
| <h:selectOneRadio id="userType" value="#{pageAction.userType}" required="true" layout="pageDirection" styleClass="radio" converter="#{pageAction.userTypeConverter}">
| <f:selectItems value="#{pageAction.userTypes}" />
| </h:selectOneRadio>
| </f:subview>
| <f:subview rendered="#{not pageAction.displayChoice}">
| <h:outputText value="#{messages[pc:displayType(categoryType, pageAction.userType)]}" styleClass="boldText" />
| </f:subview>
|
The exception is:
| 11:39:24,359 ERROR [STDERR] Apr 18, 2007 11:39:24 AM com.sun.facelets.FaceletViewHandler handleRenderException
| SEVERE: Error Rendering View[/userForm.xhtml]
| java.lang.NullPointerException
| at org.apache.el.lang.FunctionMapperImpl$Function.writeExternal(FunctionMapperImpl.java:123)
| at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
| at java.util.HashMap.writeObject(HashMap.java:1039)
| at sun.reflect.GeneratedMethodAccessor629.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
| at org.apache.el.lang.FunctionMapperImpl.writeExternal(FunctionMapperImpl.java:74)
| at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
| at org.apache.el.ValueExpressionImpl.writeExternal(ValueExpressionImpl.java:256)
| at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
| at com.sun.facelets.el.TagValueExpression.writeExternal(TagValueExpression.java:128)
| at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
| at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
| at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:233)
| at javax.faces.render.ResponseStateManager.writeState(ResponseStateManager.java:155)
| at com.sun.faces.application.StateManagerImpl.writeState(StateManagerImpl.java:300)
| at org.jboss.seam.jsf.SeamStateManager.writeState(SeamStateManager.java:66)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:599)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
| 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 org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| 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:228)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| 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:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
| at java.lang.Thread.run(Thread.java:595)
| 11:39:24,484 ERROR [STDERR] java.lang.ClassNotFoundException: No ClassLoaders found for: com.app.ui.util.ELUtils
| 11:39:24,484 ERROR [STDERR] at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
| 11:39:24,484 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
| 11:39:24,484 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
| 11:39:24,484 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| 11:39:24,484 ERROR [STDERR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| 11:39:24,484 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
| 11:39:24,484 ERROR [STDERR] at java.lang.Class.forName(Class.java:164)
| 11:39:24,484 ERROR [STDERR] at org.apache.el.lang.FunctionMapperImpl$Function.getMethod(FunctionMapperImpl.java:147)
| 11:39:24,484 ERROR [STDERR] at org.apache.el.lang.FunctionMapperImpl.resolveFunction(FunctionMapperImpl.java:53)
| 11:39:24,484 ERROR [STDERR] at org.apache.el.parser.AstFunction.getValue(AstFunction.java:71)
| 11:39:24,484 ERROR [STDERR] at org.apache.el.parser.AstBracketSuffix.getValue(AstBracketSuffix.java:21)
| 11:39:24,484 ERROR [STDERR] at org.apache.el.parser.AstValue.getValue(AstValue.java:92)
| 11:39:24,484 ERROR [STDERR] at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
| 11:39:24,484 ERROR [STDERR] at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| 11:39:24,484 ERROR [STDERR] at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
| 11:39:24,484 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor756.invoke(Unknown Source)
| 11:39:24,484 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 11:39:24,484 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.writeAttributes(DevTools.java:240)
| 11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.writeStart(DevTools.java:284)
| 11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.writeComponent(DevTools.java:189)
| 11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.writeComponent(DevTools.java:207)
| 11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.writeComponent(DevTools.java:207)
| 11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.writeComponent(DevTools.java:207)
| 11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.debugHtml(DevTools.java:107)
| 11:39:24,484 ERROR [STDERR] at com.sun.facelets.FaceletViewHandler.handleRenderException(FaceletViewHandler.java:671)
| 11:39:24,484 ERROR [STDERR] at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:639)
| 11:39:24,484 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
| 11:39:24,484 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
| 11:39:24,484 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| 11:39:24,484 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| 11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| 11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| 11:39:24,484 ERROR [STDERR] at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| 11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| 11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| 11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| 11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| 11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| 11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53)
| 11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| 11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| 11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| 11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| 11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 11:39:24,484 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| 11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
| 11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| 11:39:24,484 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| 11:39:24,484 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| 11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| 11:39:24,484 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| 11:39:24,484 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| 11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| 11:39:24,484 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
| 11:39:24,484 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| 11:39:24,484 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
| 11:39:24,484 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
| 11:39:24,484 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038530#4038530
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038530
19 years
[JCA/JBoss] - JBossMessageEndpointFactory ClassNotFoundException when I re
by michele.curioni
Hi there,
I have implemented a JCA 1.5 inbound-resourceadapter within my ear file.
The resource adapter code is contained in a .rar file;
the messagelistener-type interface is contained in a .jar file that is referenced from the manifest file of the rar.
I have a MDB that implements the messagelistener-type, which is contained in another jar file.
All of them are part of the ear.
When I deploy and start the application everything works fine.
If I then stop the MDB via the JMX console,
when I try to start it again, I get a ClassNotFoundException for the messagelistener-type.
Here is the stacktrace:
[JBossMessageEndpointFactory] Starting failed jboss.j2ee:service=EJB,plugin=invoker,binding=message-inflow-driven-bean,jndiName=local/Solve3/RawProtocolRoutingMDBean@23247054 org.jboss.deployment.DeploymentException: Could not load messaging-type class biz.thelogicgroup.solve3.inputdriver.MessageRouting; - nested throwable: (java.lang.ClassNotFoundException: biz.thelogicgroup.solve3.inputdriver.MessageRouting)
at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:39)
at org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory.resolveMessageListener(JBossMessageEndpointFactory.java:312)
I tried to reference the jar file that contains the messagelistener-type from the jar file that contains the MDB, but no difference.
Any idea?
Thanks,
Michele
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038520#4038520
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038520
19 years