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

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.

  • 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

  • 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.

  • Unexpected end fo file from server exception

    Hi all,
    When I try to run any of JWS demo application shipped with JRE, after a very long 'checking new version' message, the app ends up throwing the following exception :
    JNLPException[category: Download Error : Exception: java.net.SocketException: Unexpected end of file from server : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
         at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)What's wrong ?
    Thanks in advance
    Setya

    I am having the same problem...Seyta, did the you
    find an answer?Not yet, another thread suggested that I check my proxy setting, I already do that with no luck, actually the my proxy setting at the JWS Console is the same as in my browser.
    Would u please inform me if u find solution.
    Thanks in advance.
    Setya

  • 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".

  • Fast Formula Error APP-FF-33629 (Unexpected End of Entry_Value)

    Hi,
    My formula successfully verified. I am getting following error message when application is trying to invoke the same formula. Error message says that:
    Error: “Unexpected End of ENTRY_VALUE(T)=:control entry_value line (trigger for Ded_Amt2)”.
    Cause: A formula was invoked via application Foundation. It was invoked using a #USR trigger step. One of the INPUT= or UDCOL= or OUTPUT= lines appears to have been truncated.
    Action: Please refer to your local support.
    I did not find any document on metalink for the same error.
    Please help me to resolve this error.
    Thanks in Advance.
    Regard.

    Are you still the getting the same error?
    there might be something missing while creating an element.
    What is the input value for the element?
    Is the name of your formula XX_TEST?
    And are you getting this error while verifying the formula?
    Try with following.
    INPUTS are HOURS_WORKED
    DEFAULT FOR XX_TRAVEL_RATE IS 0
    Inputs are HOURS_WORKED
    If (HOURS_WORKED  > 0) then
    L_WAGE = HOURS_WORKED * XX_TRAVEL_RATE
    Else
    L_WAGE =  1  *  XX_TRAVEL_RATE
    RETURN L_WAGE

  • How to resolve Unexpected End of file error in Web Crawling

    how to resolve Unexpected End of file error in Web Crawling....
    I am getting java.net.SocketException :Unexpected End of file error in Web Crawling.
    How to get rid of this error.
    Please help anybody ASAP.

    1. Handle this exception - not recommended since you will be creating an exception handling overhead unnecessarily.
    2. Check for EOF using available() method in InputStream. It returns 0 if there are no bytes to read.

  • Bulk Insert Failure: Unexpected end of file

    Hi all,
    I have a Bulk Insert task which pulls data from a .csv file to SQL server table.
    It works fine 99 out of 100 times, but sometimes it throws the following error in production.
    "System exception: An error occurred with the following error message: "Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information
    about the error.Bulk load: An unexpected end of file was encountered in the data file.".  "
    My Client says that there was no change to the file and it runs fine the next time.Its a error which I could not reproduce in development.
    I have an interface prior to this bulk insert interface to check whether the file is completely available(i.e i try to open the file and check whether its used by any other process).
    I'm supposed to give an answer for why it fails sometimes. Your thoughts on this?
    Rajkumar

    The Bulk insert task is used in SSIS package. The error Posted in my first post is what I got from SSIS..
    Why don't you use Data Flow task? BULK INSERT is fast, but not much error control.
    BOL quote ( http://msdn.microsoft.com/en-us/library/ms141679.aspx ) : "Error Handling in Data
    When a data flow component applies a transformation to column data, extracts data from sources, or loads data into destinations, errors can occur. Errors frequently occur because of unexpected data values. For example, a data conversion fails because a column
    contains a string instead of a number, an insertion into a database column fails because the data is a date and the column has a numeric data type, or an expression fails to evaluate because a column value is zero, resulting in a mathematical operation that
    is not valid.
    Errors typically fall into one the following categories:
    Data conversion errors, which occur if a conversion results in loss of significant digits, the loss of insignificant digits, and the truncation of strings. Data conversion errors also occur if the requested conversion is not supported.
    Expression evaluation errors, which occur if expressions that are evaluated at run time perform invalid operations or become syntactically incorrect because of missing or incorrect data values.
    Lookup errors, which occur if a lookup operation fails to locate a match in the lookup table.
    Many data flow components support error outputs, which let you control how the component handles row-level errors in both incoming and outgoing data. You specify how the component behaves when truncation or an error occurs by setting options on individual
    columns in the input or output. For example, you can specify that the component should fail if customer name data is truncated, but ignore errors on another column that contains less important data."
    http://msdn.microsoft.com/en-us/library/ms141679.aspx
    Kalman Toth SQL SERVER & BI TRAINING

  • Java.io.EOFException: Unexpected end of ZLIB input stream

    Hi,
    I am reading .gz file in servlet and writing it in output stream. It works fine for smaller files. For larger file when I reading file and writing output I am getting exceptions as below in order.
    8/6/09 9:52:28:953 CDT] 00000029 ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet /WEB-INF/pages/TilesTemplate/layouttemplate.jsp. Exception thrown : java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained
         at com.ibm.ws.webcontainer.srt.SRTServletResponse.getWriter(SRTServletResponse.java:489)
         at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:170)
         at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:163)
         at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:227)
    ---- Begin backtrace for Nested Throwables
    java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained
         at com.ibm.ws.webcontainer.srt.SRTServletResponse.getWriter(SRTServletResponse.java:489)
         at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:170)
         at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:163)
    *[8/6/09 9:52:28:625 CDT] 00000029 SystemErr R java.io.EOFException: Unexpected end of ZLIB input stream*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:157)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:109)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.io.FilterInputStream.read(FilterInputStream.java:110)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:325)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:223)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.io.InputStreamReader.read(InputStreamReader.java:208)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.io.BufferedReader.fill(BufferedReader.java:153)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.io.BufferedReader.readLine(BufferedReader.java:316)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.io.BufferedReader.readLine(BufferedReader.java:379)*
    *[8/*

    My suggestion would be to run your code as a plain old Java application. Why use a servlet environment to test the problem? There's just too many things going on. So first see if it works the same way in a Java application. If it does, or if it doesn't, you then know where to go next.

  • Unexpected end of ZLIB input stream.

    Hello everyone.
    I have a problem which I was unable to solve so far. Any suggestion is very welcome.
    The scenario.
    My process worked on a previously installed default install 10.1.3.1 platform.
    I installed the SOA Suite (same, very default set with olite) on a different computer and copied all files of the project dir. Modified file paths and URLs in all files in the folder and deployed the process with jdeveloper.
    Symptoms.
    Flow viewer gets stuck at Loading audit trail. Messages from a java call get to manual recovery, and will not recover.
    I start the process with a java call:
    Locator locator = new Locator("default","bpel");
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
    NormalizedMessage nm = new NormalizedMessage( );
    nm.addPart("payload", xml );
    deliveryService.post("OrderFlow", "initiate", nm);
    it starts without any problems and runs until a callback (receive) activity, where it is waiting for a message using the same java api calls as above.
    This runs well on the previous system, however the new system will not deliver the message.
    Log output.
    After trying to access the flow viewer:
    <2008-03-19 20:13:12,120> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "instance manager": Cannot uncompress data stream.
    Cannot uncompress data stream with GZIP algorithm; exception is Unexpected end of ZLIB input stream.
    ORABPEL-02018
    Cannot uncompress data stream.
    Cannot uncompress data stream with GZIP algorithm; exception is Unexpected end of ZLIB input stream.
         at com.collaxa.cube.engine.util.CompressUtils.uncompressStream(CompressUtils.java:184)
         at com.collaxa.cube.engine.util.DBUtils.getUncompressedBLOB(DBUtils.java:358)
         at com.collaxa.cube.engine.util.DBUtils.getUncompressedBLOB(DBUtils.java:310)
         at com.collaxa.cube.engine.adaptors.common.BaseCubeInstancePersistenceAdaptor$BaseScopeHandler.load(BaseCubeInstancePersistenceAdaptor.java:1268)
         at com.collaxa.cube.engine.adaptors.common.BaseCubeInstancePersistenceAdaptor.load(BaseCubeInstancePersistenceAdaptor.java:348)
         at com.collaxa.cube.engine.adaptors.common.BaseCubeInstancePersistenceAdaptor.load(BaseCubeInstancePersistenceAdaptor.java:251)
         at com.collaxa.cube.engine.data.CubeInstancePersistenceMgr.__load(CubeInstancePersistenceMgr.java:252)
         at com.collaxa.cube.engine.data.CubeInstancePersistenceMgr.load(CubeInstancePersistenceMgr.java:136)
         at com.collaxa.cube.engine.CubeEngine.load(CubeEngine.java:4859)
         at com.collaxa.cube.engine.CubeEngine.getInstanceTrace(CubeEngine.java:2415)
         at com.collaxa.cube.ejb.impl.InstanceManagerBean.getInstanceTrace(InstanceManagerBean.java:168)
         at sun.reflect.GeneratedMethodAccessor275.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:620)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:43)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at InstanceManagerBean_RemoteProxy_4bin6i8.getInstanceTrace(Unknown Source)
         at com.oracle.bpel.client.InstanceHandle.getInstanceTrace(InstanceHandle.java:267)
         at xmlGetInstanceTrace.jspService(_xmlGetInstanceTrace.java:56)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:131)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    After sending the message
    <2008-03-19 15:20:58,984> <ERROR> <default.collaxa.cube.engine.dispatch> <DispatchHelper::handleMessage> failed to handle message
    ORABPEL-02018
    Cannot uncompress data stream.
    Cannot uncompress data stream with GZIP algorithm; exception is Unexpected end of ZLIB input stream.
    ... and ...
    <2008-03-19 15:20:58,994> <ERROR> <default.collaxa.cube.engine> Attempt (1/2): caught non-fatal connection exception ... retry
    <2008-03-19 15:21:00,075> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "cube delivery": Cannot uncompress data stream.
    Cannot uncompress data stream with GZIP algorithm; exception is Unexpected end of ZLIB input stream.
    ORABPEL-02018
    Cannot uncompress data stream.
    Cannot uncompress data stream with GZIP algorithm; exception is Unexpected end of ZLIB input stream.
    ===================
    THANK YOU

    Some update on the issue.
    I have a quite complicated BPEL process, which has this symptom.
    I figured out however, that if I dont use the TaskService, it does run well.
    So I just created a test bpel process with nothing but a human task.
    It failed with the same unexpected end of zlib ... problem.
    What I also noticed is that the task appears in the worklist app, but the reply gets into the callback manual recovery pool. there must be some kind of communication failure from the taskservice in the direction of the bpel process.
    Any advice is welcome,
    thx,
    tg

  • Mac OS X MySQL Connect throws Unexpected end of input stream

    With java version 1.4.2_05 I'm attempting to run an application which retrieves information from a MySQL database version 4.1 on Mac OS X Panther 10.3.6 The application operates without error on Windows and Linux using MySQL v4.0. Relevant Code appears below..
              private static final String DRIVER = "com.mysql.jdbc.Driver";
         private static final String URL = "jdbc:mysql://localhost:3306";
         boolean openConnection() throws SQLException, DatabaseException {
              try {
                   if (con == null) {
                        StringBuffer sb = new StringBuffer(URL);
                        sb.append("/").append(getDatabase());
                        Class.forName(DRIVER);
                        /* Failure occurs here while calling getConnection on the
                        DriverManager class. */
                        con = DriverManager.getConnection(sb.toString(), getUser(), getPassword());
              } catch(SQLException sle) {
                   sle.printStackTrace();
         } But on Mac X I'm seeing an exception thrown.
    java.sql.SQLException: Communication link failure: java.io.IOException, underlying cause:
    Unexpected end of input stream
    ** BEGIN NESTED EXCEPTION **
    java.io.IOException
    MESSAGE: Unexpected end of input stream
    STACKTRACE:
    java.io.IOException: Unexpected end of input stream
            at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:1096)
            at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:626)
            at com.mysql.jdbc.Connection.createNewIO(Connection.java:1562)
            at com.mysql.jdbc.Connection.<init>(Connection.java:491)
            at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346)
            at java.sql.DriverManager.getConnection(DriverManager.java:512)
            at java.sql.DriverManager.getConnection(DriverManager.java:171)I have checked to see that the proper permissions are established in the database. I've used the GRANT statement etc. It's unclear to me why I am having difficulty with the newer MySQL on Mac OS X. Any feedback is appreciated thanks.

    I managed to solve this by having the MySQL server run as a service rather than attempting to start it via the application. So now the application can retrieve from the database without error.

  • "Could not complete your request because an unexpected end-of-file was encountered."

    I have gotten this error message a few times now. "Could not complete your request because an unexpected end-of-file was encountered."
    My file many layers... a total of 100mgs+.  But I work with this kind of file often, so... hmm. It won't open.  Is it corrupted?  Any way to restore?  I can go back in time with our 'time machine program... but that brings me back to having a previous version and many hours of lost work. 
    I use a Mac OS x 10.5.8, Photoshop version 6 from the 2003 CS suite. 
    Thanks for any input or advice.  Rebecca Doyle

    Hello, Rebecca. This forum is for Photoshop Elements, the consumer version of Photoshop. For questions about full photoshop/Creative Suite you'll find more knowledgeable help in the Photoshop forum:
    http://forums.adobe.com/community/photoshop/general
    Good luck!

  • 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.

  • Unexpected end of ZLIB input stream - While Importing SAP_BUILDT

    Hello All,
    We are trying to import the SAP_BUILDT file into the CMS track. But encounter the following error when we try to import in the "Development" tab. All the three steps: "Repository-Import", "CBS-make", "SDM-Deploy" have the same error message in the log.
    May 14, 2008 8:28:45 AM  Error  : error during loading of propagation request Exc=com.sap.cms.tcs.interfaces.exceptions.TCSFileLoadException: cannot load file: /usr/sap/trans/CMS/archives/sap.comSAP_BUILDTSAP AG20071117141300.sca Error: Could not extract file BUILDARCHIVES/sap.comtcbijlincbs_compdcia.zip from archive /usr/sap/trans/CMS/archives/sap.comSAP_BUILDTSAP AG~20071117141300.scaAdditional error message is:Unexpected end of ZLIB input stream
    May 14, 2008 8:28:45 AM  Error  : stack trace:
    [EXCEPTION]
    com.sap.cms.tcs.interfaces.exceptions.TCSFileLoadException: cannot load file: /usr/sap/trans/CMS/archives/sap.comSAP_BUILDTSAP AG20071117141300.sca Error: Could not extract file BUILDARCHIVES/sap.comtcbijlincbs_compdcia.zip from archive /usr/sap/trans/CMS/archives/sap.comSAP_BUILDTSAP AG~20071117141300.scaAdditional error message is:Unexpected end of ZLIB input stream
         at com.sap.cms.tcs.core.PropagationRequest.PropagationRequestData.load(PropagationRequestData.java:2464)
         at com.sap.cms.tcs.core.TCSManager.importPropagationRequests(TCSManager.java:355)
    The sp level we are trying to import is 7.00 SP14.
    We found some posts which said that the file may be corrupted. So we downloaded a couple of times from the service market place and tried. But still the same error.
    The following is the file that we downloaded from SMP:
      SAPBUILDT14_0-10003479.SCA   SP14 for DI BUILD TOOL 7.00
    Could anyone tell us what the problem could be?
    Thanks and Regards,
    Reena
    Edited by: Reena Prabhakar on May 21, 2008 11:51 AM

    Hi Purush,
    We used the same files as the ones we had used in the "Inbox" folder and copied them to the "archives" folder as well. These files we downloaded from the SAP service Marketplace. I am sure you would be aware of the right location in SMP for your files.
    However, you could also do one more thing. Make sure that you delete all the files similar to the ones that are giving an error in the "Archives" folder. I mean, if there is more than one version of the file that is giving the error, delete all these files from the archives folder. Then, do a check-in and an import again. This will copy the right version of the file to the archives folder automatically. This way, you won't have to copy paste the files manually to the archives folder.
    To explain this in more detail... here is the response I got from SAP regarding this issue:
    The "archives" folder is normally only used internally by the CMS to store a backup copy of the imported files.
    After you place a file in the "inbox" and check it in, CMS first extracts the SCA name, vendor and version and checks if it is already contained in the archive. If the file is new, it is copied from "inbox" to the "archives" folder. Already existing files are not copied. Later, during import, the import file is read from the "archives" folder. In your case I assume that the fixed SCA file had the same version, so just by comparing the SCA name, vendor and version, the CMS did not realize that it has to update the file in "archives".
    Usually you don't have to care about the "archives" folder.
    Hope this helps.
    Thanks and Regards,
    Reena

Maybe you are looking for

  • New iPhone not listed as a device on iTunes

    The one sentence answers to similar questions on here don't help me much so... My iPad 2 shows up as a device on iTunes 11. When I connect the new iPhone 5 via USB it is also there but unlike the iPad it will not show up on iTunes wirelessly and yes

  • Menu Object; MANUAL option. What is this, and how does it work?

    What is this... and, how does it work? Can't find documentation on this.

  • Displaying the row number

    I am having the data as like below(sample data) Col1 Col2 A AA A BB A CC B BA B BB C CA D DA D DB E EA E EB I want to show the seq number as a third column as like below. (seq number is with respect to Col1) Col1  Col2  num A      AA     1 A      BB 

  • Using IN and TABLE operators via JDBC

    Greetings, Hope this may be of benefit to someone. Any and all feedback greatly appreciated. import java.math.BigDecimal; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import javax.sql.DataSource; import or

  • Disappearing Colors show up only in the shadows of other windows

    Ok - this is weird: I noticed that some colors in web designs I was working on were not displaying. Like a light grey nav bar shows up white. This is also true in certain applications - the light blue row color in Yojimbo and my font manager are not