3 Replies Latest reply on May 17, 2006 12:08 PM by Ron Hulen

    java.lang.System.arraycopy problem

    Mark Lugert Newbie

      Running jboss AS 4.04 CR2 with JBoss WS GA jars/sar installed.

      I get the following error:

       [wstools] java.lang.NullPointerException
       [wstools] at java.lang.System.arraycopy(Native Method)
       [wstools] at org.apache.xerces.impl.xs.XSModelImpl.getAnnotations(Unknown Source)
       [wstools] at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.copyXSModel(WSSchemaUtils.java
      :737)
       [wstools] at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:201)
       [wstools] at org.jboss.ws.metadata.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:227)
       [wstools] at org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:118)
       [wstools] at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.ja
      va:145)
       [wstools] at org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(WSDLToJava.java:110)
       [wstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.jav
      a:322)
       [wstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
       [wstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
       [wstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
       [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
       [wstools] at org.apache.tools.ant.Task.perform(Task.java:364)
       [wstools] at org.apache.tools.ant.Target.execute(Target.java:341)
       [wstools] at org.apache.tools.ant.Target.performTasks(Target.java:369)
       [wstools] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
       [wstools] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
       [wstools] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:4
      0)
       [wstools] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
       [wstools] at org.apache.tools.ant.Main.runBuild(Main.java:668)
       [wstools] at org.apache.tools.ant.Main.startAnt(Main.java:187)
       [wstools] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
       [wstools] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      


      When I try to use the following WSDL that is generated by the server:

      <definitions name='KeyManagementEndpointService' targetNamespace='http://keymanagement.jbossnetwork.jboss.com/jaws' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://keymanagement.jbossnetwork.jboss.com/jaws' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
       <types>
       <schema elementFormDefault='qualified' targetNamespace='http://keymanagement.jbossnetwork.jboss.com/jaws' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='http://keymanagement.jbossnetwork.jboss.com/jaws' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
       <complexType name='List'>
       <sequence>
       <element name='empty' type='boolean'/>
       </sequence>
       </complexType>
       </schema>
       </types>
       <message name='KeyManagementEndpoint_getLastIDForPartnerResponse'>
       <part name='result' type='xsd:double'/>
       </message>
       <message name='KeyManagementEndpoint_getKeyBatchesForPartnerCode'>
       <part name='String_1' type='xsd:string'/>
       </message>
       <message name='KeyManagementEndpoint_getLastIDForPartner'>
       <part name='String_1' type='xsd:string'/>
       </message>
       <message name='KeyManagementEndpoint_getKeyBatchesForPartnerCodeResponse'>
       <part name='result' type='tns:List'/>
       </message>
       <portType name='KeyManagementEndpoint'>
       <operation name='getKeyBatchesForPartnerCode' parameterOrder='String_1'>
       <input message='tns:KeyManagementEndpoint_getKeyBatchesForPartnerCode'/>
       <output message='tns:KeyManagementEndpoint_getKeyBatchesForPartnerCodeResponse'/>
       </operation>
       <operation name='getLastIDForPartner' parameterOrder='String_1'>
       <input message='tns:KeyManagementEndpoint_getLastIDForPartner'/>
       <output message='tns:KeyManagementEndpoint_getLastIDForPartnerResponse'/>
       </operation>
       </portType>
       <binding name='KeyManagementEndpointBinding' type='tns:KeyManagementEndpoint'>
       <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
       <operation name='getKeyBatchesForPartnerCode'>
       <soap:operation soapAction=''/>
       <input>
       <soap:body namespace='http://keymanagement.jbossnetwork.jboss.com/jaws' use='literal'/>
       </input>
       <output>
       <soap:body namespace='http://keymanagement.jbossnetwork.jboss.com/jaws' use='literal'/>
       </output>
       </operation>
       <operation name='getLastIDForPartner'>
       <soap:operation soapAction=''/>
       <input>
       <soap:body namespace='http://keymanagement.jbossnetwork.jboss.com/jaws' use='literal'/>
       </input>
       <output>
       <soap:body namespace='http://keymanagement.jbossnetwork.jboss.com/jaws' use='literal'/>
       </output>
       </operation>
       </binding>
       <service name='KeyManagementEndpointService'>
       <port binding='tns:KeyManagementEndpointBinding' name='KeyManagementEndpointPort'>
       <soap:address location='http://gamemaster:8080/keymanagement/KeyManagementBean'/>
       </port>
       </service>
      </definitions>