Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 25186 invoked from network); 20 Dec 2007 13:44:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Dec 2007 13:44:20 -0000 Received: (qmail 67367 invoked by uid 500); 20 Dec 2007 13:44:02 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 67330 invoked by uid 500); 20 Dec 2007 13:44:02 -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: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 67316 invoked by uid 99); 20 Dec 2007 13:44:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2007 05:44:02 -0800 X-ASF-Spam-Status: No, hits=-98.5 required=10.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2007 13:43:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5F701714281 for ; Thu, 20 Dec 2007 05:43:43 -0800 (PST) Message-ID: <26022806.1198158223388.JavaMail.jira@brutus> Date: Thu, 20 Dec 2007 05:43:43 -0800 (PST) From: "Amila Chinthaka Suriarachchi (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-3412) Custom exception handling issue with pojos In-Reply-To: <8788814.1198064503386.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553674 ] Amila Chinthaka Suriarachchi commented on AXIS2-3412: ----------------------------------------------------- hi charitha, Could you please attach you wsdl? Please note that here wsdl2java has nothing do with the way you generate the wsdl. it only concerns about the wsdl with which it going to generate the client. if you report these errors accordingly it is easy to us to debug and fix the issue. > Custom exception handling issue with pojos > ------------------------------------------ > > Key: AXIS2-3412 > URL: https://issues.apache.org/jira/browse/AXIS2-3412 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: nightly > Environment: winxp, jdk15 > Reporter: Charitha Kankanamge > Assignee: Amila Chinthaka Suriarachchi > Priority: Critical > Attachments: CustomexceptionService.aar > > > 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception. > A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information. > Steps to reproduce: > =============== > 1. Create service impl class and custom exception class as follows > public class CustomexceptionService { > > public int addOneToPositiveValue(int value) throws CustomException { > if(value < 1) { > throw(new CustomException()); > } > > return(value + 1); > } > } > public class CustomException extends Exception{ > > private static final long serialVersionUID = 999999999; > public CustomException() { > super(); > } > public String toString() { > return(super.toString() + "org.test.CustomException"); > } > } > 2. Create a service archive and deploy the service > 3. Generate client stub using the ?wsdl of the service > wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest > 4. Check the generated stub -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org