You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ax...@ws.apache.org on 2004/10/15 16:35:52 UTC

[jira] Closed: (AXIS-1559) ArrayStoreException when a service returns an array

Message:

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Fri, 15 Oct 2004 7:34 AM

mark as invalid as per Enrico's comments.
---------------------------------------------------------------------
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: Closed
   Priority: Major
 Resolution: INVALID

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Enrico Canardi

    Created: Fri, 17 Sep 2004 8:50 AM
    Updated: Fri, 15 Oct 2004 7:34 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