Got error when executing okapi-assembly-tikal-0.24-classes.jar file

Create issue
Issue #1022 closed
Handika D created an issue

Machine: Apple M1
Operating System: Mac OS Big Sur

JDK version: 15

command:

java -jar okapi-assembly-tikal-0.24-classes.jar -x docs/my-doc.docx -trace

Okapi Tikal - Localization Toolset
Version: null

java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: jar:file:/Users/me/Documents/okapi/okapi-assembly-tikal-0.24-classes.jar!/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntax
at java.xml/javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:119)
at net.sf.okapi.filters.its.Parameters.<init>(Parameters.java:130)
at net.sf.okapi.filters.its.ITSFilter.<init>(ITSFilter.java:122)
at net.sf.okapi.filters.xml.XMLFilter.<init>(XMLFilter.java:55)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:350)
at java.base/java.lang.Class.newInstance(Class.java:645)
at net.sf.okapi.common.filters.FilterConfigurationMapper.addConfigurations(FilterConfigurationMapper.java:559)
at net.sf.okapi.common.filters.FilterConfigurationMapper.addConfigurations(FilterConfigurationMapper.java:135)
at net.sf.okapi.common.filters.DefaultFilters.setMappings(DefaultFilters.java:50)
at net.sf.okapi.applications.tikal.Main.initialize(Main.java:635)
at net.sf.okapi.applications.tikal.Main.process(Main.java:931)
at net.sf.okapi.applications.tikal.Main.main(Main.java:574)
Caused by: javax.xml.xpath.XPathFactoryConfigurationException: java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: jar:file:/Users/handika/Documents/okapi/okapi-assembly-tikal-0.24-classes.jar!/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntax
at java.xml/javax.xml.xpath.XPathFactoryFinder.findServiceProvider(XPathFactoryFinder.java:346)
at java.xml/javax.xml.xpath.XPathFactoryFinder._newFactory(XPathFactoryFinder.java:212)
at java.xml/javax.xml.xpath.XPathFactoryFinder.newFactory(XPathFactoryFinder.java:137)
at java.xml/javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:223)
at java.xml/javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:113)
... 16 more
Caused by: java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: jar:file:/Users/handika/Documents/okapi/okapi-assembly-tikal-0.24-classes.jar!/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntax
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:591)
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:597)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.parseLine(ServiceLoader.java:1141)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.parse(ServiceLoader.java:1171)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1207)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1222)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1266)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1301)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1386)
at java.xml/javax.xml.xpath.XPathFactoryFinder$2.run(XPathFactoryFinder.java:335)
at java.xml/javax.xml.xpath.XPathFactoryFinder$2.run(XPathFactoryFinder.java:331)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:312)
at java.xml/javax.xml.xpath.XPathFactoryFinder.findServiceProvider(XPathFactoryFinder.java:331)
... 20 more

Comments (3)

  1. Log in to comment