Issue Details (XML | Word | Printable)

Key: OPENEMPI-52
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: odysseas
Reporter: arnoldmad
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
openempi

Problem doing PDQ Query expecting multiple results

Created: 20/Jan/11 01:29 PM   Updated: 28/Jul/11 06:36 PM   Resolved: 28/Jul/11 06:35 PM
Component/s: PIX/PDQ Adapter
Affects Version/s: 2.1.2
Fix Version/s: 2.1.3

Time Tracking:
Not Specified

Tags:


 Description  « Hide

I have 2 patients in my system called KNAPP and GNAPP (both are linked together). If I use a PDQ query and search for *NAPP I get the following exception:

2011-01-20 14:26:30,894 ERROR [STDERR] Exception in thread "Thread-29"
2011-01-20 14:26:30,894 ERROR [STDERR] java.lang.IllegalAccessError: tried to access method ca.uhn.hl7v2.model.AbstractGroup.add(Ljava/lang/Class;ZZ)Ljava/lang/String; from class org.openhealthexchange.openpixpdq.ihe.impl_v2.PdQueryHandler
2011-01-20 14:26:30,894 ERROR [STDERR] at org.openhealthexchange.openpixpdq.ihe.impl_v2.PdQueryHandler.popluatePIDGroup(PdQueryHandler.java:478)
2011-01-20 14:26:30,894 ERROR [STDERR] at org.openhealthexchange.openpixpdq.ihe.impl_v2.PdQueryHandler.processQuery(PdQueryHandler.java:336)
2011-01-20 14:26:30,894 ERROR [STDERR] at org.openhealthexchange.openpixpdq.ihe.impl_v2.PdQueryHandler.processMessage(PdQueryHandler.java:157)
2011-01-20 14:26:30,894 ERROR [STDERR] at ca.uhn.hl7v2.app.MessageTypeRouter.processMessage(MessageTypeRouter.java:52)
2011-01-20 14:26:30,894 ERROR [STDERR] at ca.uhn.hl7v2.app.Responder.processMessage(Responder.java:159)
2011-01-20 14:26:30,894 ERROR [STDERR] at ca.uhn.hl7v2.app.Receiver$Grunt.run(Receiver.java:121)



odysseas added a comment - 21/Jan/11 02:47 PM

Arnold,
This looks to me like a class library issue. It seems like the hapi library version that is being loaded at runtime does not match the version of the library that the code was compiled against. The hapi-0.5.1.jar file that I am using does have a public version of the add method that matches the expected signature.

// Method descriptor #135 (Ljava/lang/Class;ZZ)Ljava/lang/String;
// Stack: 6, Locals: 5
public java.lang.String add(java.lang.Class c, boolean required, boolean repeating) throws ca.uhn.hl7v2.HL7Exception;


ctoth added a comment - 21/Jan/11 08:36 PM

That's a possibility. I had problems with the hapi.jar when I started to work with OpenEMPI long time ago, see: http://kenai.com/projects/openempi/forums/developer-forum/topics/2727-Attempt-to-build

Maybe Arnold downloaded a wrong one?


arnoldmad added a comment - 24/Jan/11 02:09 PM

I'm using the one that is referenced in the pom file of trunk version. Anything how I can check if everything is correct ?

yours

Arnold


arnoldmad added a comment - 24/Jan/11 03:07 PM

I just decompiled that class file and it looks like that in my hapi version it is set to protected:

protected String add(Class c, boolean required, boolean repeating)

anyone can tell me where to get the right version (maybe also with md5 sum of the file) ?


ctoth added a comment - 24/Jan/11 10:19 PM

In the referred forum topic I describe how I modified pom's for 0.5.1 hapi.jar, but I don't use PIXPDQ, so mine can be broken also. The hapi-0.5.1.jar in my maven repo is 6.568.283 bytes long, an the corresponding pom file:
<?xml version="1.0" encoding="UTF-8"?><project>
<modelVersion>4.0.0</modelVersion>
<groupId>ca.uhn.hapi</groupId>
<artifactId>hapi</artifactId>
<version>0.5.1</version>
<distributionManagement>
<status>deployed</status>
</distributionManagement>
</project>

Since I don't use PIXPDQ I wonder if mine is good.


arnoldmad added a comment - 16/Feb/11 03:40 PM

@odysseas: could you try if the PDQ query works in your version and could you tell me which hapi you use for it ?


odysseas added a comment - 17/Feb/11 03:42 PM

Arnold,
All PIX/PDQ tests run for me. Try the following version: http://www.sysnetint.com/repository/ca/uhn/hapi/hapi/0.5.1/hapi-0.5.1.jar and see if that works for you. If not let me know and I'll work with you to resolve it.


odysseas added a comment - 28/Jul/11 06:35 PM

Resolved.