You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Haim Zysberg <ha...@valuize.com> on 2007/11/15 17:22:26 UTC

Invalid Semantic Search Index Specification Descriptor

Hello,

 

I tried using Semantic Search (SemanticSearch_2.1.zip). with UIMA  2.2. and
encountered a problem  I used the CPE Configurator to build a CPE that uses
the UIMA Meeting Detector TAE and the Simple Token and Sentence Annotator,
with the Semantic Search CAS Indexer, to build an index. I followed the
instructions provided in the UIMA documentation (Chapter 3,
<file:///C:\apache-uima\docs\html\tutorials_and_users_guides\tutorials_and_u
sers_guides.html#ugr.tug.application#ugr.tug.application> section 3.5
"Integrating Text Analysis and Search" , in the "Application Developer's
Guides").  

 

When trying to run it  (within the CPE Configurator) , I got an error
message saying that the MeetingIndexBuildSpec.xml specified as the Index
Specification Descriptor in the CPE Configuration  is not valid.  In
parallel I received the following exceptions:

 

 

org.apache.uima.resource.ResourceInitializationException: Initialization of
CAS Processor with name "Semantic Search CAS Indexer" failed.  

      at
org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(C
ollectionProcessingEngine_impl.java:83)

      at
org.apache.uima.impl.UIMAFramework_impl._produceCollectionProcessingEngine(U
IMAFramework_impl.java:395)

      at
org.apache.uima.UIMAFramework.produceCollectionProcessingEngine(UIMAFramewor
k.java:807)

      at
org.apache.uima.tools.cpm.CpmPanel.startProcessing(CpmPanel.java:571)

      at org.apache.uima.tools.cpm.CpmPanel.access$000(CpmPanel.java:105)

      at org.apache.uima.tools.cpm.CpmPanel$1.construct(CpmPanel.java:711)

      at
org.apache.uima.tools.util.gui.SwingWorker$2.run(SwingWorker.java:130)

      at java.lang.Thread.run(Unknown Source)

 

Caused by: org.apache.uima.resource.ResourceConfigurationException:
Initialization of CAS Processor with name "Semantic Search CAS Indexer"
failed.  

      at
org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCa
sProcessor(CPEFactory.java:1104)

      at
org.apache.uima.collection.impl.cpm.container.CPEFactory.getCasProcessors(CP
EFactory.java:550)

      at
org.apache.uima.collection.impl.cpm.BaseCPMImpl.init(BaseCPMImpl.java:253)

      at
org.apache.uima.collection.impl.cpm.BaseCPMImpl.<init>(BaseCPMImpl.java:127)

      at
org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(C
ollectionProcessingEngine_impl.java:75)

      ... 7 more

 

Caused by: org.apache.uima.resource.ResourceInitializationException:
Initialization of annotator class
"com.ibm.apache_uima.search.juru.SemanticSearchCasIndexer" failed.
(Descriptor:
file:/C:/apache-uima/examples/descriptors/cas_consumer/SemanticSearchCasInde
xer.xml)

      at
org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize
AnalysisComponent(PrimitiveAnalysisEngine_impl.java:247)

      at
org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize
(PrimitiveAnalysisEngine_impl.java:151)

      at
org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngi
neFactory_impl.java:94)

      at
org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(Composite
ResourceFactory_impl.java:62)

      at
org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258)

      at
org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:303)

      at
org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:383)

      at
org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCa
sProcessor(CPEFactory.java:1088)

      ... 11 more

 

Caused by: org.apache.uima.resource.ResourceInitializationException: The
configuration data "C:/Program
Files/apache-uima/examples/descriptors/tutorial/search/MeetingIndexBuildSpec
.xml" for Configuration parameter "indexingSpecificationDescriptor" in the
resource is not valid

      at
com.ibm.apache_uima.search.juru.SemanticSearchCasIndexer.initialize(Semantic
SearchCasIndexer.java:181)

      at
org.apache.uima.analysis_engine.impl.compatibility.CasConsumerAdapter.initia
lize(CasConsumerAdapter.java:80)

      at
org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize
AnalysisComponent(PrimitiveAnalysisEngine_impl.java:245)

      ... 18 more

 

 

Does anybody have an idea what is wrong? The content of
MeetingIndexBuildSpec.xml  seems identical to what is shown in the
documentation .

 

 

Thanks,

Haim

 


RE: Invalid Semantic Search Index Specification Descriptor

Posted by Haim Zysberg <ha...@valuize.com>.
Eddie,

The UIMA_HOME parameter was set for these steps correctly. The error was
received when using the cpeGuiForSemanticSearch.bat file.  I am using Java
6.

Regards,

Haim

> -----Original Message-----
> From: Eddie Epstein [mailto:eaepstein@gmail.com]
> Sent: Friday, November 16, 2007 9:32 PM
> To: uima-user@incubator.apache.org
> Subject: Re: Invalid Semantic Search Index Specification Descriptor
> 
> Haim,
> 
> I just downloaded SemanticSearch_2.1.zip, unpacked it into the
> %uima_home% of an Apache UIMA v2.2 installation, ran the
> %UIMA_HOME%/bin/addSemanticSearchJars script, and then
> followed the directions in section 3.5 of the tutorials_and_users_guides;
> the CPE ran successfully.
> 
> [I did have one problem because I first used cpeGui.bat instead of
> cpeGuiForSemanticSearch.bat to run the CPE]
> 
> Did you have the UIMA_HOME environmental parameter set for these steps?
> None of the distribution files changed? I'm not sure what version of Java
> is required, I was using Java v5.
> 
> Regards,
> Eddie
> 
> On Nov 15, 2007 11:22 AM, Haim Zysberg <ha...@valuize.com> wrote:
> 
> > Hello,
> >
> >
> >
> > I tried using Semantic Search (SemanticSearch_2.1.zip). with UIMA   2.2.
> > and
> > encountered a problem  I used the CPE Configurator to build a CPE that
> > uses
> > the UIMA Meeting Detector TAE and the Simple Token and Sentence
> Annotator,
> > with the Semantic Search CAS Indexer, to build an index. I followed the
> > instructions provided in the UIMA documentation (Chapter 3,
> >
> > <file:///C:\apache-
> uima\docs\html\tutorials_and_users_guides\tutorials_and_u
> > sers_guides.html#ugr.tug.application#ugr.tug.application> section 3.5
> > "Integrating Text Analysis and Search" , in the "Application Developer's
> > Guides").
> >
> >
> >
> > When trying to run it  (within the CPE Configurator) , I got an error
> > message saying that the MeetingIndexBuildSpec.xml specified as the Index
> > Specification Descriptor in the CPE Configuration  is not valid.  In
> > parallel I received the following exceptions:
> >
> >
> >
> >
> >
> > org.apache.uima.resource.ResourceInitializationException :
> Initialization
> > of
> > CAS Processor with name "Semantic Search CAS Indexer" failed.
> >
> >      at
> >
> org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize
> > (C
> > ollectionProcessingEngine_impl.java:83)
> >
> >      at
> >
> org.apache.uima.impl.UIMAFramework_impl._produceCollectionProcessingEngine
> > (U
> > IMAFramework_impl.java:395)
> >
> >      at
> >
> org.apache.uima.UIMAFramework.produceCollectionProcessingEngine(UIMAFramew
> or
> >
> > k.java:807)
> >
> >      at
> > org.apache.uima.tools.cpm.CpmPanel.startProcessing(CpmPanel.java:571)
> >
> >      at org.apache.uima.tools.cpm.CpmPanel.access$000(CpmPanel.java:105)
> >
> >      at org.apache.uima.tools.cpm.CpmPanel$1.construct
> (CpmPanel.java:711)
> >
> >      at
> > org.apache.uima.tools.util.gui.SwingWorker$2.run(SwingWorker.java:130)
> >
> >      at java.lang.Thread.run(Unknown Source)
> >
> >
> >
> > Caused by: org.apache.uima.resource.ResourceConfigurationException :
> > Initialization of CAS Processor with name "Semantic Search CAS Indexer"
> > failed.
> >
> >      at
> >
> >
> org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegrated
> Ca
> > sProcessor(CPEFactory.java :1104)
> >
> >      at
> >
> org.apache.uima.collection.impl.cpm.container.CPEFactory.getCasProcessors
> > (CP
> > EFactory.java:550)
> >
> >      at
> >
> org.apache.uima.collection.impl.cpm.BaseCPMImpl.init(BaseCPMImpl.java:253)
> >
> >      at
> > org.apache.uima.collection.impl.cpm.BaseCPMImpl.<init>(BaseCPMImpl.java
> > :127)
> >
> >      at
> >
> org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize
> > (C
> > ollectionProcessingEngine_impl.java:75)
> >
> >      ... 7 more
> >
> >
> >
> > Caused by: org.apache.uima.resource.ResourceInitializationException:
> > Initialization of annotator class
> > "com.ibm.apache_uima.search.juru.SemanticSearchCasIndexer" failed.
> > (Descriptor:
> >
> > file:/C:/apache-
> uima/examples/descriptors/cas_consumer/SemanticSearchCasInde
> > xer.xml)
> >
> >      at
> >
> >
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initiali
> ze
> > AnalysisComponent(PrimitiveAnalysisEngine_impl.java:247)
> >
> >      at
> >
> >
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initiali
> ze
> > (PrimitiveAnalysisEngine_impl.java:151)
> >
> >      at
> >
> org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEn
> gi
> > neFactory_impl.java:94)
> >
> >      at
> > org.apache.uima.impl.CompositeResourceFactory_impl.produceResource
> > (Composite
> > ResourceFactory_impl.java:62)
> >
> >      at
> > org.apache.uima.UIMAFramework.produceResource (UIMAFramework.java:258)
> >
> >      at
> > org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:303)
> >
> >      at
> > org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java
> > :383)
> >
> >      at
> >
> >
> org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegrated
> Ca
> > sProcessor(CPEFactory.java:1088)
> >
> >      ... 11 more
> >
> >
> >
> > Caused by: org.apache.uima.resource.ResourceInitializationException :
> The
> > configuration data "C:/Program
> >
> > Files/apache-
> uima/examples/descriptors/tutorial/search/MeetingIndexBuildSpec
> > .xml" for Configuration parameter "indexingSpecificationDescriptor" in
> the
> > resource is not valid
> >
> >      at
> > com.ibm.apache_uima.search.juru.SemanticSearchCasIndexer.initialize
> > (Semantic
> > SearchCasIndexer.java:181)
> >
> >      at
> >
> >
> org.apache.uima.analysis_engine.impl.compatibility.CasConsumerAdapter.init
> ia
> > lize(CasConsumerAdapter.java:80)
> >
> >      at
> >
> >
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initiali
> ze
> > AnalysisComponent(PrimitiveAnalysisEngine_impl.java:245)
> >
> >      ... 18 more
> >
> >
> >
> >
> >
> > Does anybody have an idea what is wrong? The content of
> > MeetingIndexBuildSpec.xml  seems identical to what is shown in the
> > documentation .
> >
> >
> >
> >
> >
> > Thanks,
> >
> > Haim
> >
> >
> >
> >



Re: Invalid Semantic Search Index Specification Descriptor

Posted by Eddie Epstein <ea...@gmail.com>.
Haim,

I just downloaded SemanticSearch_2.1.zip, unpacked it into the
%uima_home% of an Apache UIMA v2.2 installation, ran the
%UIMA_HOME%/bin/addSemanticSearchJars script, and then
followed the directions in section 3.5 of the tutorials_and_users_guides;
the CPE ran successfully.

[I did have one problem because I first used cpeGui.bat instead of
cpeGuiForSemanticSearch.bat to run the CPE]

Did you have the UIMA_HOME environmental parameter set for these steps?
None of the distribution files changed? I'm not sure what version of Java
is required, I was using Java v5.

Regards,
Eddie

On Nov 15, 2007 11:22 AM, Haim Zysberg <ha...@valuize.com> wrote:

> Hello,
>
>
>
> I tried using Semantic Search (SemanticSearch_2.1.zip). with UIMA   2.2.
> and
> encountered a problem  I used the CPE Configurator to build a CPE that
> uses
> the UIMA Meeting Detector TAE and the Simple Token and Sentence Annotator,
> with the Semantic Search CAS Indexer, to build an index. I followed the
> instructions provided in the UIMA documentation (Chapter 3,
>
> <file:///C:\apache-uima\docs\html\tutorials_and_users_guides\tutorials_and_u
> sers_guides.html#ugr.tug.application#ugr.tug.application> section 3.5
> "Integrating Text Analysis and Search" , in the "Application Developer's
> Guides").
>
>
>
> When trying to run it  (within the CPE Configurator) , I got an error
> message saying that the MeetingIndexBuildSpec.xml specified as the Index
> Specification Descriptor in the CPE Configuration  is not valid.  In
> parallel I received the following exceptions:
>
>
>
>
>
> org.apache.uima.resource.ResourceInitializationException : Initialization
> of
> CAS Processor with name "Semantic Search CAS Indexer" failed.
>
>      at
> org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize
> (C
> ollectionProcessingEngine_impl.java:83)
>
>      at
> org.apache.uima.impl.UIMAFramework_impl._produceCollectionProcessingEngine
> (U
> IMAFramework_impl.java:395)
>
>      at
> org.apache.uima.UIMAFramework.produceCollectionProcessingEngine(UIMAFramewor
>
> k.java:807)
>
>      at
> org.apache.uima.tools.cpm.CpmPanel.startProcessing(CpmPanel.java:571)
>
>      at org.apache.uima.tools.cpm.CpmPanel.access$000(CpmPanel.java:105)
>
>      at org.apache.uima.tools.cpm.CpmPanel$1.construct (CpmPanel.java:711)
>
>      at
> org.apache.uima.tools.util.gui.SwingWorker$2.run(SwingWorker.java:130)
>
>      at java.lang.Thread.run(Unknown Source)
>
>
>
> Caused by: org.apache.uima.resource.ResourceConfigurationException :
> Initialization of CAS Processor with name "Semantic Search CAS Indexer"
> failed.
>
>      at
>
> org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCa
> sProcessor(CPEFactory.java :1104)
>
>      at
> org.apache.uima.collection.impl.cpm.container.CPEFactory.getCasProcessors
> (CP
> EFactory.java:550)
>
>      at
> org.apache.uima.collection.impl.cpm.BaseCPMImpl.init(BaseCPMImpl.java:253)
>
>      at
> org.apache.uima.collection.impl.cpm.BaseCPMImpl.<init>(BaseCPMImpl.java
> :127)
>
>      at
> org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize
> (C
> ollectionProcessingEngine_impl.java:75)
>
>      ... 7 more
>
>
>
> Caused by: org.apache.uima.resource.ResourceInitializationException:
> Initialization of annotator class
> "com.ibm.apache_uima.search.juru.SemanticSearchCasIndexer" failed.
> (Descriptor:
>
> file:/C:/apache-uima/examples/descriptors/cas_consumer/SemanticSearchCasInde
> xer.xml)
>
>      at
>
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize
> AnalysisComponent(PrimitiveAnalysisEngine_impl.java:247)
>
>      at
>
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize
> (PrimitiveAnalysisEngine_impl.java:151)
>
>      at
> org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngi
> neFactory_impl.java:94)
>
>      at
> org.apache.uima.impl.CompositeResourceFactory_impl.produceResource
> (Composite
> ResourceFactory_impl.java:62)
>
>      at
> org.apache.uima.UIMAFramework.produceResource (UIMAFramework.java:258)
>
>      at
> org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:303)
>
>      at
> org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java
> :383)
>
>      at
>
> org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCa
> sProcessor(CPEFactory.java:1088)
>
>      ... 11 more
>
>
>
> Caused by: org.apache.uima.resource.ResourceInitializationException : The
> configuration data "C:/Program
>
> Files/apache-uima/examples/descriptors/tutorial/search/MeetingIndexBuildSpec
> .xml" for Configuration parameter "indexingSpecificationDescriptor" in the
> resource is not valid
>
>      at
> com.ibm.apache_uima.search.juru.SemanticSearchCasIndexer.initialize
> (Semantic
> SearchCasIndexer.java:181)
>
>      at
>
> org.apache.uima.analysis_engine.impl.compatibility.CasConsumerAdapter.initia
> lize(CasConsumerAdapter.java:80)
>
>      at
>
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize
> AnalysisComponent(PrimitiveAnalysisEngine_impl.java:245)
>
>      ... 18 more
>
>
>
>
>
> Does anybody have an idea what is wrong? The content of
> MeetingIndexBuildSpec.xml  seems identical to what is shown in the
> documentation .
>
>
>
>
>
> Thanks,
>
> Haim
>
>
>
>

RE: Invalid Semantic Search Index Specification Descriptor

Posted by Haim Zysberg <ha...@valuize.com>.
Adam,

Well, you are right. There was something wrong with the path.. I fixed it
and it worked. Thanks!

Regards,

Haim

> -----Original Message-----
> From: lally.adam@gmail.com [mailto:lally.adam@gmail.com] On Behalf Of Adam
> Lally
> Sent: Saturday, November 17, 2007 12:26 AM
> To: uima-user@incubator.apache.org
> Subject: Re: Invalid Semantic Search Index Specification Descriptor
> 
> On Nov 15, 2007 11:22 AM, Haim Zysberg <ha...@valuize.com> wrote:
> > Caused by: org.apache.uima.resource.ResourceInitializationException: The
> > configuration data "C:/Program
> > Files/apache-
> uima/examples/descriptors/tutorial/search/MeetingIndexBuildSpec
> > .xml" for Configuration parameter "indexingSpecificationDescriptor" in
> the
> > resource is not valid
> >
> 
> This error message might be misleading - I think it might mean it
> cannot find the file at all.  Is this file path correct for your UIMA
> installation (C:/Program Files/apache-uima)?
> 
> -Adam




Re: Invalid Semantic Search Index Specification Descriptor

Posted by Adam Lally <al...@alum.rpi.edu>.
On Nov 15, 2007 11:22 AM, Haim Zysberg <ha...@valuize.com> wrote:
> Caused by: org.apache.uima.resource.ResourceInitializationException: The
> configuration data "C:/Program
> Files/apache-uima/examples/descriptors/tutorial/search/MeetingIndexBuildSpec
> .xml" for Configuration parameter "indexingSpecificationDescriptor" in the
> resource is not valid
>

This error message might be misleading - I think it might mean it
cannot find the file at all.  Is this file path correct for your UIMA
installation (C:/Program Files/apache-uima)?

-Adam