From: latha <la...@re...> - 2005-11-14 07:36:14
|
=20 Hi, I am Latha V working as a Software Engineer for reli e-marg Mysore. We = are developing an application which is using HL7 standard. We are using = the recent HAPI which we got it from sourceforge.net i.e = hapi-0.5beta.jar. We have got the following error while trying to create = the instance of the class PMU_B01. Can't instantiate ca.uhn.hl7v2.model.v25.segment.CER ca.uhn.hl7v2.HL7Exception: Class ca.uhn.hl7v2.model.v25.segment.ED does = not inherit from ca.on.uhn.datatype.Type We have solved the problem temporarily by editing the source code of = hapi0.5beta.jar by doing the following modification in the file = ca.uhn.hl7v2.model.v25.segment.CER.java the line=20 this.add(ED.class, false, 1, 65536, null);=20 was replaced by the line this.add(ca.uhn.hl7v2.model.v25.datatype.ED.class, false, 1, 65536, = null); as that has to refer to the class ED of the datatype package and not the = class ED under segment package. Can you please let me know if there is any other means of solving this = problem otherthan modifying the original jar file? Thanks & Regards=20 Latha V |