Forum Stats

  • 3,852,755 Users
  • 2,264,134 Discussions
  • 7,905,132 Comments

Discussions

Problem with inserting XML file with parse option on upload

3004
3004 Member Posts: 204,171 Green Ribbon
Hello

When I try to insert XML file the ifs server crashes. After restarting the server the file which I tried to insert does not exist, but there is an entry related to this document in ifssys.ifs_all_documents view with expiration date.
In JWS.log I found that it is a JavaWebServer bus error. I can provide the whole log...
Maybe I am doing something wrong but even that server should not crash.
Here is an XML document, which I try to insert:

<?xml version = '1.0'?>
<!DOCTYPE ROWSET [
<!ELEMENT ROWSET (ROW)*>
<!ELEMENT ROW (ID_PAYMENT, SUM, TYPE_OF_PAYMENT, ID_RESERVATION)>
<!ELEMENT ID_PAYMENT (#PCDATA)>
<!ELEMENT SUM (#PCDATA)>
<!ELEMENT TYPE_OF_PAYMENT (#PCDATA)>
<!ELEMENT ID_RESERVATION (#PCDATA)>
]>
<ROWSET>
<ROW>
<ID_PAYMENT>1</ID_PAYMENT>
<SUM>50</SUM>
<TYPE_OF_PAYMENT>advance</TYPE_OF_PAYMENT>
<ID_RESERVATION>1</ID_RESERVATION>
</ROW>
<ROW>
<ID_PAYMENT>2</ID_PAYMENT>
<SUM>20</SUM>
<TYPE_OF_PAYMENT>advance</TYPE_OF_PAYMENT>
<ID_RESERVATION>2</ID_RESERVATION>
</ROW>
</ROWSET>

Any help will be appreciated.

Thanks

Comments

  • 3004
    3004 Member Posts: 204,171 Green Ribbon
    The server should not crash - this is definitely a bug. We appear to be calling System.segFault(true)... This must be a bug in the JVM. File a bug with any relevant stack traces and we can investigate.

    In any case, the XML specified cannot be parsed by the SimpleXmlParser. The developer's guide gives the proper syntax for the SimpleXmlParser.
    To parse the XML below, you must create new Document subclasses which have attributes for the structured data in your XML (like "ID_PAYMENT", "SUM", ...)

    null
This discussion has been closed.