Skip to content

metadata validation issue: jakarta.xml.bind.UnmarshalException: FWK005 parse may not be called while parsing.

this happened while uploading an jpg image with metadata on test.textgridlab.org . so the error seems to happen in tgcrud metadata parsing. for timestamp and tguri for finding logs here the metadata:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object xmlns="http://textgrid.info/namespaces/metadata/core/2010" xmlns:tg="http://textgrid.info/relation-ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <generic>
        <provided>
            <title>Pisino und die Schlucht der Foïba.</title>
            <format>image/jpeg</format>
        </provided>
        <generated>
            <created>2025-05-14T11:54:03.251Z</created>
            <lastModified>2025-05-14T11:54:03.251Z</lastModified>
            <textgridUri extRef="">textgrid:br29.0</textgridUri>
            <revision>0</revision>
            <extent>125448</extent>
            <fixity>
                <messageDigestAlgorithm>md5</messageDigestAlgorithm>
                <messageDigest>10a64a4f6bd0be6934869128d355554e</messageDigest>
                <messageDigestOriginator>crud-base 12.2.1</messageDigestOriginator>
            </fixity>
            <dataContributor>uveent@textgrid.de</dataContributor>
            <project id="TGPR-3339269d-c0b5-9c04-6062-681cd1d402f4">rewrite test</project>
            <warning uri="">metadata validation issue: jakarta.xml.bind.UnmarshalException: FWK005 parse may not be called while parsing.</warning>
            <permissions>read write delete delegate publish</permissions>
        </generated>
    </generic>
    <item>
        <rightsHolder id="" isCorporateBody="false">TextGrid</rightsHolder>
    </item>
    <relations>
        <rdf:RDF>
            <rdf:Description ns2:about="textgrid:br29.0" xmlns="http://textgrid.info/namespaces/middleware/tgcrud/services/TGCrudService" xmlns:ns2="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:exif="http://www.w3.org/2003/12/exif/ns#" xmlns:ns3="http://textgrid.info/namespaces/metadata/core/2010">
                <exif:height ns2:datatype="http://www.w3.org/2001/XMLSchema#integer">1080</exif:height>
                <exif:width ns2:datatype="http://www.w3.org/2001/XMLSchema#integer">776</exif:width>
  </rdf:Description>
        </rdf:RDF>
    </relations>
</object>

a quick websearch shows that this seems to be a concurrency issue