Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 11306 invoked from network); 29 Sep 2004 10:05:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Sep 2004 10:05:09 -0000 Received: (qmail 95816 invoked by uid 500); 29 Sep 2004 10:03:09 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 95685 invoked by uid 500); 29 Sep 2004 10:03:07 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 95629 invoked by uid 99); 29 Sep 2004 10:03:06 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 29 Sep 2004 03:01:41 -0700 Received: (qmail 4842 invoked from network); 29 Sep 2004 10:03:34 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 29 Sep 2004 10:03:34 -0000 Message-ID: <2123253577.1096452214010.JavaMail.apache@nagoya> Date: Wed, 29 Sep 2004 03:03:34 -0700 (PDT) From: axis-dev@ws.apache.org To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-1576) Exceptions with array aren't deserialized In-Reply-To: <1779857378.1096390412529.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The following comment has been added to this issue: Author: Julien Wajsberg Created: Wed, 29 Sep 2004 3:03 AM Body: I forgot to attach the received SOAP message : env:Server Service specific exception: com.ft.ws.test.exception.ComplexException data i=0 data i=1 data i=2 --------------------------------------------------------------------- View this comment: http://issues.apache.org/jira/browse/AXIS-1576?page=comments#action_53491 --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/AXIS-1576 Here is an overview of the issue: --------------------------------------------------------------------- Key: AXIS-1576 Summary: Exceptions with array aren't deserialized Type: Bug Status: Unassigned Priority: Minor Project: Axis Components: Serialization/Deserialization Versions: 1.2 Beta Assignee: Reporter: Julien Wajsberg Created: Tue, 28 Sep 2004 9:53 AM Updated: Wed, 29 Sep 2004 3:03 AM Environment: Client: Axis 1.2 beta 3 Server: Weblogic 8.1 SP3 Description: When an exception is containing an array, it doesn't get correctly deserialized, and therefore it's not caught. The testcase follows. Web service : package test; import test.exception.ComplexException; public class BusinessExceptionImpl { public void echoComplexException() throws ComplexException { ComplexException ex = new ComplexException(); String[] datas = new String[3]; for (int i = 0; i < datas.length; i++) { datas[i] = "data i=" + i; } ex.setStringArrayData(datas); throw ex; } } ComplexException.java : package test.exception; public class ComplexException extends SimpleException { private String[] stringArrayData; public String[] getStringArrayData() { return stringArrayData; } public void setStringArrayData(String[] strings) { stringArrayData = strings; } } WSDL (without namespaces and useless things): Axis client : private BusinessExceptionPort getClient() { BusinessException service = new BusinessExceptionLocator(); try { return service.getBusinessExceptionPort(); } catch (ServiceException e) { e.printStackTrace(); fail("error"); return null; } } public void testEchoComplexException() { try { getClient().echoComplexException(); fail("expected exception"); } catch (ComplexException e) { } catch (Throwable e) { e.printStackTrace(); fail("unexpected exception : " + e.getMessage()); } } And we get : 28 sept. 2004 18:43:18 org.apache.axis.encoding.ser.BeanPropertyTarget set GRAVE: Could not convert [Ljava.lang.String; to bean field 'stringArrayData', type test.vo.holders.ArrayOfString AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.IllegalArgumentException: argument type mismatch faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.lang.IllegalArgumentException: argument type mismatch --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira