From: Nico V. <ni...@sk...> - 2005-11-22 20:48:41
|
Hi Latha, The problem is that there exists a class ED in the ca.uhn.hl7v2.model.v25.segment namespace. I guess there's an error in the hl7 database (source from where these classes are generated) that causes this wrong ED segment class ... Bryan, James, could you please verify ? Thanks a lot ! Regards Nico At 14/11/2005, latha wrote: > > >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 > >this.add(ED.class, false, 1, 65536, null); > >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 > >Latha V |