Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Lord-Vader
Contributor III
Contributor III

XML Metadata Schema Not Working.

Hello fellow Talend Community Experts,

I have an error that i dont understand and im at a dead end.

To clarify im using:

TALEND: Talend open studio for data integration(8.0.1.20211109_1610)

JAVA: Java(TM) SE Development Kit 19.0.1 (64-bit) 19.0.1.0

Im trying to make a schema for this xml.(SUPER SIMPLE):

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">

<properties>

<entry key="type">cm:folder</entry>

<entry key="aspects">cm:tagscope,st:siteContainer,cm:ownable,cm:titled,cm:auditable,sys:referenceable,sys:localized</entry>

<entry key="cm:creator">mjackson</entry>

<entry key="cm:modifier">mjackson</entry>

<entry key="cm:created">2011-02-15T09:19:00.007+01:00</entry>

<entry key="st:componentId">dataLists</entry>

<entry key="cm:name">dataLists</entry>

<entry key="sys:store-protocol">workspace</entry>

<entry key="sys:store-identifier">SpacesStore</entry>

<entry key="sys:locale">en_GB</entry>

<entry key="cm:owner">admin</entry>

<entry key="cm:modified">2011-02-15T09:19:00.007+01:00</entry>

<entry key="cm:description">Data Lists</entry>

</properties>

When i try to make a metadata schema for input or output it works until step 3.

  1. create a input xml.

0695b00000hsUYrAAM.png

2. Select the file

I can select a file and see the schema, but i cannot go to step 4. -->

0695b00000hsUZuAAM.png

When i click on "next", talend kinds of lags and then i have to click "next" again. Then it just skips step 4 and goes directly to step 5 but stays with the view of step 3, with an error stating that i have to select atleast 1 item from the schema.

0695b00000hsUaiAAE.png

Im really lost at this point, I tried to update the module, but it already has the latest. I saw somethings about SAX, but i dont understand it or what it does.

And the craziest thing is that talend only does this with this xml that i gave above, no other. So yeah really strange.

Maybe im missing something idk, but any help will be appreciated.

Labels (2)
2 Replies
anselmopeixoto
Partner - Creator III
Partner - Creator III

Hi @kevin cork​ 

 

I hope you managed to solve this issue already.

 

If not, it is probably being caused by the second line in the source xml, which is pointing to an external DTD file.

 

I tried it in my environment and it produced the following error (found in .metadata/.log file):

 

java.lang.RuntimeException: org.xml.sax.SAXParseException; systemId: file:/C:/Talend/TOS_ESB-20211109_1610-V8.0.1/teste.xml; lineNumber: 2; columnNumber: 70; External DTD: Failed to read external DTD 'properties.dtd', because 'http' access is not allowed due to restriction set by the accessExternalDTD property.

 

 

Lord-Vader
Contributor III
Contributor III
Author

Hey @Anselmo Peixoto​ ,

Thnx very much. I for real didn't even think this was the problem, because i cannot take it out.

Vader Out 💪.