Hello,

I'm currently experiencing an exception showing up in log4j's log output
:

15:05:57,516 ERROR UAC:56 - Can't instantiate
ca.uhn.hl7v2.model.v26.segment.UAC
ca.uhn.hl7v2.HL7Exception: Class ca.uhn.hl7v2.model.v26.segment.ED does
not inherit from ca.on.uhn.datatype.Type

I have looked at the code in UAC class and found this :

060 ED ret = null; 
061 try { 
062 Type t = this.getField(2, 0); 
063 ret = (ED)t; 
064 } catch (ClassCastException cce) { 

This class is imporing all files in model.v26.datatype and happens to be
part of model.v26.segment, both contain a class called ED.

Is it possible that UAC class is trying to cast the variable t of type
Type in the segment class ED instead of the datatype class ED thus
resulting in the ClassCastException ?

Can anyone help me out ?
Thanks.

PS : I'm using HAPI v0.6 because when downloading HAPI v1.0beta1 I have
gotten empty datatype and segment packages...

*********************************
This message and any attachments (the "message") are confidential and intended 
solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or 
falsified.
If you are not the intended addressee of this message, please cancel it 
immediately and inform the sender.
********************************

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to