Sure:

ERROR - DefaultFaultHandler            - Fault occurred!
org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested
exception is org.codehaus.xfire.fault.XFireFault: Error sending jbi exchange
org.codehaus.xfire.fault.XFireFault: Error sending jbi exchange
        at
org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
        at
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:30)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
        at org.codehaus.xfire.client.Client.invoke(Client.java:335)
        at
org.apache.servicemix.jsr181.xfire.JbiProxy$JAXWSJBIClient.invoke(JbiProxy.java:228)
        at
org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
        at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
        at
org.apache.servicemix.jsr181.xfire.JbiProxyFactoryBean$1.invoke(JbiProxyFactoryBean.java:76)
        at $Proxy0.findLectureXML(Unknown Source)
        at
org.meinbeispiel.testxmlfile.TestXmlFileImpl.getSomeLecture(TestXmlFileImpl.java:73)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:54)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(ServiceInvocationHandler.java:322)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:86)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(ServiceInvocationHandler.java:134)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:109)
        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:113)
        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:595)
        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:619)
Caused by: org.codehaus.xfire.XFireException: Error sending jbi exchange
        at
org.apache.servicemix.jsr181.xfire.JbiChannel.send(JbiChannel.java:155)
        at
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
        ... 32 more
Caused by: java.lang.NullPointerException: text can not be null
        at
org.apache.servicemix.jbi.jaxp.StringSource.<init>(StringSource.java:42)
        at
org.apache.servicemix.jsr181.xfire.JbiChannel.send(JbiChannel.java:136)
        ... 33 more

Adrian Co wrote:
> 
> Hi,
> 
> Can you post the error stack?
> 
> Bombjack wrote:
>> Hi,
>>
>> I'm new to the ServiceMix world and have been trying to get the following
>> scenario to work, but it keeps giving me trouble:
>>
>> -A web service called TestXmlFile in a jsr181 SU serves as a consumer.
>> -This web service calls some function provided by an external web service
>> named WebServiceESBunivis.
>>
>> I started by creating the WSDLs for the TestXmlFile and
>> WebServiceESBunivis,
>> and generated all the corresponding classes through the "mvn
>> generate-sources" command. The only class I then edited was
>> TestXmlFileImpl.java.
>>
>> So far, I am able to contact and get a response from TestXmlFile.
>> However,
>> as soon as TestXmlFile tries to call some function provided by the
>> external
>> WebServiceESBunivis, I'm getting the error messages "Could not invoke
>> service" and "Error sending JBI exchange" by xfire.
>>
>> Web service TestXmlFile is defined as:
>> -------------------------------------
>> @WebService(serviceName = "TestXmlFile", targetNamespace =
>> "http://meinBeispiel.org/testxmlfile";, endpointInterface =
>> "org.meinbeispiel.testxmlfile.LecturePortType")
>> public class TestXmlFileImpl
>>     implements LecturePortType
>> {
>>      
>>     private WebServiceESBunivisSoap webServiceESBunivis;
>>      
>>     public void setWebServiceESBunivis(WebServiceESBunivisSoap
>> webServiceESBunivis) {
>>         this.webServiceESBunivis = webServiceESBunivis;
>>     }
>>     
>>     
>>     public FindLectureResponse
>> getSomeLecture(org.meinbeispiel.testxmlfile.FindLectureRequest
>> FindLectureRequest) {
>>      
>> ----> String r = webServiceESBunivis.findLectureXML("Architecture");
>>
>>         FindLectureResponse rep = new FindLectureResponse();
>>         rep.setReturnString("test");
>>         return rep;
>> -------------------------------------
>>
>> The above arrow points out the line that keeps causing the error
>> messages.
>> I registered both services in the http xbean.xml and jsr181 xbean.xml
>> files
>> as follows:
>>
>> <!--HTTP SU-->
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0";
>>        xmlns:testfile="http://meinBeispiel.org/testxmlfile";
>>        xmlns:univis="http://univis.com";>
>>        
>>   <http:endpoint service="testfile:TestXmlFile"
>>                  endpoint="TestXmlFilePort"
>>                  role="consumer"
>>                  locationURI="http://localhost:8192/MeinBeispiel/";
>>                  soap="true" />             
>>     
>>   <http:endpoint service="univis:WebServiceESBunivis"
>>                  endpoint="WebServiceESBunivisSoap"
>>                  role="provider"
>>                 
>> locationURI="http://localhost:88/WebServiceESBunivis/WebServiceESBunivis/WebServiceESBunivis.asmx";
>>                  soap="true" />
>> </beans>
>>
>>
>> and
>>
>>
>> <!--JSR181 SU-->
>> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";
>>        xmlns:univis="http://univis.com";>
>>
>>     <jsr181:endpoint pojo="#testxmlfile"
>>                      wsdlResource="classpath:service.wsdl" 
>>                      typeMapping="jaxb2"
>>                      annotations="jsr181"
>>                      style="document" />
>>                      
>>   <bean id="testxmlfile"
>> class="org.meinbeispiel.testxmlfile.TestXmlFileImpl">
>>     <property name="webServiceESBunivis">
>>       <jsr181:proxy context="#context" 
>>                     type="com.univis.WebServiceESBunivisSoap"
>>                     service="univis:WebServiceESBunivis" />
>>     </property>
>>   </bean>
>>   
>> </beans>
>>
>>
>> I probably made a relatively simple mistake somewhere, but for the life
>> of
>> it I can't figure out exactly where.
>> Thanks in advance for your help,
>> Berny
>>
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Issues-with-simple-proxy-scenario-tf4022130s12049.html#a11424402
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to