Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. ca.uhn.hl7v2.HL7Exception: Can't determine message structure from MSH-9: ZPM HINT: there are only 1 of 3 components present
  2. at ca.uhn.hl7v2.parser.PipeParser.getStructure(PipeParser.java:186)
  3. at ca.uhn.hl7v2.parser.PipeParser.doParse(PipeParser.java:223)
  4. at ca.uhn.hl7v2.parser.GenericParser.doParse(GenericParser.java:245)
  5. at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:212)
  6. at ca.uhn.hl7v2.parser.GenericParser.parse(GenericParser.java:253)
  7. at ca.uhn.hl7v2.protocol.impl.ApplicationRouterImpl.processMessage(ApplicationRouterImpl.java:138)
  8. at ca.uhn.hl7v2.protocol.impl.ApplicationRouterImpl.processMessage(ApplicationRouterImpl.java:105)
  9. at ca.uhn.hl7v2.app.Responder.processMessage(Responder.java:91)
  10. at ca.uhn.hl7v2.app.Receiver$Grunt.run(Receiver.java:127)
  11. at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
  12. at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  13. at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  14. at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  15. at java.base/java.lang.Thread.run(Thread.java:834)
  16.  
  17. ModelClassFactory cmf = new
  18. CustomModelClassFactory("com.something.some_lib.hl7.custommodel");
  19.  
  20. MinLowerLayerProtocol mllp = new MinLowerLayerProtocol();
  21. mllp.setCharset(StandardCharsets.ISO_8859_1.name());
  22.  
  23. hapiContext = new DefaultHapiContext();
  24. hapiContext.setValidationContext(ValidationContextFactory.noValidation());
  25. hapiContext.getPipeParser()
  26. .getParserConfiguration()
  27. .setUnexpectedSegmentBehaviour(
  28. UnexpectedSegmentBehaviourEnum.ADD_INLINE);
  29. hapiContext.setModelClassFactory(cmf);
  30. hapiContext.setLowerLayerProtocol(mllp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement