This Question is Answered

2 "helpful" answers available (2 pts)
3 Replies Last post: Nov 14, 2007 2:42 PM by Tatyana Matveyeva  
Joerg Mertins   36 posts since
Jul 16, 2007
Currently Being Moderated

Nov 8, 2007 3:11 PM

Throw IllegalArgumentException at submit a form with q:twoListSelection

Hello,

 

i tried to create an html form with q:twoListSelection and some h:inputText elements. The tomcat throws an illegalargumentException on submit this form.

 

The Stacktrace is:

SCHWERWIEGEND: Servlet.service() for servlet faces threw exception

java.lang.IllegalArgumentException

     at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:166)

     at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:49)

     at javax.faces.component.UISelectMany.matchValue(UISelectMany.java:485)

     at javax.faces.component.UISelectMany.validateValue(UISelectMany.java:454)

     at javax.faces.component.UIInput.validate(UIInput.java:867)

     at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)

     at javax.faces.component.UIInput.processValidators(UIInput.java:666)

     at javax.faces.component.UIForm.processValidators(UIForm.java:229)

     at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030)

     at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)

     at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)

     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.internalDoFilter(ApplicationFilterChain.java:290)

     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

     at teamdev.jsf.util.ResourceFilter.doFilter(SourceFile:38)

     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

     at teamdev.jsf.util.ResourceFilter.doFilter(SourceFile:69)

     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

     at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)

     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:233)

     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)

     at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852)

     at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:584)

     at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)

     at java.lang.Thread.run(Thread.java:595)

 

My Environment is SUN JSF RI 1.2 with facelets 1.1.11 with quipukit 1.2.2!

I have attachted the xhtml file and the java bean.

 

Regards

Jörg

Attachments:
Tatyana Matveyeva   873 posts since
Aug 16, 2006
Currently Being Moderated
1. Nov 12, 2007 6:07 PM in response to: Joerg Mertins
Re: Throw IllegalArgumentException at submit a form with q:twoListSelection

Hello Jörg,

 

Unfortunately, the information you provided is not enough to reproduce the problem. I tried to define SelectItems using fake data (see the attached file) and everything works fine. We need all files related to your use case in order to reproduce the problem.

 

Regards,

Tatyana

Attachments:
Tatyana Matveyeva   873 posts since
Aug 16, 2006
Currently Being Moderated
3. Nov 14, 2007 2:42 PM in response to: Joerg Mertins
Re: Throw IllegalArgumentException at submit a form with q:twoListSelection

Hello Joerg,

 

Thank you for providing the application. We managed to reproduce the problem. However, the problem is not related to the TwoListSelection component. The same problem occurs if you replace the TwoListSelection with the SelectManyListBox component. The ConfigureTable class is request scope managed bean and when you submit the page, the list of available items is null. You can specify the configureTable backing bean as session and everything will work fine. If you need the configureTable backing bean to be request scoped bean, you should change the logic of specifying available items.

 

Regards,

Tatyana

More Like This

  • Retrieving data ...