You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Gert Vanthienen <ge...@gmail.com> on 2009/08/04 12:47:12 UTC

Re: having problem with quartz (No endpoint found)

L.S.,

In your original xbean.xml, you were
targetService={urn:introBsp}listenerService where you probably meant
to use just introBsp:listenerService (the uri for the namespace is
declared at the top).

For the NullPointerException, are you perhaps using ServiceMix 3.3 or
earlier?  The exception looks a lot like
https://issues.apache.org/activemq/browse/SM-1456, which was fixed in
ServiceMix 3.3.1

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/7/31 Jean-Baptiste Onofré <jb...@nanthrax.net>:
> OK good,
>
> Regards
> JB
>
> funkywon wrote:
>>
>> I changed the xbean.xml of the Quartz SU (note the different namespace) to
>> the following and it seems to work now...also added the
>> targetEndpoint-attribute..
>>
>> <beans xmlns:sm="http://servicemix.apache.org/config/1.0"
>> xmlns:quartz="http://servicemix.apache.org/quartz/1.0"
>>       xmlns:test="urn:examples:introbsp">        <quartz:endpoint
>> service="test:service" endpoint="quartzendpoint"
>> targetService="test:listenerService" targetEndpoint="listenerEndpoint">
>>              <quartz:trigger>                        <quartz:simple
>> repeatCount="10" repeatInterval="1000"></quartz:simple>
>>                </quartz:trigger>        </quartz:endpoint> </beans>
>>
>> the messages get logged, but during deployment at the beginning I get some
>> exceptions...is this somehting I have to worry about or is it neglectable?
>>
>> WARN  - DeliveryChannelImpl            - Error calling listener: null
>> java.lang.NullPointerException
>>        at
>>
>> org.apache.servicemix.jbi.monitoring.StatisticsService.onExchangeSent(StatisticsService.java:235)
>>        at
>>
>> org.apache.servicemix.jbi.monitoring.StatisticsService$1.exchangeSent(StatisticsService.java:164)
>>        at
>>
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:380)
>>        at
>>
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:432)
>>        at
>>
>> org.apache.servicemix.common.EndpointDeliveryChannel.send(EndpointDeliveryChannel.java:88)
>>        at
>>
>> org.apache.servicemix.common.endpoints.SimpleEndpoint.send(SimpleEndpoint.java:70)
>>        at
>>
>> org.apache.servicemix.quartz.QuartzEndpoint.onJobExecute(QuartzEndpoint.java:142)
>>        at
>>
>> org.apache.servicemix.quartz.support.ServiceMixJob.execute(ServiceMixJob.java:56)
>>        at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
>>        at
>>
>> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
>> WARN  - DeliveryChannelImpl            - Error calling listener: null
>> java.lang.NullPointerException
>>        at
>>
>> org.apache.servicemix.jbi.monitoring.StatisticsService.onExchangeAccepted(StatisticsService.java:253)
>>        at
>>
>> org.apache.servicemix.jbi.monitoring.StatisticsService$1.exchangeAccepted(StatisticsService.java:167)
>>        at
>>
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:611)
>>        at
>>
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
>>        at
>>
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
>>        at
>>
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>        at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>        at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>        at java.lang.Thread.run(Thread.java:619)
>>
>>
>>
>> funkywon wrote:
>>>
>>> hello..thnx for your quick reply...
>>> but i get the same error messages....and it seems that the endpoint can
>>> not get found..
>>> it says:
>>>
>>> WARN  - QuartzComponent                - Target service
>>> (introbsp}:listenerService) and endpoint (listenerEndpoint) specified,
>>> but
>>> no matchi
>>> ng endpoint found.  Only the service will be used for routing.
>>> WARN  - DefaultBroker                  - ServiceName
>>> (introbsp}:listenerService) specified for routing, but can't find it
>>> registered
>>> WARN  - DefaultBroker                  - ServiceName
>>> (introbsp}:listenerService) specified for routing, but can't find it
>>> registered
>>> INFO  - AutoDeploymentService          - Directory: hotdeploy: Finished
>>> installation of archive:  introbsp-service-assembly-1.0-SNAPSHOT.zip
>>>
>>> INFO  - JobRunShell                    - Job
>>> DEFAULT.{urn:introbsp}service:quartzendpoint threw a
>>> JobExecutionException:
>>> org.quartz.JobExecutionException: org.quartz.JobExecutionException:
>>> javax.jbi.messaging.MessagingException: Could not find route for exchang
>>> e: InOnly[
>>>  id: ID:192.168.0.109-122cc700ee3-15:22
>>>  status: Active
>>>  role: provider
>>>  service: introbsp}:listenerService
>>>  in: <?xml version="1.0"
>>>
>>> encoding="UTF-8"?><timer><name>{urn:introbsp}service:quartzendpoint</name><group>DEFAULT</group><fullname>DEFAULT.
>>>
>>> {urn:introbsp}service:quartzendpoint</fullname><description/><fireTime>Fri
>>> Jul 31 11:53:51 CEST 2009</fireTime></timer>
>>>
>>>
>>>
>>>
>>> Jean-Baptiste Onofré wrote:
>>>>
>>>> Hi,
>>>>
>>>> could you try, in your quartz xbean.xml, to define
>>>> targetService="introbsp:listenerService"
>>>> targetEndpoint="listenerEndpoint"
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> funkywon wrote:
>>>>>
>>>>> Hello guys...
>>>>> I have a problem with Quartz..
>>>>> I'd like to send a message periodically to a bean, but somehow it
>>>>> doesnt
>>>>> work..
>>>>>
>>>>> My Quartz SU configuration looks as follows:
>>>>>
>>>>> <beans xmlns:sm="http://servicemix.apache.org/config/1.0"
>>>>> xmlns:quartz="http://servicemix.apache.org/quartz/1.0"
>>>>>       xmlns:introbsp="urn:introbsp">        <quartz:endpoint
>>>>> service="introbsp:service" endpoint="quartzendpoint"
>>>>>         targetService="{urn:introbsp}:listenerService">
>>>>>  <quartz:trigger>                        <quartz:simple repeatCount="10"
>>>>> repeatInterval="1000"></quartz:simple>
>>>>>                </quartz:trigger>        </quartz:endpoint> </beans>
>>>>>
>>>>>
>>>>> Then I got the bean, which should receive the message..
>>>>>
>>>>> <beans xmlns:bean="http://servicemix.apache.org/bean/1.0"
>>>>>        xmlns:introbsp="urn:introbsp">  <bean:endpoint
>>>>> service="introbsp:listenerService"
>>>>> endpoint="listenerEndpoint" bean="#listenerBean"/>  <bean
>>>>> id="listenerBean"
>>>>> class="org.apache.servicemix.bean.beans.ListenerBean"/> </beans>
>>>>>
>>>>> Listenerbean is the following class
>>>>>
>>>>> public class ListenerBean implements MessageExchangeListener {
>>>>>  @Resource    private DeliveryChannel channel;      public void
>>>>> onMessageExchange(MessageExchange exchange) throws
>>>>> MessagingException {        System.out.println("Received exchange: " +
>>>>> exchange);        exchange.setStatus(ExchangeStatus.DONE);
>>>>>  channel.send(exchange);    }  }
>>>>>
>>>>> I periodically get the following error message..
>>>>>
>>>>> WARN  - DefaultBroker                  - ServiceName
>>>>> (introbsp}:listenerService) specified for routing, but can't find it
>>>>> registered
>>>>> WARN  - DefaultBroker                  - ServiceName
>>>>> (introbsp}:listenerService) specified for routing, but can't find it
>>>>> registered
>>>>> INFO  - JobRunShell                    - Job
>>>>> DEFAULT.{urn:introbsp}service:quartzendpoint threw a
>>>>> JobExecutionException:
>>>>> org.quartz.JobExecutionException: org.quartz.JobExecutionException:
>>>>> javax.jbi.messaging.MessagingException: Could not find route for
>>>>> exchang
>>>>> e: InOnly[
>>>>>  id: ID:192.168.0.109-122cc700ee3-15:20
>>>>>  status: Active
>>>>>  role: provider
>>>>>  service: introbsp}:listenerService
>>>>>  in: <?xml version="1.0"
>>>>>
>>>>> encoding="UTF-8"?><timer><name>{urn:introbsp}service:quartzendpoint</name><group>DEFAULT</group><fullname>DEFAULT.
>>>>>
>>>>> {urn:introbsp}service:quartzendpoint</fullname><description/><fireTime>Thu
>>>>> Jul 30 23:33:13 CEST 2009</fireTime></timer>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Thanx for any advice!
>>>>>
>>>>
>>>
>>
>