You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <de...@uima.apache.org> on 2010/06/29 16:38:50 UTC

[jira] Closed: (UIMA-1821) Fix NPE in the UIMA AS client

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

Jerry Cwiklik closed UIMA-1821.
-------------------------------

    Fix Version/s: 2.3AS
       Resolution: Fixed

Modified UIMA AS client code to check the state of a client to avoid de-referencing objects nullified while stopping the client.

> Fix NPE in the UIMA AS client
> -----------------------------
>
>                 Key: UIMA-1821
>                 URL: https://issues.apache.org/jira/browse/UIMA-1821
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>    Affects Versions: 2.3AS
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> The following NPE is thrown in the UIMA AS client:
> WARNING:
> java.lang.NullPointerException
>         at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl.handleMetadataReply(BaseUIMAAsynch
> ronousEngineCommon_impl.java:999)
>         at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl.onMessage(BaseUIMAAsynchronousEngi
> neCommon_impl.java:1678)
>         at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1021)
>         at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:122)
>         at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:192)
>         at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
>         at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
>         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)
> it seems that the application has called stop() method before a getMeta reply came back from a service. When stopping, the UIMA AS client invalidates some objects which leads to the NPE. Modify client code to check the state of the client while handling replies.

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