This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 130967 - IndexOutOfBoundsException when Creating JAX-WS client from WSDL
Summary: IndexOutOfBoundsException when Creating JAX-WS client from WSDL
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Client (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-25 04:25 UTC by cezariusz
Modified: 2008-03-25 11:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 6812


Attachments
WSDL (4.78 KB, text/xml)
2008-03-25 04:26 UTC, cezariusz
Details
Imported objects (3.92 KB, text/xml)
2008-03-25 04:27 UTC, cezariusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2008-03-25 04:25:14 UTC
Build: NetBeans IDE 6.0 Beta 1 (Build 200709141330)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_01-ea-b03
OS: Linux, 2.6.18.8-0.5-default, amd64
User comments: 
STACKTRACE: (first 10 lines)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.RangeCheck(ArrayList.java:547)
        at java.util.ArrayList.get(ArrayList.java:322)
        at org.netbeans.modules.websvc.spi.jaxws.client.ProjectJAXWSClientSupport$1.modelCreated
(ProjectJAXWSClientSupport.java:175)
        at org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler.fireModelCreated(WsdlModeler.java:241)
        at org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler.access$200(WsdlModeler.java:50)
        at org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler$1.run(WsdlModeler.java:76)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 1 cezariusz 2008-03-25 04:26:17 UTC
Created attachment 58951 [details]
WSDL
Comment 2 cezariusz 2008-03-25 04:27:23 UTC
Created attachment 58952 [details]
Imported objects
Comment 3 Exceptions Reporter 2008-03-25 11:22:41 UTC
This issue has already 10 duplicates 
Comment 4 Milan Kuchtiak 2008-03-25 11:45:13 UTC
Fixed:
http://hg.netbeans.org/main?cmd=changeset;node=b16e42fb8e7a

Note: the service port is declared as document/literal but message-parts refer to xsd:types not to xsd:elements.

These are warnings from wsimport :

[WARNING] ignoring operation "wyslij": message part does not refer to a schema element declaration
  line 49 of
file:/space/home/mkuchtiak/NetBeansProjects/WebApplication2/src/conf/xml-resources/web-service-references/odbiorca_internal/wsdl/odbiorca_internal.wsdl

[WARNING] Port "odbiorcaInternalBinding" does not contain any usable operations
  line 96 of
file:/space/home/mkuchtiak/NetBeansProjects/WebApplication2/src/conf/xml-resources/web-service-references/odbiorca_internal/wsdl/odbiorca_internal.wsdl

[WARNING] Service "pkOdbiorcaInternalService" does not contain any usable ports. try running wsimport with -extension
switch.
  line 95 of
file:/space/home/mkuchtiak/NetBeansProjects/WebApplication2/src/conf/xml-resources/web-service-references/odbiorca_internal/wsdl/odbiorca_internal.wsdl