You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Ioannis Canellos (JIRA)" <ji...@apache.org> on 2010/12/12 09:59:01 UTC

[jira] Updated: (SMX4NMR-232) JdbcAuditor throws NullPointerException

     [ https://issues.apache.org/jira/browse/SMX4NMR-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ioannis Canellos updated SMX4NMR-232:
-------------------------------------

    Attachment: SMX4NMR-232-patch.txt

I am attaching a patch that does the following:
a) on methods that use the adapter nul check.
b) initialization of the adapter if null
c) rename the afterPropertiesSet to createAdapter (to avoid confusion)
d) Update the unit test so that it does not invoke afterPropertiesSet (its not going to work that way in the real world).

> JdbcAuditor throws NullPointerException
> ---------------------------------------
>
>                 Key: SMX4NMR-232
>                 URL: https://issues.apache.org/jira/browse/SMX4NMR-232
>             Project: ServiceMix NMR
>          Issue Type: Bug
>    Affects Versions: 1.3.0
>            Reporter: Albert Tumanov
>         Attachments: SMX4NMR-232-patch.txt
>
>
> 2010-11-23 14:53:50,984 187 - org.apache.servicemix.nmr.audit - 1.3.0.fuse-01-00 ERROR   [pool-nmr.endpoint.org.apache.servicemix.
> camel.nmr.ServiceMixProducer-ffcc2df4-b593-436c-8c57-05208b674991-thread-1] org.apache.servicemix.nmr.audit.jdbc.JdbcAuditor - Could not persist exchange
> java.lang.NullPointerException
>         at org.apache.servicemix.nmr.audit.jdbc.JdbcAuditor.store(JdbcAuditor.java:196)[187:org.apache.servicemix.nmr.audit:1.3.0.fuse-01-00]
>         at org.apache.servicemix.nmr.audit.jdbc.JdbcAuditor.exchangeSent(JdbcAuditor.java:119)[187:org.apache.servicemix.nmr.audit:1.3.0.fuse-01-00]
> This is probably caused by #SMX4NMR-202.
> "implements InitializingBean" was removed from JdbcAuditor, and afterPropertiesSet() is not executed anymore.
> "adapter" field remains null.

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