Re: SaxParse Exception

2016-08-05 Thread Jaroslaw Cwiklik
Matthias, I will create a JIRA for this so that it can be addressed for the
next UIMA-AS release For some reason I have not seen this type of problem
when running regression tests. Thank you for discovering this and finding
the fix.

Jerry

On Fri, Aug 5, 2016 at 3:16 AM, Matthias Koch 
wrote:

> Hi
>
> http://forum.spring.io/forum/spring-projects/aop/22379-why-d
> oes-scope-attribute-cause-xml-parsing-exception
>
> This post mentions that the dtd has to be version 2.0.
>
> I change the dd2spring.xsl line:87 - 90 to this
>
>  doctype-public="-//Spring//DTD BEAN 2.0//EN"
> doctype-system="http://www.springframework.org/dtd/spring-beans-2.0.dtd;
> />
>
> now the exception disappeared and everything looks fine.
>
> Sincere regards,
> Matthias
>
>


SaxParse Exception

2016-08-05 Thread Matthias Koch

Hi

http://forum.spring.io/forum/spring-projects/aop/22379-why-does-scope-attribute-cause-xml-parsing-exception

This post mentions that the dtd has to be version 2.0.

I change the dd2spring.xsl line:87 - 90 to this

http://www.springframework.org/dtd/spring-beans-2.0.dtd;
/>

now the exception disappeared and everything looks fine.

Sincere regards,
Matthias



SAXParse Exception

2016-08-05 Thread Matthias Koch

Hi

I'm using UIMA-AS 2.8.1 and Spring-4.3.2.

if i call: 
this.uimaAsynchronousEngine.deploy(asDeploymentDescriptorFile.getPath(), 
appCtx)


I'm getting an exception

Caused by: org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 
29; Attribut "scope" muss für Elementtyp "bean" deklariert werden.
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:437)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:325)
at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(XMLDTDValidator.java:1253)
at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1917)
at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:763)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2786)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at 
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
at 
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)
at 
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:428)
at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)

... 52 more


this looks like this issue: https://issues.apache.org/jira/browse/UIMA-4972

Can i fix it ? Or should i use Spring version 4.1.9 like uima-as 2.8.1

Sincere regards,
Matthias