Hi, I get latest ofbiz trunk and i cannot start it. If i revert the changes from r561701 the error disappears.
here is the error log: [java] 2007-08-01 13:08:45,148 (http-0.0.0.0-8443-Processor4) [ ContextFilter.java:182:INFO ] [Request]: /webtools/control/checkLogin/main [java] 2007-08-01 13:08:45,150 (http-0.0.0.0-8443-Processor4) [ ControlServlet.java:93 :INFO ] The character encoding of the request is: [null]. The character encoding we will use for the request and response is: [UTF-8] [java] 2007-08-01 13:08:45,217 (http-0.0.0.0-8443-Processor4) [ ConfigXMLReader.java:558:INFO ] ConfigMap Created: (4) records in 0.0s [java] 2007-08-01 13:08:45,218 (http-0.0.0.0-8443-Processor4) [ ConfigXMLReader.java:716:INFO ] HandlerMap Created: (5) view handlers and (7) request/event handlers in 0.0s [java] 2007-08-01 13:08:45,224 (http-0.0.0.0-8443-Processor4) [ ConfigXMLReader.java:291:INFO ] RequestMap Created: (96) records in 0.0030s [java] 2007-08-01 13:08:45,225 (http-0.0.0.0-8443-Processor4) [ ConfigXMLReader.java:385:INFO ] ViewMap Created: (59) records in 0.0s [java] 2007-08-01 13:08:45,236 (http-0.0.0.0-8443-Processor4) [ RequestHandler.java:239:INFO ] [Processing Request]: checkLogin sessionId=4A05F105B0986C3C1B5D42DE689D9A77.jvm1 [java] 2007-08-01 13:08:45,331 (http-0.0.0.0-8443-Processor4) [ RequestHandler.java:435:INFO ] [RequestHandler.doRequest]: Response is a page [main] sessionId=4A05F105B0986C3C1B5D42DE689D9A77.jvm1 [java] 2007-08-01 13:08:45,332 (http-0.0.0.0-8443-Processor4) [ RequestHandler.java:576:INFO ] servletName=control, view=main sessionId=4A05F105B0986C3C1B5D42DE689D9A77.jvm1 [java] 2007-08-01 13:08:45,334 (http-0.0.0.0-8443-Processor4) [ UtilJ2eeCompat.java:69 :INFO ] serverInfo: Apache Tomcat/5.5.23 [java] 2007-08-01 13:08:45,335 (http-0.0.0.0-8443-Processor4) [ UtilJ2eeCompat.java:78 :INFO ] Apache Tomcat detected, using all defaults, use: flush on render, response.getOutputStream, nested JSP exception [java] 2007-08-01 13:08:48,567 (http-0.0.0.0-8443-Processor4) [ ScreenFactory.java:118:INFO ] Got 7 screens in 0.054s from: file:/home/bibryam/workspace/ofbiz-trunk/framework/webtools/widget/CommonScreens.xml [java] 2007-08-01 13:08:48,694 (http-0.0.0.0-8443-Processor4) [ ScreenFactory.java:118:INFO ] Got 13 screens in 0.064s from: file:/home/bibryam/workspace/ofbiz-trunk/framework/common/widget/CommonScreens.xml [java] 2007-08-01 13:08:49,340 (http-0.0.0.0-8443-Processor4) [ ModelScreen.java:141:ERROR] Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: -1. Rolling back transaction. [java] 2007-08-01 13:08:49,345 (http-0.0.0.0-8443-Processor4) [ TransactionUtil.java:291:WARN ] [java] ---- exception report ---------------------------------------------------------- [java] [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: [java] Exception: java.lang.Exception [java] Message: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 [java] ---- stack trace --------------------------------------------------------------- [java] java.lang.Exception: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 [java] org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:291) [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:238) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:144) [java] org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:394) [java] org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:151) [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:244) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:136) [java] org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:489) [java] org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:151) [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:244) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:136) [java] org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:131) [java] org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:94) [java] org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:92) [java] org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:641) [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:436) [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:595) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:688) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542) [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) [java] org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) [java] org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) [java] org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) [java] org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) [java] org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) [java] java.lang.Thread.run(Thread.java:595) [java] -------------------------------------------------------------------------------- [java] 2007-08-01 13:08:49,348 (http-0.0.0.0-8443-Processor4) [ TransactionUtil.java:200:ERROR] [java] ---- exception report ---------------------------------------------------------- [java] Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception [java] Exception: javax.transaction.RollbackException [java] Message: null [java] ---- stack trace --------------------------------------------------------------- [java] javax.transaction.RollbackException [java] org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:82) [java] org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:179) [java] org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:167) [java] org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:131) [java] org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:94) [java] org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:92) [java] org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:641) [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:436) [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:595) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:688) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542) [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) [java] org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) [java] org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) [java] org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) [java] org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) [java] org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) [java] java.lang.Thread.run(Thread.java:595) [java] -------------------------------------------------------------------------------- [java] 2007-08-01 13:08:49,350 (http-0.0.0.0-8443-Processor4) [ ModelScreen.java:169:ERROR] [java] ---- exception report ---------------------------------------------------------- [java] Could not commit transaction: org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: -1java.lang.StringIndexOutOfBoundsException: String index out of range: -1 (String index out of range: -1) [java] Exception: org.ofbiz.entity.transaction.GenericTransactionException [java] Message: Roll back error, could not commit transaction, was rolled back instead because of: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: -1java.lang.StringIndexOutOfBoundsException: String index out of range: -1 (String index out of range: -1) [java] ---- stack trace --------------------------------------------------------------- [java] org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: -1java.lang.StringIndexOutOfBoundsException: String index out of range: -1 (String index out of range: -1) [java] org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:201) [java] org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:167) [java] org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:131) [java] org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:94) [java] org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:92) [java] org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:641) [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:436) [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:595) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:688) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542) [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) [java] org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) [java] org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) [java] org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) [java] org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) [java] org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) [java] java.lang.Thread.run(Thread.java:595) [java] java.lang.StringIndexOutOfBoundsException: String index out of range: -1 [java] java.lang.StringBuffer.charAt(StringBuffer.java:163) [java] org.ofbiz.webapp.ftl.OfbizContentTransform$1.close(OfbizContentTransform.java:59) [java] freemarker.core.Environment.visit(Environment.java:265) [java] freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) [java] freemarker.core.Environment.visit(Environment.java:196) [java] freemarker.core.MixedContent.accept(MixedContent.java:92) [java] freemarker.core.Environment.visit(Environment.java:196) [java] freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] freemarker.core.Environment.visit(Environment.java:196) [java] freemarker.core.MixedContent.accept(MixedContent.java:92) [java] freemarker.core.Environment.visit(Environment.java:196) [java] freemarker.core.Environment.process(Environment.java:176) [java] freemarker.template.Template.process(Template.java:232) [java] org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplateAtLocation(FreeMarkerWorker.java:179) [java] org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:77) [java] org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:113) [java] org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:64) [java] org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:806) [java] org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:151) [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:244) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:136) [java] org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:394) [java] org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:151) [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:244) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:136) [java] org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:489) [java] org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:151) [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:244) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:136) [java] org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:131) [java] org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:94) [java] org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:92) [java] org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:641) [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:436) [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:595) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:688) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542) [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) [java] org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) [java] org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) [java] org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) [java] org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) [java] org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) [java] java.lang.Thread.run(Thread.java:595) [java] -------------------------------------------------------------------------------- [java] 2007-08-01 13:08:49,369 (http-0.0.0.0-8443-Processor4) [ ControlServlet.java:196:ERROR] [java] ---- exception report ---------------------------------------------------------- [java] Error in request handler: [java] Exception: org.ofbiz.widget.screen.ScreenRenderException [java] Message: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 (String index out of range: -1) [java] ---- stack trace --------------------------------------------------------------- [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 (String index out of range: -1) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:149) [java] org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:394) [java] org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:151) [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:244) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:136) [java] org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:489) [java] org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:151) [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:244) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:136) [java] org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:131) [java] org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:94) [java] org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:92) [java] org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:641) [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:436) [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:595) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:688) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542) [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) [java] org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) [java] org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) [java] org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) [java] org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) [java] org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) [java] java.lang.Thread.run(Thread.java:595) [java] java.lang.StringIndexOutOfBoundsException: String index out of range: -1 [java] java.lang.StringBuffer.charAt(StringBuffer.java:163) [java] org.ofbiz.webapp.ftl.OfbizContentTransform$1.close(OfbizContentTransform.java:59) [java] freemarker.core.Environment.visit(Environment.java:265) [java] freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) [java] freemarker.core.Environment.visit(Environment.java:196) [java] freemarker.core.MixedContent.accept(MixedContent.java:92) [java] freemarker.core.Environment.visit(Environment.java:196) [java] freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] freemarker.core.Environment.visit(Environment.java:196) [java] freemarker.core.MixedContent.accept(MixedContent.java:92) [java] freemarker.core.Environment.visit(Environment.java:196) [java] freemarker.core.Environment.process(Environment.java:176) [java] freemarker.template.Template.process(Template.java:232) [java] org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplateAtLocation(FreeMarkerWorker.java:179) [java] org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:77) [java] org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:113) [java] org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:64) [java] org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:806) [java] org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:151) [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:244) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:136) [java] org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:394) [java] org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:151) [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:244) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:136) [java] org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:489) [java] org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:151) [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:244) [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:136) [java] org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:131) [java] org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:94) [java] org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:92) [java] org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:641) [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:436) [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:595) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:688) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542) [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) [java] org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) [java] org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) [java] org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) [java] org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) [java] org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) [java] java.lang.Thread.run(Thread.java:595) [java] -------------------------------------------------------------------------------- [java] 2007-08-01 13:08:49,371 (http-0.0.0.0-8443-Processor4) [ ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp [java] 2007-08-01 13:08:49,389 (http-0.0.0.0-8443-Processor4) [ ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp [java] 2007-08-01 13:08:49,564 (http-0.0.0.0-8443-Processor4) [ApplicationDispatcher.java:723:ERROR] Servlet.service() for servlet jsp threw exception [java] java.lang.IllegalStateException: getOutputStream() has already been called for this response [java] at org.apache.catalina.connector.Response.getWriter(Response.java:601) [java] at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:196) [java] at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:105) [java] at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125) [java] at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118) [java] at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:177) [java] at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:116) [java] at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:76) [java] at org.apache.jsp.error.error_jsp._jspService(error_jsp.java:90) [java] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) [java] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328) [java] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) [java] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691) [java] at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594) [java] at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505) [java] at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:221) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) [java] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542) [java] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) [java] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) [java] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) [java] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) [java] at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) [java] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) [java] at java.lang.Thread.run(Thread.java:595) [java] 2007-08-01 13:08:49,565 (http-0.0.0.0-8443-Processor4) [ ControlServlet.java:223:WARN ] Error while trying to send error page using rd.include (will try response.getOutputStream or response.getWriter): org.apache.jasper.JasperException: getOutputStream() has already been called for this response Regards, Bilgin Ibryam |
This change fixes the problem. Should i create jira for it ?
Index: framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java =================================================================== --- framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java (revision 561754) +++ framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java (working copy) @@ -56,8 +56,10 @@ // make the link StringBuffer newURL = new StringBuffer(); ContentUrlTag.appendContentPrefix(request, newURL); - if (newURL.charAt(newURL.length() - 1) != '/' && buf.charAt(0) != '/') { - newURL.append('/'); + if (newURL.length() > 0 ) { + if (newURL.charAt(newURL.length() - 1) != '/' && buf.charAt(0) != '/') { + newURL.append('/'); + } } newURL.append(buf.toString()); out.write(newURL.toString()); |
Bilgin,
I have just committed a very similar fix. Thanks for the bug report and fix. Jacopo Bilgin wrote: > This change fixes the problem. Should i create jira for it ? > > Index: framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java > =================================================================== > --- framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java > (revision 561754) > +++ framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java > (working copy) > @@ -56,8 +56,10 @@ > // make the link > StringBuffer newURL = new StringBuffer(); > ContentUrlTag.appendContentPrefix(request, newURL); > - if (newURL.charAt(newURL.length() - 1) != '/' && > buf.charAt(0) != '/') { > - newURL.append('/'); > + if (newURL.length() > 0 ) { > + if (newURL.charAt(newURL.length() - 1) != '/' > && buf.charAt(0) != '/') { > + newURL.append('/'); > + } > } > newURL.append(buf.toString()); > out.write(newURL.toString()); > |
Free forum by Nabble | Edit this page |