Hi,
It deploys and publish the wsdl ok but throws the exception when a client
try execute a method of a service.
I use windows 2000, servicemix 3.1 and maven 2.0.4.
The full stack trace is:
2007-02-22 08:45:47,140 [jsr181-thread-1] ERROR DefaultFaultHandler
- Fault occurred!
java.lang.IllegalStateException: Current state not START_ELEMENT,
END_ELEMENT or ENTITY_REFERENCE
at
com.ctc.wstx.sr.BasicStreamReader.getLocalName(BasicStreamReader.java:708)
at
org.codehaus.xfire.util.stax.DepthXMLStreamReader.getLocalName(DepthXMLStreamReader.java:100)
at
org.codehaus.xfire.aegis.stax.ElementReader.<init>(ElementReader.java:58)
at
org.codehaus.xfire.aegis.stax.ElementReader.<init>(ElementReader.java:69)
at
org.apache.servicemix.jsr181.xfire.ServiceFactoryHelper$FixedJAXWSOperationBinding.readMessage(ServiceFactoryHelper.java:403)
at
org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
at
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
at
org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:110)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:593)
at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:595)
The configuration files are:
- xbean.xml (bus-http-su):
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:bus="http://bus.gtel.com"
xmlns:servicio="http://cliente.ws.servicio">
<http:endpoint service="bus:Bus"
endpoint="BusHttpPort"
role="consumer"
locationURI="http://servidor1:8192/bus/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
soap="true"
soapAction="enviar"/>
<http:endpoint service="servicio:ServicioWSService"
endpoint="ServicioWS"
role="provider"
locationURI="http://servidor2:8080/services/servicio"
soap="true"
soapAction="alta" * Tested also whitout this line
soapVersion="1.1"/> * Tested also whitout this line
</beans>
- xbean.xml (bus-jsr181-su):
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0"
xmlns:servicio="http://cliente.ws.servicio">
<jsr181:endpoint pojo="#bus"
wsdlResource="classpath:service.wsdl"
typeMapping="jaxb2"
annotations="jsr181"
style="document" />
<bean id="bus" class="com.gtel.bus.BusImpl">
<property name="servicio">
<jsr181:proxy context="#context"
type="servicio.ws.cliente.ServicioWS"
service="servicio:ServicioWSService" />
</property>
</bean>
</beans>
- BusImpl.java:
package com.gtel.bus;
import javax.jws.WebService;
import servicio.ws.cliente.Alta;
import sergicio.ws.cliente.ServicioWS;
@WebService(serviceName = "Bus", targetNamespace = "http://bus.gtel.com",
endpointInterface = "com.gtel.bus.BusPortType")
public class BusImpl
implements BusPortType
{
private ServicioWS servicio;
public void setServicio(ServicioWS servicio) {
this.servicio = servicio;
}
public void enviar(InformacionBus infBus)
throws BusException_Exception
{
servicio.alta(new Alta());
}
}
Thanks for your help!
Grretings,
Migue
gnodet wrote:
>
> Can you post the full stack trace and any code / config that
> might help to understand the problem ?
>
> On 2/21/07, migue <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>> I have implemented an example of Orchestration with JSR181 and I when run
>> it
>> throws the following exception:
>> java.lang.IllegalStateException: Current state not START_ELEMENT,
>> END_ELEMENT or ENTITY_REFERENCE
>> at
>> com.ctc.wstx.sr.BasicStreamReader.getLocalName(BasicStreamReader.java:708)
>> ...
>>
>> Any help?
>> Thanks a lot,
>> Migue
>> --
>> View this message in context:
>> http://www.nabble.com/java.lang.IllegalStateException%3A-Current-state-not-START_ELEMENT%2C-END_ELEMENT-or-ENTITY_REFERENCE-tf3268154s12049.html#a9085326
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Architect, LogicBlaze (http://www.logicblaze.com/)
> Blog: http://gnodet.blogspot.com/
>
>
--
View this message in context:
http://www.nabble.com/java.lang.IllegalStateException%3A-Current-state-not-START_ELEMENT%2C-END_ELEMENT-or-ENTITY_REFERENCE-tf3268154s12049.html#a9095882
Sent from the ServiceMix - User mailing list archive at Nabble.com.