You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2022/01/21 14:09:00 UTC

[jira] [Commented] (DAFFODIL-2629) Runtime SDE with SetVariable expression

    [ https://issues.apache.org/jira/browse/DAFFODIL-2629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17480089#comment-17480089 ] 

Mike Beckerle commented on DAFFODIL-2629:
-----------------------------------------

See  testSetVarWithValueLength1 which reproduces this failure.

PR https://github.com/apache/daffodil/pull/731

{code:java}
org.apache.daffodil.tdml.TDMLExceptionImpl: (Implementation: daffodil) RuntimeSchemaDefinitionError: Runtime Schema Definition Error: Expression Evaluation Error: Value length unknown for element '{}someElement'.
Schema context: element reference ex:root Location line 1 in file:/tmp/s1_8930945727707811594.dfdl.xsd
Data location was preceding byte 4 limit(bytes) 4

	at org.apache.daffodil.tdml.TDMLException$.apply(TDMLException.scala:32)
	at org.apache.daffodil.tdml.ParserTestCase.doParseExpectSuccess(TDMLRunner.scala:1064)
{code}


> Runtime SDE with SetVariable expression
> ---------------------------------------
>
>                 Key: DAFFODIL-2629
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2629
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End, Middle &quot;End&quot;
>    Affects Versions: 3.2.1
>            Reporter: Mike Beckerle
>            Priority: Major
>
> I get a runtime SDE when I have a situation like this:
> ```
> <element name="message" .....
>       .... big definition....
> </element>
> ....
> <dfdl:setVariable ref="$x:myVar">{ dfdl:valueLength(message, "bytes") }</dfdl:setVariable>
> ```
> The runtime SDE (when parsing) is that message has no value length. 
> (Working on test case to reproduce it.)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)