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

Cannot locate service by name (ensureNaPartyRoleTo)

    Details

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

      Description

       [java] 2015-02-21 15:05:13,584 |http-bio-8443-exec-4 |ArtifactInfoFactory           |I| Loading artifact info objects...
           [java] 2015-02-21 15:05:14,684 |kJoinPool-1-worker-3 |ArtifactInfoFactory           |W| Error processing service: acceptPartyInvitation
           [java] org.ofbiz.service.GenericServiceException: Cannot locate service by name (ensureNaPartyRoleTo)
           [java] 	at org.ofbiz.service.DispatchContext.getModelService(DispatchContext.java:216) ~[ofbiz-service.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.getModelService(ArtifactInfoFactory.java:184) ~[ofbiz-webtools.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.<init>(ServiceArtifactInfo.java:68) ~[ofbiz-webtools.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.getServiceArtifactInfo(ArtifactInfoFactory.java:231) ~[ofbiz-webtools.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ServiceEcaArtifactInfo.populateAll(ServiceEcaArtifactInfo.java:62) ~[ofbiz-webtools.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.getServiceEcaArtifactInfo(ArtifactInfoFactory.java:243) ~[ofbiz-webtools.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.populateTriggeredServiceEcas(ServiceArtifactInfo.java:221) ~[ofbiz-webtools.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.populateAll(ServiceArtifactInfo.java:79) ~[ofbiz-webtools.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.getServiceArtifactInfo(ArtifactInfoFactory.java:233) ~[ofbiz-webtools.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.populateServicesFromNameSet(ServiceArtifactInfo.java:209) ~[ofbiz-webtools.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.populateCalledServices(ServiceArtifactInfo.java:158) ~[ofbiz-webtools.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.populateAll(ServiceArtifactInfo.java:78) ~[ofbiz-webtools.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.getServiceArtifactInfo(ArtifactInfoFactory.java:233) ~[ofbiz-webtools.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ArtifactInfoFactory$1.call(ArtifactInfoFactory.java:393) [ofbiz-webtools.jar:?]
           [java] 	at org.ofbiz.webtools.artifactinfo.ArtifactInfoFactory$1.call(ArtifactInfoFactory.java:389) [ofbiz-webtools.jar:?]
           [java] 	at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1288) [?:1.7.0_65]
           [java] 	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:334) [?:1.7.0_65]
           [java] 	at java.util.concurrent.ForkJoinWorkerThread.execTask(ForkJoinWorkerThread.java:604) [?:1.7.0_65]
           [java] 	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:784) [?:1.7.0_65]
           [java] 	at java.util.concurrent.ForkJoinPool.work(ForkJoinPool.java:646) [?:1.7.0_65]
           [java] 	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:398) [?:1.7.0_65]
      

        Activity

        Hide
        deepak.dixit Deepak Dixit added a comment -

        ensureNaPartyRoleTo service removed at r#1649965, but ensureNaPartyRoleFrom exists.
        We can remove this as well and can use ensurePartyRoleTo and ensurePartyRoleFrom.

        Show
        deepak.dixit Deepak Dixit added a comment - ensureNaPartyRoleTo service removed at r#1649965, but ensureNaPartyRoleFrom exists. We can remove this as well and can use ensurePartyRoleTo and ensurePartyRoleFrom.
        Hide
        deepak.dixit Deepak Dixit added a comment -

        Here is the patch for this issue.

        Removed ensurePartyRoleFrom service definition as well, and used the ensurePartyRoleTo and ensurePartyRoleFrom service in seca call.

        Show
        deepak.dixit Deepak Dixit added a comment - Here is the patch for this issue. Removed ensurePartyRoleFrom service definition as well, and used the ensurePartyRoleTo and ensurePartyRoleFrom service in seca call.
        Hide
        pandeypranay Pranay Pandey added a comment -

        Committed-
        Trunk r1661334.
        release14.12 r1661340.

        Thanks Deepak Dixit for reporting the issue and providing the patch for the fix.

        Show
        pandeypranay Pranay Pandey added a comment - Committed- Trunk r1661334. release14.12 r1661340. Thanks Deepak Dixit for reporting the issue and providing the patch for the fix.

          People

          • Assignee:
            pandeypranay Pranay Pandey
            Reporter:
            deepak.dixit Deepak Dixit
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development