[jira] [Commented] (UIMA-5477) javax.jms.IllegalStateException: The Session is closed after establish connections between uima-as client and ActiveMQ
[ https://issues.apache.org/jira/browse/UIMA-5477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16109079#comment-16109079 ] Nelson RIvera commented on UIMA-5477: - this is not my uima-as deployment, i have a client by uima-as service. The aggregate uima-as service have two Cas Multiplier delegate in it flow , but are colocated, at the beginning and the middle. The remote delegate of aggregate uima-as service is at the end of the flow and is a primitive annotator, implemented in c++ and deploy with deployAsyncService.sh. > javax.jms.IllegalStateException: The Session is closed after establish > connections between uima-as client and ActiveMQ > -- > > Key: UIMA-5477 > URL: https://issues.apache.org/jira/browse/UIMA-5477 > Project: UIMA > Issue Type: Access > Components: Async Scaleout >Affects Versions: 2.9.0AS > Environment: ubuntu xenial, openjdk-8-jdk >Reporter: Nelson RIvera > Attachments: screenshot-1.png > > > In my program main, i initialize a uimas-as client only once and I use > this client to consume all requests to a displayed service uima-as. > Before process a request i ask to uima-as client with: > BaseUIMAAsynchronousEngine_impl.connectionOpen() > and if the result es "false", i stop the uima-as client and initialize it > again. > With some steps, still undefined, but basically when restart the UIMA-AS > Broker > without restart service uima-as. > The instruccion to uima-as client > BaseUIMAAsynchronousEngine_impl.connectionOpen() return "true", but > them i get a "javax.jms.IllegalStateException: The Session is closed" > when proces the request. > One peculiarity is that, is a primitive annotator implented in c++, > but is deployed with de deployAsyncService.sh de uima-as directly. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (UIMA-5477) javax.jms.IllegalStateException: The Session is closed after establish connections between uima-as client and ActiveMQ
[ https://issues.apache.org/jira/browse/UIMA-5477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16075023#comment-16075023 ] Nelson RIvera commented on UIMA-5477: - This behavior is random, not occurs always. In the most of the simple programs and simple test case tested, after restart the UIMA-AS Broker without restart service uima-as, the instruccion to uima-as client "BaseUIMAAsynchronousEngine_impl.connectionOpen()" return "false" and correctly i initialize the client again. The incorrect behavior is most frequently with many uima-as client instances. Is the case of my general application in which i have many service uima-as, and for each one creates one instace of uima-as client (BaseUIMAAsynchronousEngine_impl) and keep it alive to process all requests of the service uima-as. Is in this scenario with many instancies of uima-as client (BaseUIMAAsynchronousEngine_impl) in the same program (a monolithic application web in tomcat) where after restart the UIMA-AS Broker without restart any service uima-as, many uima-as client returns "true" to the instruccion "BaseUIMAAsynchronousEngine_impl.connectionOpen()" but them throw "javax.jms.IllegalStateException: The Session is closed" when proces the request. > javax.jms.IllegalStateException: The Session is closed after establish > connections between uima-as client and ActiveMQ > -- > > Key: UIMA-5477 > URL: https://issues.apache.org/jira/browse/UIMA-5477 > Project: UIMA > Issue Type: Access > Components: Async Scaleout >Affects Versions: 2.9.0AS > Environment: ubuntu xenial, openjdk-8-jdk >Reporter: Nelson RIvera > > In my program main, i initialize a uimas-as client only once and I use > this client to consume all requests to a displayed service uima-as. > Before process a request i ask to uima-as client with: > BaseUIMAAsynchronousEngine_impl.connectionOpen() > and if the result es "false", i stop the uima-as client and initialize it > again. > With some steps, still undefined, but basically when restart the UIMA-AS > Broker > without restart service uima-as. > The instruccion to uima-as client > BaseUIMAAsynchronousEngine_impl.connectionOpen() return "true", but > them i get a "javax.jms.IllegalStateException: The Session is closed" > when proces the request. > One peculiarity is that, is a primitive annotator implented in c++, > but is deployed with de deployAsyncService.sh de uima-as directly. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Created] (UIMA-5477) javax.jms.IllegalStateException: The Session is closed after establish connections between uima-as client and ActiveMQ
Nelson RIvera created UIMA-5477: --- Summary: javax.jms.IllegalStateException: The Session is closed after establish connections between uima-as client and ActiveMQ Key: UIMA-5477 URL: https://issues.apache.org/jira/browse/UIMA-5477 Project: UIMA Issue Type: Access Components: Async Scaleout Affects Versions: 2.9.0AS Environment: ubuntu xenial, openjdk-8-jdk Reporter: Nelson RIvera In my program main, i initialize a uimas-as client only once and I use this client to consume all requests to a displayed service uima-as. Before process a request i ask to uima-as client with: BaseUIMAAsynchronousEngine_impl.connectionOpen() and if the result es "false", i stop the uima-as client and initialize it again. With some steps, still undefined, but basically when restart the UIMA-AS Broker without restart service uima-as. The instruccion to uima-as client BaseUIMAAsynchronousEngine_impl.connectionOpen() return "true", but them i get a "javax.jms.IllegalStateException: The Session is closed" when proces the request. One peculiarity is that, is a primitive annotator implented in c++, but is deployed with de deployAsyncService.sh de uima-as directly. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Created] (UIMA-5472) java.lang.ArrayIndexOutOfBoundsException with big CAS serialized
Nelson RIvera created UIMA-5472: --- Summary: java.lang.ArrayIndexOutOfBoundsException with big CAS serialized Key: UIMA-5472 URL: https://issues.apache.org/jira/browse/UIMA-5472 Project: UIMA Issue Type: Access Components: Core Java Framework Affects Versions: 2.9.0SDK Environment: Ubuntu xenial amd64, openjdk-8-jdk Reporter: Nelson RIvera I have a main program that serializes and deserializes a CAS using XCASSerializer and XCASDeserializer. With a big CAS ( CAS composed of many views, cas's serialized size equals 20 MB) after serialize the CAS, deserializing the CAS i get the exception that show below. With smaller Cas everything is good. Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException at org.apache.uima.internal.util.IntVector.get(IntVector.java:239) at org.apache.uima.cas.impl.XCASDeserializer$XCASDeserializerHandler.handleFeature(XCASDeserializer.java:580) at org.apache.uima.cas.impl.XCASDeserializer$XCASDeserializerHandler.readFS(XCASDeserializer.java:442) at org.apache.uima.cas.impl.XCASDeserializer$XCASDeserializerHandler.readFS(XCASDeserializer.java:300) at org.apache.uima.cas.impl.XCASDeserializer$XCASDeserializerHandler.startElement(XCASDeserializer.java:244) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:351) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at org.apache.uima.cas.impl.XCASDeserializer.deserialize(XCASDeserializer.java:1212) at org.apache.uima.cas.impl.XCASDeserializer.deserialize(XCASDeserializer.java:1181) at org.platform.xuima.modeling.tool.MainXCluster.main(MainXCluster.java:121) -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (UIMA-5191) Free instance of agreggate with cas multiplier in MultiprocessingAnalysisEngine
[ https://issues.apache.org/jira/browse/UIMA-5191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15687940#comment-15687940 ] Nelson RIvera commented on UIMA-5191: - the value of ActionAfterCasMultiplier in custom flow controller is "drop" > Free instance of agreggate with cas multiplier in > MultiprocessingAnalysisEngine > --- > > Key: UIMA-5191 > URL: https://issues.apache.org/jira/browse/UIMA-5191 > Project: UIMA > Issue Type: Bug >Affects Versions: 2.8.1SDK >Reporter: Nelson RIvera > > I have a aggregate analysis engine that contains 2 casmultiplier > annotators. I instantiate this aggregate with the interface > UIMAFramework.produceAnalysisEngine(specifier, 1, 0) for multithreaded > processing. The last casmultiplier generate more than one cas for each > input CAS from first casmultiplier. The issue is that after first time that > the last casmultipler's hasNext method method returns false, the > MultiprocessingAnalysisEngine_impl assumes that the instance of > AggregateAnalysisEngine that processes the request has ended, and > then this instance is free to process ahother request from other thread, and > it is not true, because missing child cas to process from de first > casmultipler, producing concurrency errors. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (UIMA-5191) Free instance of agreggate with cas multiplier in MultiprocessingAnalysisEngine
[ https://issues.apache.org/jira/browse/UIMA-5191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15687932#comment-15687932 ] Nelson RIvera commented on UIMA-5191: - I use a custom flow controller. I rewrite continueOnFailure method, the value to return (true or false) is configured for each request in the computeFlow method. > Free instance of agreggate with cas multiplier in > MultiprocessingAnalysisEngine > --- > > Key: UIMA-5191 > URL: https://issues.apache.org/jira/browse/UIMA-5191 > Project: UIMA > Issue Type: Bug >Affects Versions: 2.8.1SDK >Reporter: Nelson RIvera > > I have a aggregate analysis engine that contains 2 casmultiplier > annotators. I instantiate this aggregate with the interface > UIMAFramework.produceAnalysisEngine(specifier, 1, 0) for multithreaded > processing. The last casmultiplier generate more than one cas for each > input CAS from first casmultiplier. The issue is that after first time that > the last casmultipler's hasNext method method returns false, the > MultiprocessingAnalysisEngine_impl assumes that the instance of > AggregateAnalysisEngine that processes the request has ended, and > then this instance is free to process ahother request from other thread, and > it is not true, because missing child cas to process from de first > casmultipler, producing concurrency errors. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (UIMA-5191) Free instance of agreggate with cas multiplier in MultiprocessingAnalysisEngine
Nelson RIvera created UIMA-5191: --- Summary: Free instance of agreggate with cas multiplier in MultiprocessingAnalysisEngine Key: UIMA-5191 URL: https://issues.apache.org/jira/browse/UIMA-5191 Project: UIMA Issue Type: Bug Affects Versions: 2.8.1SDK Reporter: Nelson RIvera I have a aggregate analysis engine that contains 2 casmultiplier annotators. I instantiate this aggregate with the interface UIMAFramework.produceAnalysisEngine(specifier, 1, 0) for multithreaded processing. The last casmultiplier generate more than one cas for each input CAS from first casmultiplier. The issue is that after first time that the last casmultipler's hasNext method method returns false, the MultiprocessingAnalysisEngine_impl assumes that the instance of AggregateAnalysisEngine that processes the request has ended, and then this instance is free to process ahother request from other thread, and it is not true, because missing child cas to process from de first casmultipler, producing concurrency errors. -- This message was sent by Atlassian JIRA (v6.3.4#6332)