PML parsing problem: Unexpected end of element

Hi everybody,
I'm trying to use Sun's PML-parser (com.sun.autoid.pmlcore.pmlparser.PmlParser) to create an XML file and
then parse it again. So my source looks like that:
Create:
     PmlParser pmlParser = new PmlParser();
     ObjectFactory objFactory = pmlParser.getPMLObjectFactory();
     sensor = objFactory.createSensor();
     IdentifierType idType = objFactory.createIdentifierType();
     idType.setValue("urn:epc:id:gid:1.700.1");
     sensor.setID(idType);
     String xml = pmlParser.marshal(sensor);
     // and then write to file
Parse:
     PmlParser pmlParser = new PmlParser();
     Sensor sensor = pmlParser.unmarshalPML(new File(fileName));
That is pretty much straight from Sun's developer guide (817-7897-10.pdf).
The problem is that I always get an exception when trying to "unmarshalPML" the file:
     javax.xml.bind.UnmarshalException: Unexpected end of element {}:ID
     at com.sun.autoid.epcis.xml.impl.runtime.SAXUnmarshallerHandlerImpl.handleEvent(SAXUnmarshallerHandlerImpl.java:551)
     at com.sun.autoid.epcis.xml.impl.runtime.AbstractUnmarshallingEventHandlerImpl.reportError(AbstractUnmarshallingEventHandlerImpl.java:148)
     at com.sun.autoid.epcis.xml.impl.runtime.AbstractUnmarshallingEventHandlerImpl.reportError(AbstractUnmarshallingEventHandlerImpl.java:145)
     at com.sun.autoid.epcis.xml.impl.runtime.AbstractUnmarshallingEventHandlerImpl.unexpectedLeaveElement(AbstractUnmarshallingEventHandlerImpl.java:162)
     at com.sun.autoid.epcis.xml.impl.runtime.AbstractUnmarshallingEventHandlerImpl.leaveElement(AbstractUnmarshallingEventHandlerImpl.java:72)
     at com.sun.autoid.pmlcore.pml.impl.IDImpl$Unmarshaller.leaveElement(IDImpl.java:229)
     at com.sun.autoid.epcis.xml.impl.runtime.AbstractUnmarshallingEventHandlerImpl.revertToParentFromLeaveElement(AbstractUnmarshallingEventHandlerImpl.java:343)
     at com.sun.autoid.pmlcore.pml.impl.IdentifierTypeImpl$Unmarshaller.leaveElement(IdentifierTypeImpl.java:341)          at com.sun.autoid.epcis.xml.impl.runtime.SAXUnmarshallerHandlerImpl.endElement(SAXUnmarshallerHandlerImpl.java:146)
     at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
     at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
     at com.sun.autoid.epcis.xml.impl.runtime.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:142)
     at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:131)
     at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:136)
     at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:145)
     at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:163)
     at com.sun.autoid.util.XmlParser.unmarshal(XmlParser.java:55)
     at com.sun.autoid.pmlcore.pmlparser.PmlParser.unmarshalPML(PmlParser.java:47)
     at DOMgui4_PML.xmlToTinyDB.procQuery(xmlToTinyDB.java:58)
     at DOMgui4_PML.Server.createConnection(Server.java:68)
     at DOMgui4_PML.xmlToTinyDB.main(xmlToTinyDB.java:117)
This occurs with any XML/PML file I try, even with those given in the "PML_Core_Specification_v1.0.pdf" as
examples. I really don't know what the problem is, maybe anybody has an idea..?
Thanks a lot,
DocEW

i have installed Sun Rfid Software but pml-util.jar
is not included.
Where can I find it?
please help me

Similar Messages

  • JAXB javax.xml.bind.UnmarshalException: Unexpected end of element

    I'm getting the following UnmarshalException when I try to run Unmarshaller.unmarshal from the command line but not when I run it in WSAD:
    2006-04-20 16:11:54,680 REPOST ERROR [main] (RestrictedListResponseConsumer.java:111) javax.xml.bind.UnmarshalException: Unexpected end of element {}:origin_country
            at com.b.watchdog.jaxb.generated.response.impl.runtime.SAXUnmarshallerHandlerImpl.handleEvent(SAXUnmarshallerHandlerImpl.java:580)
            at com.b.watchdog.jaxb.generated.response.impl.runtime.AbstractUnmarshallingEventHandlerImpl.reportError(AbstractUnmarshallingEventHandlerImpl.java:139)
            at com.b.watchdog.jaxb.generated.response.impl.runtime.AbstractUnmarshallingEventHandlerImpl.reportError(AbstractUnmarshallingEventHandlerImpl.java:136)
            at com.b.watchdog.jaxb.generated.response.impl.runtime.AbstractUnmarshallingEventHandlerImpl.unexpectedLeaveElement(AbstractUnmarshallingEventHandlerImpl.java:153)
            at com.b.watchdog.jaxb.generated.response.impl.runtime.AbstractUnmarshallingEventHandlerImpl.leaveElement(AbstractUnmarshallingEventHandlerImpl.java:63)
            at com.b.watchdog.jaxb.generated.response.impl.MessageHeaderTypeImpl$Unmarshaller.leaveElement(MessageHeaderTypeImpl.java:245)
            at com.b.watchdog.jaxb.generated.response.impl.runtime.SAXUnmarshallerHandlerImpl.endElement(SAXUnmarshallerHandlerImpl.java:141)
            at org.iso_relax.verifier.impl.ForkContentHandler.endElement(ForkContentHandler.java:81)
            at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
            at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
            at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
            at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
            at com.b.watchdog.jaxb.generated.response.impl.runtime.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:140)
            at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:131)
            at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:136)
            at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:145)
            at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:163)
            at com.b.watchdog.RestrictedListResponseConsumer.consumeResponse(RestrictedListResponseConsumer.java:81)
            at com.b.watchdog.RestrictedListResponseConsumer.consumeResponses(RestrictedListResponseConsumer.java:52)
            at com.b.watchdog.RestrictedListInterfaceManager.exchangeData(RestrictedListInterfaceManager.java:307)
            at com.b.watchdog.RestrictedListInterfaceManager.main(RestrictedListInterfaceManager.java:282)My message is:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <list_update_response xsi:schemaLocation="http://www.ab.com list_update_response.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ab.com">
         <response_info>
              <message_header>
                   <origin_country>FR</origin_country>
                   <destination_country>US</destination_country>
                   <message_datetime>2006-04-18T19:02:00.000+00:00</message_datetime>
              </message_header>
         </response_info>
         <success>
              <request_info>
                   <message_header>
                        <origin_country>US</origin_country>
                        <destination_country>FR</destination_country>
                        <message_datetime>2006-04-20T18:40:31.000+00:00</message_datetime>
                   </message_header>
              </request_info>
         </success>
    </list_update_response>My XSDs are:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ab.com" xmlns="http://www.ab.com">
         <xsd:include schemaLocation="list_update_common.xsd" />
         <xsd:element name="description" type="positive_length_token" />
         <xsd:element name="error">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element minOccurs="0" ref="request_info" />
                        <xsd:element ref="errors" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="errors">
              <xsd:complexType>
                   <xsd:choice maxOccurs="unbounded" minOccurs="1">
                        <xsd:element ref="validation_error" />
                        <xsd:element ref="general_logical_error" />
                        <xsd:element ref="item_logical_error" />
                   </xsd:choice>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="general_logical_error">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="description" />
                        <xsd:element minOccurs="0" ref="line_number" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="item_logical_error">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="description" />
                        <xsd:element minOccurs="0" ref="line_number" />
                   </xsd:sequence>
                   <xsd:attribute name="item_id" type="item_id" use="required" />
                   <xsd:attribute name="item_creation_country" type="country_code" use="required" />
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="line_number" type="xsd:positiveInteger" />
         <xsd:element name="list_update_response">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="response_info" />
                        <xsd:choice>
                             <xsd:element ref="error" />
                             <xsd:element ref="success" />
                        </xsd:choice>
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="response_info">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="message_header" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="success">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="request_info" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="validation_error">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="description" />
                        <xsd:element ref="line_number" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
    </xsd:schema>
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ab.com" xmlns="http://www.ab.com">
         <xsd:simpleType name="country_code">
              <xsd:restriction base="xsd:string">
                   <xsd:pattern value="[A-Z]{2}" />
              </xsd:restriction>
         </xsd:simpleType>
         <xsd:element name="destination_country" type="country_code" />
         <xsd:simpleType name="item_id">
              <xsd:restriction base="xsd:string">
                   <xsd:pattern value="[A-Z0-9]{12}" />
              </xsd:restriction>
         </xsd:simpleType>
         <xsd:element name="message_datetime" type="utc_datetime" />
         <xsd:element name="message_header">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="origin_country" />
                        <xsd:element ref="destination_country" />
                        <xsd:element ref="message_datetime" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="origin_country" type="country_code" />
         <xsd:simpleType name="positive_length_token">
              <xsd:restriction base="xsd:token">
                   <xsd:minLength value="1" />
              </xsd:restriction>
         </xsd:simpleType>
         <xsd:element name="request_info">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="message_header" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:simpleType name="utc_datetime">
              <xsd:restriction base="xsd:dateTime">
                   <xsd:pattern value=".*(\+00\:00|\-00\:00|Z)" />
              </xsd:restriction>
         </xsd:simpleType>
    </xsd:schema>Any thoughts?
    Thanks.
    - Luke

    I fixed the problem.

  • JAXB - Unexpected end of element {} - UnmarshalException Exception

    Hi
    I am using Jaxb 1.0 Beta on AIX an I am getting javax.xml.bind.UnmarshalException exception when I try to unmarshall XML document. XML document and schema are valid ( I generated both using XML spy )
    Interestingly, the code works fine on windows 2000 but when I put the jar ,XML schema and xml document on unix it throws Unmarshall exception.
    Here's what I am trying to do.
    Code :
    JAXBContext jc =
    JAXBContext.newInstance( context,
    new com.xyz.retail.app.points.pgp.JAXBClassLoader());
    if(jc != null)
         System.out.println("Got the context");
    else
         System.out.println("Error in getting context");
    System.out.println("");
    // create an Unmarshaller
    Unmarshaller u = jc.createUnmarshaller();
    System.out.println("Created the Unmarshaller");
    System.out.println("");
    // Unmarshal securities document into Java content tree
    SecurityInfo securityInfo =
         (SecurityInfo)u.unmarshal( new FileInputStream( secFile ) );
    System.out.println("Unmarshaled the Document");
    System.out.println("");
    Schema :
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XMLSPY v5 rel. 2 U (http://www.xmlspy.com) by Yogesh
    -->
    <xs:schema targetNamespace="http://www.xyz.com/retail/app/points/pgp/util"
    xmlns="http://www.xyz.com/retail/app/points/pgp/util" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:element name="SecurityInfo" type="SecurityInfoType"/>
    <xs:complexType name="SecurityInfoType">
    <xs:sequence>
    <xs:element ref="AirlinePartners"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="AirlinePartners">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="AirlinePartner" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="AirlinePartner">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="CardType" type="xs:string"/>
    <xs:element name="Description" type="xs:string" minOccurs="0"/>
    <xs:element name="TPrivate" type="xs:string"/>
    <xs:element name="TPassphrase" type="xs:string"/>
    <xs:element name="APublic" type="xs:string"/>
    <xs:element name="PlainText" type="xs:string"/>
    <xs:element name="CypherText" type="xs:string"/>
    <xs:element name="TKeyExpiry" type="xs:date" min
    Occurs="0"/>
    <xs:element name="AKeyExpiry" type="xs:date" min
    Occurs="0"/>
    </xs:sequence>
    </xs:complexType>
    /xs:element>
    </xs:schema>
    XML File :
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XMLSPY v5 rel. 2 U (http://www.xmlspy.com) by Yogesh
    -->
    <!--Sample XML file generated by XMLSPY v5 rel. 2 U (http://www.xmlspy.com)-->
    <SecurityInfo xmlns="http://www.xyz.com/retail/app/points/pgp/util"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=
    "http://www.xyz.com/retail/app/points/pgp/util /home/lcards/temp/APSecInfo.xsd">
    <AirlinePartners>
    <AirlinePartner>
    <CardType>x</CardType>
    <Description>some card</Description>
    <TPrivate>/home/lcards/temp/sachin.asc</TPrivate>
    <TPassphrase>worldcup2003</TPassphrase>
    <APublic>/home/lcards/temp/sunil.asc</APublic>
    <PlainText>/home/lcards/files/outbox/x</PlainText>
    <CypherText>/home/lcards/files/outbox/x</CypherText>
    <TKeyExpiry>2005-08-15</TKeyExpiry>
    <AKeyExpiry>2005-08-15</AKeyExpiry>
    </AirlinePartner>
    <AirlinePartner>
    <CardType>y</CardType>
    <Description>Another card</Description>
    <TPrivate>/home/lcards/temp/kapil.asc</TPrivate>
    <TPassphrase>worldcup1983</TPassphrase>
    <APublic>/home/lcards/temp/dilip.asc</APublic>
    <PlainText>/home/lcards/files/outbox/y</PlainText>
    <CypherText>/home/lcards/files/outbox/y</CypherText>
    <TKeyExpiry>2005-08-15</TKeyExpiry>
    <AKeyExpiry>2005-08-15</AKeyExpiry>
    </AirlinePartner>
    </AirlinePartners>
    </SecurityInfo>
    Output:
    Got the context
    Created the Unmarshaller
    DefaultValidationEventHandler: [ERROR]: Unexpected end of element {}:CardType
    javax.xml.bind.UnmarshalException: Unexpected end of element {}:CardType
    at com.sun.xml.bind.unmarshaller.UnreportedException.createUnmarshalExce
    ption(UnreportedException.java:59)
    at com.sun.xml.bind.unmarshaller.SAXUnmarshallerHandlerImpl.reportAndThr
    ow(SAXUnmarshallerHandlerImpl.java:406)
    at com.sun.xml.bind.unmarshaller.SAXUnmarshallerHandlerImpl.endElement(S
    AXUnmarshallerHandlerImpl.java:108)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow
    n Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
    Dispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
    known Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.xml.bind.unmarshaller.UnmarshallerImpl.unmarshal(Unmarshaller
    Impl.java:139)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
    arshallerImpl.java:129)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
    arshallerImpl.java:166)
    at com.xyz.retail.app.points.pgp.APSecurityInfoFactory.getAPSecInfo
    (APSecurityInfoFactory.java:102)
    at com.xyz.retail.app.points.pgp.EncryptAndSign.init(EncryptAndSign
    .java:183)
    at com.xyz.retail.app.points.pgp.EncryptAndSign.encrypt(EncryptAndS
    ign.java:581)
    at com.xyz.retail.app.points.pos.CreateExportFiles.main(CreateExpor
    tFiles.java:149)
    Inside readKeys()
    java.lang.NullPointerException
    at com.xyz.retail.app.points.pgp.EncryptAndSign.readKeys(EncryptAnd
    Sign.java:215)
    at com.xyz.retail.app.points.pgp.EncryptAndSign.encrypt(EncryptAndS
    ign.java:583)
    at com.xyz.retail.app.points.pos.CreateExportFiles.main(CreateExpor
    tFiles.java:149)
    Inside buildCypherTextFileName()
    java.lang.NullPointerException
    at com.xyz.retail.app.points.pgp.EncryptAndSign.buildCypherTextFile
    Name(EncryptAndSign.java:311)
    at com.xyz.retail.app.points.pgp.EncryptAndSign.encrypt(EncryptAndS
    ign.java:667)
    at com.xyz.retail.app.points.pos.CreateExportFiles.main(CreateExpor
    tFiles.java:149)
    Exception in Main method
    Thanks in advance for any help.
    Yogesh.

    I'm having error. I'm using the lastest JWSDP (1.3) with JDK 1.4.2
    Here is my XML file:
    <?xml version="1.0"?>
    <dataQA>
    <table name="ELECTORAL_DISTRICT" >
    <rules>
    <rule number="1.1" description="Check if we have 301 EDs" >
    <query result="301" >
         <sql>SELECT COUNT(ED_ID) FROM ELECTORAL_DISTRICT</sql>
    </query>
    </rule>
    <rule number="1.3" description="All fields must be populated" >
    <query result="0" >
    <sql>SELECT COUNT(ED_ID) FROM ELECTORAL_DISTRICT WHERE ED_CODE IS NULL OR ED_NAMEE IS NULL OR ED_NAMEF IS NULL</sql>
    </query>
    </rule>
    </rules>
    <reports>
    <report number="1.4" name="Listing of EDs" file="ed_list" format="HTML" >
         <column name="ED_ID" label="ID" ></column>
         <column name="ED_CODE" label="Code" ></column>
         <column name="ED_NAMEE" label="English Name" ></column>
         <column name="ED_NAMEF" label="French Name" ></column>
         <column name="PRVNC_ID" label="Province ID" ></column>
    </report>
    </reports>
    </table>
    </dataQA>
    And my shema:
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="dataQA" type="DataQAType"/>
    <xsd:complexType name="DataQAType">
    <xsd:sequence>
    <xsd:element name="table" type="TableType" minOccurs="1" maxOccurs="unbounded" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="TableType">
    <xsd:sequence>
    <xsd:element name="rules" type="RulesType" />
    <xsd:element name="reports" type="ReportsType" />
    </xsd:sequence>
    <xsd:attribute name="name" type="xsd:string" />
    </xsd:complexType>
    <xsd:complexType name="RulesType">
    <xsd:sequence>
    <xsd:element name="rule" minOccurs="1" maxOccurs="unbounded" >
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="query" type="QueryType" />
    </xsd:sequence>
    <xsd:attribute name="number" type="xsd:string" />
         <xsd:attribute name="description" type="xsd:string" />
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ReportsType">
    <xsd:sequence>
    <xsd:element name="report" minOccurs="1" maxOccurs="unbounded" >
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="column" type="ColumnType" minOccurs="1" maxOccurs="unbounded" />
    <xsd:element name="condition" type="xsd:string" />
    </xsd:sequence>
    <xsd:attribute name="number" type="xsd:string" />
    <xsd:attribute name="name" type="xsd:string" />
    <xsd:attribute name="file" type="xsd:string" />
    <xsd:attribute name="format" type="xsd:string" />
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ColumnType">
    <xsd:attribute name="name" type="xsd:string" />
    <xsd:attribute name="label" type="xsd:string" />
    </xsd:complexType>
    <xsd:complexType name="QueryType">
    <xsd:sequence>
    <xsd:element name="sql" type="xsd:string" />
    </xsd:sequence>
    <xsd:attribute name="result" type="xsd:string" />
    </xsd:complexType>
    </xsd:schema>
    I get the following exception:
    DefaultValidationEventHandler: [FATAL_ERROR]: Unexpected end of element {}:report
    Location: line 23 of file:/D:/Revise2.5/DataQA/config/test.xml
    javax.xml.bind.UnmarshalException: Unexpected end of element {}:report
    I'm currenlty in the processing of writting parser with DOM since I haven't found the yet. Is this a bug or I'm doing something wrong.
    Thanks in advance for the reply,
    - N. Thomassin

  • SQL Server 2012 Management Studio:Importing XML file to new Table of new Database-XML parsing: unexpected end of input???

    Hi all,
    In the Notepad, I created an xml file (ZenQroducts.xml) :
    <Qroducts>
    <Qroduct>
    <SKU>1</SKU>
    <Desc>Book</Desc>
    </Qroduct>
    <Qroduct>
    <SKU>2</SKU>
    <Desc>DVD</Desc>
    </Qroduct>
    <Qroduct>
    <SKU>3</SKU>
    <Desc>Video</Desc>
    </Qroduct>
    In my SQL Server 2012 Management Studio, I executed the following code:
    --to create a new object Qroducts in a new database OPENXMLtesting
    CREATE DATABASE OPENXMLtesting
    GO
    CREATE TABLE Qroducts(
    sku INT Primary KEY,
    qroduct_desc VARCHAR(30));
    INSERT INTO Qroducts (sku, qroduct_desc)
    SELECT X.qroduct.query('SKU').value('.', 'INT'),
    X.qroduct.query('Desc').value('.', 'VARCHAR(30)')
    FROM (
    SELECT CAST(x AS XML)
    FROM OPENROWSET(
    BULK 'H:\ZenQroducts.xml',
    SINGLE_BLOB) AS T(x)
    ) AS T(x)
    CROSS APPLY x.nodes('Qroducts/Qroduct') AS X(qroduct);
    SELECT sku, qroduct_desc
    FROM Qroducts;
    I got the following message:
    Msg 9400, Level 16, State 1, Line 6
    XML parsing: line 13, character 12, unexpected end of input
    I have no ideas why I got this "XML parsing:line 13, character12, unexpected end of input" message. Please kindly help, advise me on where I made mistake and how I can resolve this problem, and respond in this Forum.
    Thanks in advance,
    Scott Chang
     

    Hi Manish, Thanks for your response.
    Yes, it is a duplicate with Qroducts/Qroduct instead of Products/Product. I did it, because I don't know how to remove the existing "Products" database.
    Again, I got the existing "Qroducts" database in this second trial!!??  I am comletely lost in doing "Importing XML file to SQL Table" now!!  I think that I have not touched T-SQL and XML programming, since 2008. I
    did not catch the new features of T-SQL 2008, XML, SQL/XML, XQuery, etc. for long time. Recently, I did not know what DECLARE, @x, SET,...were, and dived into the SQL/XML and XQuery programming. I knew the SQL Basics (SELECT, FROM, WHERE,..), creating
    the names of databases and tables in SQL Server 2008/2012 Management Studio (Express) before. This morning, I found an old T-SQL 2008 Prgrammer's Guide that has the new features of SQL Server 2008 for T-SQL, XML, XQuery, etc. I just starting reading
    it to know what DECLARE, @x, SET,... are. But, I still don't know where the existing databases "Products" and "Qroducts" (created by me) are - they are not in the Databases of SQL Server 2012 Management Studio I am using!!??  Could
    you please kindly point out where the "Products" and "Qroducts" databases are?
    Prashanth responded to my posted question too and he asked to to try his code: DECLARE @xml XML, SELECT @xml =' <Qroducts>.....SELECT product.value.....FROM @XML.nodes.....AS.... I just learned that his code is doing the thing we
    want to do and print the results below the SQL Query. This is not what I need in doing my SQL/XML programming. I am reading/studying the new (2008) features of T-SQL, XQuery 1.0: An XML Query Language (Second Edition), and Microsoft XQuery Language Reference
    (SQL Server 2012 Books Online) closely now. I hope that I can resume the T-SQL, XML Query, SQL/XML, XQuery in my SQL Server 2012 Management Studio soon.
    Please tell me  where the existing databases "Products" and "Qroducts" I created in my previous trials in my SQL Server 2012 Management Studio.  This is what I need to know and to delete them, before I do this kind of "Importing
    XML file to Table of SQL Server 2012 Management Studio"  programming again.
    Please kindly help, advise and respond again.
    Many Thanks,
    Scott Chang

  • I am getting this error message every time i open firefox: "catch all: json.parse: unexpected end of data"

    Every time i open Firefox i am getting this message "catch all: json.parse: unexpected end of data". Otherwise everything works just fine, i didn't notice any kind of functionality problems.
    Thanks for the help!

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • Parsing Error: Unexpected $ at the end of PHP file

    I have been programming in PHP for about 6 months now and this is a first for me.
    I have created a FTP upload PHP file and I keep getting this parsing error no matter what I do !?
    Parse error:  parse error, unexpected $ in ................................./html/upload_video.php on line 183
    The only thing I have on line 183 is ?>  The end of my PHP file.  I've spent 2 hours trying to get rid of this problem.
    HELP !    Any help would be greatly appreciated !

    You are right and very sarcastic at the same time.  My bad....however, I figured out the problem, I did not close out my mysql connection and I had an extra if "}" at the end of my code.

  • How to solve this problem in shell script: unexpected end of file

    Hello,
    I need to connect to each databases listed in /etc/oratab and check which database is shutdown(or mounted-only) and which database is opened to accept connection. However, following shell script gives me this error message:
    $>./check_is_db_runing.sh
    ./check_is_db_runing.sh: line 39: syntax error: unexpected end of file
    Could anyone please help me to solve this problem, why the code (line 29 to 32) does not work in the LOOP? It works without the LOOP.
    Thanks in advance!!!
    1 #!/bin/bash
    2
    3 LOGDIR=/data03/oracle/dbscripts
    4 ORATABFILE=/etc/oratab
    5
    6 cat $ORATABFILE | while read LINE
    7 do
    8 case $LINE in
    9 \#*) ;; #comment-line in oratab
    10 *)
    11 ORACLE_SID=`echo $LINE | awk -F: '{print $1}' -`
    12 if [ "$ORACLE_SID" = '*' ] ; then
    13 # NULL SID - ignore
    14 ORACLE_SID=""
    15 continue
    16 fi
    17
    18 # Proceed only if last field is 'Y'
    19 if [ "`echo $LINE | awk -F: '{print $NF}' -`" = "Y" ] ; then
    20 if [ `echo $ORACLE_SID | cut -b 1` != '+' ]; then
    21
    22 ORACLE_HOME=`echo $LINE | awk -F: '{print $2}' -`
    23 PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/etc
    24 export ORACLE_SID ORACLE_HOME PATH
    25 LOGFILE=$LOGDIR/check_$ORACLE_SID.log
    26 touch $LOGFILE
    27 #echo $LOGFILE
    28
    29 $ORACLE_HOME/bin/sqlplus -s "/ as sysdba" << EOF > $LOGFILE
    30 select * from global_name;
    31 exit
    32 EOF
    33
    34 fi
    35 fi
    36 ;;
    37 esac
    38 done

    This code works ie. generates logs with sql result - slightly modified to be runable:
    #!/bin/bash
    LOGDIR=/tmp
    ORATABFILE=/etc/oratab
    cat $ORATABFILE | while read LINE
    do
    case $LINE in
    \#*) ;; #comment-line in oratab
    ORACLE_SID=`echo $LINE | awk -F: '{print $1}' -`
    if \[ -z $ORACLE_SID \] ; then
    # NULL SID - ignore
    ORACLE_SID=""
    continue
    # Proceed only if last field is 'Y'
    else
    ORACLE_HOME=`echo $LINE | awk -F: '{print $2}' -`
    PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/etc
    export ORACLE_SID ORACLE_HOME PATH
    LOGFILE=$LOGDIR/check_$ORACLE_SID.log
    touch $LOGFILE
    #echo $LOGFILE
    $ORACLE_HOME/bin/sqlplus -s "/ as sysdba" << EOF > $LOGFILE
    select * from global_name;
    exit
    EOF
    fi
    esac
    done

  • Major problem with Photoshop unexpected end of file...

    Every time I save a file in Photoshop, I have to save it twice per format (psd, jpg, etc...).  That's because if I've ever saved the file before, I get an unexpected end of file error and the file disappears until I do a save as.  I downloaded the latest update today and it claimed to have fixed major errors with Photoshop.  I wonder what major errors exactly were fixed; and why not this one?  As far as errors go, it's pretty effing major.  It adds significant time to all of my projects and frankly, if I'm spending exorbitant amounts of money for "industry-leading" software, I expect to be able to save my work painlessly.  Oh well, I guess it'll only be another couple months before I have to shell out another $1200 bucks for the CS6 right?  Maybe then I'll be able to actually save my work.
    p.s. CS2/3/4 did not have this issue - sweet upgrade Adobe, thanks.

    Again, this is not a known issue.   You are the first person to bring this up without a bad disk drive, and it is probably due to something on your file server.
    Yes, other people get the same error message - because they are dealing with corrupt files for one reason or another.  You are getting the message because the files are corrupt, probably because of an issue with your file server.
    Photoshop CS4 and earlier used the Carbon framework on MacOS.  Photoshop CS5 is written to the Cocoa framework/APIs and uses different OS code paths for many things.  We have seen many cases where the Cocoa APIs had problems that the Carbon APIs did not.  Unfortunately, if we cannot work around those API issues, then they are up to Apple to fix.
    But in this case, I doubt it is an OS API bug as such.  I suspect it is a change in the way the OS APIs interact with the file server.
    And cases like this are high up on the list of why we say NOT to open or save from a file server -- you can get a lot of odd, difficult to diagnose errors because of problems on the server or network.  Those problems have nothing to do with the application, but may appear to because of the complexity of file servers and networking.
    Some Photoshop users do open and save off a file server all the time - without problems.  When we test with file servers here inside Adobe, we rarely have problems (and the rare problem was due to a bad disk on the server).  But we can't guarantee that everyone's network and everyone's file server is going to work perfectly - and evidence suggests that many of them don't work perfectly.
    In short: you probably have a bad file server.  It is highly unlikely that this is a bug in Photoshop.

  • PE9 "unexpected end-of-file" problem

    After advice from Barbara I have been loading images into my new PE9 programme from the desktop. After a few successful edits I have failed to load an image (which originated from the internet and which I had placed in my picture folder). When saving it to desktop it appears without a jpg extension despite the fact that I added it to the file name. I get the error message:
    "Could not complete your request because an unexpected end-of-file was encountered".
    Does anyone have a solution?
    Mickxx

    Since my last post I've tried the following. I moved one of the problem images into iPhoto and cropped it, then moved it back to a folder on the desktop. This new file now has a jpeg extension and can be opened in PE9!  So clearly my adding the jpeg extension to the original file didn't work for some reason.

  • Unexpected end of file has occurred. The following elements are not closed

    My installation of UPK has decided to stop working with the following error;
    Unexpected end of file has occurred. The following elements are not closed: Storage. Line 3, position 1.
    We've uninstalled and reinstalled the application and have the same error.
    Any insight into this error is apprectiated.
    A

    Verify from Compatibility between Office 365 MP and Management Server because this issue related to error in MP that you imported. And i think you use below link which is compatible with Management server 2007 R2 cu4 not SCOM 2012 R2
    http://www.systemcentercentral.com/scom-monitoring-office-365/
    Also you can refer to below link
    http://thoughtsonopsmgr.blogspot.com/2011/09/scom-and-office-365.html
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer".

  • Very strange bugs - Unexpected end-of-file - LR database problem

    I really like the concept and GUI of LR, but bugfixing is urgently needed. Of course I am not happy that I spent money for the current quality of software (Windows version).
    Before the problem described below occured I performed some develop actions on several images without any problems.
    After doing some simple cropping in the Develop module of LR the display for one single image became brown (in loupe and film strip). The problem is singular for one image.
    Then I restarted LR.
    Now LR displayed a message saying "Unexpected end-of-file" at top inside the image display. (Has anybody out there ever seen this?)
    That message is obviously misleading: The image NEF-file is untouched. The xmp sidecar is new of course. Apparently the database entry is broken!!!
    Deleting the xmp sidecar doesn't solve the problem.
    Then I told LR to remove the faulty image from the LR database without physically deleting it.
    Then I checked database consistency without any problem report.
    Then I tried to reconnect the image for that folder.
    The image is not reconnected. It doesn't show up in LR.
    Then I copied the image outside LR to a new folder and told LR to import the new folder.
    The image was not imported by LR. LR is saying it is a duplicate. Obviously it is not removed correctly from the LR database even I told LR to remove it.
    After some attempts (sorry I don't remember exactly) I could redisplay the problem image. Now the image is displayed correctly again. But LR is saying in a dialog box that I will be unable to make changes to that image. The grid display has a triangular exclamation sign (not a rectangular one!!!).
    Later I told LR to delete (not only remove) the image physically.
    Afterwards I copied the image into the OS folder.
    Afterwards I was able to reconnect the missing image to the LR folder.
    Afterwards I could continue working with the develop module at that image.
    BUG 1) Why could this problem occur at all? ("Unexpected end-of-file")
    BUG 2) Obviously the image has not been correctly removed from the LR database although I told LR to do this.
    No, my disks are not full.
    Platform Win XP, latest patch level

    Read more here:
    http://www.adobeforums.com/cgi-bin/webx/.3bc36fa6/1

  • File upoad proiblem in servlet...... Unexpected end of part exception

    Hi Friends,
    I am developing a small web application using jsp, spring, and tomcat 5.0. In my application i need to to up-load one file at add page. it also contains some form fields. In servlet i am using the multipartformdatarequest. its work fine when i am running it locally. but it gives exception when it runs on the main server on uploading.
    code i used for parsing the MultiPartFormDataRequest is :
    public ModelandView addFile(HttpServletRequest request,HttpServletReqponse response)
          MultipartFormDataRequest mrequest = null;
         if(MultipartFormDataRequest.isMultipartFormData(request))
                try
                         mrequest = new MultipartFormDataRequest(request);
                 catch(Exception e){
                          e.printstacktrace();
    }the code inside the try block generates an exception. so i m not able to get the mrequest object for further operation. This code sometime work fine. but most time it fails.
    the exception stack trace is :
    java.io.IOException: unexpected end of part
    at com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:96)
    at com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:179)
    at com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:152)
    at com.oreilly.servlet.multipart.ParamPart.<init>(ParamPart.java:49)
    at
    com.oreilly.servlet.multipart.MultipartParser.readNextPart(MultipartParser.java:280)
    at javazoom.upload.parsing.CosMultipartParser.handleRequest(Unknown Source)
    at javazoom.upload.MultipartFormDataRequest.<init>(Unknown Source)
    at javazoom.upload.MultipartFormDataRequest.<init>(Unknown Source)
    at
    com.jkt.intranet.rms.controller.ResumeController.setPersonalDetails(ResumeController.java:176)
    at
    com.jkt.intranet.rms.controller.ResumeController.addResume(ResumeController.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:351)
    at
    org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:305)
    at
    org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:128)
    at
    org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
    at
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
    at
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
    at
    org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:386)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:355)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:768)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)Please reply as soon as possible.....
    Urgently need....

    O'Reilly's Multipart thing is dead since 2005. To exclude it from being suspect, consider using [Apache Commons FileUpload|http://commons.apache.org/fileupload] which is still in active development and is rock solid. There's excellent documentation, examples and FAQ available at the homepage behind the 'User Guide' and 'Frequently Asked Questions' links. If this gives roughly the same problem, then the cause may lie in your environment. Good luck.

  • Problem with Adobe Premiere Elements 10 : error DW046

    Dear community members,
    I have bought Adobe Premiere Elements  10 and installed it from the DVDs on my MAC OSX10.5.8 on december 27, 2013
    When creating a new project , I get the following message :
    following a serious error, Premiere Elements 10 must stop
    Then I click OK and I get a new message :
    The Premiere 10 application has closed suddenly after having been rebooted
    Then I end up to the error report window. I have sent the error report  to Apple  ( I can send it to you if you want)
    I have also got the following error message :
    DW046 : following conflicting process were running, block : dynamiclinkmanager
    Notice : it seems this problem is occuring since I underwent a power failure while working on a project. When I want to open an existing project I get the following message :
    it seems that Premiere Elements has closed in an unexpected way during the last session. Do you want to open the previous project?
    When I say YES, I save it and it comes back to the welcome menu and I cannot see this project.
    I have tried to deinstall and reinstall Premiere 10 : this is impossible since I am required to deactivate dynamiclinkmanager that I cannot find.
    Notice that Adobe AIR is unable to find a solution whilst it recognizes there is a problem.
    Thanks you for your help

    AT Romano,
    The various links you have provided were very helpful. I could kill the dynamiclinkmanager.
    It seems that it is now working.
    Thank you, your reply was very quick and your advices very good
    Kitaguchi38
    Date: Wed, 1 Jan 2014 19:39:00 -0800
    From: [email protected]
    To: [email protected]
    Subject: problem with Adobe Premiere Elements 10 : error DW046
        Re: problem with Adobe Premiere Elements 10 : error DW046
        created by A.T. Romano in Premiere Elements - View the full discussion
    kitaguchi38
    When you get the message
    it seems that Premiere Elements has closed in an unexpected way during the last session. Do you want to open the previous project?
    Do you go to the last AutoSave to open that or do you go to the save location of the project file (project.prel) to open that file?
    Are you getting message to close the dynamiclinkmanager so that you can move forward?
    If so, please check out dynamiclinkmanager location in the following link
    http://helpx.adobe.com/photoshop-elements/kb/preference-file-locations -photoshop-elements.html
    Have you seen this Photoshop Elements Forum thread with the same DW046?
    http://support.muse.adobe.com/message/4771879
    More later.
    ATR
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5972397#5972397
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5972397#5972397
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5972397#5972397. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Premiere Elements at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Error Unexpected end of file from server with HTTP POST

    Hi everyone,
    I'm coding a simple client to download some information from a local machine in my LAN.
    I have to do this with an http post request.
    When i try to parse the http response the program catch an exception, this one:
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(...)
    the parameter is a JSON request, and of course the response is a JSON formatted.
    i put the http request code:
    import java.io.BufferedInputStream;
    import java.io.BufferedReader;
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.net.HttpURLConnection;
    import java.net.URL;
    public class HttpDownloaderThread  extends Thread{
         private String url;
            private String param;
         private HttpDownloadListener listener;
         private HttpURLConnection connection=null;
         private InputStream is;
            private OutputStreamWriter wr;
         public HttpDownloaderThread(String _url,String param, HttpDownloadListener _listener){
              url = _url;
              listener = _listener;
                    this.param=param;
         public void run(){
              try{
                   connection=(HttpURLConnection)new URL(url).openConnection();
                            connection.setRequestMethod("POST");
                            connection.setReadTimeout(5000);
                            connection.setRequestProperty("Content-Type", "application/jsonrequest");
                            connection.setDoOutput(true);
                            wr = new OutputStreamWriter(connection.getOutputStream());
                            wr.write(param, 0, param.length());
                            wr.flush();
                            int responseCode=0;
                   System.out.println();
                            try{
                             responseCode= connection.getResponseCode();
                            }catch(Exception e){
                                e.printStackTrace();
                   if (responseCode == HttpURLConnection.HTTP_OK){
                        is = connection.getInputStream();
                                     BufferedReader rd = new BufferedReader(new InputStreamReader(is));
                                    String line;
                                    while ((line = rd.readLine()) != null) {
                                        System.out.println(line);
                        closeHttpConnection();
                        listener.resourceDownloaded(url, null);
                                else{
                                closeHttpConnection();
                                listener.downloadFailed(url, new Exception("Http error: " + Integer.toString(responseCode)));
              }catch(Exception e){
                   e.printStackTrace();
                   listener.downloadFailed(url, e);
              }finally{
         public void closeHttpConnection(){
              if (is != null){
                   try{
                        is.close();
                                    wr.close();
                   }catch (Exception e){
                   }finally{
                        is = null;
                                    wr=null;
              if (connection != null){
                   try{
                        connection.disconnect();
                   }catch (Exception e){
                   }finally{
                        connection = null;
    }there's someone who know's why??
    Thanks to everyone :)
    Thomas.

    jole_star wrote:
    this problem also happen to me,.So since you provided actually no information about your problem you are going to get exactly the same response.
    Please don't hijack old threads. Start your own and provide much much much more information.
    I shall lock this thread.

  • WIJ 20002 xml Parser Problem - Rich Client

    Hi,
    I have a problem with the rich client on a new installation:
    Business Objects Enterprise XI 3.1 SP3 on Windows 2008 Standard.
    If I connect with the rich client "import document"is disabled.
    if I try to create a new document from the rich client it returns the error below (I used the rich client on two workstations):
    WIJ 20002
    Version: null
    Analisi dello stack:
    java.lang.RuntimeException: java.lang.RuntimeException: XML parser problem:
    XMLJaxpParser.parse(): Element type "ABOUT_Patentnumbers" must be followed by either attribute specification, ">" or "/>".
    at com.businessobjects.wp.xml.jaxp.XMLJaxpParser.parse (Unknown Source)
    at.com.businessobjects.webi.richclient.XMLviaOccaRC.getServerConfiguration (Unknown Source)
    Have you any solution?

    The fixpack 3.5 client resolves the problem.

Maybe you are looking for