uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaroslaw Cwiklik <uim...@gmail.com>
Subject Re: SpringContainerDeployer deploy: Missing display name (AS 2.3.1 RC4)
Date Wed, 09 Feb 2011 17:25:09 GMT
First, thank you for identifying the problem. The interim fix is to add
<name> element  in the AE descriptor and specify a value. I was able to
verify that if the <name> element is missing OR it has no value, the Spring
Container throws the exception. I will create a JIRA to detect
missing/undefined AE name and generate one. Probably a descriptive log
message would also be useful.

JC

Check if the AE descriptor includes the <name> element like here:

analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
  <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
  <primitive>true</primitive>
  <annotatorImplementationName>org.apache.uima.examples.cas.PersonTitleAnnotator</annotatorImplementationName>
  <analysisEngineMetaData>

------------------>    <name>Person Title Annotator - Within Names
only</name>        <-----------------------------

The reason why 2.3.0 worked and the 2.3.1 does not has to do with a newer
version of Spring that is bundled
with 2.3.1. It appears that the newer Spring has better validation.

-JC

On Wed, Feb 9, 2011 at 6:42 AM, Frank Enders <enders@averbis.de> wrote:

> Hello,
>
> when trying to deploy an engine using UIMA AS 2.3.1 RC4 it fails because
> of a missing display name:
>
> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer deploy
> WARNING:
> java.lang.IllegalArgumentException: Display name must not be empty
>        at org.springframework.util.Assert.hasLength(Assert.java:136)
>        at
>
> org.springframework.context.support.AbstractApplicationContext.setDisplayName(AbstractApplicationContext.java:254)
>        at
>
> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.initializeTopLevelController(SpringContainerDeployer.java:161)
>        at
>
> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.initializeContainer(SpringContainerDeployer.java:282)
>        at
>
> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.deploy(SpringContainerDeployer.java:413)
> [...]
>
> Am I missing a configuration parameter? UimaAsynchronousEngine.Endpoint
> and UimaAsynchronousEngine.ApplicationName are set.
> The engine runs well using AS 2.3.0.
>
> Thanks for any help! Frank
>

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