[jira] Created: (OFBIZ-1223) Changing the language in party manager is broken

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-1223) Changing the language in party manager is broken

Nicolas Malin (Jira)
Changing the language in party manager is broken
------------------------------------------------

                 Key: OFBIZ-1223
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1223
             Project: OFBiz
          Issue Type: Bug
          Components: party
    Affects Versions: SVN trunk
            Reporter: Bilgin Ibryam
             Fix For: SVN trunk


Hi all,
In the party manger, after setSessionLocale  request, the response is findparty view.
In the screen screen there is service in the actions part:
<service service-name="findParty" auto-field-map="parameters"/>
I searched the reason for bug (some hours), but could not find. I cannot see why changing the SessionLocale generates the bug, but changing the SessionTimeZone doesnot generate any bug. If someone finds out, i'll be happy to hear it.
Any way, i did some fixes for it.

Index:  applications/party/widget/partymgr/PartyScreens.xml
===================================================================
---  applications/party/widget/partymgr/PartyScreens.xml (revision 571925)
+++  applications/party/widget/partymgr/PartyScreens.xml (working copy)
@@ -29,7 +29,7 @@
                 <set field="headerItem" value="find"/>
                 <set field="tabButtonItem" value="findparty"/>
 
-                <service service-name="findParty" auto-field-map="parameters"/>
+                <service service-name="findParty" auto-field-map="true"/>
             </actions>
             <widgets>
                 <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">

This looks like fixes the bug, but i am not sure, is it the right way!
Another way to fix the bug is this:
Index: applications/party/webapp/partymgr/WEB-INF/controller.xml
===================================================================
--- applications/party/webapp/partymgr/WEB-INF/controller.xml (revision 571925)
+++ applications/party/webapp/partymgr/WEB-INF/controller.xml (working copy)
@@ -74,8 +74,8 @@
     <request-map uri="setSessionLocale">
         <security https="true" auth="false"/>
         <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
-        <response name="success" type="view" value="main"/>
-        <response name="error" type="view" value="main"/>
+        <response name="success" type="request-redirect-noparam" value="main"/>
+        <response name="error" type="request-redirect-noparam" value="main"/>
     </request-map>
     <request-map uri="setSessionTimeZone">
         <security https="true" auth="false"/>

Lets someone more familiar decides which way to fix the bug.May be there is better way for fixing it.

Changing the time and language is broken also in HR component, but it is due to missing main screen. I attached a patch for it that can be committed easily...
Regards,
Bilgin

I forgot the error log:

     [java] 2007-09-02 12:03:19,484 (http-0.0.0.0-8443-Processor2) [     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-09-02 12:03:19,671 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:558:INFO ] ConfigMap Created: (4) records in 0.0s
     [java] 2007-09-02 12:03:19,687 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:716:INFO ] HandlerMap Created: (4) view handlers and (4) request/event handlers in 0.0s
     [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:291:INFO ] RequestMap Created: (196) records in 0.016s
     [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:385:INFO ] ViewMap Created: (81) records in 0.0s
     [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:239:INFO ] [Processing Request]: setSessionLocale sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
     [java] 2007-09-02 12:03:19,796 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:427:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
     [java] 2007-09-02 12:03:19,812 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:576:INFO ] servletName=control, view=main sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
     [java] 2007-09-02 12:03:19,937 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:118:INFO ] Got 26 screens in 0.125s from: file:/C:/Documents%20and%20Settings/Bilgin%20Ibryam/workspace/ofbiz-trunk/applications/party/widget/partymgr/PartyScreens.xml
     [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [        ModelScreen.java:141:ERROR] Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String. Rolling back transaction.
     [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:255:ERROR]
     [java] ---- exception report ----------------------------------------------------------
     [java] [TransactionUtil.rollback]
     [java] Exception: java.lang.Exception
     [java] Message: Stack Trace
     [java] ---- stack trace ---------------------------------------------------------------
     [java] java.lang.Exception: Stack Trace
     [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
     [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
     [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:144)
     [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:429)
     [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(Unknown Source)
     [java] --------------------------------------------------------------------------------
     [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:265:INFO ] [TransactionUtil.rollback] transaction rolled back
     [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:189:WARN ] [TransactionUtil.commit] Not committing transaction, status is STATUS_NO_TRANSACTION
     [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [     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://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
     [java] ---- stack trace ---------------------------------------------------------------
     [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
     [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:149)
     [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:429)
     [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(Unknown Source)
     [java] java.lang.ClassCastException: java.lang.String
     [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:761)
     [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:733)
     [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:721)
     [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:168)
     [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:137)
     [java] org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:437)
     [java] org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
     [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237)
     [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:429)
     [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(Unknown Source)
     [java] --------------------------------------------------------------------------------
     [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp
     [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1223) Changing the language in party manager is broken

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bilgin Ibryam updated OFBIZ-1223:
---------------------------------

    Attachment: hr.patch

> Changing the language in party manager is broken
> ------------------------------------------------
>
>                 Key: OFBIZ-1223
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1223
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>             Fix For: SVN trunk
>
>         Attachments: hr.patch
>
>
> Hi all,
> In the party manger, after setSessionLocale  request, the response is findparty view.
> In the screen screen there is service in the actions part:
> <service service-name="findParty" auto-field-map="parameters"/>
> I searched the reason for bug (some hours), but could not find. I cannot see why changing the SessionLocale generates the bug, but changing the SessionTimeZone doesnot generate any bug. If someone finds out, i'll be happy to hear it.
> Any way, i did some fixes for it.
> Index:  applications/party/widget/partymgr/PartyScreens.xml
> ===================================================================
> ---  applications/party/widget/partymgr/PartyScreens.xml (revision 571925)
> +++  applications/party/widget/partymgr/PartyScreens.xml (working copy)
> @@ -29,7 +29,7 @@
>                  <set field="headerItem" value="find"/>
>                  <set field="tabButtonItem" value="findparty"/>
>  
> -                <service service-name="findParty" auto-field-map="parameters"/>
> +                <service service-name="findParty" auto-field-map="true"/>
>              </actions>
>              <widgets>
>                  <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
> This looks like fixes the bug, but i am not sure, is it the right way!
> Another way to fix the bug is this:
> Index: applications/party/webapp/partymgr/WEB-INF/controller.xml
> ===================================================================
> --- applications/party/webapp/partymgr/WEB-INF/controller.xml (revision 571925)
> +++ applications/party/webapp/partymgr/WEB-INF/controller.xml (working copy)
> @@ -74,8 +74,8 @@
>      <request-map uri="setSessionLocale">
>          <security https="true" auth="false"/>
>          <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
> -        <response name="success" type="view" value="main"/>
> -        <response name="error" type="view" value="main"/>
> +        <response name="success" type="request-redirect-noparam" value="main"/>
> +        <response name="error" type="request-redirect-noparam" value="main"/>
>      </request-map>
>      <request-map uri="setSessionTimeZone">
>          <security https="true" auth="false"/>
> Lets someone more familiar decides which way to fix the bug.May be there is better way for fixing it.
> Changing the time and language is broken also in HR component, but it is due to missing main screen. I attached a patch for it that can be committed easily...
> Regards,
> Bilgin
> I forgot the error log:
>      [java] 2007-09-02 12:03:19,484 (http-0.0.0.0-8443-Processor2) [     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-09-02 12:03:19,671 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:558:INFO ] ConfigMap Created: (4) records in 0.0s
>      [java] 2007-09-02 12:03:19,687 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:716:INFO ] HandlerMap Created: (4) view handlers and (4) request/event handlers in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:291:INFO ] RequestMap Created: (196) records in 0.016s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:385:INFO ] ViewMap Created: (81) records in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:239:INFO ] [Processing Request]: setSessionLocale sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,796 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:427:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,812 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:576:INFO ] servletName=control, view=main sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,937 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:118:INFO ] Got 26 screens in 0.125s from: file:/C:/Documents%20and%20Settings/Bilgin%20Ibryam/workspace/ofbiz-trunk/applications/party/widget/partymgr/PartyScreens.xml
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [        ModelScreen.java:141:ERROR] Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String. Rolling back transaction.
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:255:ERROR]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] [TransactionUtil.rollback]
>      [java] Exception: java.lang.Exception
>      [java] Message: Stack Trace
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.Exception: Stack Trace
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:144)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:265:INFO ] [TransactionUtil.rollback] transaction rolled back
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:189:WARN ] [TransactionUtil.commit] Not committing transaction, status is STATUS_NO_TRANSACTION
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [     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://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:149)
>      [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:429)
>      [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(Unknown Source)
>      [java] java.lang.ClassCastException: java.lang.String
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:761)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:733)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:721)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:168)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:137)
>      [java] org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:437)
>      [java] org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
>      [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1223) Changing the language in party manager is broken

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524338 ]

Adrian Crum commented on OFBIZ-1223:
------------------------------------

Bilgin,

I applied your patch, rev 571999. Thanks.

> Changing the language in party manager is broken
> ------------------------------------------------
>
>                 Key: OFBIZ-1223
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1223
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>             Fix For: SVN trunk
>
>         Attachments: hr.patch
>
>
> Hi all,
> In the party manger, after setSessionLocale  request, the response is findparty view.
> In the screen screen there is service in the actions part:
> <service service-name="findParty" auto-field-map="parameters"/>
> I searched the reason for bug (some hours), but could not find. I cannot see why changing the SessionLocale generates the bug, but changing the SessionTimeZone doesnot generate any bug. If someone finds out, i'll be happy to hear it.
> Any way, i did some fixes for it.
> Index:  applications/party/widget/partymgr/PartyScreens.xml
> ===================================================================
> ---  applications/party/widget/partymgr/PartyScreens.xml (revision 571925)
> +++  applications/party/widget/partymgr/PartyScreens.xml (working copy)
> @@ -29,7 +29,7 @@
>                  <set field="headerItem" value="find"/>
>                  <set field="tabButtonItem" value="findparty"/>
>  
> -                <service service-name="findParty" auto-field-map="parameters"/>
> +                <service service-name="findParty" auto-field-map="true"/>
>              </actions>
>              <widgets>
>                  <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
> This looks like fixes the bug, but i am not sure, is it the right way!
> Another way to fix the bug is this:
> Index: applications/party/webapp/partymgr/WEB-INF/controller.xml
> ===================================================================
> --- applications/party/webapp/partymgr/WEB-INF/controller.xml (revision 571925)
> +++ applications/party/webapp/partymgr/WEB-INF/controller.xml (working copy)
> @@ -74,8 +74,8 @@
>      <request-map uri="setSessionLocale">
>          <security https="true" auth="false"/>
>          <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
> -        <response name="success" type="view" value="main"/>
> -        <response name="error" type="view" value="main"/>
> +        <response name="success" type="request-redirect-noparam" value="main"/>
> +        <response name="error" type="request-redirect-noparam" value="main"/>
>      </request-map>
>      <request-map uri="setSessionTimeZone">
>          <security https="true" auth="false"/>
> Lets someone more familiar decides which way to fix the bug.May be there is better way for fixing it.
> Changing the time and language is broken also in HR component, but it is due to missing main screen. I attached a patch for it that can be committed easily...
> Regards,
> Bilgin
> I forgot the error log:
>      [java] 2007-09-02 12:03:19,484 (http-0.0.0.0-8443-Processor2) [     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-09-02 12:03:19,671 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:558:INFO ] ConfigMap Created: (4) records in 0.0s
>      [java] 2007-09-02 12:03:19,687 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:716:INFO ] HandlerMap Created: (4) view handlers and (4) request/event handlers in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:291:INFO ] RequestMap Created: (196) records in 0.016s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:385:INFO ] ViewMap Created: (81) records in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:239:INFO ] [Processing Request]: setSessionLocale sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,796 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:427:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,812 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:576:INFO ] servletName=control, view=main sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,937 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:118:INFO ] Got 26 screens in 0.125s from: file:/C:/Documents%20and%20Settings/Bilgin%20Ibryam/workspace/ofbiz-trunk/applications/party/widget/partymgr/PartyScreens.xml
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [        ModelScreen.java:141:ERROR] Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String. Rolling back transaction.
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:255:ERROR]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] [TransactionUtil.rollback]
>      [java] Exception: java.lang.Exception
>      [java] Message: Stack Trace
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.Exception: Stack Trace
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:144)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:265:INFO ] [TransactionUtil.rollback] transaction rolled back
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:189:WARN ] [TransactionUtil.commit] Not committing transaction, status is STATUS_NO_TRANSACTION
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [     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://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:149)
>      [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:429)
>      [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(Unknown Source)
>      [java] java.lang.ClassCastException: java.lang.String
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:761)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:733)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:721)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:168)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:137)
>      [java] org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:437)
>      [java] org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
>      [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1223) Changing the language in party manager is broken

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum updated OFBIZ-1223:
-------------------------------

    Attachment: set_session_locale.patch

Attached patch fixes the set locale bug. The problem is a name clash between the url parameter "locale" and the Locale object that is kept in the service context.

I changed the url parameter name to newLocale.


> Changing the language in party manager is broken
> ------------------------------------------------
>
>                 Key: OFBIZ-1223
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1223
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>             Fix For: SVN trunk
>
>         Attachments: hr.patch, set_session_locale.patch
>
>
> Hi all,
> In the party manger, after setSessionLocale  request, the response is findparty view.
> In the screen screen there is service in the actions part:
> <service service-name="findParty" auto-field-map="parameters"/>
> I searched the reason for bug (some hours), but could not find. I cannot see why changing the SessionLocale generates the bug, but changing the SessionTimeZone doesnot generate any bug. If someone finds out, i'll be happy to hear it.
> Any way, i did some fixes for it.
> Index:  applications/party/widget/partymgr/PartyScreens.xml
> ===================================================================
> ---  applications/party/widget/partymgr/PartyScreens.xml (revision 571925)
> +++  applications/party/widget/partymgr/PartyScreens.xml (working copy)
> @@ -29,7 +29,7 @@
>                  <set field="headerItem" value="find"/>
>                  <set field="tabButtonItem" value="findparty"/>
>  
> -                <service service-name="findParty" auto-field-map="parameters"/>
> +                <service service-name="findParty" auto-field-map="true"/>
>              </actions>
>              <widgets>
>                  <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
> This looks like fixes the bug, but i am not sure, is it the right way!
> Another way to fix the bug is this:
> Index: applications/party/webapp/partymgr/WEB-INF/controller.xml
> ===================================================================
> --- applications/party/webapp/partymgr/WEB-INF/controller.xml (revision 571925)
> +++ applications/party/webapp/partymgr/WEB-INF/controller.xml (working copy)
> @@ -74,8 +74,8 @@
>      <request-map uri="setSessionLocale">
>          <security https="true" auth="false"/>
>          <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
> -        <response name="success" type="view" value="main"/>
> -        <response name="error" type="view" value="main"/>
> +        <response name="success" type="request-redirect-noparam" value="main"/>
> +        <response name="error" type="request-redirect-noparam" value="main"/>
>      </request-map>
>      <request-map uri="setSessionTimeZone">
>          <security https="true" auth="false"/>
> Lets someone more familiar decides which way to fix the bug.May be there is better way for fixing it.
> Changing the time and language is broken also in HR component, but it is due to missing main screen. I attached a patch for it that can be committed easily...
> Regards,
> Bilgin
> I forgot the error log:
>      [java] 2007-09-02 12:03:19,484 (http-0.0.0.0-8443-Processor2) [     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-09-02 12:03:19,671 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:558:INFO ] ConfigMap Created: (4) records in 0.0s
>      [java] 2007-09-02 12:03:19,687 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:716:INFO ] HandlerMap Created: (4) view handlers and (4) request/event handlers in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:291:INFO ] RequestMap Created: (196) records in 0.016s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:385:INFO ] ViewMap Created: (81) records in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:239:INFO ] [Processing Request]: setSessionLocale sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,796 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:427:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,812 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:576:INFO ] servletName=control, view=main sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,937 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:118:INFO ] Got 26 screens in 0.125s from: file:/C:/Documents%20and%20Settings/Bilgin%20Ibryam/workspace/ofbiz-trunk/applications/party/widget/partymgr/PartyScreens.xml
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [        ModelScreen.java:141:ERROR] Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String. Rolling back transaction.
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:255:ERROR]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] [TransactionUtil.rollback]
>      [java] Exception: java.lang.Exception
>      [java] Message: Stack Trace
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.Exception: Stack Trace
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:144)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:265:INFO ] [TransactionUtil.rollback] transaction rolled back
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:189:WARN ] [TransactionUtil.commit] Not committing transaction, status is STATUS_NO_TRANSACTION
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [     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://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:149)
>      [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:429)
>      [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(Unknown Source)
>      [java] java.lang.ClassCastException: java.lang.String
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:761)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:733)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:721)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:168)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:137)
>      [java] org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:437)
>      [java] org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
>      [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1223) Changing the language in party manager is broken

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524352 ]

Bilgin Ibryam commented on OFBIZ-1223:
--------------------------------------

Thanks, for the explanation Adrian.

> Changing the language in party manager is broken
> ------------------------------------------------
>
>                 Key: OFBIZ-1223
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1223
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>             Fix For: SVN trunk
>
>         Attachments: hr.patch, set_session_locale.patch
>
>
> Hi all,
> In the party manger, after setSessionLocale  request, the response is findparty view.
> In the screen screen there is service in the actions part:
> <service service-name="findParty" auto-field-map="parameters"/>
> I searched the reason for bug (some hours), but could not find. I cannot see why changing the SessionLocale generates the bug, but changing the SessionTimeZone doesnot generate any bug. If someone finds out, i'll be happy to hear it.
> Any way, i did some fixes for it.
> Index:  applications/party/widget/partymgr/PartyScreens.xml
> ===================================================================
> ---  applications/party/widget/partymgr/PartyScreens.xml (revision 571925)
> +++  applications/party/widget/partymgr/PartyScreens.xml (working copy)
> @@ -29,7 +29,7 @@
>                  <set field="headerItem" value="find"/>
>                  <set field="tabButtonItem" value="findparty"/>
>  
> -                <service service-name="findParty" auto-field-map="parameters"/>
> +                <service service-name="findParty" auto-field-map="true"/>
>              </actions>
>              <widgets>
>                  <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
> This looks like fixes the bug, but i am not sure, is it the right way!
> Another way to fix the bug is this:
> Index: applications/party/webapp/partymgr/WEB-INF/controller.xml
> ===================================================================
> --- applications/party/webapp/partymgr/WEB-INF/controller.xml (revision 571925)
> +++ applications/party/webapp/partymgr/WEB-INF/controller.xml (working copy)
> @@ -74,8 +74,8 @@
>      <request-map uri="setSessionLocale">
>          <security https="true" auth="false"/>
>          <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
> -        <response name="success" type="view" value="main"/>
> -        <response name="error" type="view" value="main"/>
> +        <response name="success" type="request-redirect-noparam" value="main"/>
> +        <response name="error" type="request-redirect-noparam" value="main"/>
>      </request-map>
>      <request-map uri="setSessionTimeZone">
>          <security https="true" auth="false"/>
> Lets someone more familiar decides which way to fix the bug.May be there is better way for fixing it.
> Changing the time and language is broken also in HR component, but it is due to missing main screen. I attached a patch for it that can be committed easily...
> Regards,
> Bilgin
> I forgot the error log:
>      [java] 2007-09-02 12:03:19,484 (http-0.0.0.0-8443-Processor2) [     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-09-02 12:03:19,671 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:558:INFO ] ConfigMap Created: (4) records in 0.0s
>      [java] 2007-09-02 12:03:19,687 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:716:INFO ] HandlerMap Created: (4) view handlers and (4) request/event handlers in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:291:INFO ] RequestMap Created: (196) records in 0.016s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:385:INFO ] ViewMap Created: (81) records in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:239:INFO ] [Processing Request]: setSessionLocale sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,796 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:427:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,812 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:576:INFO ] servletName=control, view=main sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,937 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:118:INFO ] Got 26 screens in 0.125s from: file:/C:/Documents%20and%20Settings/Bilgin%20Ibryam/workspace/ofbiz-trunk/applications/party/widget/partymgr/PartyScreens.xml
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [        ModelScreen.java:141:ERROR] Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String. Rolling back transaction.
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:255:ERROR]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] [TransactionUtil.rollback]
>      [java] Exception: java.lang.Exception
>      [java] Message: Stack Trace
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.Exception: Stack Trace
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:144)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:265:INFO ] [TransactionUtil.rollback] transaction rolled back
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:189:WARN ] [TransactionUtil.commit] Not committing transaction, status is STATUS_NO_TRANSACTION
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [     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://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:149)
>      [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:429)
>      [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(Unknown Source)
>      [java] java.lang.ClassCastException: java.lang.String
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:761)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:733)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:721)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:168)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:137)
>      [java] org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:437)
>      [java] org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
>      [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-1223) Changing the language in party manager is broken

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-1223.
----------------------------------

    Resolution: Fixed
      Assignee: Jacques Le Roux

Thanks Adrian,

your patch is in trunk revision: 572172  


> Changing the language in party manager is broken
> ------------------------------------------------
>
>                 Key: OFBIZ-1223
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1223
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: hr.patch, set_session_locale.patch
>
>
> Hi all,
> In the party manger, after setSessionLocale  request, the response is findparty view.
> In the screen screen there is service in the actions part:
> <service service-name="findParty" auto-field-map="parameters"/>
> I searched the reason for bug (some hours), but could not find. I cannot see why changing the SessionLocale generates the bug, but changing the SessionTimeZone doesnot generate any bug. If someone finds out, i'll be happy to hear it.
> Any way, i did some fixes for it.
> Index:  applications/party/widget/partymgr/PartyScreens.xml
> ===================================================================
> ---  applications/party/widget/partymgr/PartyScreens.xml (revision 571925)
> +++  applications/party/widget/partymgr/PartyScreens.xml (working copy)
> @@ -29,7 +29,7 @@
>                  <set field="headerItem" value="find"/>
>                  <set field="tabButtonItem" value="findparty"/>
>  
> -                <service service-name="findParty" auto-field-map="parameters"/>
> +                <service service-name="findParty" auto-field-map="true"/>
>              </actions>
>              <widgets>
>                  <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
> This looks like fixes the bug, but i am not sure, is it the right way!
> Another way to fix the bug is this:
> Index: applications/party/webapp/partymgr/WEB-INF/controller.xml
> ===================================================================
> --- applications/party/webapp/partymgr/WEB-INF/controller.xml (revision 571925)
> +++ applications/party/webapp/partymgr/WEB-INF/controller.xml (working copy)
> @@ -74,8 +74,8 @@
>      <request-map uri="setSessionLocale">
>          <security https="true" auth="false"/>
>          <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
> -        <response name="success" type="view" value="main"/>
> -        <response name="error" type="view" value="main"/>
> +        <response name="success" type="request-redirect-noparam" value="main"/>
> +        <response name="error" type="request-redirect-noparam" value="main"/>
>      </request-map>
>      <request-map uri="setSessionTimeZone">
>          <security https="true" auth="false"/>
> Lets someone more familiar decides which way to fix the bug.May be there is better way for fixing it.
> Changing the time and language is broken also in HR component, but it is due to missing main screen. I attached a patch for it that can be committed easily...
> Regards,
> Bilgin
> I forgot the error log:
>      [java] 2007-09-02 12:03:19,484 (http-0.0.0.0-8443-Processor2) [     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-09-02 12:03:19,671 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:558:INFO ] ConfigMap Created: (4) records in 0.0s
>      [java] 2007-09-02 12:03:19,687 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:716:INFO ] HandlerMap Created: (4) view handlers and (4) request/event handlers in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:291:INFO ] RequestMap Created: (196) records in 0.016s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:385:INFO ] ViewMap Created: (81) records in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:239:INFO ] [Processing Request]: setSessionLocale sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,796 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:427:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,812 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:576:INFO ] servletName=control, view=main sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,937 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:118:INFO ] Got 26 screens in 0.125s from: file:/C:/Documents%20and%20Settings/Bilgin%20Ibryam/workspace/ofbiz-trunk/applications/party/widget/partymgr/PartyScreens.xml
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [        ModelScreen.java:141:ERROR] Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String. Rolling back transaction.
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:255:ERROR]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] [TransactionUtil.rollback]
>      [java] Exception: java.lang.Exception
>      [java] Message: Stack Trace
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.Exception: Stack Trace
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:144)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:265:INFO ] [TransactionUtil.rollback] transaction rolled back
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:189:WARN ] [TransactionUtil.commit] Not committing transaction, status is STATUS_NO_TRANSACTION
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [     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://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:149)
>      [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:429)
>      [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(Unknown Source)
>      [java] java.lang.ClassCastException: java.lang.String
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:761)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:733)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:721)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:168)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:137)
>      [java] org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:437)
>      [java] org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
>      [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Reopened: (OFBIZ-1223) Changing the language in party manager is broken

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reopened OFBIZ-1223:
------------------------------------


Reverted on David's advice. I propose a quick and dirty (maybe temporary) simple  workaround in case nobody has a better idea...

> Changing the language in party manager is broken
> ------------------------------------------------
>
>                 Key: OFBIZ-1223
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1223
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: hr.patch, set_session_locale.patch
>
>
> Hi all,
> In the party manger, after setSessionLocale  request, the response is findparty view.
> In the screen screen there is service in the actions part:
> <service service-name="findParty" auto-field-map="parameters"/>
> I searched the reason for bug (some hours), but could not find. I cannot see why changing the SessionLocale generates the bug, but changing the SessionTimeZone doesnot generate any bug. If someone finds out, i'll be happy to hear it.
> Any way, i did some fixes for it.
> Index:  applications/party/widget/partymgr/PartyScreens.xml
> ===================================================================
> ---  applications/party/widget/partymgr/PartyScreens.xml (revision 571925)
> +++  applications/party/widget/partymgr/PartyScreens.xml (working copy)
> @@ -29,7 +29,7 @@
>                  <set field="headerItem" value="find"/>
>                  <set field="tabButtonItem" value="findparty"/>
>  
> -                <service service-name="findParty" auto-field-map="parameters"/>
> +                <service service-name="findParty" auto-field-map="true"/>
>              </actions>
>              <widgets>
>                  <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
> This looks like fixes the bug, but i am not sure, is it the right way!
> Another way to fix the bug is this:
> Index: applications/party/webapp/partymgr/WEB-INF/controller.xml
> ===================================================================
> --- applications/party/webapp/partymgr/WEB-INF/controller.xml (revision 571925)
> +++ applications/party/webapp/partymgr/WEB-INF/controller.xml (working copy)
> @@ -74,8 +74,8 @@
>      <request-map uri="setSessionLocale">
>          <security https="true" auth="false"/>
>          <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
> -        <response name="success" type="view" value="main"/>
> -        <response name="error" type="view" value="main"/>
> +        <response name="success" type="request-redirect-noparam" value="main"/>
> +        <response name="error" type="request-redirect-noparam" value="main"/>
>      </request-map>
>      <request-map uri="setSessionTimeZone">
>          <security https="true" auth="false"/>
> Lets someone more familiar decides which way to fix the bug.May be there is better way for fixing it.
> Changing the time and language is broken also in HR component, but it is due to missing main screen. I attached a patch for it that can be committed easily...
> Regards,
> Bilgin
> I forgot the error log:
>      [java] 2007-09-02 12:03:19,484 (http-0.0.0.0-8443-Processor2) [     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-09-02 12:03:19,671 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:558:INFO ] ConfigMap Created: (4) records in 0.0s
>      [java] 2007-09-02 12:03:19,687 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:716:INFO ] HandlerMap Created: (4) view handlers and (4) request/event handlers in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:291:INFO ] RequestMap Created: (196) records in 0.016s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:385:INFO ] ViewMap Created: (81) records in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:239:INFO ] [Processing Request]: setSessionLocale sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,796 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:427:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,812 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:576:INFO ] servletName=control, view=main sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,937 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:118:INFO ] Got 26 screens in 0.125s from: file:/C:/Documents%20and%20Settings/Bilgin%20Ibryam/workspace/ofbiz-trunk/applications/party/widget/partymgr/PartyScreens.xml
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [        ModelScreen.java:141:ERROR] Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String. Rolling back transaction.
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:255:ERROR]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] [TransactionUtil.rollback]
>      [java] Exception: java.lang.Exception
>      [java] Message: Stack Trace
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.Exception: Stack Trace
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:144)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:265:INFO ] [TransactionUtil.rollback] transaction rolled back
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:189:WARN ] [TransactionUtil.commit] Not committing transaction, status is STATUS_NO_TRANSACTION
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [     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://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:149)
>      [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:429)
>      [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(Unknown Source)
>      [java] java.lang.ClassCastException: java.lang.String
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:761)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:733)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:721)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:168)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:137)
>      [java] org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:437)
>      [java] org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
>      [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1223) Changing the language in party manager is broken

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-1223:
-----------------------------------

    Attachment: set_session_locale.patch

> Changing the language in party manager is broken
> ------------------------------------------------
>
>                 Key: OFBIZ-1223
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1223
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: hr.patch, set_session_locale.patch, set_session_locale.patch
>
>
> Hi all,
> In the party manger, after setSessionLocale  request, the response is findparty view.
> In the screen screen there is service in the actions part:
> <service service-name="findParty" auto-field-map="parameters"/>
> I searched the reason for bug (some hours), but could not find. I cannot see why changing the SessionLocale generates the bug, but changing the SessionTimeZone doesnot generate any bug. If someone finds out, i'll be happy to hear it.
> Any way, i did some fixes for it.
> Index:  applications/party/widget/partymgr/PartyScreens.xml
> ===================================================================
> ---  applications/party/widget/partymgr/PartyScreens.xml (revision 571925)
> +++  applications/party/widget/partymgr/PartyScreens.xml (working copy)
> @@ -29,7 +29,7 @@
>                  <set field="headerItem" value="find"/>
>                  <set field="tabButtonItem" value="findparty"/>
>  
> -                <service service-name="findParty" auto-field-map="parameters"/>
> +                <service service-name="findParty" auto-field-map="true"/>
>              </actions>
>              <widgets>
>                  <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
> This looks like fixes the bug, but i am not sure, is it the right way!
> Another way to fix the bug is this:
> Index: applications/party/webapp/partymgr/WEB-INF/controller.xml
> ===================================================================
> --- applications/party/webapp/partymgr/WEB-INF/controller.xml (revision 571925)
> +++ applications/party/webapp/partymgr/WEB-INF/controller.xml (working copy)
> @@ -74,8 +74,8 @@
>      <request-map uri="setSessionLocale">
>          <security https="true" auth="false"/>
>          <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
> -        <response name="success" type="view" value="main"/>
> -        <response name="error" type="view" value="main"/>
> +        <response name="success" type="request-redirect-noparam" value="main"/>
> +        <response name="error" type="request-redirect-noparam" value="main"/>
>      </request-map>
>      <request-map uri="setSessionTimeZone">
>          <security https="true" auth="false"/>
> Lets someone more familiar decides which way to fix the bug.May be there is better way for fixing it.
> Changing the time and language is broken also in HR component, but it is due to missing main screen. I attached a patch for it that can be committed easily...
> Regards,
> Bilgin
> I forgot the error log:
>      [java] 2007-09-02 12:03:19,484 (http-0.0.0.0-8443-Processor2) [     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-09-02 12:03:19,671 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:558:INFO ] ConfigMap Created: (4) records in 0.0s
>      [java] 2007-09-02 12:03:19,687 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:716:INFO ] HandlerMap Created: (4) view handlers and (4) request/event handlers in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:291:INFO ] RequestMap Created: (196) records in 0.016s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:385:INFO ] ViewMap Created: (81) records in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:239:INFO ] [Processing Request]: setSessionLocale sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,796 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:427:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,812 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:576:INFO ] servletName=control, view=main sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,937 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:118:INFO ] Got 26 screens in 0.125s from: file:/C:/Documents%20and%20Settings/Bilgin%20Ibryam/workspace/ofbiz-trunk/applications/party/widget/partymgr/PartyScreens.xml
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [        ModelScreen.java:141:ERROR] Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String. Rolling back transaction.
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:255:ERROR]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] [TransactionUtil.rollback]
>      [java] Exception: java.lang.Exception
>      [java] Message: Stack Trace
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.Exception: Stack Trace
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:144)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:265:INFO ] [TransactionUtil.rollback] transaction rolled back
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:189:WARN ] [TransactionUtil.commit] Not committing transaction, status is STATUS_NO_TRANSACTION
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [     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://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:149)
>      [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:429)
>      [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(Unknown Source)
>      [java] java.lang.ClassCastException: java.lang.String
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:761)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:733)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:721)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:168)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:137)
>      [java] org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:437)
>      [java] org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
>      [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1223) Changing the language in party manager is broken

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-1223:
-----------------------------------

    Attachment:     (was: set_session_locale.patch)

> Changing the language in party manager is broken
> ------------------------------------------------
>
>                 Key: OFBIZ-1223
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1223
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: hr.patch, set_session_locale.patch
>
>
> Hi all,
> In the party manger, after setSessionLocale  request, the response is findparty view.
> In the screen screen there is service in the actions part:
> <service service-name="findParty" auto-field-map="parameters"/>
> I searched the reason for bug (some hours), but could not find. I cannot see why changing the SessionLocale generates the bug, but changing the SessionTimeZone doesnot generate any bug. If someone finds out, i'll be happy to hear it.
> Any way, i did some fixes for it.
> Index:  applications/party/widget/partymgr/PartyScreens.xml
> ===================================================================
> ---  applications/party/widget/partymgr/PartyScreens.xml (revision 571925)
> +++  applications/party/widget/partymgr/PartyScreens.xml (working copy)
> @@ -29,7 +29,7 @@
>                  <set field="headerItem" value="find"/>
>                  <set field="tabButtonItem" value="findparty"/>
>  
> -                <service service-name="findParty" auto-field-map="parameters"/>
> +                <service service-name="findParty" auto-field-map="true"/>
>              </actions>
>              <widgets>
>                  <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
> This looks like fixes the bug, but i am not sure, is it the right way!
> Another way to fix the bug is this:
> Index: applications/party/webapp/partymgr/WEB-INF/controller.xml
> ===================================================================
> --- applications/party/webapp/partymgr/WEB-INF/controller.xml (revision 571925)
> +++ applications/party/webapp/partymgr/WEB-INF/controller.xml (working copy)
> @@ -74,8 +74,8 @@
>      <request-map uri="setSessionLocale">
>          <security https="true" auth="false"/>
>          <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
> -        <response name="success" type="view" value="main"/>
> -        <response name="error" type="view" value="main"/>
> +        <response name="success" type="request-redirect-noparam" value="main"/>
> +        <response name="error" type="request-redirect-noparam" value="main"/>
>      </request-map>
>      <request-map uri="setSessionTimeZone">
>          <security https="true" auth="false"/>
> Lets someone more familiar decides which way to fix the bug.May be there is better way for fixing it.
> Changing the time and language is broken also in HR component, but it is due to missing main screen. I attached a patch for it that can be committed easily...
> Regards,
> Bilgin
> I forgot the error log:
>      [java] 2007-09-02 12:03:19,484 (http-0.0.0.0-8443-Processor2) [     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-09-02 12:03:19,671 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:558:INFO ] ConfigMap Created: (4) records in 0.0s
>      [java] 2007-09-02 12:03:19,687 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:716:INFO ] HandlerMap Created: (4) view handlers and (4) request/event handlers in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:291:INFO ] RequestMap Created: (196) records in 0.016s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:385:INFO ] ViewMap Created: (81) records in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:239:INFO ] [Processing Request]: setSessionLocale sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,796 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:427:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,812 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:576:INFO ] servletName=control, view=main sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,937 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:118:INFO ] Got 26 screens in 0.125s from: file:/C:/Documents%20and%20Settings/Bilgin%20Ibryam/workspace/ofbiz-trunk/applications/party/widget/partymgr/PartyScreens.xml
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [        ModelScreen.java:141:ERROR] Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String. Rolling back transaction.
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:255:ERROR]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] [TransactionUtil.rollback]
>      [java] Exception: java.lang.Exception
>      [java] Message: Stack Trace
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.Exception: Stack Trace
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:144)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:265:INFO ] [TransactionUtil.rollback] transaction rolled back
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:189:WARN ] [TransactionUtil.commit] Not committing transaction, status is STATUS_NO_TRANSACTION
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [     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://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:149)
>      [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:429)
>      [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(Unknown Source)
>      [java] java.lang.ClassCastException: java.lang.String
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:761)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:733)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:721)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:168)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:137)
>      [java] org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:437)
>      [java] org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
>      [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1223) Changing the language in party manager is broken

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-1223:
-----------------------------------

    Attachment: set_session_locale.patch

Something was missing in my patch, but it does not work either with last change, not sure why yet, will investigate later

> Changing the language in party manager is broken
> ------------------------------------------------
>
>                 Key: OFBIZ-1223
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1223
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: hr.patch, set_session_locale.patch, set_session_locale.patch
>
>
> Hi all,
> In the party manger, after setSessionLocale  request, the response is findparty view.
> In the screen screen there is service in the actions part:
> <service service-name="findParty" auto-field-map="parameters"/>
> I searched the reason for bug (some hours), but could not find. I cannot see why changing the SessionLocale generates the bug, but changing the SessionTimeZone doesnot generate any bug. If someone finds out, i'll be happy to hear it.
> Any way, i did some fixes for it.
> Index:  applications/party/widget/partymgr/PartyScreens.xml
> ===================================================================
> ---  applications/party/widget/partymgr/PartyScreens.xml (revision 571925)
> +++  applications/party/widget/partymgr/PartyScreens.xml (working copy)
> @@ -29,7 +29,7 @@
>                  <set field="headerItem" value="find"/>
>                  <set field="tabButtonItem" value="findparty"/>
>  
> -                <service service-name="findParty" auto-field-map="parameters"/>
> +                <service service-name="findParty" auto-field-map="true"/>
>              </actions>
>              <widgets>
>                  <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
> This looks like fixes the bug, but i am not sure, is it the right way!
> Another way to fix the bug is this:
> Index: applications/party/webapp/partymgr/WEB-INF/controller.xml
> ===================================================================
> --- applications/party/webapp/partymgr/WEB-INF/controller.xml (revision 571925)
> +++ applications/party/webapp/partymgr/WEB-INF/controller.xml (working copy)
> @@ -74,8 +74,8 @@
>      <request-map uri="setSessionLocale">
>          <security https="true" auth="false"/>
>          <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
> -        <response name="success" type="view" value="main"/>
> -        <response name="error" type="view" value="main"/>
> +        <response name="success" type="request-redirect-noparam" value="main"/>
> +        <response name="error" type="request-redirect-noparam" value="main"/>
>      </request-map>
>      <request-map uri="setSessionTimeZone">
>          <security https="true" auth="false"/>
> Lets someone more familiar decides which way to fix the bug.May be there is better way for fixing it.
> Changing the time and language is broken also in HR component, but it is due to missing main screen. I attached a patch for it that can be committed easily...
> Regards,
> Bilgin
> I forgot the error log:
>      [java] 2007-09-02 12:03:19,484 (http-0.0.0.0-8443-Processor2) [     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-09-02 12:03:19,671 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:558:INFO ] ConfigMap Created: (4) records in 0.0s
>      [java] 2007-09-02 12:03:19,687 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:716:INFO ] HandlerMap Created: (4) view handlers and (4) request/event handlers in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:291:INFO ] RequestMap Created: (196) records in 0.016s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:385:INFO ] ViewMap Created: (81) records in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:239:INFO ] [Processing Request]: setSessionLocale sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,796 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:427:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,812 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:576:INFO ] servletName=control, view=main sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,937 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:118:INFO ] Got 26 screens in 0.125s from: file:/C:/Documents%20and%20Settings/Bilgin%20Ibryam/workspace/ofbiz-trunk/applications/party/widget/partymgr/PartyScreens.xml
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [        ModelScreen.java:141:ERROR] Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String. Rolling back transaction.
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:255:ERROR]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] [TransactionUtil.rollback]
>      [java] Exception: java.lang.Exception
>      [java] Message: Stack Trace
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.Exception: Stack Trace
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:144)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:265:INFO ] [TransactionUtil.rollback] transaction rolled back
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:189:WARN ] [TransactionUtil.commit] Not committing transaction, status is STATUS_NO_TRANSACTION
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [     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://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:149)
>      [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:429)
>      [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(Unknown Source)
>      [java] java.lang.ClassCastException: java.lang.String
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:761)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:733)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:721)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:168)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:137)
>      [java] org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:437)
>      [java] org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
>      [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1223) Changing the language in party manager is broken

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum updated OFBIZ-1223:
-------------------------------

    Attachment: set_session_locale.patch

Updated patch.

David was right - I rushed this patch out and didn't take the time to research it more thoroughly. My apologies to the developer community.


> Changing the language in party manager is broken
> ------------------------------------------------
>
>                 Key: OFBIZ-1223
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1223
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: hr.patch, set_session_locale.patch, set_session_locale.patch, set_session_locale.patch
>
>
> Hi all,
> In the party manger, after setSessionLocale  request, the response is findparty view.
> In the screen screen there is service in the actions part:
> <service service-name="findParty" auto-field-map="parameters"/>
> I searched the reason for bug (some hours), but could not find. I cannot see why changing the SessionLocale generates the bug, but changing the SessionTimeZone doesnot generate any bug. If someone finds out, i'll be happy to hear it.
> Any way, i did some fixes for it.
> Index:  applications/party/widget/partymgr/PartyScreens.xml
> ===================================================================
> ---  applications/party/widget/partymgr/PartyScreens.xml (revision 571925)
> +++  applications/party/widget/partymgr/PartyScreens.xml (working copy)
> @@ -29,7 +29,7 @@
>                  <set field="headerItem" value="find"/>
>                  <set field="tabButtonItem" value="findparty"/>
>  
> -                <service service-name="findParty" auto-field-map="parameters"/>
> +                <service service-name="findParty" auto-field-map="true"/>
>              </actions>
>              <widgets>
>                  <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
> This looks like fixes the bug, but i am not sure, is it the right way!
> Another way to fix the bug is this:
> Index: applications/party/webapp/partymgr/WEB-INF/controller.xml
> ===================================================================
> --- applications/party/webapp/partymgr/WEB-INF/controller.xml (revision 571925)
> +++ applications/party/webapp/partymgr/WEB-INF/controller.xml (working copy)
> @@ -74,8 +74,8 @@
>      <request-map uri="setSessionLocale">
>          <security https="true" auth="false"/>
>          <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
> -        <response name="success" type="view" value="main"/>
> -        <response name="error" type="view" value="main"/>
> +        <response name="success" type="request-redirect-noparam" value="main"/>
> +        <response name="error" type="request-redirect-noparam" value="main"/>
>      </request-map>
>      <request-map uri="setSessionTimeZone">
>          <security https="true" auth="false"/>
> Lets someone more familiar decides which way to fix the bug.May be there is better way for fixing it.
> Changing the time and language is broken also in HR component, but it is due to missing main screen. I attached a patch for it that can be committed easily...
> Regards,
> Bilgin
> I forgot the error log:
>      [java] 2007-09-02 12:03:19,484 (http-0.0.0.0-8443-Processor2) [     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-09-02 12:03:19,671 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:558:INFO ] ConfigMap Created: (4) records in 0.0s
>      [java] 2007-09-02 12:03:19,687 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:716:INFO ] HandlerMap Created: (4) view handlers and (4) request/event handlers in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:291:INFO ] RequestMap Created: (196) records in 0.016s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:385:INFO ] ViewMap Created: (81) records in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:239:INFO ] [Processing Request]: setSessionLocale sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,796 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:427:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,812 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:576:INFO ] servletName=control, view=main sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,937 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:118:INFO ] Got 26 screens in 0.125s from: file:/C:/Documents%20and%20Settings/Bilgin%20Ibryam/workspace/ofbiz-trunk/applications/party/widget/partymgr/PartyScreens.xml
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [        ModelScreen.java:141:ERROR] Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String. Rolling back transaction.
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:255:ERROR]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] [TransactionUtil.rollback]
>      [java] Exception: java.lang.Exception
>      [java] Message: Stack Trace
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.Exception: Stack Trace
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:144)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:265:INFO ] [TransactionUtil.rollback] transaction rolled back
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:189:WARN ] [TransactionUtil.commit] Not committing transaction, status is STATUS_NO_TRANSACTION
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [     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://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:149)
>      [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:429)
>      [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(Unknown Source)
>      [java] java.lang.ClassCastException: java.lang.String
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:761)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:733)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:721)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:168)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:137)
>      [java] org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:437)
>      [java] org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
>      [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-1223) Changing the language in party manager is broken

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-1223.
----------------------------------

    Resolution: Fixed

Thanks Adrian,

Your patch is in trunk rev.  572375  


> Changing the language in party manager is broken
> ------------------------------------------------
>
>                 Key: OFBIZ-1223
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1223
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: hr.patch, set_session_locale.patch, set_session_locale.patch, set_session_locale.patch
>
>
> Hi all,
> In the party manger, after setSessionLocale  request, the response is findparty view.
> In the screen screen there is service in the actions part:
> <service service-name="findParty" auto-field-map="parameters"/>
> I searched the reason for bug (some hours), but could not find. I cannot see why changing the SessionLocale generates the bug, but changing the SessionTimeZone doesnot generate any bug. If someone finds out, i'll be happy to hear it.
> Any way, i did some fixes for it.
> Index:  applications/party/widget/partymgr/PartyScreens.xml
> ===================================================================
> ---  applications/party/widget/partymgr/PartyScreens.xml (revision 571925)
> +++  applications/party/widget/partymgr/PartyScreens.xml (working copy)
> @@ -29,7 +29,7 @@
>                  <set field="headerItem" value="find"/>
>                  <set field="tabButtonItem" value="findparty"/>
>  
> -                <service service-name="findParty" auto-field-map="parameters"/>
> +                <service service-name="findParty" auto-field-map="true"/>
>              </actions>
>              <widgets>
>                  <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
> This looks like fixes the bug, but i am not sure, is it the right way!
> Another way to fix the bug is this:
> Index: applications/party/webapp/partymgr/WEB-INF/controller.xml
> ===================================================================
> --- applications/party/webapp/partymgr/WEB-INF/controller.xml (revision 571925)
> +++ applications/party/webapp/partymgr/WEB-INF/controller.xml (working copy)
> @@ -74,8 +74,8 @@
>      <request-map uri="setSessionLocale">
>          <security https="true" auth="false"/>
>          <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
> -        <response name="success" type="view" value="main"/>
> -        <response name="error" type="view" value="main"/>
> +        <response name="success" type="request-redirect-noparam" value="main"/>
> +        <response name="error" type="request-redirect-noparam" value="main"/>
>      </request-map>
>      <request-map uri="setSessionTimeZone">
>          <security https="true" auth="false"/>
> Lets someone more familiar decides which way to fix the bug.May be there is better way for fixing it.
> Changing the time and language is broken also in HR component, but it is due to missing main screen. I attached a patch for it that can be committed easily...
> Regards,
> Bilgin
> I forgot the error log:
>      [java] 2007-09-02 12:03:19,484 (http-0.0.0.0-8443-Processor2) [     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-09-02 12:03:19,671 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:558:INFO ] ConfigMap Created: (4) records in 0.0s
>      [java] 2007-09-02 12:03:19,687 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:716:INFO ] HandlerMap Created: (4) view handlers and (4) request/event handlers in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:291:INFO ] RequestMap Created: (196) records in 0.016s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [    ConfigXMLReader.java:385:INFO ] ViewMap Created: (81) records in 0.0s
>      [java] 2007-09-02 12:03:19,703 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:239:INFO ] [Processing Request]: setSessionLocale sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,796 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:427:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,812 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:576:INFO ] servletName=control, view=main sessionId=6060377A26EEFB707B31330A4780EE9F.jvm1
>      [java] 2007-09-02 12:03:19,937 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:118:INFO ] Got 26 screens in 0.125s from: file:/C:/Documents%20and%20Settings/Bilgin%20Ibryam/workspace/ofbiz-trunk/applications/party/widget/partymgr/PartyScreens.xml
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [        ModelScreen.java:141:ERROR] Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String. Rolling back transaction.
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:255:ERROR]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] [TransactionUtil.rollback]
>      [java] Exception: java.lang.Exception
>      [java] Message: Stack Trace
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.Exception: Stack Trace
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:144)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:19,968 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:265:INFO ] [TransactionUtil.rollback] transaction rolled back
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:189:WARN ] [TransactionUtil.commit] Not committing transaction, status is STATUS_NO_TRANSACTION
>      [java] 2007-09-02 12:03:19,984 (http-0.0.0.0-8443-Processor2) [     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://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://party/widget/partymgr/PartyScreens.xml#findparty]: java.lang.ClassCastException: java.lang.String (java.lang.String)
>      [java] org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:149)
>      [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:429)
>      [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(Unknown Source)
>      [java] java.lang.ClassCastException: java.lang.String
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:761)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:733)
>      [java] org.ofbiz.service.ModelService.makeValid(ModelService.java:721)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:168)
>      [java] org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:137)
>      [java] org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:437)
>      [java] org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
>      [java] org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237)
>      [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:429)
>      [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(Unknown Source)
>      [java] --------------------------------------------------------------------------------
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp
>      [java] 2007-09-02 12:03:20,296 (http-0.0.0.0-8443-Processor2) [     ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.