From: Sina P. <si...@fo...> - 2006-01-09 13:00:20
|
Hello, I'm a newbie and I'm trying to process messages.=20 I have an application which is registered to SimpleServer. That works with the example message from the tutorial (http://hl7api.sourceforge.net/tutorial.html). I was looking for more examples and finally I found a few (http://www.hl7.de/download/profile_051223.zip) on the German HL7 user = group website. But if I send one of these messages (through the Message Tester) to my application, I get an exception.=20 I would like to use these messages, because I couldn't find any other (German) examples. Thanks, Sina --------------------------- MSH|^~\&|KIS||RIS||200512151705||ADT^A01^ADT_A01|ADT001|P|2.5^DEU&&HL7039= 9|| |AL|NE|DEU|8859/15|DEU^German^HL70296^^deutsch||2.16.840.1.113883.2.6.9.8= ^^2 .16.840.1.113883.2.6^ISO EVN||200512151705||||200512151645 PID|||1234567^^^Beta-Klinik^PI||Vogel^Marianne^^^^^L^A^^^G~Seeberg^^^^^^M= ^A^ ^^G~Vogel^^^^Frau^^D^^^^G||19780521|F|||Spechtweg14&Spechtweg&14^^Hamburg= ^^2 0355^^H~Spitalstr.17&Spitalstr.&17^^Hamburg^^20355^^BDL||^PRN^PH^^49^40^7= 654 321^^^^^040/7654321|^WPN^PH^^49^40^5432^555^^^^040/5432-555|DEU^German^HL= 702 96^^deutsch|M^married^HL70002^^verheiratet|CAT^catholic^HL70006^^katholis= ch| |||||Heilig-Geist-Krankenhaus|||DEU^German^HL70171^^deutsch PV1|1|I|CHI^302^2^IN^^N^A^4|R|||432113^Gro=DF^Bernhard^^^Dr.^^^Beta-Klini= k^L^^ ^DN^^^DN^^G||||||||||||0815^^^Beta-Klinik^VN|||||||||||||||||||||||||2005= 121 51645 PV2|||||||||20040405|4 ZBE|1234^KIS|200512151705||INSERT --------------------------- Exception in thread "Thread-3" java.lang.NoSuchMethodError: ca.uhn.hl7v2.model.AbstractMessage.<init>(Lca/uhn/hl7v2/parser/ModelClass= Fac tory;)V at ca.uhn.hl7v2.model.v25.message.ADT_A01.<init>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:209) at ca.uhn.hl7v2.app.Responder.processMessage(Responder.java:139) at ca.uhn.hl7v2.app.Receiver$Grunt.run(Receiver.java:120) ca.uhn.hl7v2.HL7Exception: Couldn't create MSH for version = 2.5^DEU&&HL70399 (does your classpath include this version?) ...=20 at ca.uhn.hl7v2.parser.Parser.makeControlMSH(Parser.java:345) at ca.uhn.hl7v2.parser.PipeParser.getCriticalResponseData(PipeParser.java:64= 5) at ca.uhn.hl7v2.app.Responder.processMessage(Responder.java:142) at ca.uhn.hl7v2.app.Receiver$Grunt.run(Receiver.java:120) Caused by: ca.uhn.hl7v2.HL7Exception: The HL7 version 2.5^DEU&&HL70399 = is not recognized at ca.uhn.hl7v2.sourcegen.SourceGenerator.getVersionPackagePath(SourceGenera= tor .java:206) at ca.uhn.hl7v2.sourcegen.SourceGenerator.getVersionPackageName(SourceGenera= tor .java:225) at ca.uhn.hl7v2.parser.Parser.makeControlMSH(Parser.java:337) ... 3 more --------------------------- |
From: Bryan T. <bp...@gm...> - 2006-01-10 21:23:44
|
Hi Sina, It looks like maybe the core code is out of synch with the message library code. Are you using the latest jar? Do you have multiple versions of anything in your classpath? Bryan On 1/9/06, Sina Pieper <si...@fo...> wrote: > Hello, > > I'm a newbie and I'm trying to process messages. > I have an application which is registered to SimpleServer. > That works with the example message from the tutorial > (http://hl7api.sourceforge.net/tutorial.html). > > I was looking for more examples and finally I found a few > (http://www.hl7.de/download/profile_051223.zip) on the German HL7 user gr= oup > website. > But if I send one of these messages (through the Message Tester) to my > application, I get an exception. > I would like to use these messages, because I couldn't find any other > (German) examples. > > Thanks, > Sina > > --------------------------- > MSH|^~\&|KIS||RIS||200512151705||ADT^A01^ADT_A01|ADT001|P|2.5^DEU&&HL7039= 9|| > |AL|NE|DEU|8859/15|DEU^German^HL70296^^deutsch||2.16.840.1.113883.2.6.9.8= ^^2 > .16.840.1.113883.2.6^ISO > EVN||200512151705||||200512151645 > PID|||1234567^^^Beta-Klinik^PI||Vogel^Marianne^^^^^L^A^^^G~Seeberg^^^^^^M= ^A^ > ^^G~Vogel^^^^Frau^^D^^^^G||19780521|F|||Spechtweg14&Spechtweg&14^^Hamburg= ^^2 > 0355^^H~Spitalstr.17&Spitalstr.&17^^Hamburg^^20355^^BDL||^PRN^PH^^49^40^7= 654 > 321^^^^^040/7654321|^WPN^PH^^49^40^5432^555^^^^040/5432-555|DEU^German^HL= 702 > 96^^deutsch|M^married^HL70002^^verheiratet|CAT^catholic^HL70006^^katholis= ch| > |||||Heilig-Geist-Krankenhaus|||DEU^German^HL70171^^deutsch > PV1|1|I|CHI^302^2^IN^^N^A^4|R|||432113^Gro=DF^Bernhard^^^Dr.^^^Beta-Klini= k^L^^ > ^DN^^^DN^^G||||||||||||0815^^^Beta-Klinik^VN|||||||||||||||||||||||||2005= 121 > 51645 > PV2|||||||||20040405|4 > ZBE|1234^KIS|200512151705||INSERT > --------------------------- > Exception in thread "Thread-3" java.lang.NoSuchMethodError: > ca.uhn.hl7v2.model.AbstractMessage.<init>(Lca/uhn/hl7v2/parser/ModelClass= Fac > tory;)V > at ca.uhn.hl7v2.model.v25.message.ADT_A01.<init>(Unknown Source) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown > Source) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unkno= wn > Source) > at java.lang.reflect.Constructor.newInstance(Unknown Source) > at java.lang.Class.newInstance0(Unknown Source) > at java.lang.Class.newInstance(Unknown Source) > at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:209) > at ca.uhn.hl7v2.app.Responder.processMessage(Responder.java:139) > at ca.uhn.hl7v2.app.Receiver$Grunt.run(Receiver.java:120) > ca.uhn.hl7v2.HL7Exception: Couldn't create MSH for version 2.5^DEU&&HL703= 99 > (does your classpath include this version?) ... > at ca.uhn.hl7v2.parser.Parser.makeControlMSH(Parser.java:345) > at > ca.uhn.hl7v2.parser.PipeParser.getCriticalResponseData(PipeParser.java:64= 5) > at ca.uhn.hl7v2.app.Responder.processMessage(Responder.java:142) > at ca.uhn.hl7v2.app.Receiver$Grunt.run(Receiver.java:120) > Caused by: ca.uhn.hl7v2.HL7Exception: The HL7 version 2.5^DEU&&HL70399 is > not recognized > at > ca.uhn.hl7v2.sourcegen.SourceGenerator.getVersionPackagePath(SourceGenera= tor > .java:206) > at > ca.uhn.hl7v2.sourcegen.SourceGenerator.getVersionPackageName(SourceGenera= tor > .java:225) > at ca.uhn.hl7v2.parser.Parser.makeControlMSH(Parser.java:337) > ... 3 more > --------------------------- > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id=16865&opclick > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > |