You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Rafal Rusin (JIRA)" <ji...@apache.org> on 2008/08/08 14:45:44 UTC

[jira] Created: (ODE-358) Null Pointer Exception in OdeConsumer (JBI)

Null Pointer Exception in OdeConsumer (JBI)
-------------------------------------------

                 Key: ODE-358
                 URL: https://issues.apache.org/jira/browse/ODE-358
             Project: ODE
          Issue Type: Bug
          Components: JBI Integration
    Affects Versions: 1.2
         Environment: ServiceMix, Oracle driver, Jencks pool
            Reporter: Rafal Rusin


I had NPE during receiving messages. This caused a hang of ODE.  A following patch resolves this issue. 

Index: jbi/src/main/java/org/apache/ode/jbi/OdeConsumer.java
===================================================================
--- jbi/src/main/java/org/apache/ode/jbi/OdeConsumer.java       (revision 44141)
+++ jbi/src/main/java/org/apache/ode/jbi/OdeConsumer.java       (working copy)
@@ -207,7 +207,7 @@
                     // need to reload mex since we're in a different transaction
                     PartnerRoleMessageExchange pmex = (PartnerRoleMessageExchange) _ode._server.getEngine().getMessageExchange(outstanding.getMessageExchangeId());
                     if (pmex == null) {
-                        __log.warn("Received a response for unknown partner role message exchange " + pmex.getMessageExchangeId());
+                        __log.warn("Received a response for unknown partner role message exchange " + outstanding.getMessageExchangeId());
                         return Boolean.FALSE;
                     }
                     String mapperName = pmex.getProperty(Mapper.class.getName());


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


[jira] Updated: (ODE-358) Null Pointer Exception in OdeConsumer (JBI)

Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rafal Rusin updated ODE-358:
----------------------------

    Priority: Trivial  (was: Major)

> Null Pointer Exception in OdeConsumer (JBI)
> -------------------------------------------
>
>                 Key: ODE-358
>                 URL: https://issues.apache.org/jira/browse/ODE-358
>             Project: ODE
>          Issue Type: Bug
>          Components: JBI Integration
>    Affects Versions: 1.2
>         Environment: ServiceMix, Oracle driver, Jencks pool
>            Reporter: Rafal Rusin
>            Priority: Trivial
>             Fix For: 2.0
>
>
> I had NPE during receiving messages. This caused a hang of ODE.  A following patch resolves this issue. 
> Index: jbi/src/main/java/org/apache/ode/jbi/OdeConsumer.java
> ===================================================================
> --- jbi/src/main/java/org/apache/ode/jbi/OdeConsumer.java       (revision 44141)
> +++ jbi/src/main/java/org/apache/ode/jbi/OdeConsumer.java       (working copy)
> @@ -207,7 +207,7 @@
>                      // need to reload mex since we're in a different transaction
>                      PartnerRoleMessageExchange pmex = (PartnerRoleMessageExchange) _ode._server.getEngine().getMessageExchange(outstanding.getMessageExchangeId());
>                      if (pmex == null) {
> -                        __log.warn("Received a response for unknown partner role message exchange " + pmex.getMessageExchangeId());
> +                        __log.warn("Received a response for unknown partner role message exchange " + outstanding.getMessageExchangeId());
>                          return Boolean.FALSE;
>                      }
>                      String mapperName = pmex.getProperty(Mapper.class.getName());

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