Hi , 
We are using  apache -servicemix 3.1. 
We could not able to execute a simple example on bean .  


We have a simple pojo that extends TransformComponentSupport and we created
a servicemix-bean endpoint for this pojo  in the xbean.xml file.  We are
able to deploy the SA with bean-su and http-su. 

But , the problem is when we send any request to the above created service
we are getting an exception as follows:

            - Unable to handle error: org.apache.serv
icemix.jbi.NotInitialisedYetException: Cannot perform operations on this
compone
nt until it has been initialised via init()
org.apache.servicemix.jbi.NotInitialisedYetException: Cannot perform
operations
on this component until it has been initialised via init()
        at
org.apache.servicemix.components.util.PojoSupport.getDeliveryChannel(
PojoSupport.java:168)
        at
org.apache.servicemix.components.util.PojoSupport.fail(PojoSupport.ja
va:244)
        at
org.apache.servicemix.components.util.TransformComponentSupport.onMes
sageExchange(TransformComponentSupport.java:92)
        at
org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoi
nt.java:224)
        at
org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:201
)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLi
feCycle.java:489)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(Async
BaseLifeCycle.java:441)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLife
Cycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun
d(DeliveryChannelImpl.java:593)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlo
w.java:174)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.j
ava:176)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.jav
a:134)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
ker.runTask(ThreadPoolExecutor.java:665)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
ker.run(ThreadPoolExecutor.java:690)
        at java.lang.Thread.run(Thread.java:595)

Note :  Files for the above example 
http://www.nabble.com/file/p15873123/xbean.xml xbean.xml 
http://www.nabble.com/file/p15873123/hi.java hi.java      ----- Java file
for which we need to  create an endpoint.
I think there is some problem with the initialisation of the component.  Can
you please tell how to solve this.

Thanks in advance...


-----
Cheers
Praveen Oruganti
"Think before you act and act on what you believe"
-- 
View this message in context: 
http://www.nabble.com/probleam-servicemix-bean-example-in-servicemix-3.1-tp15873123s12049p15873123.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to