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

Michael Beckerle commented on DAFFODIL-1897:
--------------------------------------------

I am having trouble getting the DFDLSchemas to work. Some work. The ones that 
use daf:error function fail. You get a deprecation warning, but then an error 
indicating not supported at all. 

{{[error] Schema Definition Warning: Expression daf:error is deprecated. Use 
fn:error instead
[error] Schema context: Hidden_APP0_Identifier Location line 497 column 14 in 
jar:file:/home/mbeckerle/.ivy2/local/com.mitre/dfdl-jpeg/0.0.1/jars/dfdl-jpeg.jar!/com/mitre/jpeg/xsd/jpeg.dfdl.xsd,
 took 1.098 sec
[error]     at 
org.apache.daffodil.tdml.ParserTestCase$$anonfun$runProcessor$2.apply(TDMLRunner.scala:661)
[error]     at 
org.apache.daffodil.tdml.ParserTestCase$$anonfun$runProcessor$2.apply(TDMLRunner.scala:661)
[error]     at scala.util.Either$LeftProjection.foreach(Either.scala:302)
[error]     at 
org.apache.daffodil.tdml.ParserTestCase.runProcessor(TDMLRunner.scala:661)
[error]     at org.apache.daffodil.tdml.TestCase.run(TDMLRunner.scala:610)
[error]     at 
org.apache.daffodil.tdml.DFDLTestSuite.runOneTestWithDataVolumes(TDMLRunner.scala:326)
[error]     at 
org.apache.daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:314)
[error]     at 
com.tresys.nitf.TestNTBBaseline.test_i_3015a_parse(TestNTBBaseline.scala:20)
[error]     ...
[error] Caused by: Schema Definition Error: Unsupported function: daf:error
[error] Schema context: ImageCoordinateRepresentation Location line 394 column 
22 in 
file:/home/mbeckerle-unencrypted/DFDLSchemas/NITF/target/scala-2.11/classes/com/tresys/nitf/xsd/nitf.dfdl.xsd
[debug] Test com.tresys.nitf.TestNTBBaseline.test_i_3015a_parse finished, took 
1.144 sec}}

> Some Schemas fail to compile with latest updates (v2.1.0-rc1)
> -------------------------------------------------------------
>
>                 Key: DAFFODIL-1897
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1897
>             Project: Daffodil
>          Issue Type: Bug
>          Components: DFDL Schemas
>    Affects Versions: 2.1.0
>            Reporter: Dave Thompson
>            Assignee: Steve Lawrence
>            Priority: Blocker
>             Fix For: 2.1.0
>
>
> Attempted to execute the nightly test suite on incubator-daffodil commit 
> add8c5a6f82f25073475a4d6c7ae94fb5ca6e01a.
> Four dfdl schemas failed to compile for the following formats: army-drrs,  
> ato-rep, csvMixedNarrow and pcap.
> The command and error are provided below.
> Attempting to save parser for army-drrs.
> Test name is: army-drrs_10t_all_1000
> CMD: 
> /home/dfdl/incubator-daffodil/daffodil-cli/target/universal/stage/bin/daffodil
>  -v save-parser -s 
> /home/dfdl/ngf-dfdl/daffodil-perf/src/test/resources/edu/illinois/ncsa/daffodil/fouo_disa/army_drrs_lh/army_drrs_lh.dfdl.xsd
>  > /home/dfdl/dfdl-testharness/saved_parsers/0.0.0/army-drrs.parser.bin
> process return code: 1
> Failed to Save Parser - army-drrs
> Error: [error] Schema Definition Error: No schema document at location 
> file:/home/dfdl/ngf-dfdl/daffodil-perf/src/test/resources/org/apache/daffodil/fouo_disa/army_drrs_lh/army_drrs_lh.dfdl.xsd.
> Schema context: Import Location in file:unknown
> [warning] Schema Definition Warning: schemaLocation property uses deprecated 
> edu/illinois/ncsa/daffodil path instead of org/apache/daffodil. Converting to 
> new path.
> Schema context: Import Location in file:unknown
> [info] Time (compiling): 219ms
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to