Giter Club home page Giter Club logo

Comments (4)

MikeEdgar avatar MikeEdgar commented on August 13, 2024

Thanks for the report @nsharma-bh. I'm looking into it and I think this will help solve a few issues that I've found. One issue that I see is that the order of the segments in your <implementation> loop 2300 is different from the order in the standard <transaction>. That is the cause of some of the IMPLEMENTATION_UNUSED_SEGMENT_PRESENT errors. The schema parser should detect the different order when reading the <implementation> and throw an error then (with details) rather than when reading the EDI data.

from staedi.

nsharma-bh avatar nsharma-bh commented on August 13, 2024

@MikeEdgar So I changed my XML to this and I actually got 2310A and 2310B. I changed 2300 to the file attached
837_loop1000_only.txt

But now I'm getting this error
Exception in thread "main" java.lang.ClassCastException: io.xlate.edi.internal.schema.StructureType cannot be cast to io.xlate.edi.schema.EDISimpleType at io.xlate.edi.internal.stream.validation.UsageNode.getSimpleType(UsageNode.java:145) at io.xlate.edi.internal.stream.validation.UsageNode.validate(UsageNode.java:149) at io.xlate.edi.internal.stream.validation.Validator.validateElementValue(Validator.java:1152) at io.xlate.edi.internal.stream.validation.Validator.validateVersionConstraints(Validator.java:1124) at io.xlate.edi.internal.stream.tokenization.ProxyEventHandler.segmentEnd(ProxyEventHandler.java:299) at io.xlate.edi.internal.stream.tokenization.Lexer.lambda$new$3(Lexer.java:112) at io.xlate.edi.internal.stream.tokenization.Lexer.nextEvent(Lexer.java:503) at io.xlate.edi.internal.stream.tokenization.Lexer.parse(Lexer.java:273) at io.xlate.edi.internal.stream.StaEDIStreamReader.nextEvent(StaEDIStreamReader.java:171) at io.xlate.edi.internal.stream.StaEDIStreamReader.next(StaEDIStreamReader.java:203) at org.example.EDIParser$.delayedEndpoint$org$example$EDIParser$1(EDIParser.scala:23) at org.example.EDIParser$delayedInit$body.apply(EDIParser.scala:9) at scala.Function0.apply$mcV$sp(Function0.scala:34) at scala.Function0.apply$mcV$sp$(Function0.scala:34) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.App.$anonfun$main$1$adapted(App.scala:76) at scala.collection.immutable.List.foreach(List.scala:389) at scala.App.main(App.scala:76) at scala.App.main$(App.scala:74) at org.example.EDIParser$.main(EDIParser.scala:9) at org.example.EDIParser.main(EDIParser.scala)
Am I still doing something wrong ? I was not expecting this error to occur again

from staedi.

MikeEdgar avatar MikeEdgar commented on August 13, 2024

I was able to reproduce that error also and I'll provide a fix. You can work around it by adding the other 2310 loop types.

from staedi.

nsharma-bh avatar nsharma-bh commented on August 13, 2024

Okay so you mean 2310C and 2310D and 2320 which are other subscriber loops also ??

EDIT:
I added the 2310C Loop and the code is not breaking anymore. Thanks for the help

from staedi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.