Simplica

ProductsLearnPurchaseSupportDemoDownload
  [Search] Search   [Recent Topics] Recent Topics  
date input exceptions
Forum Index -> Calendar/Date Input
Author Message
cobar


Joined: 08/01/2007 17:02:58
Messages: 98
Offline

Running 1.1.8.


endVac date populated from DB with value 11/24/2008. Click on calendar to change the date:

ajax response error: For input string: "Nov 24, 2008"
java.lang.NumberFormatException: For input string: "Nov 24, 2008"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:4
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.valueOf(Integer.java:553)
at ecruiser.advanced.calendar.render.html.HTML_CalendarRenderer.getJSParams(Unknown Source)
at ecruiser.advanced.calendar.render.html.HTML_CalendarRenderer.encodeEnd(Unknown Source)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
at ecruiser.render.html.HTML_ContentRenderer.encodeChildren(Unknown Source)
at ecruiser.render.html.HTML_PopupDivRenderer.ajaxEncode(Unknown Source)
at ecruiser.advanced.calendar.render.html.HTML_DateInputRenderer.ajaxEncode(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeComponent(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.ajaxResponse(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.beforePhase(Unknown Source)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
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.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:19
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:19
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:19
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:28
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:56
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)



adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 189
Offline

I could not reproduce this issue using this scenario. I wonder if you have some parent component for dateInput, and if you set dateInput's converter programmatic. I need to know if you have modified dateInput's behavior somehow. Also, please let me know which JSF implementation are you using.
cobar


Joined: 08/01/2007 17:02:58
Messages: 98
Offline

JSF 1.2. No parent and did not set converter programically. I have the value the dateinput bound to a java.util.Date in managed bean, a date in the POJO object bound in bean. This seems related to the issue you fixed for 1.9. Are you using 1.8 or the fixed code. The pattern is set to MM/dd/yyyy but I can't tell from exception if the framework change format to MMM and therefore throws parse exception on month.
adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 189
Offline

I used exactly the same .jar as you did, and I've made tests with both JSF 1.2 and JSF 1.2_04 but still can't reproduce... How did you populate the dateInput from DB?
cobar


Joined: 08/01/2007 17:02:58
Messages: 98
Offline

Attached files throws exception when you click on calendar
 Filename eDateInputError.doc [Disk] Download
 Description
 Filesize 495 Kbytes
 Downloaded:  534 time(s)

 Filename testDateInput.jsp [Disk] Download
 Description
 Filesize 1 Kbytes
 Downloaded:  633 time(s)

 Filename TestManagedBean.java [Disk] Download
 Description
 Filesize 8 Kbytes
 Downloaded:  640 time(s)

adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 189
Offline

I've tested your sources with JSF 1.2 and Weblogic 10, Sun 9.1 and JBoss 4.23 and they are working fine in every case. My question is: do you have an hidden input or a parameter with name of this pattern "calendar_client_id:value"?


cobar


Joined: 08/01/2007 17:02:58
Messages: 98
Offline

Not that I can fine. I will try and isolate it entirely in its own project.
 Filename testDateInput.html [Disk] Download
 Description
 Filesize 7 Kbytes
 Downloaded:  710 time(s)

cobar


Joined: 08/01/2007 17:02:58
Messages: 98
Offline

I found the issue to be that the tomahawk components are incompatible with the ecruiser comonents. Just add the tomahawk jar file attached to your project.
 Filename tomahawk-1.1.6.jar [Disk] Download
 Description
 Filesize 2872 Kbytes
 Downloaded:  121 time(s)

adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 189
Offline

Yeah, I could reproduce the error with tomahawk.jar file. We'll take a look into this problem, and come with an answer as soon as possible.
cobar


Joined: 08/01/2007 17:02:58
Messages: 98
Offline

I will try and convert our tomahawk tabs to ecruiser tabs. Then I can drop tomahawk all together and fix this issue from our end.
 
Forum Index -> Calendar/Date Input
Go to:   
Powered by JForum 2.1.7 © JForum Team
Home   |  News   |  Contact   |  About   |  License   |  Privacy   |  Documentation
Copyright © 2009 Simplica Corporation. All rights reserved.