I have both 2.1.0 and 2.2.0 downloaded but I though I was using 2.2.0.

I assume you're describing the value from the DaffodilTunables.scala file here: 
https://github.com/apache/incubator-daffodil/blob/1875ac981a255684a383f3456a17ae930c96e6fa/daffodil-lib/src/main/scala/org/apache/daffodil/api/DaffodilTunables.scala

In which case yes, I was confused about that when I looked at the file because 
like you said, it sets maxOccursBounds to Int.MaxValue.

Of course, this morning I can't seem to replicate the issue on 2.2.0 so it's 
entirely possible that I had mistakenly typed a path to the earlier executable. 
I'll let you know if I get it to fail again, but I'm guessing it was user error.

Thanks again for the help.


________________________________
From: Mike Beckerle <[email protected]>
Sent: Friday, September 28, 2018 6:34:59 PM
To: [email protected]
Subject: Re: MaxOccurs Limit


BTW: Daffodil version 2.2.0 should have changed this to Int.MaxValue, i.e., 
2Gig occurrences.


So you have to tune it downward to something sensible, instead of upward.


Is your failure with 2.2.0, or an earlier version. If 2.2.0 it's a bug and I'd 
like to isolate it better.


2.2.0 is now the current release and is available on maven central.



________________________________
From: Gedvilas, Brett L2 <[email protected]>
Sent: Friday, September 28, 2018 4:49:38 PM
To: [email protected]
Subject: Re: MaxOccurs Limit


Ah thank you, I didn't realize the tunables were accessible as a command line 
option.

________________________________
From: Mike Beckerle <[email protected]>
Sent: Friday, September 28, 2018 12:15:10 PM
To: [email protected]
Subject: Re: MaxOccurs Limit

This is a tunable limit.

I am not near my computer right now, but you should be able to find guidance 
about setting this tunable by searching. I will check back later this evening 
to see if you are still stuck.




-------- Original message --------
From: "Gedvilas, Brett L2" <[email protected]>
Date: 9/28/18 1:45 PM (GMT-05:00)
To: [email protected]
Subject: MaxOccurs Limit


Hi,


I keep running into a parsing error relating to the maximum number of 
occurrences for an element in my schema. The exact error is shown below:


[error] Parse Error: Evaluation of occursCount expression 
(dafint:OccursCountEv@8df0b3, runtime) returned out of range value 4096.


For context, the schema evaluates an expression to determine the occurrences of 
the element. The length of the element is 16 bits and should repeat based on a 
previously parsed value as shown:


<xs:element name="sample" type="xs:unsignedInt" dfdl:length="16" minOccurs="0" 
maxOccurs="unbounded" dfdl:occursCountKind="expression" dfdl:occursCount="{ 
../num_on_pulse_samples }" />


As far as I can tell daffodil limits the occurrences of an element to 1024, is 
this an implementation-defined maximum or is there any type of work-around for 
this limit?


Thanks!


Brett

Reply via email to