StringIndexOutOfBoundsException in OfbizContentTransform
-------------------------------------------------------- Key: OFBIZ-4464 URL: https://issues.apache.org/jira/browse/OFBIZ-4464 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: Release Branch 11.04, SVN trunk Reporter: Kiran Gawde ---- exception report ---------------------------------------------------------- Error in request handler: Exception: org.ofbiz.widget.screen.ScreenRenderException Message: Error rendering screen [component://ecommerce/widget/CommonScreens.xml#main-decorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 (String index out of range: 0) ---- cause --------------------------------------------------------------------- Exception: java.lang.StringIndexOutOfBoundsException Message: String index out of range: 0 ---- stack trace --------------------------------------------------------------- java.lang.StringIndexOutOfBoundsException: String index out of range: 0 java.lang.String.charAt(String.java:686) org.ofbiz.webapp.ftl.OfbizContentTransform$1.close(OfbizContentTransform.java:97) freemarker.core.Environment.visit(Environment.java:265) freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
[ https://issues.apache.org/jira/browse/OFBIZ-4464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kiran Gawde updated OFBIZ-4464: ------------------------------- Attachment: OFBIZ-4464-OfbizContentTransformJava.patch Added defensive code. > StringIndexOutOfBoundsException in OfbizContentTransform > -------------------------------------------------------- > > Key: OFBIZ-4464 > URL: https://issues.apache.org/jira/browse/OFBIZ-4464 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Release Branch 11.04, SVN trunk > Reporter: Kiran Gawde > Attachments: OFBIZ-4464-OfbizContentTransformJava.patch > > > ---- exception report ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.widget.screen.ScreenRenderException > Message: Error rendering screen [component://ecommerce/widget/CommonScreens.xml#main-decorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 (String index out of range: 0) > ---- cause --------------------------------------------------------------------- > Exception: java.lang.StringIndexOutOfBoundsException > Message: String index out of range: 0 > ---- stack trace --------------------------------------------------------------- > java.lang.StringIndexOutOfBoundsException: String index out of range: 0 > java.lang.String.charAt(String.java:686) > org.ofbiz.webapp.ftl.OfbizContentTransform$1.close(OfbizContentTransform.java:97) > freemarker.core.Environment.visit(Environment.java:265) > freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182086#comment-13182086 ] Erwan de FERRIERES commented on OFBIZ-4464: ------------------------------------------- Kiran, you should accept to grant license to ASF for inclusion when uploading your patch, otherwise your code cannot be committed. Thanks > StringIndexOutOfBoundsException in OfbizContentTransform > -------------------------------------------------------- > > Key: OFBIZ-4464 > URL: https://issues.apache.org/jira/browse/OFBIZ-4464 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Release Branch 11.04, SVN trunk > Reporter: Kiran Gawde > Attachments: OFBIZ-4464-OfbizContentTransformJava.patch > > > ---- exception report ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.widget.screen.ScreenRenderException > Message: Error rendering screen [component://ecommerce/widget/CommonScreens.xml#main-decorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 (String index out of range: 0) > ---- cause --------------------------------------------------------------------- > Exception: java.lang.StringIndexOutOfBoundsException > Message: String index out of range: 0 > ---- stack trace --------------------------------------------------------------- > java.lang.StringIndexOutOfBoundsException: String index out of range: 0 > java.lang.String.charAt(String.java:686) > org.ofbiz.webapp.ftl.OfbizContentTransform$1.close(OfbizContentTransform.java:97) > freemarker.core.Environment.visit(Environment.java:265) > freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kiran Gawde updated OFBIZ-4464: ------------------------------- Attachment: OFBIZ-4464-OfbizContentTransformJava.patch With ASF license > StringIndexOutOfBoundsException in OfbizContentTransform > -------------------------------------------------------- > > Key: OFBIZ-4464 > URL: https://issues.apache.org/jira/browse/OFBIZ-4464 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Release Branch 11.04, SVN trunk > Reporter: Kiran Gawde > Attachments: OFBIZ-4464-OfbizContentTransformJava.patch > > > ---- exception report ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.widget.screen.ScreenRenderException > Message: Error rendering screen [component://ecommerce/widget/CommonScreens.xml#main-decorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 (String index out of range: 0) > ---- cause --------------------------------------------------------------------- > Exception: java.lang.StringIndexOutOfBoundsException > Message: String index out of range: 0 > ---- stack trace --------------------------------------------------------------- > java.lang.StringIndexOutOfBoundsException: String index out of range: 0 > java.lang.String.charAt(String.java:686) > org.ofbiz.webapp.ftl.OfbizContentTransform$1.close(OfbizContentTransform.java:97) > freemarker.core.Environment.visit(Environment.java:265) > freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kiran Gawde updated OFBIZ-4464: ------------------------------- Attachment: (was: OFBIZ-4464-OfbizContentTransformJava.patch) > StringIndexOutOfBoundsException in OfbizContentTransform > -------------------------------------------------------- > > Key: OFBIZ-4464 > URL: https://issues.apache.org/jira/browse/OFBIZ-4464 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Release Branch 11.04, SVN trunk > Reporter: Kiran Gawde > Attachments: OFBIZ-4464-OfbizContentTransformJava.patch > > > ---- exception report ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.widget.screen.ScreenRenderException > Message: Error rendering screen [component://ecommerce/widget/CommonScreens.xml#main-decorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 (String index out of range: 0) > ---- cause --------------------------------------------------------------------- > Exception: java.lang.StringIndexOutOfBoundsException > Message: String index out of range: 0 > ---- stack trace --------------------------------------------------------------- > java.lang.StringIndexOutOfBoundsException: String index out of range: 0 > java.lang.String.charAt(String.java:686) > org.ofbiz.webapp.ftl.OfbizContentTransform$1.close(OfbizContentTransform.java:97) > freemarker.core.Environment.visit(Environment.java:265) > freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-4464. ---------------------------------- Resolution: Fixed Fix Version/s: Release 10.04 SVN trunk Release Branch 11.04 Assignee: Jacques Le Roux Thanks Kiran, Your patch is in trunk r1304200 R11.04 r1304202 R10.04 r1304201 > StringIndexOutOfBoundsException in OfbizContentTransform > -------------------------------------------------------- > > Key: OFBIZ-4464 > URL: https://issues.apache.org/jira/browse/OFBIZ-4464 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Release Branch 11.04, SVN trunk > Reporter: Kiran Gawde > Assignee: Jacques Le Roux > Fix For: Release Branch 11.04, SVN trunk, Release 10.04 > > Attachments: OFBIZ-4464-OfbizContentTransformJava.patch > > > ---- exception report ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.widget.screen.ScreenRenderException > Message: Error rendering screen [component://ecommerce/widget/CommonScreens.xml#main-decorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 (String index out of range: 0) > ---- cause --------------------------------------------------------------------- > Exception: java.lang.StringIndexOutOfBoundsException > Message: String index out of range: 0 > ---- stack trace --------------------------------------------------------------- > java.lang.StringIndexOutOfBoundsException: String index out of range: 0 > java.lang.String.charAt(String.java:686) > org.ofbiz.webapp.ftl.OfbizContentTransform$1.close(OfbizContentTransform.java:97) > freemarker.core.Environment.visit(Environment.java:265) > freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
Free forum by Nabble | Edit this page |