cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "blcoalla (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-5755) java.lang.ArrayIndexOutOfBoundsException: 2
Date Wed, 21 May 2014 11:21:41 GMT
blcoalla created CXF-5755:
-----------------------------

             Summary: java.lang.ArrayIndexOutOfBoundsException: 2
                 Key: CXF-5755
                 URL: https://issues.apache.org/jira/browse/CXF-5755
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.7.11
         Environment: Mule 
            Reporter: blcoalla


My project run MAVEN Mule with CXF Service which implement 2 clases.

Mule Flow:

 <flow name="prueba-wsdlFlow1" doc:name="prueba-wsdlFlow1">
        <http:inbound-endpoint exchange-pattern="request-response" address="http://localhost:8082/hello"
 doc:name="HTTP"/>
        <mule-ss:http-security-filter realm="mule-realm" />
        <cxf:jaxws-service doc:name="SOAP" serviceClass="training.IHelloWorld"/>
        <component class="training.HelloWorldImpl" doc:name="Java"/>
        
    </flow>


HelloWorldImp: 

package training;

import javax.jws.WebService;
 
@WebService 
public class HelloWorldImpl implements IHelloWorld {
 
  @Override
	public String sayHi(String name) {
		return "Hello " + name + "!";
	}
 
}

IHelloWorld generated by WSDL2JAVA codegen plugin: 

@WebService(targetNamespace = "http://training/", name = "IHelloWorld")
@XmlSeeAlso({ObjectFactory.class})
public interface IHelloWorld {

    @WebResult(name = "return", targetNamespace = "")
    @RequestWrapper(localName = "sayHi", targetNamespace = "http://training/", className =
"training.SayHi")
    @WebMethod
    @ResponseWrapper(localName = "sayHiResponse", targetNamespace = "http://training/", className
= "training.SayHiResponse")
    public java.lang.String sayHi(
        @WebParam(name = "text", targetNamespace = "")
        java.lang.String text
    );
}


Initializing WebService with HelloWorld and HelloWorldImpl i get the following trace:


ERROR 2014-05-21 12:17:41,518 [main] org.mule.module.launcher.application.DefaultMuleApplication:
null
java.lang.ArrayIndexOutOfBoundsException: 2
at org.apache.cxf.ws.policy.PolicyAnnotationListener.handleEvent(PolicyAnnotationListener.java:112)
at org.apache.cxf.service.factory.AbstractServiceFactoryBean.sendEvent(AbstractServiceFactoryBean.java:72)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:345)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServerFactoryBean.java:179)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:252)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:147)
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:205)
at org.mule.module.cxf.builder.AbstractInboundMessageProcessorBuilder.build(AbstractInboundMessageProcessorBuilder.java:210)
at org.mule.module.cxf.builder.AbstractInboundMessageProcessorBuilder.build(AbstractInboundMessageProcessorBuilder.java:66)
at org.mule.module.cxf.config.FlowConfiguringMessageProcessor.initialise(FlowConfiguringMessageProcessor.java:96)
at org.mule.processor.chain.AbstractMessageProcessorChain.initialise(AbstractMessageProcessorChain.java:83)
at org.mule.construct.AbstractFlowConstruct.initialiseIfInitialisable(AbstractFlowConstruct.java:318)
at org.mule.construct.AbstractPipeline.doInitialise(AbstractPipeline.java:212)
at org.mule.construct.AbstractFlowConstruct$1.onTransition(AbstractFlowConstruct.java:113)
at org.mule.construct.AbstractFlowConstruct$1.onTransition(AbstractFlowConstruct.java:107)
at org.mule.lifecycle.AbstractLifecycleManager.invokePhase(AbstractLifecycleManager.java:141)
at org.mule.construct.FlowConstructLifecycleManager.fireInitialisePhase(FlowConstructLifecycleManager.java:81)
at org.mule.construct.AbstractFlowConstruct.initialise(AbstractFlowConstruct.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message