Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.0.0
Description
A user reports that his entirely binary format is getting an error that textOutputMinLength is required.
Excerpt from email thread is below:
.... I am getting strange error after I try to compile my schema:
15:29:32.273 [main] DEBUG int_.nato.ncia.maniaccs.App - DFLD file's URL: jar:file:/home/luke/work/projects/mini-accs/socket-listener/target/data-socket-listener-1.0-SNAPSHOT.jar!/dfdl/asterix.dfdl.xml
15:29:32.275 [main] INFO int_.nato.ncia.maniaccs.App - compiling ASTERIX DFDL defs...
15:29:37.058 [main] ERROR int_.nato.ncia.maniaccs.App - There was an error while compiling the DFDL sources
15:29:37.062 [main] ERROR int_.nato.ncia.maniaccs.App - Schema Definition Error: Property textOutputMinLength is not defined.
Non-default properties were combined from these locations:
Location line 1583 in jar:file:/home/luke/work/projects/mini-accs/socket-listener/target/data-socket-listener-1.0-SNAPSHOT.jar!/dfdl/asterix.dfdl.xml
Location line 17 in jar:file:/home/luke/work/projects/mini-accs/socket-listener/target/data-socket-listener-1.0-SNAPSHOT.jar!/dfdl/asterix.dfdl.xml
Default properties were taken from these locations:
Location line 9 column 8 in jar:file:/home/luke/work/projects/mini-accs/socket-listener/target/data-socket-listener-1.0-SNAPSHOT.jar!/dfdl/asterix.dfdl.xml
Location line 7 column 10 in jar:file:/home/luke/work/projects/mini-accs/socket-listener/target/data-socket-listener-1.0-SNAPSHOT.jar!/dfdl/asterix.dfdl.xml
Location line 9 column 8 in jar:file:/home/luke/work/projects/mini-accs/socket-listener/target/data-socket-listener-1.0-SNAPSHOT.jar!/dfdl/asterix.dfdl.xml
Location line 7 column 10 in jar:file:/home/luke/work/projects/mini-accs/socket-listener/target/data-socket-listener-1.0-SNAPSHOT.jar!/dfdl/asterix.dfdl.xml
Schema context: element.CAT. Location line 1583 column 16 in jar:file:/home/luke/work/projects/mini-accs/socket-listener/target/data-socket-listener-1.0-SNAPSHOT.jar!/dfdl/asterix.dfdl.xml.
(Note that I have been using the very same DFDL definition when running the TDML test that I have prepared)
I checked the docs and, in section 13.2, it says that 'textOutputMinLength' is 'common to all simple types with text representation'; in my DFDL, there are no fields with such representation, I use only (unsigned) integers and bit flags.
I checked the line in error message 'Schema context': it looks like this:
<xs:element name="CAT" type="adatp-35:ushort8"/>
while the 'adatp-35:ushort8' type is defined as follows:
<xs:simpleType name="ushort8" dfdl:lengthKind="explicit" dfdl:length="1" dfdl:lengthUnits="bytes">
<xs:restriction base="xs:unsignedInt"/>
</xs:simpleType>
Any help would be greatly appreciated!