[jira] [Commented] (WW-5272) java.lang.UnsupportedOperationException in the Time component
[ https://issues.apache.org/jira/browse/WW-5272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17654537#comment-17654537 ] ASF subversion and git services commented on WW-5272: - Commit 08de24588ad5b88ec3554b476c9d3cf0fb47b32c in struts's branch refs/heads/master from Lukasz Lenart [ https://gitbox.apache.org/repos/asf?p=struts.git;h=08de24588 ] WW-5272 Extends to support java.sql.Time > java.lang.UnsupportedOperationException in the Time component > - > > Key: WW-5272 > URL: https://issues.apache.org/jira/browse/WW-5272 > Project: Struts 2 > Issue Type: Bug >Affects Versions: 6.0.3 >Reporter: Massimiliano Del Matto >Priority: Major > Fix For: 6.2.0 > > Time Spent: 40m > Remaining Estimate: 0h > > We are facing a java.lang.UnsupportedOperationException on some java.sql.Time > fields in our frontend after migrating from 2.5.26 to 6.0.3. > Error 12/22/2022 09:52:20:122 Caused by: > java.lang.UnsupportedOperationException > Error 12/22/2022 09:52:20:122 at java.sql.Time.toInstant(Time.java:291) > Error 12/22/2022 09:52:20:122 at > org.apache.struts2.components.Date.end(Date.java:299) > Error 12/22/2022 09:52:20:122 at > org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:40) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspx_method_s_date_2(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:408) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspx_method_s_form_0(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:1950) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspService(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:60) > ... > > At line 299 in Date.java there is no code related to java.sql.Time > [https://github.com/apache/struts/blob/STRUTS_6_0_3/core/src/main/java/org/apache/struts2/components/Date.java#L299] > > java.sql.Time extends java.util.Date so when dateObject is java.sql.Time is > treated like an instanceof java.util.Date and toInstant() throws the > UnsupportedOperationException. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (WW-5272) java.lang.UnsupportedOperationException in the Time component
[ https://issues.apache.org/jira/browse/WW-5272?focusedWorklogId=836946&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-836946 ] ASF GitHub Bot logged work on WW-5272: -- Author: ASF GitHub Bot Created on: 04/Jan/23 16:18 Start Date: 04/Jan/23 16:18 Worklog Time Spent: 10m Work Description: lukaszlenart merged PR #649: URL: https://github.com/apache/struts/pull/649 Issue Time Tracking --- Worklog Id: (was: 836946) Time Spent: 40m (was: 0.5h) > java.lang.UnsupportedOperationException in the Time component > - > > Key: WW-5272 > URL: https://issues.apache.org/jira/browse/WW-5272 > Project: Struts 2 > Issue Type: Bug >Affects Versions: 6.0.3 >Reporter: Massimiliano Del Matto >Priority: Major > Fix For: 6.2.0 > > Time Spent: 40m > Remaining Estimate: 0h > > We are facing a java.lang.UnsupportedOperationException on some java.sql.Time > fields in our frontend after migrating from 2.5.26 to 6.0.3. > Error 12/22/2022 09:52:20:122 Caused by: > java.lang.UnsupportedOperationException > Error 12/22/2022 09:52:20:122 at java.sql.Time.toInstant(Time.java:291) > Error 12/22/2022 09:52:20:122 at > org.apache.struts2.components.Date.end(Date.java:299) > Error 12/22/2022 09:52:20:122 at > org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:40) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspx_method_s_date_2(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:408) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspx_method_s_form_0(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:1950) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspService(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:60) > ... > > At line 299 in Date.java there is no code related to java.sql.Time > [https://github.com/apache/struts/blob/STRUTS_6_0_3/core/src/main/java/org/apache/struts2/components/Date.java#L299] > > java.sql.Time extends java.util.Date so when dateObject is java.sql.Time is > treated like an instanceof java.util.Date and toInstant() throws the > UnsupportedOperationException. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (WW-5272) java.lang.UnsupportedOperationException in the Time component
[ https://issues.apache.org/jira/browse/WW-5272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17654538#comment-17654538 ] ASF subversion and git services commented on WW-5272: - Commit d90bee49b5d521c591084111a4cba76aef3b7ea3 in struts's branch refs/heads/master from Lukasz Lenart [ https://gitbox.apache.org/repos/asf?p=struts.git;h=d90bee49b ] Merge pull request #649 from apache/WW-5272-time [WW-5272] Extends to support java.sql.Time > java.lang.UnsupportedOperationException in the Time component > - > > Key: WW-5272 > URL: https://issues.apache.org/jira/browse/WW-5272 > Project: Struts 2 > Issue Type: Bug >Affects Versions: 6.0.3 >Reporter: Massimiliano Del Matto >Priority: Major > Fix For: 6.2.0 > > Time Spent: 40m > Remaining Estimate: 0h > > We are facing a java.lang.UnsupportedOperationException on some java.sql.Time > fields in our frontend after migrating from 2.5.26 to 6.0.3. > Error 12/22/2022 09:52:20:122 Caused by: > java.lang.UnsupportedOperationException > Error 12/22/2022 09:52:20:122 at java.sql.Time.toInstant(Time.java:291) > Error 12/22/2022 09:52:20:122 at > org.apache.struts2.components.Date.end(Date.java:299) > Error 12/22/2022 09:52:20:122 at > org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:40) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspx_method_s_date_2(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:408) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspx_method_s_form_0(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:1950) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspService(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:60) > ... > > At line 299 in Date.java there is no code related to java.sql.Time > [https://github.com/apache/struts/blob/STRUTS_6_0_3/core/src/main/java/org/apache/struts2/components/Date.java#L299] > > java.sql.Time extends java.util.Date so when dateObject is java.sql.Time is > treated like an instanceof java.util.Date and toInstant() throws the > UnsupportedOperationException. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (WW-5272) java.lang.UnsupportedOperationException in the Time component
[ https://issues.apache.org/jira/browse/WW-5272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lukasz Lenart resolved WW-5272. --- Resolution: Fixed > java.lang.UnsupportedOperationException in the Time component > - > > Key: WW-5272 > URL: https://issues.apache.org/jira/browse/WW-5272 > Project: Struts 2 > Issue Type: Bug >Affects Versions: 6.0.3 >Reporter: Massimiliano Del Matto >Priority: Major > Fix For: 6.2.0 > > Time Spent: 40m > Remaining Estimate: 0h > > We are facing a java.lang.UnsupportedOperationException on some java.sql.Time > fields in our frontend after migrating from 2.5.26 to 6.0.3. > Error 12/22/2022 09:52:20:122 Caused by: > java.lang.UnsupportedOperationException > Error 12/22/2022 09:52:20:122 at java.sql.Time.toInstant(Time.java:291) > Error 12/22/2022 09:52:20:122 at > org.apache.struts2.components.Date.end(Date.java:299) > Error 12/22/2022 09:52:20:122 at > org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:40) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspx_method_s_date_2(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:408) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspx_method_s_form_0(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:1950) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspService(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:60) > ... > > At line 299 in Date.java there is no code related to java.sql.Time > [https://github.com/apache/struts/blob/STRUTS_6_0_3/core/src/main/java/org/apache/struts2/components/Date.java#L299] > > java.sql.Time extends java.util.Date so when dateObject is java.sql.Time is > treated like an instanceof java.util.Date and toInstant() throws the > UnsupportedOperationException. -- This message was sent by Atlassian Jira (v8.20.10#820010)