uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burn Lewis (JIRA)" <...@uima.apache.org>
Subject [jira] [Resolved] (UIMA-5117) UIMA-AS: dd2spring should log at INFO
Date Mon, 03 Oct 2016 21:12:20 GMT

     [ https://issues.apache.org/jira/browse/UIMA-5117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Burn Lewis resolved UIMA-5117.
------------------------------
    Resolution: Fixed

Added a check for the saxon version as if saxon9 is in the classpath dd2spring and uima-as
will not work.  The command-line syntax for the Transform method was changed for saxon9, and
it also causes a NPE in UIMA-AS when handling a get-meta request. 
The saxon9 check logs an error message and throws an exception:

03:58:05.163 - 1: org.apache.uima.adapter.jms.service.Dd2spring.convertDD2Spring: SEVERE:
saxon9 must not be in classpath
Caused by: org.apache.uima.adapter.jms.service.Dd2springException: saxon9 found in classpath
- dd2spring transformation and UIMA-AS do not support saxon9
:
Without this check the stack trace is:

04:14:57.222 - 48: org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.sendMetadata:
WARNING: 
java.lang.NullPointerException
	at net.sf.saxon.event.ReceivingContentHandler.getNodeName(ReceivingContentHandler.java:412)
	at net.sf.saxon.event.ReceivingContentHandler.startElement(ReceivingContentHandler.java:304)
	at org.apache.uima.util.XMLSerializer$CharacterValidatingContentHandler.startElement(XMLSerializer.java:277)
	at org.apache.uima.resource.metadata.impl.MetaDataObjectSerializer_indent.outputStartElement(MetaDataObjectSerializer_indent.java:187)
	at org.apache.uima.resource.metadata.impl.MetaDataObjectSerializer_plain.writeSimpleValueWithTag(MetaDataObjectSerializer_plain.java:77)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.writePrimitiveValue(MetaDataObject_impl.java:1644)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.writePropertyAsElement(MetaDataObject_impl.java:991)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.toXMLcommon(MetaDataObject_impl.java:880)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.toXML(MetaDataObject_impl.java:846)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.toXML(MetaDataObject_impl.java:826)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.writeArrayPropertyAsElement(MetaDataObject_impl.java:1066)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.writePropertyAsElement(MetaDataObject_impl.java:981)
	at org.apache.uima.resource.metadata.impl.ConfigurationParameterSettings_impl.writePropertyAsElement(ConfigurationParameterSettings_impl.java:313)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.toXMLcommon(MetaDataObject_impl.java:880)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.toXML(MetaDataObject_impl.java:846)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.toXML(MetaDataObject_impl.java:826)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.writePropertyAsElement(MetaDataObject_impl.java:986)
	at org.apache.uima.analysis_engine.metadata.impl.AnalysisEngineMetaData_impl.writePropertyAsElement(AnalysisEngineMetaData_impl.java:192)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.toXMLcommon(MetaDataObject_impl.java:880)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.toXML(MetaDataObject_impl.java:841)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.toXML(MetaDataObject_impl.java:817)
	at org.apache.uima.resource.metadata.impl.MetaDataObject_impl.toXML(MetaDataObject_impl.java:811)
	at org.apache.uima.aae.controller.BaseAnalysisEngineController.sendMetadata(BaseAnalysisEngineController.java:2870)
	at org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.sendMetadata(PrimitiveAnalysisEngineController_impl.java:1313)
	at org.apache.uima.aae.handler.input.MetadataRequestHandler_impl.handle(MetadataRequestHandler_impl.java:69)
	at org.apache.uima.aae.handler.HandlerBase.delegate(HandlerBase.java:149)
	at org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.handle(ProcessRequestHandler_impl.java:1085)
	at org.apache.uima.aae.spi.transport.vm.UimaVmMessageListener.onMessage(UimaVmMessageListener.java:107)
	at org.apache.uima.aae.spi.transport.vm.UimaVmMessageDispatcher$1.run(UimaVmMessageDispatcher.java:70)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)
	at org.apache.uima.aae.UimaAsThreadFactory$1.run(UimaAsThreadFactory.java:132)
	at java.lang.Thread.run(Thread.java:780)


> UIMA-AS: dd2spring should log at INFO
> -------------------------------------
>
>                 Key: UIMA-5117
>                 URL: https://issues.apache.org/jira/browse/UIMA-5117
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>            Reporter: Jerry Cwiklik
>            Assignee: Burn Lewis
>             Fix For: 2.9.0AS
>
>
> Dd2Spring.convertDd2Spring() method should log exceptions at INFO level instead of CONFIG.
When runtime was mis-configured, the code was failing yet there were no exceptions being logged,
making debugging difficult.
> Also, when exception happens in converDd2Spring() it is not being re-thrown. This causes
the uima-as to continue running and trying to deploy using zero-length spring context file
which results in another Exception. Modify code to re-throw Exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message