uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Su <ton...@su-networking.com>
Subject Re: Error when running DocumentAnalyzer script
Date Sun, 18 Nov 2012 00:00:45 GMT

Am hoping for some insight.

After installing Sun Java 5, an error was finally returned running
./documentAnalyzer.sh. In fact, curiously now the error occurs for all
versions of Java I use. Before installing Java 5, this error never showed


Have ran UIMA 2.4 SDK and UIMA 2.3.1 SDK against these versions of Java
openJAVA 1.7
Sun Java 5
Sun Java 7

Each time the version of Java was changed, these steps:

1. Modify JAVA_HOME to point to the new java binary location
2. run "source /etc/profile" to enable the new profile settings containing
3. Run "echo $JAVA_HOME" to verify the new setting.
Usually no need to re-run $UIMA_HOME because I'm running against the same
version, only the Java version is being changed
4. Run ./adjustExamplePaths.sh
No errors. Just a few "case ignored" warnings.
5. Run ./documentAnalyzer.sh

The following error is displayed no matter what Java version I'm running,
DocumentAnalyzer won't launch at all (before it did although broken as
described earlier in this thread).

Computername:/home/tony/apache-uima/bin # ./documentAnalyzer.sh
Exception in thread "main" java.lang.reflect.InvocationTargetException
   at java.lang.reflect.Method.invoke(libgcj.so.13)
   at org.apache.uima.bootstrap.UimaBootstrap.main(UimaBootstrap.java:98)
Caused by: java.awt.AWTError: Cannot load AWT toolkit:
   at java.awt.Toolkit.getDefaultToolkit(libgcj.so.13)
   at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(libgcj.so.13)
   at java.awt.Window.<init>(libgcj.so.13)
   at java.awt.Frame.<init>(libgcj.so.13)
   at javax.swing.JFrame.<init>(libgcj.so.13)
   at java.lang.reflect.Method.invoke(libgcj.so.13)
   ...1 more
Caused by: java.lang.ClassNotFoundException:
   at java.lang.Class.forName(libgcj.so.13)
   at java.awt.Toolkit.getDefaultToolkit(libgcj.so.13)
   ...9 more
 On Nov 15, 2012 2:54 PM, "Tony Su" <tonysu@su-networking.com> wrote:

> I may be able to answer my last question...
> There may not be a single executable for "core functionality" but is
> likely the collection of JAR files in the lib subdirectory.
> If that is the case, I think these simple tests which simply display the
> contents of essential directories using the $UIMA_HOME variable suggest
> UIMA_HOME is setup properly so all functionality should be accessible.
> Since Java is also setup properly (otherwise documentAnalyzer would not
> have run at all), could there be a bug?
> Tony
> computer/apache-uima/bin # ls $UIMA_HOME/examples
> .classpath  deploy       ecore_src  resources          src
> data        descriptors  .project   run_configuration
> You have new mail in /var/spool/mail/tony
> computer/apache-uima/bin # ls $UIMA_HOME/lib/
> jVinci.jar              uima-document-annotation.jar  uimaj-as-jms.jar
> uima-adapter-soap.jar   uima-examples.jar             uimaj-bootstrap.jar
> uima-adapter-vinci.jar  uimaj-as-activemq.jar         uima-tools.jar
> uima-core.jar           uimaj-as-camel.jar
> uima-cpe.jar            uimaj-as-core.jar
> On Thu, Nov 15, 2012 at 2:30 PM, Tony Su <tonysu@su-networking.com> wrote:
>> Q- is there supposed to be an actual uima binary somewhere?
>> There are only scripts in the bin directory, and I don't see any
>> executable with "uima" anywhere in any of the packages I downloaded from
>> the UIMA download page.
>> TIA,
>> Tony
>> On Nov 15, 2012 11:53 AM, "Tony Su" <tonysu@su-networking.com> wrote:
>>> Further update.
>>> After replacing with UIMA AS, believe that all script dependencies are
>>> satisfied.
>>> No change.
>>> Stumped.
>>> Unless perhaps that I'm running openJava instead of Oracle Java?
>>> Tony
>>> On Thu, Nov 15, 2012 at 11:42 AM, Tony Su <tonysu@su-networking.com>wrote:
>>>> Minor Update.
>>>> Looking around, it looks like ActiveMQ is installed as a part of UIMA
>>>> AS.
>>>> Although it's not certain to me at this time that runUimaClass.sh
>>>> absolutely requires ActiveMQ, I am re-installing UIMA AS replacing UIMA
>>>> Java Framework & SDK.
>>>> Tony
>>>> On Wed, Nov 14, 2012 at 10:22 PM, Tony Su <tonysu@su-networking.com>wrote:
>>>>> Looking at runUimaClass.sh,
>>>>> I see a reference to ActiveMQ which is supposed to be a subdirectory
>>>>> of UIMA_HOME which does not exist on my machine. I don't remember ActiveMQ
>>>>> was listed as a requirement in the documentation.
>>>>> Should I d/l and install ActiveMQ separately and install as
>>>>> runUimaClass.sh seems to expect?
>>>>> TIA,
>>>>> Tony
>>>>> On Nov 14, 2012 2:25 PM, "Tony Su" <tonysu@su-networking.com> wrote:
>>>>>> System    x64 openSUSE 12.2
>>>>>> Eclipse Juno
>>>>>> Hello,
>>>>>> Following the UIMA Tools video on YouTube,
>>>>>> "Click in Text to See Annotation Detail" does not seem to work.
>>>>>> I've noticed the displayed icon for "Annotations" is different, might
>>>>>> indicate not wired up to code behind?
>>>>>> I've posted a screenshot at
>>>>>> http://putztzu.github.com/error_screens/DocumentAnalyzer.png
>>>>>> I did set JAVA_HOME to a suitable JRE binary, until this was done,
>>>>>> the script would not run at all.
>>>>>> I did set UIMA_HOME to the apache-uima directory, and in the
>>>>>> uima-apache/bin directory ran "adjustExamplePaths.sh"
>>>>>> Expected behavior and appearance:
>>>>>> Expected the icon to be a bullet point like in the Video, instead
>>>>>> a greyed out file folder.
>>>>>> Clicking on the text does not result in any activity.
>>>>>> Until this step, have been able to replicate every step in the video.
>>>>>> Other functionality in the window appears to be working, ie clicking
>>>>>> to toggle on/off "Sentence" and "Token"
>>>>>> Do not know if errors are supposed to be logged anywhere, but i did
>>>>>> check the syslog with no relevant entries.
>>>>>> TIA,'
>>>>>> Tony

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message