Rahul,
Do you have structure classes in your path?
CMCF will look for 2.6 structure.
Thanks.
Regards
-Niranjan.
From: Rahul Somasunderam [mailto:r...@certifydatasystems.com]
Sent: Monday, January 09, 2012 10:36 AM
To: hl7api-devel@lists.sourceforge.net
Subject: [HAPI-devel] generateACK and CanonicalMCF
Hi,
I'm using Canonical MCF to parse a message. Then I'm using generateACK on the
message. This causes a ClassNotFoundException. I'm using HAPI 1.2, if that
matters.
This is my code (in Groovy)
def messageString = context.messageContent
def cmcf = new CanonicalModelClassFactory("2.6")
def parser = new PipeParser(cmcf)
parser.setValidationContext(new NoValidation())
def message = parser.parse(messageString)
... (app logic) ...
def ack = message.generateACK()
return ack.encode()
This is the most significant part of the exception:
ca.uhn.hl7v2.HL7Exception: Can't instantiate ACK of class
ca.uhn.hl7v2.model.v24.message.ACK: java.lang.ClassNotFoundException
at
ca.uhn.hl7v2.app.DefaultApplication.makeACK(DefaultApplication.java:150)
at
ca.uhn.hl7v2.model.AbstractMessage.generateACK(AbstractMessage.java:213)
at
ca.uhn.hl7v2.model.AbstractMessage.generateACK(AbstractMessage.java:205)
at
messaging.MessageReceiverService$$ENLWsoN6.process(MessageReceiverService.groovy:24)
Is there a known workaround for this? Do you want me to submit a test case/file
a report?
R,
rahul
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel