IBM Support

PM34134: "A JAVA EXCEPTION HAS BEEN ENCOUNTERED DURING THE DOCUMENT PARSING" ERROR PRODUCED WITH CLASSIC IMPORT OF XML SCHEMA

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error produced:
    
    A JAVA EXCEPTION HAS BEEN ENCOUNTERED DURING THE DOCUMENT
    PARSING
    Parsing error - Document:
    file:///C:/Document/test.xsd.
    Line: 1, Column: 1
    JAVA EXCEPTION: Content is not allowed in prolog.
    CODE STACK:
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
     at
    org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseExcepti
    on(Unknown Source)
     at
    org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
    Source)
     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
    Source)
     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
    Source)
     at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
    Source)
     at
    org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.d
    ispatch(Unknown Source)
     at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
    nt(Unknown Source)
     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
    Source)
     at
    com.ibm.websphere.dtx.xmlsimp75.XmlSchemaImporter.importXmlSchem
    a(Unknown Source)
     at
    com.ibm.websphere.dtx.xmlsimp75.XmlSchemaImporter.generate75MtsF
    ile(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:79)
     at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:618)
     at
    com.ibm.websphere.dtx.ui.importers.xmlschema.XMLSchemaImporter.g
    enerateTree(Unknown Source)
     at
    com.ibm.websphere.dtx.ui.importers.dialogs.WTXImportWizard.build
    TypeTree(Unknown Source)
     at
    com.ibm.websphere.dtx.ui.importers.dialogs.WTXImportWizard$2.run
    (Unknown Source)
     at
    org.eclipse.jface.operation.ModalContext$ModalContextThread.run(
    ModalContext.java:113)
    PARSE STACK:
    EMPTY OR NOT AVAILABLE
    

Local fix

  • WTXCQ - WTX00036950
    CH / CH
    Circumvention: None
    

Problem summary

  • Users Affected:
    WebSphere Transformation Extender customers using classic XML
    importer
    
    Problem Description:
    Classic schema importer would create invalid type tree when
    schemas contained empty groups or groups contain just a sequence
    and no elements.
    
    Platforms Affected:
    ALL
    

Problem conclusion

  • Corrected classic schema importer to properly remove empty
    groups. Previously classic importer would leave empty groups
    when there was only 1 sub object and that sub object was a
    sequence.
    
    Delivered in:
    8.2.0.6, 8.3.0.4
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM34134

  • Reported component name

    WSTX SDK

  • Reported component ID

    5724M4001

  • Reported release

    820

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2011-03-04

  • Closed date

    2011-04-05

  • Last modified date

    2011-07-26

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WSTX SDK

  • Fixed component ID

    5724M4001

Applicable component levels

  • R820 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSVSD8","label":"IBM Transformation Extender"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"820","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
26 July 2011