You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Cybexion <cy...@email.de> on 2007/12/11 11:54:14 UTC

IndexOutOfBoundsException in JbiOperationInterceptor

Hello,

I'm new to SM and created my first test based on cxf wsdl first.
The environment I'm using is: XP, Java6, SM 3.2.1 standalone
For my test, I created a bc, se and sa similar to the wsdl first example.
However, I'm using my own WSDL, XSL  and Java class. Everything gets build
fine and event the deployment works fine, too.
I can also lookup the WSDL using the url.
However, when i try to send my own soap request (which contains headed and
body info) using a modified version of client.html, I get the following
response:

STATUS: 500
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Index:
0, Size: 0</faultstring></soap:Fault></soap:Body></soap:Envelope>


The log file shows the following:
org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
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.apache.servicemix.cxfbc.interceptors.JbiOperationInterceptor.handleMessage(JbiOperationInterceptor.java:72)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
        at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:268)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:224)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:313)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)


Anyone having an idea what could have gone wrong?
I already tried to debug the code but looking at
JbiOperationInterceptor.java:72 does not really help me.

Thanks in advance!!!






-- 
View this message in context: http://www.nabble.com/IndexOutOfBoundsException-in-JbiOperationInterceptor-tp14271134s12049p14271134.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: IndexOutOfBoundsException in JbiOperationInterceptor

Posted by Cybexion <cy...@email.de>.
It's working now. Problem was a misconfigured WSDL. However, as I did not
check it in during my tests, I can't say exactly what the problem was :-(

Thanks for the reply. 
If I figure it out, what the real problem was, I will post it here.

Cybexion




Freeman Fang wrote:
> 
> Would you please append your wsdl and soap request?
> 
> Freeman
> 
> Cybexion wrote:
>> Hello,
>>
>> I'm new to SM and created my first test based on cxf wsdl first.
>> The environment I'm using is: XP, Java6, SM 3.2.1 standalone
>> For my test, I created a bc, se and sa similar to the wsdl first example.
>> However, I'm using my own WSDL, XSL  and Java class. Everything gets
>> build
>> fine and event the deployment works fine, too.
>> I can also lookup the WSDL using the url.
>> However, when i try to send my own soap request (which contains headed
>> and
>> body info) using a modified version of client.html, I get the following
>> response:
>>
>> STATUS: 500
>> <soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Index:
>> 0, Size: 0</faultstring></soap:Fault></soap:Body></soap:Envelope>
>>
>>
>> The log file shows the following:
>> org.apache.cxf.phase.PhaseInterceptorChain doIntercept
>> INFO: Interceptor has thrown exception, unwinding now
>> 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.apache.servicemix.cxfbc.interceptors.JbiOperationInterceptor.handleMessage(JbiOperationInterceptor.java:72)
>>         at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
>>         at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
>>         at
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:268)
>>         at
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:224)
>>         at
>> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54)
>>         at
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
>>         at
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
>>         at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>>         at org.mortbay.jetty.Server.handle(Server.java:313)
>>         at
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
>>         at
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
>>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
>>         at
>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
>>         at
>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>>         at
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
>>         at
>> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
>>
>>
>> Anyone having an idea what could have gone wrong?
>> I already tried to debug the code but looking at
>> JbiOperationInterceptor.java:72 does not really help me.
>>
>> Thanks in advance!!!
>>
>>
>>
>>
>>
>>
>>   
> 
> 

-- 
View this message in context: http://www.nabble.com/IndexOutOfBoundsException-in-JbiOperationInterceptor-tp14271134s12049p14290438.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: IndexOutOfBoundsException in JbiOperationInterceptor

Posted by Freeman Fang <fr...@gmail.com>.
Would you please append your wsdl and soap request?

Freeman

Cybexion wrote:
> Hello,
>
> I'm new to SM and created my first test based on cxf wsdl first.
> The environment I'm using is: XP, Java6, SM 3.2.1 standalone
> For my test, I created a bc, se and sa similar to the wsdl first example.
> However, I'm using my own WSDL, XSL  and Java class. Everything gets build
> fine and event the deployment works fine, too.
> I can also lookup the WSDL using the url.
> However, when i try to send my own soap request (which contains headed and
> body info) using a modified version of client.html, I get the following
> response:
>
> STATUS: 500
> <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Index:
> 0, Size: 0</faultstring></soap:Fault></soap:Body></soap:Envelope>
>
>
> The log file shows the following:
> org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> 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.apache.servicemix.cxfbc.interceptors.JbiOperationInterceptor.handleMessage(JbiOperationInterceptor.java:72)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
>         at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
>         at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:268)
>         at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:224)
>         at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54)
>         at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:313)
>         at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
>         at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>         at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
>         at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
>
>
> Anyone having an idea what could have gone wrong?
> I already tried to debug the code but looking at
> JbiOperationInterceptor.java:72 does not really help me.
>
> Thanks in advance!!!
>
>
>
>
>
>
>