axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Commented: (AXIS-1559) ArrayStoreException when a service returns an array
Date Mon, 20 Sep 2004 11:20:39 GMT
The following comment has been added to this issue:

     Author: Enrico Canardi
    Created: Mon, 20 Sep 2004 4:19 AM
       Body:
There was an error in the .wsdd file, not a bug.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1559?page=comments#action_53234

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1559

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1559
    Summary: ArrayStoreException when a service returns an array
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Enrico Canardi

    Created: Fri, 17 Sep 2004 8:50 AM
    Updated: Mon, 20 Sep 2004 4:19 AM
Environment: i386, Linux FC2, Tomcat 5.0.12, Axis 1.2Beta for Java, J2DK 1.4.1_01-b01.

Description:
--- The first version of the Web service, the jws source ---

http://aragorn/axis/LuceneService.jws?method=search&indexName=test2&searchString=brut*

results :

  <?xml version="1.0" encoding="UTF-8" ?> 
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <searchResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
- <searchReturn soapenc:arrayType="soapenc:string[3]" xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  <item xsi:type="soapenc:string">0</item> 
  <item xsi:type="soapenc:string">0</item> 
  <item xsi:type="soapenc:string">0</item> 
  </searchReturn>
  </searchResponse>
  </soapenv:Body>
  </soapenv:Envelope>

--- The deployed version ---

http://aragorn/axis/services/LuceneService?method=search&indexName=test2&searchString=brut*

  <?xml version="1.0" encoding="UTF-8" ?> 
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <searchResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
- <searchReturn soapenc:arrayType="ns1:ArrayOf_xsd_string[3]" xsi:type="soapenc:Array"
xmlns:ns1="http://aragorn/axis/services/LuceneService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  <item xsi:type="xsd:string">0</item> 
  <item xsi:type="xsd:string">0</item> 
  <item xsi:type="xsd:string">0</item> 
  </searchReturn>
  </searchResponse>
  </soapenv:Body>
  </soapenv:Envelope>

As you can see the soap responses are a bit different, the generated client works fine with
the jws version but throws this with the deployed one :

- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart).
Attachment support is disabled. 
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.ArrayStoreException
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace:java.lang.ArrayStoreException
	at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:413)
	at org.apache.axis.client.Call.invoke(Call.java:2488)
	at org.apache.axis.client.Call.invoke(Call.java:2317)
	at org.apache.axis.client.Call.invoke(Call.java:1774)
	at com.diapason.webclients.lucene.LuceneServiceSoapBindingStub.search(LuceneServiceSoapBindingStub.java:195)
	at com.diapason.webclients.lucene.LuceneClient.main(LuceneClient.java:25)

	{http://xml.apache.org/axis/}hostname:isildur

java.lang.ArrayStoreException
	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
	at org.apache.axis.client.Call.invoke(Call.java:1790)
	at com.diapason.webclients.lucene.LuceneServiceSoapBindingStub.search(LuceneServiceSoapBindingStub.java:195)
	at com.diapason.webclients.lucene.LuceneClient.main(LuceneClient.java:25)
Caused by: java.lang.ArrayStoreException
	at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:413)
	at org.apache.axis.client.Call.invoke(Call.java:2488)
	at org.apache.axis.client.Call.invoke(Call.java:2317)
	at org.apache.axis.client.Call.invoke(Call.java:1774)
	... 2 more





---------------------------------------------------------------------
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


Mime
View raw message