Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WTP 1.5 Problem with a webservice ... maybe because using a multidimensional string[][] as parameter
WTP 1.5 Problem with a webservice ... maybe because using a multidimensional string[][] as parameter [message #194587] Sun, 17 June 2007 15:38 Go to next message
Eclipse UserFriend
Originally posted by: ck.christiankiefer.de

Hi,

since a week I have the problem that I built a view webservices (Bottom up)
using the wtp 1.5...

Most of them work every time - but one of them (with the String[][]) is just
working directly after the export till I restart the server...

If I start the server without using the wizard before, all services work...
just the one tells me

IWAB0135E An unexpected error has occured.
IOException
Connection refused: connect.

Exporting a war file brings the same error on tomcat (5.5.23)...

What am I doing wrong???

Please help...

Chris
Re: WTP 1.5 Problem with a webservice ... maybe because using a multidimensional string[][] as param [message #194610 is a reply to message #194587] Mon, 18 June 2007 07:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ck.christiankiefer.de

....

and I get the following error:

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userExcept ion

faultSubcode:

faultString: java.lang.ArrayStoreException: [Ljava.lang.Object;

faultActor:

faultNode:

faultDetail:

{http://xml.apache.org/axis/}stackTrace:java.lang.ArrayStore Exception:
[Ljava.lang.Object;

at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:492)

at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:485)

at
org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:118)

at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)

at
org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)

at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453)

at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 )

at org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

at
org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:269)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:188)

at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:210)

at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:174)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:127)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:117)

at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:108)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:151)

at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:870)

at
org.apache.coyote.http11.Http11BaseProtocol$Http11Connection Handler.processConnection(Http11BaseProtocol.java:665)

at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo lTcpEndpoint.java:528)

at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:81)

at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:685)

at java.lang.Thread.run(Unknown Source)

{http://xml.apache.org/axis/}hostname:your-0dnuy6zo6n

{http://xml.apache.org/axis/}isRuntimeException:true

java.lang.ArrayStoreException: [Ljava.lang.Object;

at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:333)

at
org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)

at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453)

at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 )

at org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

at
org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:269)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:188)

at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:210)

at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:174)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:127)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:117)

at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:108)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:151)

at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:870)

at
org.apache.coyote.http11.Http11BaseProtocol$Http11Connection Handler.processConnection(Http11BaseProtocol.java:665)

at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo lTcpEndpoint.java:528)

at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:81)

at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:685)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.ArrayStoreException: [Ljava.lang.Object;

at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:492)

at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:485)

at
org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:118)

at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)

.... 23 more
Re: WTP 1.5 Problem with a webservice ... maybe because using a multidimensional string[][] as param [message #194645 is a reply to message #194610] Mon, 18 June 2007 15:39 Go to previous messageGo to next message
Kelvin Cheung is currently offline Kelvin CheungFriend
Messages: 10
Registered: July 2009
Junior Member
Hi Christian,

It might not be very easy to pinpoint the problem with the information
provided. But from the stacktrace, it seems to me that the Apache Axis
engine has some problems converting the message into the proper type.

As an experiment, I have tried a simple bean with a simple method:

public int testArray(String[][] args) {
if(args==null){
return 0;
}
return args.length;
}

After running the WTP Web service wizard with all the default options, I
had no problem invoking the Web service using the Web service explorer.

These are some of the possibilities:
1. What kind of Web service client you are using? It is possible that
the SOAP request created by the client is not compatible with the Apache
Axis runtime.
2. Do you think you can re-produce the problem using a standalone
setting? In other words, just use the Apache Axis emitter and a tomcat
server (without WTP).

Regards,

Kelvin


Christian Kiefer wrote:
> ...
>
> and I get the following error:
>
> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userExcept ion
>
> faultSubcode:
>
> faultString: java.lang.ArrayStoreException: [Ljava.lang.Object;
>
> faultActor:
>
> faultNode:
>
> faultDetail:
>
> {http://xml.apache.org/axis/}stackTrace:java.lang.ArrayStore Exception:
> [Ljava.lang.Object;
>
> at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:492)
>
> at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:485)
>
> at
> org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:118)
>
> at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
>
> at
> org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
>
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>
> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453)
>
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 )
>
> at org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:269)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:188)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:210)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:174)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:127)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:117)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:108)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:151)
>
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:870)
>
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11Connection Handler.processConnection(Http11BaseProtocol.java:665)
>
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo lTcpEndpoint.java:528)
>
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:81)
>
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:685)
>
> at java.lang.Thread.run(Unknown Source)
>
> {http://xml.apache.org/axis/}hostname:your-0dnuy6zo6n
>
> {http://xml.apache.org/axis/}isRuntimeException:true
>
> java.lang.ArrayStoreException: [Ljava.lang.Object;
>
> at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
>
> at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:333)
>
> at
> org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
>
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>
> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453)
>
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 )
>
> at org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:269)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:188)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:210)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:174)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:127)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:117)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:108)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:151)
>
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:870)
>
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11Connection Handler.processConnection(Http11BaseProtocol.java:665)
>
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo lTcpEndpoint.java:528)
>
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:81)
>
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:685)
>
> at java.lang.Thread.run(Unknown Source)
>
> Caused by: java.lang.ArrayStoreException: [Ljava.lang.Object;
>
> at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:492)
>
> at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:485)
>
> at
> org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:118)
>
> at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
>
> ... 23 more
>
>
Re: WTP 1.5 Problem with a webservice ... maybe because using a multidimensional string[][] as param [message #194710 is a reply to message #194645] Tue, 19 June 2007 22:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ck.christiankiefer.de

Hi Kelvin,

after the webservice wizard I also hand no problem... b
Re: WTP 1.5 Problem with a webservice ... maybe because using a multidimensional string[][] as param [message #194737 is a reply to message #194710] Thu, 21 June 2007 00:07 Go to previous messageGo to next message
Kelvin Cheung is currently offline Kelvin CheungFriend
Messages: 10
Registered: July 2009
Junior Member
Hi Christian,

I think I could reproduce your issues now. After restarting the Tomcat
server in Eclipse, making the same invocation by the Web service
explorer would result in the following SOAP fault. Are you getting
similar issues?

<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>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXException: Found character data inside an
array element while deserializing</faultstring>
<detail>
<ns1:hostname
xmlns:ns1="http://xml.apache.org/axis/">hostname</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

I think I need to bring this to the WTP Axis Web service wizard person
and let her decide whether this is a problem with the runtime or the WTP
Axis WS wizard is doing something special. Will get back to you on this.

Regards,

Kelvin

Christian Kiefer wrote:
> Hi Kelvin,
>
> after the webservice wizard I also hand no problem... bút after restarting
> the server without running the wizard before it works no more... don't know
> if the wizzard deploys something special or somethings missing on my tomcat
> server?
>
> As Client I test with flex(flash) - and also the webservice explorer - the
> same problem with both... working after the wizard... not without using the
> wizard (direktly running on server or starting the server in eclipse without
> using the wizard before)...
>
> I don't understand it... do I have to install something more??? Why does it
> works only together with the wizard...?
>
> I'm getting crazy,
>
> Chris
>
>
>
>
> "Kelvin Cheung" <kelvinhc@ca.ibm.com> schrieb im Newsbeitrag
> news:f568p4$idu$1@build.eclipse.org...
>> Hi Christian,
>>
>> It might not be very easy to pinpoint the problem with the information
>> provided. But from the stacktrace, it seems to me that the Apache Axis
>> engine has some problems converting the message into the proper type.
>>
>> As an experiment, I have tried a simple bean with a simple method:
>>
>> public int testArray(String[][] args) {
>> if(args==null){
>> return 0;
>> }
>> return args.length;
>> }
>>
>> After running the WTP Web service wizard with all the default options, I
>> had no problem invoking the Web service using the Web service explorer.
>>
>> These are some of the possibilities:
>> 1. What kind of Web service client you are using? It is possible that the
>> SOAP request created by the client is not compatible with the Apache Axis
>> runtime.
>> 2. Do you think you can re-produce the problem using a standalone setting?
>> In other words, just use the Apache Axis emitter and a tomcat server
>> (without WTP).
>>
>> Regards,
>>
>> Kelvin
>>
>>
>> Christian Kiefer wrote:
>>> ...
>>>
>>> and I get the following error:
>>>
>>> faultCode:
>>> {http://schemas.xmlsoap.org/soap/envelope/}Server.userExcept ion
>>>
>>> faultSubcode:
>>>
>>> faultString: java.lang.ArrayStoreException: [Ljava.lang.Object;
>>>
>>> faultActor:
>>>
>>> faultNode:
>>>
>>> faultDetail:
>>>
>>> {http://xml.apache.org/axis/}stackTrace:java.lang.ArrayStore Exception:
>>> [Ljava.lang.Object;
>>>
>>> at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:492)
>>>
>>> at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:485)
>>>
>>> at
>>> org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:118)
>>>
>>> at
>>> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
>>>
>>> at
>>> org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
>>>
>>> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>>>
>>> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>>>
>>> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453)
>>>
>>> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 )
>>>
>>> at
>>> org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)
>>>
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>>>
>>> at
>>> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>>>
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:269)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:188)
>>>
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:210)
>>>
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:174)
>>>
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:127)
>>>
>>> at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:117)
>>>
>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:108)
>>>
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:151)
>>>
>>> at
>>> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:870)
>>>
>>> at
>>> org.apache.coyote.http11.Http11BaseProtocol$Http11Connection Handler.processConnection(Http11BaseProtocol.java:665)
>>>
>>> at
>>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo lTcpEndpoint.java:528)
>>>
>>> at
>>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:81)
>>>
>>> at
>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:685)
>>>
>>> at java.lang.Thread.run(Unknown Source)
>>>
>>> {http://xml.apache.org/axis/}hostname:your-0dnuy6zo6n
>>>
>>> {http://xml.apache.org/axis/}isRuntimeException:true
>>>
>>> java.lang.ArrayStoreException: [Ljava.lang.Object;
>>>
>>> at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
>>>
>>> at
>>> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:333)
>>>
>>> at
>>> org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
>>>
>>> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>>>
>>> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>>>
>>> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453)
>>>
>>> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 )
>>>
>>> at
>>> org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)
>>>
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>>>
>>> at
>>> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>>>
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:269)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:188)
>>>
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:210)
>>>
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:174)
>>>
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:127)
>>>
>>> at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:117)
>>>
>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:108)
>>>
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:151)
>>>
>>> at
>>> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:870)
>>>
>>> at
>>> org.apache.coyote.http11.Http11BaseProtocol$Http11Connection Handler.processConnection(Http11BaseProtocol.java:665)
>>>
>>> at
>>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo lTcpEndpoint.java:528)
>>>
>>> at
>>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:81)
>>>
>>> at
>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:685)
>>>
>>> at java.lang.Thread.run(Unknown Source)
>>>
>>> Caused by: java.lang.ArrayStoreException: [Ljava.lang.Object;
>>>
>>> at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:492)
>>>
>>> at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:485)
>>>
>>> at
>>> org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:118)
>>>
>>> at
>>> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
>>>
>>> ... 23 more
>>>
>
Re: WTP 1.5 Problem with a webservice ... maybe because using a multidimensional string[][] as param [message #194767 is a reply to message #194737] Thu, 21 June 2007 13:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ck.christiankiefer.de

THE EXACTLY SAME PROBLEM!!!

So... do you/anyone have an idea to fix this in the code?

1000 Thanks...

Chris
Re: WTP 1.5 Problem with a webservice ... maybe because using a multidimensional string[][] as param [message #194775 is a reply to message #194767] Thu, 21 June 2007 14:43 Go to previous messageGo to next message
Kelvin Cheung is currently offline Kelvin CheungFriend
Messages: 10
Registered: July 2009
Junior Member
Hi Christian,

After discussing this issue with the person in charge of the Axis WTP
Web service wizard, she says that this is a problem in the Axis engine
and would need to report through the
http://issues.apache.org/jira/secure/IssueNavigator.jspa? system. There
was nothing much she could do.

The experiment we went through was to create a bean with 2 methods:

package test;
public class Echo {
public int testArray(String[][] args) {
if(args==null){
return 0;
}
return args.length;
}

public String echo(String text) {
return text;
}
}

We only have problem invoking the testArray method after restarting
tomcat. We also encountered the same problem if we export the Web
project and ran it standalone on a tomcat server.

Regards,

Kelvin

Christian Kiefer wrote:
> THE EXACTLY SAME PROBLEM!!!
>
> So... do you/anyone have an idea to fix this in the code?
>
> 1000 Thanks...
>
> Chris
>
>
Re: WTP 1.5 Problem with a webservice ... maybe because using a multidimensional string[][] as param [message #194783 is a reply to message #194775] Thu, 21 June 2007 15:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ck.christiankiefer.de

Thanks a lot...

Because I'm really new to WebServices let me ask how I can achieve my goal
under this circumstances...

I want to pass this multidimensional array... at least its

String [2-5][2]

or

{
{Answer1, false}
{Answer2, false}
{Answer3, false}
{Answer4, false}
{Answer5, true}
}

just 2 Answers required...

can I realize this in some other way?

Thanks a lot

Chris



"Kelvin Cheung" <kelvinhc@ca.ibm.com> schrieb im Newsbeitrag
news:f5e2jj$b8s$1@build.eclipse.org...
> Hi Christian,
>
> After discussing this issue with the person in charge of the Axis WTP Web
> service wizard, she says that this is a problem in the Axis engine and
> would need to report through the
> http://issues.apache.org/jira/secure/IssueNavigator.jspa? system. There
> was nothing much she could do.
>
> The experiment we went through was to create a bean with 2 methods:
>
> package test;
> public class Echo {
> public int testArray(String[][] args) {
> if(args==null){
> return 0;
> }
> return args.length;
> }
>
> public String echo(String text) {
> return text;
> }
> }
>
> We only have problem invoking the testArray method after restarting
> tomcat. We also encountered the same problem if we export the Web project
> and ran it standalone on a tomcat server.
>
> Regards,
>
> Kelvin
>
> Christian Kiefer wrote:
>> THE EXACTLY SAME PROBLEM!!!
>>
>> So... do you/anyone have an idea to fix this in the code?
>>
>> 1000 Thanks...
>>
>> Chris
>>
Re: WTP 1.5 Problem with a webservice ... maybe because using a multidimensional string[][] as param [message #194914 is a reply to message #194783] Mon, 25 June 2007 15:17 Go to previous message
Kelvin Cheung is currently offline Kelvin CheungFriend
Messages: 10
Registered: July 2009
Junior Member
Hi Christian,

I am not sure whether this is very feasible in your case or not, can you
create a wrapper class for each String[2]?

I tried this in my environment:

package test.data;

public class QuestionResult {
private String answerName;
private String answerText;
public String getAnswerName() {
return answerName;
}
public void setAnswerName(String answerName) {
this.answerName = answerName;
}
public String getAnswerText() {
return answerText;
}
public void setAnswerText(String answerText) {
this.answerText = answerText;
}
}


package test;

import test.data.AnswerResult;

public class TestImpl {
public void evaluate(QuestionResult ar[]) {
System.out.println(ar.length);
}
}


And this seems to work after restart. But as I said before, this
implementation may not suit your requirements.

Regards,

Kelvin

Christian Kiefer wrote:
> Thanks a lot...
>
> Because I'm really new to WebServices let me ask how I can achieve my goal
> under this circumstances...
>
> I want to pass this multidimensional array... at least its
>
> String [2-5][2]
>
> or
>
> {
> {Answer1, false}
> {Answer2, false}
> {Answer3, false}
> {Answer4, false}
> {Answer5, true}
> }
>
> just 2 Answers required...
>
> can I realize this in some other way?
>
> Thanks a lot
>
> Chris
>
>
>
> "Kelvin Cheung" <kelvinhc@ca.ibm.com> schrieb im Newsbeitrag
> news:f5e2jj$b8s$1@build.eclipse.org...
>> Hi Christian,
>>
>> After discussing this issue with the person in charge of the Axis WTP Web
>> service wizard, she says that this is a problem in the Axis engine and
>> would need to report through the
>> http://issues.apache.org/jira/secure/IssueNavigator.jspa? system. There
>> was nothing much she could do.
>>
>> The experiment we went through was to create a bean with 2 methods:
>>
>> package test;
>> public class Echo {
>> public int testArray(String[][] args) {
>> if(args==null){
>> return 0;
>> }
>> return args.length;
>> }
>>
>> public String echo(String text) {
>> return text;
>> }
>> }
>>
>> We only have problem invoking the testArray method after restarting
>> tomcat. We also encountered the same problem if we export the Web project
>> and ran it standalone on a tomcat server.
>>
>> Regards,
>>
>> Kelvin
>>
>> Christian Kiefer wrote:
>>> THE EXACTLY SAME PROBLEM!!!
>>>
>>> So... do you/anyone have an idea to fix this in the code?
>>>
>>> 1000 Thanks...
>>>
>>> Chris
>>>
>
Previous Topic:WTP and IBM Workplace Applications
Next Topic:Where can I get javax.wsdl?
Goto Forum:
  


Current Time: Fri Mar 29 04:46:34 GMT 2024

Powered by FUDForum. Page generated in 0.03656 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top