Hello Users,
I was experiencing a problem which might be a Bug in MyFaces 1.1.5 SNAPSHOT
and wanted to know whether I'm the only one seeing this:
java.lang.NullPointerException
at
org.apache.myfaces.shared_impl.renderkit._SharedRendererUtils.getConvertedUISelectManyValue(_SharedRendererUtils.java:147)
....
(Full exception Stacktrace below)
I know what my error was (using a SelectItem[] for the value attribute in a
selectManyCheckbox) but I still think that this should crash with a
NullPointerException in MyFaces.
What's happening is that the converter logic beginning in
SharedRendererUtils.java:96 doesn't result in a valid converter Object which
leads to this exception. Furthermore, the last line of the converter logic:
converter =
facesContext.getApplication().createConverter(arrayComponentType);
expects createConverter to throw a FacesException in case of an error, but the
method internally used to create the converter object
internalCreateConverter() of the ApplicationImpl might return null without
throwing the exception.
Is this a bug?
Cherrs,
Marcus
java.lang.NullPointerException
at
org.apache.myfaces.shared_impl.renderkit._SharedRendererUtils.getConvertedUISelectManyValue(_SharedRendererUtils.java:147)
at
org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUISelectManyValue(RendererUtils.java:584)
at
org.apache.myfaces.shared_impl.renderkit.html.HtmlCheckboxRendererBase.getConvertedValue(HtmlCheckboxRendererBase.java:305)
at
javax.faces.component.UISelectMany.getConvertedValue(UISelectMany.java:305)
at javax.faces.component.UIInput.validate(UIInput.java:347)
at javax.faces.component.UISelectMany.validate(UISelectMany.java:294)
at javax.faces.component.UIInput.processValidators(UIInput.java:181)
at
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
at com.sun.facelets.component.UIRepeat.process(UIRepeat.java:366)
at
com.sun.facelets.component.UIRepeat.processValidators(UIRepeat.java:447)
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.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.java:29)
at
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:92)
at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:67)
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
com.freiheit.zeit.ads.web.filter.ContextProviderFilter.doFilter(ContextProviderFilter.java:63)
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.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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
--
Marcus Thiesen
Bachelor of Science (BSc)
freiheit.com technologies gmbh
Straßenbahnring 22 / 20251 Hamburg, Germany
fon +49 (0)40 / 890584-0
fax +49 (0)40 / 890584-20
0553 222D ABF2 DF71 0CF6 C262 C77E 2AAF 6BE4 4DA4
Bücher kaufen und Freie Software fördern | http://bookzilla.de/