Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6708

Missing userLogin error on party profile screen when 1st content is non public

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 14.12.01, 13.07.03, 16.11.01
    • Component/s: party
    • Labels:
      None

      Description

      When a party has a 1st non public content the serveObjectData event is called in party profile screen and it misses the userLogin in session.

      This was implemented with r1199681 (see this) which is a bad hack. I guess the idea was if a "Logo Image URL" was assigned to a party like "Company" it should be displayed in the profile screen, that works w/o error in the log. But when you have a party 1st non public content of other type for other parties (like admin for instance) it does not make sense, and show an error in log.

           [java] 2015-11-03 12:05:12,856 |ttp-bio-8443-exec-11 |DataEvents                    |E| null
           [java] org.ofbiz.service.ServiceAuthException: User authorization is required for this service: genericContentPermission
           [java]     at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:356) ~[ofbiz-service.jar:?]
           [java]     at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) ~[ofbiz-service.jar:?]
           [java]     at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) ~[ofbiz-service.jar:?]
           [java]     at org.ofbiz.content.data.DataEvents.serveObjectData(DataEvents.java:139) [ofbiz-content.jar:?]
           [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51]
           [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51]
           [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51]
           [java]     at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51]
           [java]     at org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:92) [ofbiz-webapp.jar:?]
           [java]     at org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:78) [ofbiz-webapp.jar:?]
           [java]     at org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:759) [ofbiz-webapp.jar:?]
           [java]     at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:476) [ofbiz-webapp.jar:?]
           [java]     at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:213) [ofbiz-webapp.jar:?]
           [java]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) [servlet-api-3.0.jar:?]
           [java]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) [servlet-api-3.0.jar:?]
           [java]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) [tomcat-7.0.64-catalina.jar:7.0.64]
           [java]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [tomcat-7.0.64-catalina.jar:7.0.64]
           [java]     at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:324) [ofbiz-webapp.jar:?]
           [java]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [tomcat-7.0.64-catalina.jar:7.0.64]
           [java]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [tomcat-7.0.64-catalina.jar:7.0.64]
           [java]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [tomcat-7.0.64-catalina.jar:7.0.64]
           [java]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [tomcat-7.0.64-catalina.jar:7.0.64]
           [java]     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) [tomcat-7.0.64-catalina.jar:7.0.64]
           [java]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) [tomcat-7.0.64-catalina.jar:7.0.64]
           [java]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [tomcat-7.0.64-catalina.jar:7.0.64]
           [java]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [tomcat-7.0.64-catalina.jar:7.0.64]
           [java]     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) [tomcat-7.0.64-catalina.jar:7.0.64]
           [java]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) [tomcat-7.0.64-catalina.jar:7.0.64]
           [java]     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
           [java]     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
           [java]     at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
           [java]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_51]
           [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_51]
           [java]     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
           [java]     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]
           [java] 2015-11-03 12:05:12,857 |ttp-bio-8443-exec-11 |RequestHandler                |I| Ran Event [java:org.ofbiz.content.data.DataEvents#serveObjectData] from [request], result is [error]
           [java] 2015-11-03 12:05:12,857 |ttp-bio-8443-exec-11 |RequestHandler                |E| Request stream caused an error with the following message: User authorization is required for this service: generic

      I thought that passing the userLogin in session as in

                      <set field="setUserLogin" value="${groovy:session.setAttribute('userLogin', userLogin)}"/> <!-- needed by serveObjectData  -->
                      <set field="partyContentId" from-field="partyContentList[0].contentId"/>
                      <set field="partyContent" value="${groovy: partyContentId!=null?'/content/control/stream?contentId=' + partyContentId : ''}"/>
      

      would work, but for a reason it does not (still no userLogin in session, I must do something wrong), and I have no longer time to investigate today...

      1. OFBIZ-6708.patch
        2 kB
        Vishal Chhabria

        Issue Links

          Activity

          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          Actually the same happens for Company if you set the "Logo Image URL" as 1st content and not public. It seems this is flawed and I see yet no real way to have it working well

          Show
          jacques.le.roux Jacques Le Roux added a comment - Actually the same happens for Company if you set the "Logo Image URL" as 1st content and not public. It seems this is flawed and I see yet no real way to have it working well
          Hide
          vishal.chhabria Vishal Chhabria added a comment -

          Here is the patch for the reported issue.

          I digged around this issue and found that request used to render the content is /content/control/stream. So, when user is logged in to Party Manager app but not in Content Manager, no userLogin was found in the session which was causing this issue. I have added externalKeyParam in the request and content is being rendered properly now.

          Show
          vishal.chhabria Vishal Chhabria added a comment - Here is the patch for the reported issue. I digged around this issue and found that request used to render the content is /content/control/stream. So, when user is logged in to Party Manager app but not in Content Manager, no userLogin was found in the session which was causing this issue. I have added externalKeyParam in the request and content is being rendered properly now.
          Hide
          deepak.dixit Deepak Dixit added a comment -

          Thanks Jacques for reporting the issue
          Thanks Vishal for your contribution. Your patch committed at
          Trunk at r#1715501
          14.12 at r#1715502
          13.07 at r#1715503

          Show
          deepak.dixit Deepak Dixit added a comment - Thanks Jacques for reporting the issue Thanks Vishal for your contribution. Your patch committed at Trunk at r#1715501 14.12 at r#1715502 13.07 at r#1715503
          Hide
          jacques.le.roux Jacques Le Roux added a comment - - edited

          Sorry guys I reopen, I found another related case: this minor error in the log when I remove a content party:

               [java] 2015-11-21 22:52:38,110 |http-bio-8443-exec-6 |ControlServlet                |T| [[[removePartyContent(Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
          
               [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |ServiceDispatcher             |T| Sync service [partymgr/removePartyContent] finished in [18] milliseconds
               [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |RequestHandler                |I| Ran Event [service:#removePartyContent] from [request], result is [success]
               [java] 2015-11-21 22:52:38,135 |http-bio-8443-exec-6 |RequestHandler                |I| Rendering View [viewprofile], sessionId=56DBE28A391381E1B44D53CD49968F7E.jvm1
               [java] 2015-11-21 22:52:38,136 |http-bio-8443-exec-6 |ServiceDispatcher             |T| Sync service [partymgr/getUserPreferenceGroup] finished in [1] milliseconds
               [java] 2015-11-21 22:52:38,138 |http-bio-8443-exec-6 |ServiceDispatcher             |T| Sync service [partymgr/getVisualThemeResources] finished in [1] milliseconds
               [java] 2015-11-21 22:52:38,163 |http-bio-8443-exec-6 |ScreenFactory                 |I| Got 39 screens in 0.008s from: file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
               [java] 2015-11-21 22:52:38,210 |http-bio-8443-exec-6 |ScreenFactory                 |I| Got 4 screens in 0.005s from: file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/CommonScreens.xml
               [java] 2015-11-21 22:52:38,216 |http-bio-8443-exec-6 |ScreenFactory                 |I| Got 1 screens in 0.005s from: file:/C:/projectASF-Mars/ofbiz/applications/commonext/widget/CommonScreens.xml
               [java] 2015-11-21 22:52:38,284 |http-bio-8443-exec-6 |ServiceDispatcher             |T| Sync service [partymgr/getLastSystemInfoNote] finished in [17] milliseconds
               [java] 2015-11-21 22:52:38,286 |http-bio-8443-exec-6 |PrimaryKeyFinder              |I| Returning null because found incomplete primary key in find: [GenericEntity:PartyAcctgPrefAndGroup][partyId,Company
          (java.lang.String)][roleTypeId,null()]
               [java] 2015-11-21 22:52:38,293 |http-bio-8443-exec-6 |ScreenFactory                 |I| Got 24 screens in 0.006s from: file:/C:/projectASF-Mars/ofbiz/framework/common/widget/CommonScreens.xml
               [java] 2015-11-21 22:52:38,392 |http-bio-8443-exec-6 |ServiceEcaRule                |I| For Service ECA [partyBasePermissionCheck] on [return] got false for condition: [hasPermission][equals][false][true
          ][Boolean]
               [java] 2015-11-21 22:52:38,393 |http-bio-8443-exec-6 |ServiceDispatcher             |T| Sync service [partymgr/partyBasePermissionCheck] finished in [46] milliseconds
               [java] 2015-11-21 22:52:38,401 |http-bio-8443-exec-6 |ServiceEcaRule                |I| For Service ECA [partyBasePermissionCheck] on [return] got false for condition: [hasPermission][equals][false][true
          ][Boolean]
               [java] 2015-11-21 22:52:38,402 |http-bio-8443-exec-6 |ServiceDispatcher             |T| Sync service [partymgr/partyBasePermissionCheck] finished in [1] milliseconds
               [java] 2015-11-21 22:52:38,419 |http-bio-8443-exec-6 |ServiceDispatcher             |T| Sync service [partymgr/acctgBasePermissionCheck] finished in [12] milliseconds
               [java] 2015-11-21 22:52:38,421 |http-bio-8443-exec-6 |ServiceEcaRule                |I| For Service ECA [partyBasePermissionCheck] on [return] got false for condition: [hasPermission][equals][false][true
          ][Boolean]
               [java] 2015-11-21 22:52:38,423 |http-bio-8443-exec-6 |ServiceDispatcher             |T| Sync service [partymgr/acctgBasePermissionCheck] finished in [1] milliseconds
               [java] 2015-11-21 22:52:38,719 |http-bio-8443-exec-6 |ServiceDispatcher             |T| Sync service [partymgr/getOrderedSummaryInformation] finished in [116] milliseconds
               [java] 2015-11-21 22:52:38,847 |http-bio-8443-exec-6 |ServerHitBin                  |I| Visit delegatorName=default, ServerHitBin delegatorName=default
               [java] 2015-11-21 22:52:38,847 |http-bio-8443-exec-6 |ControlServlet                |T| [[[removePartyContent(Domain:https://localhost)] Request Done- total:0.737,since last([removePartyConte...):0.737]]
          
               [java] 2015-11-21 22:52:38,994 |http-bio-8443-exec-6 |ControlServlet                |T| [[[removePartyContent(Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
          
               [java] 2015-11-21 22:52:38,998 |http-bio-8443-exec-6 |ModelService                  |E| [ModelService.validate] : {removePartyContent} : (IN) Required test error: org.ofbiz.service.ServiceValidationExcep
          tion: The following required parameter is missing: [IN] [removePartyContent.contentId]The following required parameter is missing: [IN] [removePartyContent.fromDate]The following required parameter is missing
          : [IN] [removePartyContent.partyContentTypeId]The following required parameter is missing: [IN] [removePartyContent.partyId]
               [java] 2015-11-21 22:52:38,998 |http-bio-8443-exec-6 |ServiceDispatcher             |E| Incoming context (in runSync : removePartyContent) does not match expected requirements
               [java] org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [IN] [removePartyContent.contentId]The following required parameter is missing: [IN] [removePartyContent.
          fromDate]The following required parameter is missing: [IN] [removePartyContent.partyContentTypeId]The following required parameter is missing: [IN] [removePartyContent.partyId]
               [java]     at org.ofbiz.service.ModelService.validate(ModelService.java:636) ~[ofbiz-service.jar:?]
               [java]     at org.ofbiz.service.ModelService.validate(ModelService.java:578) ~[ofbiz-service.jar:?]
               [java]     at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:376) [ofbiz-service.jar:?]
               [java]     at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [ofbiz-service.jar:?]
               [java]     at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [ofbiz-service.jar:?]
               [java]     at org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:340) [ofbiz-webapp.jar:?]
               [java]     at org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:759) [ofbiz-webapp.jar:?]
               [java]     at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:476) [ofbiz-webapp.jar:?]
               [java]     at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:213) [ofbiz-webapp.jar:?]
               [java]     at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:88) [ofbiz-webapp.jar:?]
               [java]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) [servlet-api-3.0.jar:?]
               [java]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) [servlet-api-3.0.jar:?]
               [java]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) [tomcat-7.0.64-catalina.jar:7.0.64]
               [java]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [tomcat-7.0.64-catalina.jar:7.0.64]
               [java]     at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:323) [ofbiz-webapp.jar:?]
               [java]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [tomcat-7.0.64-catalina.jar:7.0.64]
               [java]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [tomcat-7.0.64-catalina.jar:7.0.64]
               [java]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [tomcat-7.0.64-catalina.jar:7.0.64]
               [java]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [tomcat-7.0.64-catalina.jar:7.0.64]
               [java]     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) [tomcat-7.0.64-catalina.jar:7.0.64]
               [java]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) [tomcat-7.0.64-catalina.jar:7.0.64]
               [java]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [tomcat-7.0.64-catalina.jar:7.0.64]
               [java]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [tomcat-7.0.64-catalina.jar:7.0.64]
               [java]     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) [tomcat-7.0.64-catalina.jar:7.0.64]
               [java]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) [tomcat-7.0.64-catalina.jar:7.0.64]
               [java]     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
               [java]     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
               [java]     at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
               [java]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_51]
               [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_51]
               [java]     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
               [java]     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]
               [java] 2015-11-21 22:52:38,998 |http-bio-8443-exec-6 |ServiceDispatcher             |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'partymgr / removePartyContent'
               [java] 2015-11-21 22:52:38,998 |http-bio-8443-exec-6 |TransactionUtil               |I| Transaction rolled back
               [java] 2015-11-21 22:52:38,998 |http-bio-8443-exec-6 |TransactionUtil               |W| Not committing transaction, status is No Transaction (6)
               [java] 2015-11-21 22:52:38,998 |http-bio-8443-exec-6 |RequestHandler                |I| Ran Event [service:#removePartyContent] from [request], result is [error]
               [java] 2015-11-21 22:52:38,999 |http-bio-8443-exec-6 |RequestHandler                |W| Could not find response in request [removePartyContent] for event return [error]
               [java] 2015-11-21 22:52:38,999 |http-bio-8443-exec-6 |RequestHandler                |I| Rendering View [EditPartyContents], sessionId=56DBE28A391381E1B44D53CD49968F7E.jvm1
               [java] 2015-11-21 22:52:39,001 |http-bio-8443-exec-6 |ServiceDispatcher             |T| Sync service [partymgr/getVisualThemeResources] finished in [1] milliseconds
               [java] 2015-11-21 22:52:39,002 |http-bio-8443-exec-6 |PrimaryKeyFinder              |I| Returning null because found incomplete primary key in find: [GenericEntity:Content][contentId,null()]
               [java] 2015-11-21 22:52:39,002 |http-bio-8443-exec-6 |PrimaryKeyFinder              |I| Returning null because found incomplete primary key in find: [GenericEntity:Party][partyId,null()]
               [java] 2015-11-21 22:52:39,002 |http-bio-8443-exec-6 |PrimaryKeyFinder              |I| Returning null because found incomplete primary key in find: [GenericEntity:Person][partyId,null()]
               [java] 2015-11-21 22:52:39,002 |http-bio-8443-exec-6 |PrimaryKeyFinder              |I| Returning null because found incomplete primary key in find: [GenericEntity:PartyGroup][partyId,null()]
               [java] 2015-11-21 22:52:39,006 |http-bio-8443-exec-6 |PrimaryKeyFinder              |I| Returning null because found incomplete primary key in find: [GenericEntity:PartyAcctgPrefAndGroup][partyId,Company
          (java.lang.String)][roleTypeId,null()]
               [java] 2015-11-21 22:52:39,037 |http-bio-8443-exec-6 |ServiceEcaRule                |I| For Service ECA [partyBasePermissionCheck] on [return] got false for condition: [hasPermission][equals][false][true
          ][Boolean]
               [java] 2015-11-21 22:52:39,037 |http-bio-8443-exec-6 |ServiceDispatcher             |T| Sync service [partymgr/partyBasePermissionCheck] finished in [1] milliseconds
               [java] 2015-11-21 22:52:39,042 |http-bio-8443-exec-6 |ServiceEcaRule                |I| For Service ECA [partyBasePermissionCheck] on [return] got false for condition: [hasPermission][equals][false][true
          ][Boolean]
               [java] 2015-11-21 22:52:39,042 |http-bio-8443-exec-6 |ServiceDispatcher             |T| Sync service [partymgr/partyBasePermissionCheck] finished in [1] milliseconds
               [java] 2015-11-21 22:52:39,043 |http-bio-8443-exec-6 |ServiceEcaRule                |I| For Service ECA [partyBasePermissionCheck] on [return] got false for condition: [hasPermission][equals][false][true
          ][Boolean]
               [java] 2015-11-21 22:52:39,043 |http-bio-8443-exec-6 |ServiceDispatcher             |T| Sync service [partymgr/partyBasePermissionCheck] finished in [1] milliseconds
               [java] 2015-11-21 22:52:39,072 |http-bio-8443-exec-6 |PrimaryKeyFinder              |I| Returning null because found incomplete primary key in find: [GenericEntity:StatusItem][statusId,null()]
               [java] 2015-11-21 22:52:39,072 |http-bio-8443-exec-6 |PrimaryKeyFinder              |I| Returning null because found incomplete primary key in find: [GenericEntity:DataResource][dataResourceId,null()]
               [java] 2015-11-21 22:52:39,089 |http-bio-8443-exec-6 |ServerHitBin                  |I| Visit delegatorName=default, ServerHitBin delegatorName=default
               [java] 2015-11-21 22:52:39,090 |http-bio-8443-exec-6 |ControlServlet                |T| [[[removePartyContent(Domain:https://localhost)] Request Done- total:0.096,since last([removePartyConte...):0.096]]
          

          Not sure why the removePartyContent request si called twice and the 2nd fails, and I have no time to investigate.

          Show
          jacques.le.roux Jacques Le Roux added a comment - - edited Sorry guys I reopen, I found another related case: this minor error in the log when I remove a content party: [java] 2015-11-21 22:52:38,110 |http-bio-8443-exec-6 |ControlServlet |T| [[[removePartyContent(Domain:https: //localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |ServiceDispatcher |T| Sync service [partymgr/removePartyContent] finished in [18] milliseconds [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |RequestHandler |I| Ran Event [service:#removePartyContent] from [request], result is [success] [java] 2015-11-21 22:52:38,135 |http-bio-8443-exec-6 |RequestHandler |I| Rendering View [viewprofile], sessionId=56DBE28A391381E1B44D53CD49968F7E.jvm1 [java] 2015-11-21 22:52:38,136 |http-bio-8443-exec-6 |ServiceDispatcher |T| Sync service [partymgr/getUserPreferenceGroup] finished in [1] milliseconds [java] 2015-11-21 22:52:38,138 |http-bio-8443-exec-6 |ServiceDispatcher |T| Sync service [partymgr/getVisualThemeResources] finished in [1] milliseconds [java] 2015-11-21 22:52:38,163 |http-bio-8443-exec-6 |ScreenFactory |I| Got 39 screens in 0.008s from: file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/PartyScreens.xml [java] 2015-11-21 22:52:38,210 |http-bio-8443-exec-6 |ScreenFactory |I| Got 4 screens in 0.005s from: file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/CommonScreens.xml [java] 2015-11-21 22:52:38,216 |http-bio-8443-exec-6 |ScreenFactory |I| Got 1 screens in 0.005s from: file:/C:/projectASF-Mars/ofbiz/applications/commonext/widget/CommonScreens.xml [java] 2015-11-21 22:52:38,284 |http-bio-8443-exec-6 |ServiceDispatcher |T| Sync service [partymgr/getLastSystemInfoNote] finished in [17] milliseconds [java] 2015-11-21 22:52:38,286 |http-bio-8443-exec-6 |PrimaryKeyFinder |I| Returning null because found incomplete primary key in find: [GenericEntity:PartyAcctgPrefAndGroup][partyId,Company (java.lang. String )][roleTypeId, null ()] [java] 2015-11-21 22:52:38,293 |http-bio-8443-exec-6 |ScreenFactory |I| Got 24 screens in 0.006s from: file:/C:/projectASF-Mars/ofbiz/framework/common/widget/CommonScreens.xml [java] 2015-11-21 22:52:38,392 |http-bio-8443-exec-6 |ServiceEcaRule |I| For Service ECA [partyBasePermissionCheck] on [ return ] got false for condition: [hasPermission][equals][ false ][ true ][ Boolean ] [java] 2015-11-21 22:52:38,393 |http-bio-8443-exec-6 |ServiceDispatcher |T| Sync service [partymgr/partyBasePermissionCheck] finished in [46] milliseconds [java] 2015-11-21 22:52:38,401 |http-bio-8443-exec-6 |ServiceEcaRule |I| For Service ECA [partyBasePermissionCheck] on [ return ] got false for condition: [hasPermission][equals][ false ][ true ][ Boolean ] [java] 2015-11-21 22:52:38,402 |http-bio-8443-exec-6 |ServiceDispatcher |T| Sync service [partymgr/partyBasePermissionCheck] finished in [1] milliseconds [java] 2015-11-21 22:52:38,419 |http-bio-8443-exec-6 |ServiceDispatcher |T| Sync service [partymgr/acctgBasePermissionCheck] finished in [12] milliseconds [java] 2015-11-21 22:52:38,421 |http-bio-8443-exec-6 |ServiceEcaRule |I| For Service ECA [partyBasePermissionCheck] on [ return ] got false for condition: [hasPermission][equals][ false ][ true ][ Boolean ] [java] 2015-11-21 22:52:38,423 |http-bio-8443-exec-6 |ServiceDispatcher |T| Sync service [partymgr/acctgBasePermissionCheck] finished in [1] milliseconds [java] 2015-11-21 22:52:38,719 |http-bio-8443-exec-6 |ServiceDispatcher |T| Sync service [partymgr/getOrderedSummaryInformation] finished in [116] milliseconds [java] 2015-11-21 22:52:38,847 |http-bio-8443-exec-6 |ServerHitBin |I| Visit delegatorName= default , ServerHitBin delegatorName= default [java] 2015-11-21 22:52:38,847 |http-bio-8443-exec-6 |ControlServlet |T| [[[removePartyContent(Domain:https: //localhost)] Request Done- total:0.737,since last([removePartyConte...):0.737]] [java] 2015-11-21 22:52:38,994 |http-bio-8443-exec-6 |ControlServlet |T| [[[removePartyContent(Domain:https: //localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] [java] 2015-11-21 22:52:38,998 |http-bio-8443-exec-6 |ModelService |E| [ModelService.validate] : {removePartyContent} : (IN) Required test error: org.ofbiz.service.ServiceValidationExcep tion: The following required parameter is missing: [IN] [removePartyContent.contentId]The following required parameter is missing: [IN] [removePartyContent.fromDate]The following required parameter is missing : [IN] [removePartyContent.partyContentTypeId]The following required parameter is missing: [IN] [removePartyContent.partyId] [java] 2015-11-21 22:52:38,998 |http-bio-8443-exec-6 |ServiceDispatcher |E| Incoming context (in runSync : removePartyContent) does not match expected requirements [java] org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [IN] [removePartyContent.contentId]The following required parameter is missing: [IN] [removePartyContent. fromDate]The following required parameter is missing: [IN] [removePartyContent.partyContentTypeId]The following required parameter is missing: [IN] [removePartyContent.partyId] [java] at org.ofbiz.service.ModelService.validate(ModelService.java:636) ~[ofbiz-service.jar:?] [java] at org.ofbiz.service.ModelService.validate(ModelService.java:578) ~[ofbiz-service.jar:?] [java] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:376) [ofbiz-service.jar:?] [java] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [ofbiz-service.jar:?] [java] at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [ofbiz-service.jar:?] [java] at org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:340) [ofbiz-webapp.jar:?] [java] at org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:759) [ofbiz-webapp.jar:?] [java] at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:476) [ofbiz-webapp.jar:?] [java] at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:213) [ofbiz-webapp.jar:?] [java] at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:88) [ofbiz-webapp.jar:?] [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) [servlet-api-3.0.jar:?] [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) [servlet-api-3.0.jar:?] [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) [tomcat-7.0.64-catalina.jar:7.0.64] [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [tomcat-7.0.64-catalina.jar:7.0.64] [java] at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:323) [ofbiz-webapp.jar:?] [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [tomcat-7.0.64-catalina.jar:7.0.64] [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [tomcat-7.0.64-catalina.jar:7.0.64] [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [tomcat-7.0.64-catalina.jar:7.0.64] [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [tomcat-7.0.64-catalina.jar:7.0.64] [java] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) [tomcat-7.0.64-catalina.jar:7.0.64] [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) [tomcat-7.0.64-catalina.jar:7.0.64] [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [tomcat-7.0.64-catalina.jar:7.0.64] [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [tomcat-7.0.64-catalina.jar:7.0.64] [java] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) [tomcat-7.0.64-catalina.jar:7.0.64] [java] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) [tomcat-7.0.64-catalina.jar:7.0.64] [java] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64] [java] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64] [java] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64] [java] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_51] [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_51] [java] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64] [java] at java.lang. Thread .run( Thread .java:745) [?:1.8.0_51] [java] 2015-11-21 22:52:38,998 |http-bio-8443-exec-6 |ServiceDispatcher |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'partymgr / removePartyContent' [java] 2015-11-21 22:52:38,998 |http-bio-8443-exec-6 |TransactionUtil |I| Transaction rolled back [java] 2015-11-21 22:52:38,998 |http-bio-8443-exec-6 |TransactionUtil |W| Not committing transaction, status is No Transaction (6) [java] 2015-11-21 22:52:38,998 |http-bio-8443-exec-6 |RequestHandler |I| Ran Event [service:#removePartyContent] from [request], result is [error] [java] 2015-11-21 22:52:38,999 |http-bio-8443-exec-6 |RequestHandler |W| Could not find response in request [removePartyContent] for event return [error] [java] 2015-11-21 22:52:38,999 |http-bio-8443-exec-6 |RequestHandler |I| Rendering View [EditPartyContents], sessionId=56DBE28A391381E1B44D53CD49968F7E.jvm1 [java] 2015-11-21 22:52:39,001 |http-bio-8443-exec-6 |ServiceDispatcher |T| Sync service [partymgr/getVisualThemeResources] finished in [1] milliseconds [java] 2015-11-21 22:52:39,002 |http-bio-8443-exec-6 |PrimaryKeyFinder |I| Returning null because found incomplete primary key in find: [GenericEntity:Content][contentId, null ()] [java] 2015-11-21 22:52:39,002 |http-bio-8443-exec-6 |PrimaryKeyFinder |I| Returning null because found incomplete primary key in find: [GenericEntity:Party][partyId, null ()] [java] 2015-11-21 22:52:39,002 |http-bio-8443-exec-6 |PrimaryKeyFinder |I| Returning null because found incomplete primary key in find: [GenericEntity:Person][partyId, null ()] [java] 2015-11-21 22:52:39,002 |http-bio-8443-exec-6 |PrimaryKeyFinder |I| Returning null because found incomplete primary key in find: [GenericEntity:PartyGroup][partyId, null ()] [java] 2015-11-21 22:52:39,006 |http-bio-8443-exec-6 |PrimaryKeyFinder |I| Returning null because found incomplete primary key in find: [GenericEntity:PartyAcctgPrefAndGroup][partyId,Company (java.lang. String )][roleTypeId, null ()] [java] 2015-11-21 22:52:39,037 |http-bio-8443-exec-6 |ServiceEcaRule |I| For Service ECA [partyBasePermissionCheck] on [ return ] got false for condition: [hasPermission][equals][ false ][ true ][ Boolean ] [java] 2015-11-21 22:52:39,037 |http-bio-8443-exec-6 |ServiceDispatcher |T| Sync service [partymgr/partyBasePermissionCheck] finished in [1] milliseconds [java] 2015-11-21 22:52:39,042 |http-bio-8443-exec-6 |ServiceEcaRule |I| For Service ECA [partyBasePermissionCheck] on [ return ] got false for condition: [hasPermission][equals][ false ][ true ][ Boolean ] [java] 2015-11-21 22:52:39,042 |http-bio-8443-exec-6 |ServiceDispatcher |T| Sync service [partymgr/partyBasePermissionCheck] finished in [1] milliseconds [java] 2015-11-21 22:52:39,043 |http-bio-8443-exec-6 |ServiceEcaRule |I| For Service ECA [partyBasePermissionCheck] on [ return ] got false for condition: [hasPermission][equals][ false ][ true ][ Boolean ] [java] 2015-11-21 22:52:39,043 |http-bio-8443-exec-6 |ServiceDispatcher |T| Sync service [partymgr/partyBasePermissionCheck] finished in [1] milliseconds [java] 2015-11-21 22:52:39,072 |http-bio-8443-exec-6 |PrimaryKeyFinder |I| Returning null because found incomplete primary key in find: [GenericEntity:StatusItem][statusId, null ()] [java] 2015-11-21 22:52:39,072 |http-bio-8443-exec-6 |PrimaryKeyFinder |I| Returning null because found incomplete primary key in find: [GenericEntity:DataResource][dataResourceId, null ()] [java] 2015-11-21 22:52:39,089 |http-bio-8443-exec-6 |ServerHitBin |I| Visit delegatorName= default , ServerHitBin delegatorName= default [java] 2015-11-21 22:52:39,090 |http-bio-8443-exec-6 |ControlServlet |T| [[[removePartyContent(Domain:https: //localhost)] Request Done- total:0.096,since last([removePartyConte...):0.096]] Not sure why the removePartyContent request si called twice and the 2nd fails, and I have no time to investigate.
          Hide
          deepak.dixit Deepak Dixit added a comment -

          Hi Jacques,

          IMO we can close this issue as removePartyContent is not related to reported issue. New ticekt OFBIZ-6746 has been created for removePartyContent request.

          Show
          deepak.dixit Deepak Dixit added a comment - Hi Jacques, IMO we can close this issue as removePartyContent is not related to reported issue. New ticekt OFBIZ-6746 has been created for removePartyContent request.
          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          OK, thanks Deepak

          Show
          jacques.le.roux Jacques Le Roux added a comment - OK, thanks Deepak

            People

            • Assignee:
              deepak.dixit Deepak Dixit
              Reporter:
              jacques.le.roux Jacques Le Roux
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development