Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 16819 invoked from network); 18 Jun 2010 01:15:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Jun 2010 01:15:41 -0000 Received: (qmail 36684 invoked by uid 500); 18 Jun 2010 01:15:41 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 36611 invoked by uid 500); 18 Jun 2010 01:15:40 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 36603 invoked by uid 99); 18 Jun 2010 01:15:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jun 2010 01:15:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nilupa.manamperi@gmail.com designates 74.125.82.41 as permitted sender) Received: from [74.125.82.41] (HELO mail-ww0-f41.google.com) (74.125.82.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jun 2010 01:15:34 +0000 Received: by wwb34 with SMTP id 34so494349wwb.0 for ; Thu, 17 Jun 2010 18:15:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=LqVUfngkqQkqotsTH6JmK/81qUHFnyyiqRQPNm/Pv2A=; b=sUmB7oYHihShCoE+5J2hZEkukb8oBk7EZOK273NsAPu9ZDJyJ8kSPRgyiMqRtu0vX7 CwJtIW164so6OolMKErNeOcTqHzbvCPAAki4Js/O5ace1gXJ2Ay0g/Tcf8D8s18z4dc/ J08hQf1RjQQj8L45gD+UcennjAVbLp4EwdD9w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Ho4Dtu3HHsEvbZzjp0SI5Hx3HIqpbLRHd7j65koqR1Bn2K5rpaKT6FgX9S25gzZv6P ZP+wSJ4X0iAMu/JUqp7k47SichNaNn9HuOTbR0qtQXQHHZw3iWn6cC2S0u1R33r9ULy1 WmIF62+xAl/Lzwc3ENsTSeSCZwd7j8ak+PCWM= MIME-Version: 1.0 Received: by 10.216.88.21 with SMTP id z21mr212204wee.100.1276823713861; Thu, 17 Jun 2010 18:15:13 -0700 (PDT) Received: by 10.216.30.212 with HTTP; Thu, 17 Jun 2010 18:15:13 -0700 (PDT) Date: Fri, 18 Jun 2010 03:15:13 +0200 Message-ID: Subject: [JiBX DataBinding] An issue when feeding the XMLStreamReader to JiBX framework From: Nilupa Bandara To: dev@cxf.apache.org Content-Type: multipart/alternative; boundary=0016e6d9677ee7cefa048943affb X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d9677ee7cefa048943affb Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm getting the following error (for both the simple types case and complex types case) when I feed the XMLStreamReader to Unmarshalling context without the following workaround[2]. It seems that the problem occurs when the XMLStreamReader is used by JiBX framework to access an element which a part of a larger element or document. I found something similar has been reported[3]. Is this the same issue or is it different ? Any suggestions on what the solution should be ? Thanks in advance !! Nilupa [1] java.lang.ArrayIndexOutOfBoundsException: Attempt to peek past end of stack at org.jibx.runtime.IntStack.peek(IntStack.java:231) at org.jibx.runtime.IntStack.peek(IntStack.java:245) at org.jibx.runtime.impl.StAXReaderWrapper.endTag(StAXReaderWrapper.java:159) at org.jibx.runtime.impl.StAXReaderWrapper.nextToken(StAXReaderWrapper.java:182) at org.jibx.runtime.impl.UnmarshallingContext.parseContentText(UnmarshallingContext.java:880) at org.jibx.runtime.impl.UnmarshallingContext.parseElementText(UnmarshallingContext.java:955) at com.sosnoski.ws.library.types.BookInformation.JiBX_binding_unmarshal_1_0(BookInformation.java) at com.sosnoski.ws.library.types.JiBX_bindingBookInformation_access2.unmarshal() at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2732) at org.apache.xcf.jibx.JibxDataReader.read(JibxDataReader.java:61) at org.apache.xcf.jibx.JibxDataReader.read(JibxDataReader.java:1) at org.apache.cxf.interceptor.DocLiteralInInterceptor.getPara(DocLiteralInInterceptor.java:251) at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:127) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:110) at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:313) at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:277) at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70) [2] Document element = StaxUtils.read(reader); reader = StaxUtils.createXMLStreamReader(element); [3] http://www.mail-archive.com/user@xfire.codehaus.org/msg00447.html --0016e6d9677ee7cefa048943affb--