Uploaded image for project: 'PatientManager'
  1. PatientManager
  2. PAM-492

XCPD query generate a NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 9.6.0
    • Fix Version/s: 9.7.0
    • Component/s: XCPD Resp GW
    • Labels:
      None
    • Account:
      Maintenance 2017 (MAINTENANCE2017)

      Description

      If I do a query to the XCPD responding gateway for the patient with the last name "Peteers" I have not response.
      If I do a similar query for the patient with the last name "Martin" I get a NPE.

      I have run the query agains the simulator itself using the configuration DH
      The link to the messages for
      Peteers : https://gazelle.ihe.net/PatientManager/messages/messageDisplay.seam?id=227299
      Martin :
      https://gazelle.ihe.net/PatientManager/messages/messageDisplay.seam?id=227301

      The NPE message in the logs :
      2017-10-23 10:40:38,071 ERROR () [net.ihe.gazelle.simulator.xcpd.respondinggw.RespondingGatewayService] (ajp-/0.0.0.0:8209-17 ) null: java.lang.NullPointerException
      at net.ihe.gazelle.simulator.hl7v3.responder.XCPDRespGwResponseBuilder.buildPatientId(XCPDRespGwResponseBuilder.java:147) [PAMSimulator-ejb.jar:9.6.0]
      at net.ihe.gazelle.simulator.hl7v3.responder.PRPAIN201306UV02Builder.populatePatient(PRPAIN201306UV02Builder.java:246) [PAMSimulator-ejb.jar:9.6.0]
      at net.ihe.gazelle.simulator.hl7v3.responder.XCPDRespGwResponseBuilder.buildControlActWrapper(XCPDRespGwResponseBuilder.java:97) [PAMSimulator-ejb.jar:9.6.0]
      at net.ihe.gazelle.simulator.hl7v3.responder.PRPAIN201306UV02Builder.buildFindCandidatesQueryResponse(PRPAIN201306UV02Builder.java:129) [PAMSimulator-ejb.jar:9.6.0]
      at net.ihe.gazelle.simulator.hl7v3.responder.XCPDRespGwResponseBuilder.buildFindCandidatesQueryResponse(XCPDRespGwResponseBuilder.java:64) [PAMSimulator-ejb.jar:9.6.0]
      at net.ihe.gazelle.simulator.xcpd.common.XCPDQueryHandler.handleCrossGatewayPatientDiscoveryQuery(XCPDQueryHandler.java:132) [PAMSimulator-ejb.jar:9.6.0]
      at net.ihe.gazelle.simulator.xcpd.respondinggw.RespondingGatewayService.crossGatewayPatientDiscovery(RespondingGatewayService.java:68) [PAMSimulator-ejb.jar:9.6.0]
      at sun.reflect.GeneratedMethodAccessor1448.invoke(Unknown Source) [:1.7.0_151]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_151]
      at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_151]
      at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.2.0.Final.jar:7.2.0.Final]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
      at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
      at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:58) [jboss-as-ee-7.2.0.Final.jar:7.2.0.Final]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
      at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
      at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44) [jboss-seam.jar:2.3.1.Final]
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam.jar:2.3.1.Final]
      at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam.jar:2.3.1.Final]
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.3.1.Final]
      at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam.jar:2.3.1.Final]
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.3.1.Final]
      at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:29) [jboss-seam.jar:2.3.1.Final]
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.3.1.Final]
      at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:30) [jboss-seam.jar:2.3.1.Final]
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.3.1.Final]
      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam.jar:2.3.1.Final]
      at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:51) [jboss-seam.jar:2.3.1.Final]
      at sun.reflect.GeneratedMethodAccessor214.invoke(Unknown Source) [:1.7.0_151]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_151]
      at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_151]

        Attachments

          Activity

            People

            • Assignee:
              aberge Anne-Gaelle Berge
              Reporter:
              epoiseau Eric Poiseau
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Potential Duplicates