Hi Freeman,
Actually i solved that endpoint problem.What's happening in the sense
after loading my component
into servicemix i have verified logs of my compoent hence it is looking for
(PersonServiceService):
DEBUG - CxfSeComponent - Querying service description for
ServiceEndpoint[service={http://servicemix.in2m.com/samples/pojo}PersonServiceService,endpoint=PersonServicePort]
DEBUG - CxfSeComponent - No description found for
{http://servicemix.in2m.com/samples/pojo}PersonServiceService:PersonServicePort
DEBUG - WSDL1Processor - Endpoint
ServiceEndpoint[service={http://servicemix.in2m.com/samples/pojo}PersonServiceService,endpoint=PersonServicePort]
has no service description
DEBUG - CxfSeComponent - Querying service description for
ServiceEndpoint[service={http://servicemix.in2m.com/samples/pojo}PersonServiceService,endpoint=PersonServicePort]
DEBUG - CxfSeComponent - No description found for
{http://servicemix.in2m.com/samples/pojo}PersonServiceService:PersonServicePort
DEBUG - WSDL2Processor - Endpoint
ServiceEndpoint[service={http://servicemix.in2m.com/samples/pojo}PersonServiceService,endpoint=PersonServicePort]
has no service description
And my HTTP SU xbean.xml file. service is pointing to --->
targetService="person:PersonService"
So i changed it into targetService="person:PersonServiceService"
Now, Actually i can send message to HTTP SU, but after processing HTTP SU
and reaching to CXF-SE
component its failing to get response back. (i am posting some of the logs)
DEBUG - HttpComponent - Created correlation id:
ID:192.168.2.53-11a050cf2a8-4:0
DEBUG - DeliveryChannelImpl - Send
ID:192.168.2.53-11a050cf2a8-4:0 in DeliveryChannel{servicemix-http}
DEBUG - SedaFlow - Called Flow send
DEBUG - ConsumerProcessor - Suspending continuation for
exchange: ID:192.168.2.53-11a050cf2a8-4:0
DEBUG - SedaQueue -
[EMAIL PROTECTED] dequeued
exchange: InOut[
id: ID:192.168.2.53-11a050cf2a8-4:0
status: Active
role: provider
service: {http://servicemix.in2m.com/samples/pojo}PersonServiceService
endpoint: PersonServicePort
operation: {http://servicemix.in2m.com/samples/pojo/types}GetPerson
in: <?xml version="1.0" encoding="UTF-8"?><tns:GetPerson
xmlns:tns="http://servicemix.in2m.com/samples/pojo/types"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<tns:personId>world</tns:personId>
</tns:GetPerson>
]
DEBUG - CxfSeComponent - Received exchange: status: Active,
role: provider
DEBUG - CxfSeComponent - Retrieved correlation id:
ID:192.168.2.53-11a050cf2a8-4:0
DEBUG - DefaultListableBeanFactory - Returning cached instance of
singleton bean 'org.apache.cxf.transport.jbi.JBITransportFactory'
ERROR - CxfSeComponent - Error processing exchange InOut[
id: ID:192.168.2.53-11a050cf2a8-4:0
status: Active
role: provider
service: {http://servicemix.in2m.com/samples/pojo}PersonServiceService
endpoint: PersonServicePort
operation: {http://servicemix.in2m.com/samples/pojo/types}GetPerson
in: <?xml version="1.0" encoding="UTF-8"?><tns:GetPerson
xmlns:tns="http://servicemix.in2m.com/samples/pojo/types"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<tns:personId>world</tns:personId>
</tns:GetPerson>
]
java.lang.NullPointerException
at
org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:180)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
And this is my CXF - SE xbean.xml file :
-----------------------------------
<cxfse:endpoint>
<cxfse:pojo>
<bean class="com.in2m.servicemix.samples.pojo.PersonService" />
</cxfse:pojo>
</cxfse:endpoint>
And i am having pojo structure as:
@WebService(name = "PersonService", targetNamespace =
"http://servicemix.in2m.com/samples/pojo")
public class PersonService implements Person {
public GetPersonResponse getPerson(GetPerson payload) {
// I am having my response back here
}
What could be the problem, any help ???????
---------------
Sandeep.
Freeman Fang wrote:
>
> Hi Sandeep,
>
> What's the xbean.xml for your cxf se looks like?
>
> Freeman
>
> sandeep reddy wrote:
>> Hi All,
>>
>> I am trying out servicemix concept for POJO example using CXF -
>> SE.
>> The flow and i am trying out is :
>>
>> Client --> HTTP SU (SOAP request) ----> CXF - SE ---> Client.
>>
>> And here everything ( compiling, deployment) is fine. After that
>> when
>> ever i hit HTTP SU using a
>> client.html which sends a soap request.
>>
>> The Error i am getting is:
>>
>> DEBUG - HttpComponent - Created correlation id:
>> ID:192.168.2.53-11a01d1f1ec-4:0
>> DEBUG - DeliveryChannelImpl - Send
>> ID:192.168.2.53-11a01d1f1ec-4:0 in DeliveryChannel{servicemix-http}
>> WARN - DefaultBroker - ServiceName
>> ({http://servicemix.in2m.com/samples/pojo}PersonService) specified for
>> routing, but can't find it registered
>> WARN - DefaultBroker - ServiceName
>> ({http://servicemix.in2m.com/samples/pojo}PersonService) specified for
>> routing, but can't find it registered
>> DEBUG - DeliveryChannelImpl - Exception processing:
>> ID:192.168.2.53-11a01d1f1ec-4:0 in DeliveryChannel{servicemix-http}
>>
>>
>> Here are my files:
>>
>> http xbean.xml file:
>> -----------------------------
>> <http:endpoint service="person:PersonService"
>> endpoint="soap"
>> role="consumer"
>> targetService="person:PersonService"
>> locationURI="http://localhost:8192/PersonService/"
>> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>> soap="true" />
>>
>> Any my client.html file is:
>> -----------------------------------------
>> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:tns="http://servicemix.in2m.com/samples/pojo/types">
>> <env:Body>
>> <tns:GetPerson>
>> <tns:personId>world</tns:personId>
>> </tns:GetPerson>
>> </env:Body>
>> </env:Envelope>
>>
>> And every thing is fine at CXF - SE side.
>>
>> 1) So, what's going wrong here.
>> 2) Interesting point the same example i tried out using JSR181 and
>> its
>> working.
>>
>> Please help me i stuck with this problem.
>> -----------------------------
>> Sandeep.
>>
>>
>>
>>
>>
>>
>
>
>
--
View this message in context:
http://www.nabble.com/Problem-with-CXF-SE-tp17320941p17334248.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.