uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaroslaw Cwiklik <cwik...@apache.org>
Subject Re: Java 11 - UIMA-AS 2.10.3
Date Thu, 27 Feb 2020 21:43:48 GMT
The UIMA-AS has been tested with Java 8 only. Is it critical for you to run
uima-as (and core uima) with Java 11?
Not sure what else may break with uma-as with a newer java. I will take a
look tomorrow at the Dd2Spring problem.
Looks like SAXTransformerFactory has changed.

- Jerry

On Wed, Feb 26, 2020 at 5:15 PM Hai-Son Nguyen <haison.nguyen.titi@gmail.com>
wrote:

> Thanks Marshall,
>
> I updated the bootstrap.jar file with the one from UIMA 2.10.4 and the
> problem went away and a new one arose with using the dd2spring.xml file
> (not sure if the issue is coupled or independent:
>
> INFO: Using Saxon Java API - Java Vendor:Oracle Corporation
> Feb 26, 2020 8:24:23 AM org.apache.uima.internal.util.XMLUtils
> createSaxTransformerFactory(614)
> WARNING: SAXTransformerFactory didn't recognize setting attribute
> http://javax.xml.XMLConstants/property/accessExternalDTD
> Feb 26, 2020 8:24:23 AM org.apache.uima.internal.util.XMLUtils
> createSaxTransformerFactory(621)
> WARNING: SAXTransformerFactory didn't recognize setting attribute
> http://javax.xml.XMLConstants/property/accessExternalStylesheet
> Error at xsl:variable on line 98 column 52 of dd2spring.xsl:
>   XPST0017: XPath syntax error at char 12 on line 98 in {x2:getGUID()}:
>     Cannot find a matching 0-argument function named
>   {org.apache.uima.aae.deploymentDescriptor.XsltGUIDgenerator}getGUID()
> Error at xsl:variable on line 2405 column 77 of dd2spring.xsl:
>   XPST0017: XPath syntax error at char 35 on line 2405 in
> {...solveByName($importNode/@na...}:
>     Cannot find a matching 1-argument function named
>
> {org.apache.uima.aae.deploymentDescriptor.XsltImportByName}resolveByName()
> Error at xsl:sequence on line 2459 column 104 of dd2spring.xsl:
>   XPST0017: XPath syntax error at char 69 on line 2459 in
> {...x1:resolveByName($node/@nam...}:
>     Cannot find a matching 1-argument function named
>
> {org.apache.uima.aae.deploymentDescriptor.XsltImportByName}resolveByName()
> Error - dd2spring transformation failed:
> javax.xml.transform.TransformerConfigurationException: Failed to compile
> stylesheet. 3 errors detected.
>         at
> net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:176)
>         at
> net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:139)
>         at
> net.sf.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:91)
>         at
> org.apache.uima.adapter.jms.service.Dd2spring$SaxonJavaInterface.convertDD2Spring(Dd2spring.java:420)
>         at
> org.apache.uima.adapter.jms.service.Dd2spring.convertDd2Spring(Dd2spring.java:184)
>         at
> org.apache.uima.adapter.jms.service.Dd2spring.convertDd2Spring(Dd2spring.java:105)
>         at
> org.apache.uima.adapter.jms.service.UIMA_Service.initialize(UIMA_Service.java:113)
>         at
> org.apache.uima.adapter.jms.service.UIMA_Service.main(UIMA_Service.java:420)
>         at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>         at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>         at
> org.apache.uima.bootstrap.UimaBootstrap.main(UimaBootstrap.java:87)
> Feb 26, 2020 8:24:24 AM org.apache.uima.adapter.jms.service.Dd2spring
> convertDD2Spring
> SEVERE: Unexpected, unhandled exception while calling Saxon
> Feb 26, 2020 8:24:24 AM org.apache.uima.adapter.jms.service.UIMA_Service
> main
> WARNING:
> javax.xml.transform.TransformerConfigurationException: Failed to compile
> stylesheet. 3 errors detected.
>         at
> net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:176)
>         at
> net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:139)
>         at
> net.sf.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:91)
>         at
> org.apache.uima.adapter.jms.service.Dd2spring$SaxonJavaInterface.convertDD2Spring(Dd2spring.java:420)
>         at
> org.apache.uima.adapter.jms.service.Dd2spring.convertDd2Spring(Dd2spring.java:184)
>         at
> org.apache.uima.adapter.jms.service.Dd2spring.convertDd2Spring(Dd2spring.java:105)
>         at
> org.apache.uima.adapter.jms.service.UIMA_Service.initialize(UIMA_Service.java:113)
>         at
> org.apache.uima.adapter.jms.service.UIMA_Service.main(UIMA_Service.java:420)
>         at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>         at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>         at
> org.apache.uima.bootstrap.UimaBootstrap.main(UimaBootstrap.java:87)
>
> Just a heads up!
> Thanks!
> Hai-Son
>
> On 2020/02/26 16:33:21, Marshall Schor <msa@schor.com> wrote:
> > Hi,
> >
> > This problem was fixed in core uima (uimaj) in version 2.10.3, see Jira
> issue:
> > https://issues.apache.org/jira/browse/UIMA-5754
> >
> > But uima-as version 2.10.3 was built/delivered with a previous version
> of core
> > uima (uimaj), and doesn't have this fix.
> >
> > We'll look into fixes/workarounds for this earlier version.
> >
> > -Marshall
> >
> >
> > On 2/26/2020 12:58 AM, Hai-Son Nguyen wrote:
> > > Hi,
> > > I receiving an exception running:
> > >    bin/runUimaClass.sh
> org.apache.uima.adapter.jms.service.UIMA_Service ...
> > > using Java 11 both the Oracle
> > >    java 11.0.6 2020-01-14 LTS
> > > and the OpenJDK versions:
> > >   openjdk 11.0.3 2019-04-16
> > >
> > > Exception in thread "main" java.lang.ClassCastException: class
> jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class
> java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader
> and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
> > >     at
> org.apache.uima.bootstrap.UimaBootstrap.addUrlsToSystemLoader(UimaBootstrap.java:146)
> > >     at
> org.apache.uima.bootstrap.UimaBootstrap.main(UimaBootstrap.java:74)
> > >
> > > Thanks!
> > > Hai-Son
> >
>

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