[jboss-user] [JBoss Seam] - <s:convertEntity> with ajax support

trouby do-not-reply at jboss.com
Sun Jun 3 16:41:23 EDT 2007


Hey,

I get a NPE when trying to combine selectItems+convertEntity+a4j support,


I have the following code (with facelets)

  | <h:selectOneMenu id="someId" value="#{myEjb.sb1}" required="false">
  | <s:selectItems value="#{someList.resultList}" var="ia" label="#{ia.name}" noSelectionLabel="Any"/>
  | <s:convertEntity/>
  | <a:support event="onchange" action="#{myManager.valueChanged}" ajaxSingle="true" reRender="actionsPanel" />
  | </h:selectOneMenu>
  | 


Of course I have the action in myManager and 'someList' is an EJBql defined in components.xml file.

When modifying the selectbox options I get the following exception:


  | [#|2007-06-04T00:35:22.203+0300|WARNING|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=16;_ThreadName=httpSSLWorkerThread-8181-1;_RequestID=6a591edb-53f3-4cd5-9912-6686251f41f5;|executePhase(PROCESS_VALIDATIONS 3,com.sun.faces.context.FacesContextImpl at 15f30ad) threw exception
  | javax.faces.FacesException
  | 	at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:108)
  | 	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | 	at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
  | 	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
  | 	at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
  | 	at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | 	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.RedirectFilter.doFilter(RedirectFilter.java:45)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 	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:217)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
  | 	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
  | 	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
  | 	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
  | 	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
  | 	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
  | 	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
  | 	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
  | 	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
  | 	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
  | 	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
  | 	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
  | 	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
  | 	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
  | 	at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
  | 	at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.process(SSLReadTask.java:427)
  | 	at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.doTask(SSLReadTask.java:215)
  | 	at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
  | 	at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
  | Caused by: java.lang.NullPointerException
  | 	at org.jboss.seam.core.Interpolator.interpolate(Interpolator.java:65)
  | 	at org.jboss.seam.core.FacesMessages.createFacesMessage(FacesMessages.java:348)
  | 	at org.jboss.seam.entityconverter.AbstractEntityConverter.getMessage(AbstractEntityConverter.java:60)
  | 	at org.jboss.seam.entityconverter.EntityConverter.getIdAsObject(EntityConverter.java:154)
  | 	at org.jboss.seam.entityconverter.AbstractEntityConverter.getAsObject(AbstractEntityConverter.java:100)
  | 	at org.jboss.seam.ui.PrioritizableConverter.getAsObject(PrioritizableConverter.java:61)
  | 	at org.jboss.seam.ui.ConverterChain.getAsObject(ConverterChain.java:103)
  | 	at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:152)
  | 	at com.sun.faces.renderkit.html_basic.MenuRenderer.convertSelectOneValue(MenuRenderer.java:197)
  | 	at com.sun.faces.renderkit.html_basic.MenuRenderer.getConvertedValue(MenuRenderer.java:359)
  | 	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
  | 	at javax.faces.component.UIInput.validate(UIInput.java:860)
  | 	at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
  | 	at javax.faces.component.UIInput.processValidators(UIInput.java:666)
  | 	at org.ajax4jsf.framework.ajax.AjaxViewRoot.processValidators(AjaxViewRoot.java:331)
  | 	at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
  | 	... 51 more
  | |#]
  | 


thanks,

Asaf.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050766#4050766

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050766



More information about the jboss-user mailing list