Spico Florin | 9 Feb 14:41
Picon

java.lang.NullPointerException when running fast client

Hello!
  My UIMA AS client is using UimaAsynchronousEngine for sending messages to
a UIMA pipeline. If the process of sending is fast (with 100 ms delay or
without any delay) the attached exception(java.lang.NullPointerException)
is thrown. Please advice. Thank you.
  Regards,
 Florin

My code is:

//constructor
Client() {
   cas = CasCreationUtils.createCas(uimaTypeDescriptors);
}

//main method
main() {
  Client client = new Client();
 for (int i = 0; i < 100000; i++) {
            System.out.println("Sending message #"+i);
            client.sendToUIMA("Test message:"+i);
            Thread.sleep(100);
   }
}

 public void sendToUIMA(String msg) throws Exception {
        JCas jcas = cas.getJCas();
        jcas.reset();
        jcas.setDocumentText(msg);
        uimaEEEngine.sendCAS(jcas.getCas());
(Continue reading)

Spico Florin | 8 Feb 09:30
Picon

Some questions about CASPool functionality

Hello!
   I would like to know how CASPool works for an AE, regarding the
following aspects:
 - when a CAS is returned to the CASPool of the AE? After is being
processed by *ALL* Analysis Engines in the pipeline or after is being
consumed by the CASConsumer?
For example:
I have a pipeline that is running parallel AEs in pipeline and one
CASConsumer (using the AdvancedFlowController)
<nameValuePair>
        <name>Flow</name>
        <value>
          <array>
              <string>OAnnotator,LAnnotator,RAnnotator
             </string>
            <string>CCASConsumer</string>
          </array>
        </value>
      </nameValuePair>

Each of those annotators has its own CASPool with different sizes. Also
OAnnotator_process_time < RAnnotator_process_ time <
LAnnotator_process_time.
 Suppose that we have one message processed by the above pipeline. In this
use case how the CASPool will behave for each of the AE? It will take into
the consideration the whole time processing
(*ALL* the AE finished to send the annotations to the consumer) or we have
the same order kept for putting CAS into the CASPool :
OAnnotator_CAS_put_in_Pool_time < RAnnotator_CAS_put_in_Pool_time <
CAS_put_in_Pool_time.
(Continue reading)

Frank Enders | 7 Feb 16:25
Picon
Favicon
Gravatar

UIMA AS: Invalid destination after broker restart

Dear all,

I am having problems in a UIMA AS 2.3.1 setting when restarting the
broker while endpoints are currently running and deployed to it.
After restarting the broker, JMS states correct reconnection to the
queues. But when sending a request to the endpoint I get the following
error:

javax.jms.InvalidDestinationException: Cannot publish to a deleted
Destination: temp-queue://ID:xubuntu-VirtualBox-59422-1328615372283-0:1:1
	at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1696)
	at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:231)
	at
org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:300)
	at
org.apache.uima.adapter.jms.activemq.JmsEndpointConnection_impl.send(JmsEndpointConnection_impl.java:572)
	at
org.apache.uima.adapter.jms.activemq.JmsOutputChannel.sendReply(JmsOutputChannel.java:796)
	at
org.apache.uima.adapter.jms.activemq.JmsInputChannel.onMessage(JmsInputChannel.java:637)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:535)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:495)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:467)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:323)
	at
(Continue reading)

sanjeev.singwi | 7 Feb 16:13
Picon
Picon
Favicon
Gravatar

can't install UIMA plug-ins

Hi, I'm using Eclipse IDE for Java Developers 3.7.1 for MAC

I added the url:   http://www.apache.org/dist/uima/eclipse-update-site
to the update mechanism as per 3.1.2. Also added EMF.

I don't see UIMA plug-ins in the directory.  The odd thing is when I
browse to  http://www.apache.org/dist/uima/eclipse-update-site/ i get a
safari message "document could not be loaded by browser" as if the site
doesn't exit.

I then manually copied the "eclipse plug-ins" folder containing 8 jar
files into the "plugins" folder in eclipse.  I still do not see the
uima plug-ins the directory.

I can install UIMA examples into the workspace but not the plug-ins.
For example when i try the RoomNumberAnnotator ("my first UIMA
annotator example")  i don't see the "Add UIMA nature" option when i
create the project.

Thanks for any help

Alexander Klenner | 7 Feb 14:30
Picon
Favicon
Gravatar

CasMultiplier gets same CAS every time next() is called

Hi,

I have a problem with a CasMultiplier, it calls it's public AbstractCAS next() method as often as expected,
but as long as my CASMultiplier is running, there are no CASes given to any succeeding AEs.  Only one CAS is
passed from the CasMultiplier after the last call of next().

I tried to debug this and just printed the CAS that is returned by the framework by calling: 

JCas jcas = null;
jcas = getEmptyCAS().getJCas();
System.out.println(jcas.toString());

,inside the next() method.

This jcas happens to have the exact same object-id (e.g org.apache.uima.jcas.impl.JCasImpl <at> 6708f8e0)
for every call of next() method in one run. My CasMultiplier is supposed to create 4 CASes and next() is
actually called 4 times but somehow no new CASes are given by the framework, id seems to loop over the same
object all the time and the last call of next() releases this CAS to the processing framework... 

Any ideas?

Best,

Alex

--
Alexander G. Klenner
Fraunhofer-Institute for Algorithms and Scientific Computing (SCAI)
Schloss Birlinghoven, D-53754 Sankt Augustin
Tel.: +49 - 2241 - 14 - 2736
(Continue reading)

W.P. McNeill | 4 Feb 18:06
Picon
Gravatar

Installing UIMA Plugins in Eclipse Fails: Failed to prepare partial IU

I am unable to install the UIMA plugins on a clean install of Eclipse
(1.4.1 Indigo) running on Mac OS 10.7.2.

   1. Help->Install New Software
   2. Add  http://www.apache.org/dist/uima/eclipse-update-site as a
   software site.
   3. Select this as the site to "Work with".
   4. Select the plugins "Apache UIMA Eclipse tooling and runtime support"
   and "Apache UIMA-AS (Asynchronous Scaleout) Eclipse tooling".
   5. Go through the setup wizard for these plugins. The wizard gives the
   following error:

An error occurred while installing the items

session context was:(profile=epp.package.java,
phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null
--> [R]org.apache.uima.caseditor 2.4.0, action=).

Failed to prepare partial IU: [R]org.apache.uima.caseditor 2.4.0.

The plugins are not installed. I haven't found a workaround.

Does anyone have suggestions on what is wrong or what the workaround is.
There are various mentions of this error on message boards online, but I
couldn't ferret out a solution from any of the discussions.
Sylvain Surcin | 3 Feb 16:08
Gravatar

Annotators data path in UIMA C++

Hello,

How do we access the global -Duima.datapath from within a C++ annotator?
In Java we have the accessor UimaContext.getDataPath().
But I don't see any equivalent method in class AnnotatorContext used in the
annotator's initialize method...

BTW, I'm using the 2.4.0c release candidate for C++.

Thanks for any help.

--

-- 
Sylvain SURCIN, Ph.D.
*KWAGA*
Senior Software Architect
15, rue Jean-Baptiste Berlier
75013 Paris
France
Tél.: +33 (0)6.32.78.83.31
Guillaume Vauvert | 1 Feb 17:57
Picon
Gravatar

parent-pom version 4-SNAPSHOT

Hi,

The parent-pom with version 4-SNAPSHOT is not available on standard 
maven repositories (for instance 
http://mvnrepository.com/artifact/org.apache.uima/parent-pom).

Have you chosen to not release this version, and why ?

Or is it the fault of other maven repositories ?

Or should I add a UIMA maven repository ?

Best,
--
Guillaume Vauvert

Spico Florin | 1 Feb 16:23
Picon

Need Parallel processing explanations

Hello!
  We have a pipeline that uses the parallel flow controller to coordinate
parallel remote AE. They are annotating the same message.
Our pipeline runs two annotators in parallel and the outputs of them are
sent to one CAS consumer. The two annotators don't depend on each other.
  I would like to know how UIMA AS manage the parallel behavior of the two
processes when one annotator is running slower than the other?
  Will the faster annotator consumes more messages than slower one? Or they
work at the same level, and the faster one will wait until the slower one
  gets its job done, and then it consumes the next message from the
pipeline?

 I look forward for your answers.
 Thank you.

Best regards,
 Florin
Spico Florin | 1 Feb 11:11
Picon

UimaAsynchronousEngine client poor performance when the pipeline is slow processing the CAS

Hello!
I have application client that is receiving messages from a Queue via JMS.
The message is then packed in a JCas and sent to the UIMA AS pipeline via
UimaAsynchronousEngine.
If the UIMA AS pipeline processing is slow then it impacts the client in
the way that the received messages from the
Queue will not be sent as they arrived. I'm using sendCAS(CAS) method of
UimaAsynchronousEngine, thus the call to pipeline should be asynchronous
(as specfied in the spec).
 In my opinion the described behavior is not as expected (i.e. the client
should not be affected by the UIMA pipeline performance and
it should send the received messages for processing right away, without
waiting some responses).
  My questions are:
1. I suspect, that my client is somehow waiting the response from the
pipeline. Is there any way to disable the response feature?
2. I'm using a thread pool executor that is sending the messages to UIMA
pipeline. Is this a good approach?
3. How to design my client in order to send the messages to the pipeline
without concerning the pipeline performance?

I look forward for your answers and advices.
 Thank you.
   Best regards,

    Florin
Alexander Klenner | 31 Jan 14:09
Picon
Favicon
Gravatar

CAS Editor

Hi folks,

is there a mix-up with the 'UIMA annotation editor' and 'CAS-Editor' terms in the documentation? In
'Chapter 6. Cas Editor User's Guide' this looks to me like the functionality of the annotation editor but
its called CAS Editor.

However I cannot really test it since both of them don't work as expected for me. I recently upgraded to
latest version of uima and uima tools via eclipse update site. For me, the CAS-Editor is only available as a
perspective with only the main window working. All other windows (Edit View, Feature Structure View,
Annotation Styles,..) showing '...is currently not available'. 

Opening an XCas in the 'UIMA annotation editor' leads to an "Could not open the editor: Unknown file format'
error. The same Cas given as xmiCAS is loaded, but now the viewer states 'Cannot find type system'.
Manually selecting any TypeSystem.xml leads to a new error message: (PopUp Window) 'Cannot open input
element: Reason: Unkown file format!'. 

Both Cas versions (xmi and xcas) were created using an uima AE with the newest uima version, also the
TypeSystem is perfectly valid for all AEs and the TypeSystemViewer.

I am using eclipse indigo latest version and installed lates UIMA via update site, eclipse was started and
restarted with -clean option several times. 

Is this a known problem or am I doing something wrong here?

Thanks a lot,

Alex

--
Alexander G. Klenner
(Continue reading)


Gmane