Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 05284E786 for ; Wed, 27 Feb 2013 17:25:13 +0000 (UTC) Received: (qmail 14534 invoked by uid 500); 27 Feb 2013 17:25:12 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 14474 invoked by uid 500); 27 Feb 2013 17:25:12 -0000 Mailing-List: contact issues-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 issues@cxf.apache.org Received: (qmail 14464 invoked by uid 99); 27 Feb 2013 17:25:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2013 17:25:12 +0000 Date: Wed, 27 Feb 2013 17:25:12 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-4820) wsdl2js throws Exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-4820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13588533#comment-13588533 ] Daniel Kulp commented on CXF-4820: ---------------------------------- There is a bug in the error messages. The error SHOULD be: {code} SEVERE: Limitation: unsupported construct XmlSchemaChoice found in {gml_V4.1_Release}LinearRingMemberType. {code} as xs:choice constructs are not supported by the javascript client at this time. I'm cleaning up the Message.properties files in this area to make sure the error messages are properly displayed. > wsdl2js throws Exception > ------------------------ > > Key: CXF-4820 > URL: https://issues.apache.org/jira/browse/CXF-4820 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Affects Versions: 2.7.3 > Reporter: Venkatesh > Assignee: Daniel Kulp > Fix For: 2.7.4, 2.6.7, 2.5.10 > > Attachments: HAN_Server.wsdl > > > wsdl2java.bat works fine for the same wsdl file & generates all the java files. > But i want to use it in javascript. > >wsdl2js.bat -wv 1.2 -verbose HAN_Server.wsdl > wsdl2js -wv 1.2 -verbose HAN_Server.wsdl > wsdl2js - Apache CXF 2.6.6 > WSDLToJS Error : java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > org.apache.cxf.tools.common.ToolException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:308) > at org.apache.cxf.tools.wsdlto.javascript.JavaScriptContainer.execute(JavaScriptContainer.java:154) > at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103) > at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:67) > at org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScript.run(WSDLToJavaScript.java:60) > at org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScript.main(WSDLToJavaScript.java:97) > Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > at java.util.ArrayList.rangeCheck(ArrayList.java:604) > at java.util.ArrayList.get(ArrayList.java:382) > at org.apache.cxf.tools.wsdlto.javascript.JavaScriptContainer.execute(JavaScriptContainer.java:133) > at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:300) > ... 5 more > > > I get exactly the same error in 2.7.3 too. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira