Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 51E69200D14 for ; Tue, 19 Sep 2017 01:41:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 506981609DE; Mon, 18 Sep 2017 23:41:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7027E1609DB for ; Tue, 19 Sep 2017 01:41:04 +0200 (CEST) Received: (qmail 22885 invoked by uid 500); 18 Sep 2017 23:41:03 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 22876 invoked by uid 99); 18 Sep 2017 23:41:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Sep 2017 23:41:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E3B20C8E68 for ; Mon, 18 Sep 2017 23:41:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Zs-Mia4UcZjD for ; Mon, 18 Sep 2017 23:41:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2B0835F3CF for ; Mon, 18 Sep 2017 23:41:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5C5DDE06BB for ; Mon, 18 Sep 2017 23:41:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 167A924143 for ; Mon, 18 Sep 2017 23:41:00 +0000 (UTC) Date: Mon, 18 Sep 2017 23:41:00 +0000 (UTC) From: "Hudson (JIRA)" To: java-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AXIS2-5887) Parsing of response ends up in a IllegalStateException (attribute type accessed in illegal event!) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 18 Sep 2017 23:41:05 -0000 [ https://issues.apache.org/jira/browse/AXIS2-5887?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1617= 0901#comment-16170901 ]=20 Hudson commented on AXIS2-5887: ------------------------------- SUCCESS: Integrated in Jenkins build Axis2 #3833 (See [https://builds.apach= e.org/job/Axis2/3833/]) AXIS2-5887: Roll back bogus change in ADBBeanTemplate-bean.xsl introduced i= n r1536050. (veithen: rev 1808789) * (edit) axis2/modules/adb-codegen/src/org/apache/axis2/schema/template/ADB= BeanTemplate-bean.xsl * (edit) axis2/modules/adb-tests/pom.xml * (add) axis2/modules/adb-tests/src/test/java/org/apache/axis2/databinding/= axis2_5887 * (add) axis2/modules/adb-tests/src/test/java/org/apache/axis2/databinding/= axis2_5887/ParseTest.java * (add) axis2/modules/adb-tests/src/test/resources * (add) axis2/modules/adb-tests/src/test/resources/org * (add) axis2/modules/adb-tests/src/test/resources/org/apache * (add) axis2/modules/adb-tests/src/test/resources/org/apache/axis2 * (add) axis2/modules/adb-tests/src/test/resources/org/apache/axis2/databin= ding * (add) axis2/modules/adb-tests/src/test/resources/org/apache/axis2/databin= ding/axis2_5887 * (add) axis2/modules/adb-tests/src/test/resources/org/apache/axis2/databin= ding/axis2_5887/getOrdersByStatus_response.xml * (add) axis2/modules/adb-tests/src/test/wsdl/AXIS2-5887.wsdl > Parsing of response ends up in a IllegalStateException (attribute type ac= cessed in illegal event!) > -------------------------------------------------------------------------= ------------------------- > > Key: AXIS2-5887 > URL: https://issues.apache.org/jira/browse/AXIS2-5887 > Project: Axis2 > Issue Type: Bug > Components: codegen, wsdl > Affects Versions: 1.7.6 > Environment: Windows 10, Java 1.8.0_131 > Reporter: Carl-Ferdinand B=C3=B6hm > Fix For: 1.7.7 > > Attachments: getOrdersByStatus_response.xml, Orders.java, xtc_wsd= l.xml > > > Hello there, > we are using AXIS2 to generate and use ServiceStubs to handle SOAP webser= vices. > We upgraded AXIS2 from 1.6.4 to 1.7.6. > After that we generated a new ServiceStub via WSDL2Java based on the foll= owing command: > {code:java} > wsdl2java -uri xtc_wsdl.xml -s -d adb -u -S ./ > {code} > ([^xtc_wsdl.xml] is attached) > If we now get the following response from the webservice, the parsing run= s into a IllegalStateException. > [^getOrdersByStatus_response.xml]: > {code:xml} > > > =09 > =09=09 > =09=09=09 > =09=09 > =09 > > {code} > Error: > java.lang.IllegalStateException: attribute type accessed in illegal event= ! > =09at org.apache.axiom.om.impl.common.serializer.pull.Navigator.getAttrib= uteValue(Navigator.java:507) > =09at org.apache.axiom.om.impl.common.serializer.pull.PullSerializer.getA= ttributeValue(PullSerializer.java:261) > =09at javax.xml.stream.util.StreamReaderDelegate.getAttributeValue(Stream= ReaderDelegate.java:149) > =09at com.speed4trade.plugins.xtc.webservice.Order$Factory.parse(Order.ja= va:671) > =09at com.speed4trade.plugins.xtc.webservice.Orders$Factory.parse(Orders.= java:428) > =09at com.speed4trade.plugins.xtc.webservice.GetOrdersByStatusResponse$Fa= ctory.parse(GetOrdersByStatusResponse.java:389) > =09at com.speed4trade.plugins.xtc.webservice.XtcServiceStub.fromOM(XtcSer= viceStub.java:5906) > =09... 7 more > I have debugged the Stub and compared it to the old one of version 1.6.4. > I noticed here a code change caused by a change in the XSL template [http= s://github.com/apache/axis2-java/commit/26d78d25e60183c14d901139ad3cdce432e= 393d0]: > ADBBeanTemplate-bean.xsl, line 2190 > This generates now this statement in the [^Orders.java]: > {code:java} > if ((reader.isStartElement() && > new javax.xml.namespace.QName("", "orders").equal= s( > reader.getName())) || > new javax.xml.namespace.QName("", "orders").equal= s( > reader.getName())) {...} > {code} > Is it possible that this if-statement is not correct? > Thanks for considering my request. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org