[jboss-user] [JBoss Seam] - Re: Challenge: Simple Example Adding Records With Lookup Dro

Newlukai do-not-reply at jboss.com
Thu Nov 23 05:22:22 EST 2006


I'm trying to use <si:selectItems> and I followed all the hints in the example, but I still get an exception:

java.lang.NullPointerException
  | 	at org.jboss.seam.core.Messages$1.get(Messages.java:51)
  | 	at org.jboss.seam.core.Messages$1.get(Messages.java:79)
  | 	at org.jboss.seam.selectitems.jsf.SelectItemsConverter.getMessage(SelectItemsConverter.java:74)
  | 	at org.jboss.seam.selectitems.jsf.EntityConverter.loadEntityFromPersistenceContext(EntityConverter.java:122)
  | 	at org.jboss.seam.selectitems.jsf.EntityConverter.convertToObject(EntityConverter.java:48)
  | 	at org.jboss.seam.selectitems.jsf.SelectItemsConverter.getAsObject(SelectItemsConverter.java:52)
  | 	at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUIOutputValue(RendererUtils.java:651)
  | 	at org.apache.myfaces.shared_impl.renderkit.html.HtmlMenuRendererBase.getConvertedValue(HtmlMenuRendererBase.java:111)
  | 	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:395)
  | 	at javax.faces.component.UIInput.validate(UIInput.java:349)
  | 	at javax.faces.component.UIInput.processValidators(UIInput.java:183)
  | 	at javax.faces.component.UIForm.processValidators(UIForm.java:70)
  | 	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
  | 	at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:146)
  | 	at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:262)
  | 	at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
  | 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 	at java.lang.Thread.run(Thread.java:595)

It seems that during validation the converter can't get a message. So I think I didn't setup your jars (1.1.1beta2) properly.

I placed the two jars to the \WEB-INF\lib directory of my war and included them in the Class-Path entry of the manifest for the war. Do I have to do something else?

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

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



More information about the jboss-user mailing list