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)" <ui...@incubator.apache.org> on 2009/06/08 20:42:07 UTC

[jira] Created: (UIMA-1376) Fix NPE in Uima AS Aggregate while handling getMeta responses

Fix NPE in Uima AS Aggregate while handling getMeta responses
-------------------------------------------------------------

                 Key: UIMA-1376
                 URL: https://issues.apache.org/jira/browse/UIMA-1376
             Project: UIMA
          Issue Type: Bug
          Components: Async Scaleout
            Reporter: Jerry Cwiklik


While merging type system from a delegate Uima AS the following exception is thrown:
6/8/09 8:59:20 AM - 32: org.apache.uima.aae.error.handler.GetMetaErrorHandler.handleError: WARNING: {0}
java.lang.NullPointerException
	at org.apache.uima.resource.CasDefinition.<init>(CasDefinition.java:66)
	at org.apache.uima.resource.impl.CasManager_impl.getCasDefinition(CasManager_impl.java:94)
	at org.apache.uima.resource.impl.CasManager_impl.createNewCas(CasManager_impl.java:196)
	at org.apache.uima.util.CasPool.fillPool(CasPool.java:319)
	at org.apache.uima.util.CasPool.<init>(CasPool.java:191)
	at org.apache.uima.resource.impl.CasManager_impl.defineCasPool(CasManager_impl.java:174)
	at org.apache.uima.resource.impl.CasManager_impl.defineCasPool(CasManager_impl.java:152)
	at org.apache.uima.aae.EECasManager_impl.defineCasPool(EECasManager_impl.java:60)
	at org.apache.uima.aae.AsynchAECasManager_impl.initialize(AsynchAECasManager_impl.java:98)
	at org.apache.uima.aae.AsynchAECasManager_impl.initialize(AsynchAECasManager_impl.java:86)
	at org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.mergeTypeSystem(AggregateAnalysisEngineController_impl.java:2182)
	at org.apache.uima.aae.handler.input.MetadataResponseHandler_impl.handle(MetadataResponseHandler_impl.java:133)
	at org.apache.uima.aae.handler.HandlerBase.delegate(HandlerBase.java:158)
	at org.apache.uima.aae.handler.input.ProcessResponseHandler.handle(ProcessResponseHandler.java:673)
	at org.apache.uima.adapter.jms.activemq.JmsInputChannel.onMessage(JmsInputChannel.java:665)
	at org.apache.uima.adapter.jms.activemq.ConcurrentMessageListener$1.run(ConcurrentMessageListener.java:163)
	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 could be that this is caused when two threads simultaneously try to merge their typesystems. This exception happens rarely, suggesting a race condition of some sort or/and perhaps, that the core is not thread safe with respect to merging typesystems in multiple threads. The latter is just a speculation.


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


[jira] Commented: (UIMA-1376) Fix NPE in Uima AS Aggregate while handling getMeta responses

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717358#action_12717358 ] 

Jerry Cwiklik commented on UIMA-1376:
-------------------------------------

Modified Uima AS aggregate code to synchronize mergeTypeSystem() method. The obvious side effect of this change is that the aggregate merges type systems one at a time, which perhaps is what we want anyway.

> Fix NPE in Uima AS Aggregate while handling getMeta responses
> -------------------------------------------------------------
>
>                 Key: UIMA-1376
>                 URL: https://issues.apache.org/jira/browse/UIMA-1376
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>            Reporter: Jerry Cwiklik
>
> While merging type system from a delegate Uima AS the following exception is thrown:
> 6/8/09 8:59:20 AM - 32: org.apache.uima.aae.error.handler.GetMetaErrorHandler.handleError: WARNING: {0}
> java.lang.NullPointerException
> 	at org.apache.uima.resource.CasDefinition.<init>(CasDefinition.java:66)
> 	at org.apache.uima.resource.impl.CasManager_impl.getCasDefinition(CasManager_impl.java:94)
> 	at org.apache.uima.resource.impl.CasManager_impl.createNewCas(CasManager_impl.java:196)
> 	at org.apache.uima.util.CasPool.fillPool(CasPool.java:319)
> 	at org.apache.uima.util.CasPool.<init>(CasPool.java:191)
> 	at org.apache.uima.resource.impl.CasManager_impl.defineCasPool(CasManager_impl.java:174)
> 	at org.apache.uima.resource.impl.CasManager_impl.defineCasPool(CasManager_impl.java:152)
> 	at org.apache.uima.aae.EECasManager_impl.defineCasPool(EECasManager_impl.java:60)
> 	at org.apache.uima.aae.AsynchAECasManager_impl.initialize(AsynchAECasManager_impl.java:98)
> 	at org.apache.uima.aae.AsynchAECasManager_impl.initialize(AsynchAECasManager_impl.java:86)
> 	at org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.mergeTypeSystem(AggregateAnalysisEngineController_impl.java:2182)
> 	at org.apache.uima.aae.handler.input.MetadataResponseHandler_impl.handle(MetadataResponseHandler_impl.java:133)
> 	at org.apache.uima.aae.handler.HandlerBase.delegate(HandlerBase.java:158)
> 	at org.apache.uima.aae.handler.input.ProcessResponseHandler.handle(ProcessResponseHandler.java:673)
> 	at org.apache.uima.adapter.jms.activemq.JmsInputChannel.onMessage(JmsInputChannel.java:665)
> 	at org.apache.uima.adapter.jms.activemq.ConcurrentMessageListener$1.run(ConcurrentMessageListener.java:163)
> 	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 could be that this is caused when two threads simultaneously try to merge their typesystems. This exception happens rarely, suggesting a race condition of some sort or/and perhaps, that the core is not thread safe with respect to merging typesystems in multiple threads. The latter is just a speculation.

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


[jira] Closed: (UIMA-1376) Fix NPE in Uima AS Aggregate while handling getMeta responses

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik closed UIMA-1376.
-------------------------------

    Resolution: Fixed

> Fix NPE in Uima AS Aggregate while handling getMeta responses
> -------------------------------------------------------------
>
>                 Key: UIMA-1376
>                 URL: https://issues.apache.org/jira/browse/UIMA-1376
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>            Reporter: Jerry Cwiklik
>
> While merging type system from a delegate Uima AS the following exception is thrown:
> 6/8/09 8:59:20 AM - 32: org.apache.uima.aae.error.handler.GetMetaErrorHandler.handleError: WARNING: {0}
> java.lang.NullPointerException
> 	at org.apache.uima.resource.CasDefinition.<init>(CasDefinition.java:66)
> 	at org.apache.uima.resource.impl.CasManager_impl.getCasDefinition(CasManager_impl.java:94)
> 	at org.apache.uima.resource.impl.CasManager_impl.createNewCas(CasManager_impl.java:196)
> 	at org.apache.uima.util.CasPool.fillPool(CasPool.java:319)
> 	at org.apache.uima.util.CasPool.<init>(CasPool.java:191)
> 	at org.apache.uima.resource.impl.CasManager_impl.defineCasPool(CasManager_impl.java:174)
> 	at org.apache.uima.resource.impl.CasManager_impl.defineCasPool(CasManager_impl.java:152)
> 	at org.apache.uima.aae.EECasManager_impl.defineCasPool(EECasManager_impl.java:60)
> 	at org.apache.uima.aae.AsynchAECasManager_impl.initialize(AsynchAECasManager_impl.java:98)
> 	at org.apache.uima.aae.AsynchAECasManager_impl.initialize(AsynchAECasManager_impl.java:86)
> 	at org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.mergeTypeSystem(AggregateAnalysisEngineController_impl.java:2182)
> 	at org.apache.uima.aae.handler.input.MetadataResponseHandler_impl.handle(MetadataResponseHandler_impl.java:133)
> 	at org.apache.uima.aae.handler.HandlerBase.delegate(HandlerBase.java:158)
> 	at org.apache.uima.aae.handler.input.ProcessResponseHandler.handle(ProcessResponseHandler.java:673)
> 	at org.apache.uima.adapter.jms.activemq.JmsInputChannel.onMessage(JmsInputChannel.java:665)
> 	at org.apache.uima.adapter.jms.activemq.ConcurrentMessageListener$1.run(ConcurrentMessageListener.java:163)
> 	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 could be that this is caused when two threads simultaneously try to merge their typesystems. This exception happens rarely, suggesting a race condition of some sort or/and perhaps, that the core is not thread safe with respect to merging typesystems in multiple threads. The latter is just a speculation.

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


[jira] Updated: (UIMA-1376) Fix NPE in Uima AS Aggregate while handling getMeta responses

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik updated UIMA-1376:
--------------------------------

    Fix Version/s: 2.3AS

> Fix NPE in Uima AS Aggregate while handling getMeta responses
> -------------------------------------------------------------
>
>                 Key: UIMA-1376
>                 URL: https://issues.apache.org/jira/browse/UIMA-1376
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>            Reporter: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> While merging type system from a delegate Uima AS the following exception is thrown:
> 6/8/09 8:59:20 AM - 32: org.apache.uima.aae.error.handler.GetMetaErrorHandler.handleError: WARNING: {0}
> java.lang.NullPointerException
> 	at org.apache.uima.resource.CasDefinition.<init>(CasDefinition.java:66)
> 	at org.apache.uima.resource.impl.CasManager_impl.getCasDefinition(CasManager_impl.java:94)
> 	at org.apache.uima.resource.impl.CasManager_impl.createNewCas(CasManager_impl.java:196)
> 	at org.apache.uima.util.CasPool.fillPool(CasPool.java:319)
> 	at org.apache.uima.util.CasPool.<init>(CasPool.java:191)
> 	at org.apache.uima.resource.impl.CasManager_impl.defineCasPool(CasManager_impl.java:174)
> 	at org.apache.uima.resource.impl.CasManager_impl.defineCasPool(CasManager_impl.java:152)
> 	at org.apache.uima.aae.EECasManager_impl.defineCasPool(EECasManager_impl.java:60)
> 	at org.apache.uima.aae.AsynchAECasManager_impl.initialize(AsynchAECasManager_impl.java:98)
> 	at org.apache.uima.aae.AsynchAECasManager_impl.initialize(AsynchAECasManager_impl.java:86)
> 	at org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.mergeTypeSystem(AggregateAnalysisEngineController_impl.java:2182)
> 	at org.apache.uima.aae.handler.input.MetadataResponseHandler_impl.handle(MetadataResponseHandler_impl.java:133)
> 	at org.apache.uima.aae.handler.HandlerBase.delegate(HandlerBase.java:158)
> 	at org.apache.uima.aae.handler.input.ProcessResponseHandler.handle(ProcessResponseHandler.java:673)
> 	at org.apache.uima.adapter.jms.activemq.JmsInputChannel.onMessage(JmsInputChannel.java:665)
> 	at org.apache.uima.adapter.jms.activemq.ConcurrentMessageListener$1.run(ConcurrentMessageListener.java:163)
> 	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 could be that this is caused when two threads simultaneously try to merge their typesystems. This exception happens rarely, suggesting a race condition of some sort or/and perhaps, that the core is not thread safe with respect to merging typesystems in multiple threads. The latter is just a speculation.

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