You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Bartosz Kowalewski (JIRA)" <ji...@apache.org> on 2007/12/05 09:26:27 UTC

[jira] Created: (SM-1162) StatisticsService - NPE

StatisticsService - NPE
-----------------------

                 Key: SM-1162
                 URL: https://issues.apache.org/activemq/browse/SM-1162
             Project: ServiceMix
          Issue Type: Bug
            Reporter: Bartosz Kowalewski


This issue is closely related to a forum thread, located at:  http://www.nabble.com/StatisticsService---NPE-tf4887610s12049.html#a13989623 .

  ----------------------------

We're using WSN2005 API from the inside of a SU (bean:endpoint). An external Java client is used to subscribe to WSN2005 component through http-binding and to receive future notifications. After a notification is delivered to the subscriber, the exeption provided below is printed on the ServiceMix side.


WARN  - DeliveryChannelImpl            - Error calling listener: null
java.lang.NullPointerException
        at org.apache.servicemix.jbi.monitoring.StatisticsService.onExchangeAcce
pted(StatisticsService.java:307)
        at org.apache.servicemix.jbi.monitoring.StatisticsService$3.exchangeAcce
pted(StatisticsService.java:186)
        at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun
d(DeliveryChannelImpl.java:598)
        at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlo
w.java:170)
        at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.j
ava:167)
        at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.jav
a:134)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:675)
        at java.lang.Thread.run(Thread.java:595)

It does not disturb the delivery but it is always printed. It just looks as if SM is trying to log something for an endpoint that isn't registered in the monitoring service.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SM-1162) StatisticsService - NPE

Posted by "Bartosz Kowalewski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bartosz Kowalewski updated SM-1162:
-----------------------------------

    Attachment: SM-1162-StatisticsService.java.patch

> StatisticsService - NPE
> -----------------------
>
>                 Key: SM-1162
>                 URL: https://issues.apache.org/activemq/browse/SM-1162
>             Project: ServiceMix
>          Issue Type: Bug
>            Reporter: Bartosz Kowalewski
>         Attachments: SM-1162-StatisticsService.java.patch
>
>
> This issue is closely related to a forum thread, located at:  http://www.nabble.com/StatisticsService---NPE-tf4887610s12049.html#a13989623 .
>   ----------------------------
> We're using WSN2005 API from the inside of a SU (bean:endpoint). An external Java client is used to subscribe to WSN2005 component through http-binding and to receive future notifications. After a notification is delivered to the subscriber, the exeption provided below is printed on the ServiceMix side.
> WARN  - DeliveryChannelImpl            - Error calling listener: null
> java.lang.NullPointerException
>         at org.apache.servicemix.jbi.monitoring.StatisticsService.onExchangeAcce
> pted(StatisticsService.java:307)
>         at org.apache.servicemix.jbi.monitoring.StatisticsService$3.exchangeAcce
> pted(StatisticsService.java:186)
>         at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun
> d(DeliveryChannelImpl.java:598)
>         at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlo
> w.java:170)
>         at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.j
> ava:167)
>         at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.jav
> a:134)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
> utor.java:650)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:675)
>         at java.lang.Thread.run(Thread.java:595)
> It does not disturb the delivery but it is always printed. It just looks as if SM is trying to log something for an endpoint that isn't registered in the monitoring service.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1162) StatisticsService - NPE

Posted by "Bartosz Kowalewski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40785 ] 

Bartosz Kowalewski commented on SM-1162:
----------------------------------------

I've just attached a patch for this issue (SM-1162-StatisticsService.java.patch). As Guillaume said on the forum, it is a really simple task to add a check for a NPE. This patch only adds an 'if' statement and the NPE dissapears. Unfortunately the problem should be investigated, I'm not sure what causes SM to log monitoring data for an unregistered endpoint. It could be a WSN2005 issue or even a general SM one. I'm not familiar with the source code. 

For now, the patch works okay, but I think that it's not enough to close this bug.

> StatisticsService - NPE
> -----------------------
>
>                 Key: SM-1162
>                 URL: https://issues.apache.org/activemq/browse/SM-1162
>             Project: ServiceMix
>          Issue Type: Bug
>            Reporter: Bartosz Kowalewski
>         Attachments: SM-1162-StatisticsService.java.patch
>
>
> This issue is closely related to a forum thread, located at:  http://www.nabble.com/StatisticsService---NPE-tf4887610s12049.html#a13989623 .
>   ----------------------------
> We're using WSN2005 API from the inside of a SU (bean:endpoint). An external Java client is used to subscribe to WSN2005 component through http-binding and to receive future notifications. After a notification is delivered to the subscriber, the exeption provided below is printed on the ServiceMix side.
> WARN  - DeliveryChannelImpl            - Error calling listener: null
> java.lang.NullPointerException
>         at org.apache.servicemix.jbi.monitoring.StatisticsService.onExchangeAcce
> pted(StatisticsService.java:307)
>         at org.apache.servicemix.jbi.monitoring.StatisticsService$3.exchangeAcce
> pted(StatisticsService.java:186)
>         at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun
> d(DeliveryChannelImpl.java:598)
>         at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlo
> w.java:170)
>         at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.j
> ava:167)
>         at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.jav
> a:134)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
> utor.java:650)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:675)
>         at java.lang.Thread.run(Thread.java:595)
> It does not disturb the delivery but it is always printed. It just looks as if SM is trying to log something for an endpoint that isn't registered in the monitoring service.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.