You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by "A. Schaller" <an...@googlemail.com> on 2010/11/23 10:07:00 UTC
Re: Initialization of annotator class "foo" failed.
Thilo Götz <tw...@...> writes:
>
> Does your class really live in
> Lesson4/src/de.tudarmstadt.ukp.teaching.tutorial.lesson4/PosTagger.java?
> Shouldn't that be de/tudarmstadt/upk/...?
>
> --Thilo
>
> On 11/22/2010 10:30, A. Schaller wrote:
> > Hey together,
> >
> > I am having troubles with UIMA running a AE Descriptor or CPE Descriptor.
When I
> > try to run one of these with run configuriation "UIMA Run AE", "UIMA Run
CPE" or
> > "UIMA CAS Visual Debugger" I get the error:
> >
> > Caused by: org.apache.uima.resource.ResourceInitializationException:
> > Initialization of annotator class "foo" failed.
> >
> > Where foo is the corresponding *.java file. The strange thing is: When i am
> > going through the RoomNumberAnnotator example (http://uima.apache.org/doc-
uima-
> > annotator.html) everything works fine and compiles nicely.
> >
Hi Thilo,
indeed it resides ind de/tudarmstadt/upk/... etc.
i just wrote it down like it was displayed in Eclipse. The path to the java file
is definitely correct. I guess the error must be caused by some kind of
misconfiguration of data or class path? I just don't know how to proceed since i
tried several different configurations
Re: Initialization of annotator class "foo" failed.
Posted by Thilo Götz <tw...@gmx.de>.
I'd suggest you take the working room number sample
and refactor it one little step at a time until you
have your POS tagger. Perhaps while doing so you'll
figure out what went wrong in the first place.
--Thilo
On 11/23/2010 10:07, A. Schaller wrote:
> Thilo Götz <tw...@...> writes:
>
>>
>> Does your class really live in
>> Lesson4/src/de.tudarmstadt.ukp.teaching.tutorial.lesson4/PosTagger.java?
>> Shouldn't that be de/tudarmstadt/upk/...?
>>
>> --Thilo
>>
>> On 11/22/2010 10:30, A. Schaller wrote:
>>> Hey together,
>>>
>>> I am having troubles with UIMA running a AE Descriptor or CPE Descriptor.
> When I
>>> try to run one of these with run configuriation "UIMA Run AE", "UIMA Run
> CPE" or
>>> "UIMA CAS Visual Debugger" I get the error:
>>>
>>> Caused by: org.apache.uima.resource.ResourceInitializationException:
>>> Initialization of annotator class "foo" failed.
>>>
>>> Where foo is the corresponding *.java file. The strange thing is: When i am
>>> going through the RoomNumberAnnotator example (http://uima.apache.org/doc-
> uima-
>>> annotator.html) everything works fine and compiles nicely.
>>>
>
>
> Hi Thilo,
>
> indeed it resides ind de/tudarmstadt/upk/... etc.
>
> i just wrote it down like it was displayed in Eclipse. The path to the java file
> is definitely correct. I guess the error must be caused by some kind of
> misconfiguration of data or class path? I just don't know how to proceed since i
> tried several different configurations
>
>
Re: Initialization of annotator class &quot;foo&quot; failed.
Posted by "A. Schaller" <an...@googlemail.com>.
Marshall Schor <ms...@...> writes:
>
> hi -
>
> Maybe the stack trace located at http://pastebin.com/fjkVPFAB (?) points at
> what's wrong:
>
> 1.
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
> 2.
> at
>
de.tudarmstadt.ukp.teaching.tutorial.lesson4.PosTagger.initialize(PosTagger.java
:37)
>
> If this is indeed the stack trace for your problem (it's different from the
url
> you have below) - can you look at line 37 in PosTagger and see what might
cause
> the Array Index out of bounds?
>
> -Marshall
Oh my... how obvious. Thanks Marshall, should have seen this by myself. Thanks
to all the other for support.
Re: Initialization of annotator class "foo" failed.
Posted by Marshall Schor <ms...@schor.com>.
hi -
Maybe the stack trace located at http://pastebin.com/fjkVPFAB (?) points at
what's wrong:
1.
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
2.
at
de.tudarmstadt.ukp.teaching.tutorial.lesson4.PosTagger.initialize(PosTagger.java:37)
If this is indeed the stack trace for your problem (it's different from the url
you have below) - can you look at line 37 in PosTagger and see what might cause
the Array Index out of bounds?
-Marshall
On 11/23/2010 8:37 AM, A. Schaller wrote:
> Marshall Schor <ms...@...> writes:
>
>> It may help if you post the full stack trace, and it may help if you post the
>> descriptor xml that is failing to load.
>>
>> It could be that the postagger requires some resources to be on its classpath
> or
>> datapath, that are missing.
>>
>> -Marshall
>
> PosTagger.xml code:
>
> http://pastebin.com/CeHXwEhJ
>
>
> Stack trace:
>
> http://pastebin.com/fjkVPFAB
>
> Refactoring RoomNumberAnnotator example step by step until it fits my PosTagger
> project is what I already tried to do. Don't know exactly what went wrong but I
> guess I have to try it again.
>
>
>
>
>
>
Re: Initialization of annotator class "foo" failed.
Posted by "A. Schaller" <an...@googlemail.com>.
Marshall Schor <ms...@...> writes:
>
> It may help if you post the full stack trace, and it may help if you post the
> descriptor xml that is failing to load.
>
> It could be that the postagger requires some resources to be on its classpath
or
> datapath, that are missing.
>
> -Marshall
PosTagger.xml code:
http://pastebin.com/CeHXwEhJ
Stack trace:
http://pastebin.com/fjkVPFAB
Refactoring RoomNumberAnnotator example step by step until it fits my PosTagger
project is what I already tried to do. Don't know exactly what went wrong but I
guess I have to try it again.
Re: Initialization of annotator class "foo" failed.
Posted by Marshall Schor <ms...@schor.com>.
It may help if you post the full stack trace, and it may help if you post the
descriptor xml that is failing to load.
It could be that the postagger requires some resources to be on its classpath or
datapath, that are missing.
-Marshall
On 11/23/2010 4:07 AM, A. Schaller wrote:
> Thilo Götz <tw...@...> writes:
>
>> Does your class really live in
>> Lesson4/src/de.tudarmstadt.ukp.teaching.tutorial.lesson4/PosTagger.java?
>> Shouldn't that be de/tudarmstadt/upk/...?
>>
>> --Thilo
>>
>> On 11/22/2010 10:30, A. Schaller wrote:
>>> Hey together,
>>>
>>> I am having troubles with UIMA running a AE Descriptor or CPE Descriptor.
> When I
>>> try to run one of these with run configuriation "UIMA Run AE", "UIMA Run
> CPE" or
>>> "UIMA CAS Visual Debugger" I get the error:
>>>
>>> Caused by: org.apache.uima.resource.ResourceInitializationException:
>>> Initialization of annotator class "foo" failed.
>>>
>>> Where foo is the corresponding *.java file. The strange thing is: When i am
>>> going through the RoomNumberAnnotator example (http://uima.apache.org/doc-
> uima-
>>> annotator.html) everything works fine and compiles nicely.
>>>
>
> Hi Thilo,
>
> indeed it resides ind de/tudarmstadt/upk/... etc.
>
> i just wrote it down like it was displayed in Eclipse. The path to the java file
> is definitely correct. I guess the error must be caused by some kind of
> misconfiguration of data or class path? I just don't know how to proceed since i
> tried several different configurations
>
>
>
>