Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-5562

UIMA AS fails with HttpConnector

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.9.0AS
    • 2.10.2AS
    • Async Scaleout
    • None
    • Windows 7 and Linux

    Description

      Hi,

      if I try to use UIMA AS with ActiveMQ http-connector, which is provided in default configuration, I do get a timeout.

      Steps to reproduce:

      1. Unzip http://www-eu.apache.org/dist/uima/uima-as-2.9.0/uima-as-2.9.0-bin.zip
      2. Set InputDirectory in apache-uima-2.9.0/examples/descriptors/collection_reader/FileSystemCollectionReader.xml to correct absolute path
      3. Copy attached Batch-File into directory
      4. Start it, wait and press 3 times Enter

      If I set BROKER_URL to tcp://localhost:61616 in the Batch-Script, the documents are processed successfully.

      With value http://localhost:8080 I get the following exception.

      Error on getMeta call to remote service:
      org.apache.uima.aae.error.UimaASMetaRequestTimeout: UIMA AS Client Timed Out Waiting For GetMeta Reply From a Service On Queue:MeetingDetectorTaeQueue
              at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl.notifyOnTimout(BaseUIMAAsynchronousEngineCommon_impl.java:2350)
              at org.apache.uima.adapter.jms.client.ClientServiceDelegate.handleError(ClientServiceDelegate.java:192)
              at org.apache.uima.aae.delegate.Delegate$2.run(Delegate.java:839)
              at java.util.TimerThread.mainLoop(Timer.java:555)
              at java.util.TimerThread.run(Timer.java:505)
      Terminating Client...
      org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_impl.stop() - Stop
      ping UIMA-AS Client
      javax.jms.JMSException: A consumer is consuming from the temporary destination
              at org.apache.activemq.ActiveMQConnection.deleteTempDestination(ActiveMQConnection.java:2061)
              at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_impl.stopConnection(BaseUIMAAsynchronousEngine_impl.java:324)
              at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_impl.stop(BaseUIMAAsynchronousEngine_impl.java:345)
              at org.apache.uima.examples.as.RunRemoteAsyncAE$StatusCallbackListenerImpl.stop(RunRemoteAsyncAE.java:367)
              at org.apache.uima.examples.as.RunRemoteAsyncAE$StatusCallbackListenerImpl.initializationComplete(RunRemoteAsyncAE.java:360)
              at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl.notifyListeners(BaseUIMAAsynchronousEngineCommon_impl.java:1220)
              at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl.notifyOnTimout(BaseUIMAAsynchronousEngineCommon_impl.java:2351)
              at org.apache.uima.adapter.jms.client.ClientServiceDelegate.handleError(ClientServiceDelegate.java:192)
              at org.apache.uima.aae.delegate.Delegate$2.run(Delegate.java:839)
              at java.util.TimerThread.mainLoop(Timer.java:555)
              at java.util.TimerThread.run(Timer.java:505)
      

      Attachments

        1. myTestScenario.bat
          0.8 kB
          John

        Issue Links

          Activity

            People

              cwiklik Jaroslaw Cwiklik
              john123 John
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: