tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jawahar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-2789) Apache tika - java.lang.NoClassDefFoundError
Date Wed, 12 Dec 2018 08:06:00 GMT

    [ https://issues.apache.org/jira/browse/TIKA-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16718577#comment-16718577
] 

Jawahar commented on TIKA-2789:
-------------------------------

java.lang.LinkageError: loader (instance of  org/xeustechnologies/jcl/JarClassLoader): attempted
 duplicate class definition for name:
 "schemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/TypeSystemHolder" 	
at java.lang.ClassLoader.defineClass1(Native Method) 	
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)    
at java.lang.ClassLoader.defineClass(ClassLoader.java:642) 	
at org.xeustechnologies.jcl.JarClassLoader.access$000(JarClassLoader.java:50) 	
at org.xeustechnologies.jcl.JarClassLoader$LocalLoader.loadClass(JarClassLoader.java:254)
at org.xeustechnologies.jcl.AbstractClassLoader.loadClass(AbstractClassLoader.java:122) 	
at org.xeustechnologies.jcl.AbstractClassLoader.loadClass(AbstractClassLoader.java:97) 	
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:769) 	
at org.openxmlformats.schemas.wordprocessingml.x2006.main.DocumentDocument.<clinit>(Unknown
Source) 	
at org.openxmlformats.schemas.wordprocessingml.x2006.main.DocumentDocument$Factory.parse(Unknown
Source) 	
at org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:178) 	
at org.apache.poi.ooxml.POIXMLDocument.load(POIXMLDocument.java:184) 	
at org.apache.poi.xwpf.usermodel.XWPFDocument.<init>(XWPFDocument.java:138) 	
at org.apache.poi.xwpf.extractor.XWPFWordExtractor.<init>(XWPFWordExtractor.java:60)
	
at org.apache.poi.ooxml.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:228)
	
at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:116)
	
at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:110) 	
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280) 	
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280) 	
at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:143) 	
at org.apache.tika.Tika.parseToString(Tika.java:527) 	
at org.apache.tika.Tika.parseToString(Tika.java:602) 	


but in my classpath only one file schemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/TypeSystemHolder.class
is present. is there any issue in class loader ?

> Apache tika - java.lang.NoClassDefFoundError
> --------------------------------------------
>
>                 Key: TIKA-2789
>                 URL: https://issues.apache.org/jira/browse/TIKA-2789
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.19.1
>            Reporter: Jawahar
>            Priority: Minor
>
> I am running tomcat based server for attachment extraction using apache tika-app-jar-1.19.1.(https://www.apache.org/dyn/closer.cgi/tika/tika-app-1.19.1.jar)
. while trying to extract docx files(not for all docx files,only some files), tika throws
following exception. JDK version is 1.8.0_162.
> java.lang.NoClassDefFoundError: Could not initialize class org.openxmlformats.schemas.wordprocessingml.x2006.main.DocumentDocument
at org.openxmlformats.schemas.wordprocessingml.x2006.main.DocumentDocument$Factory.parse(Unknown
Source) at org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:178)
at org.apache.poi.ooxml.POIXMLDocument.load(POIXMLDocument.java:184) at org.apache.poi.xwpf.usermodel.XWPFDocument.(XWPFDocument.java:138)
at org.apache.poi.xwpf.extractor.XWPFWordExtractor.(XWPFWordExtractor.java:60) at org.apache.poi.ooxml.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:228)
at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:116)
at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:110) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280) at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:143)
at org.apache.tika.Tika.parseToString(Tika.java:527) 
> at org.apache.tika.Tika.parseToString(Tika.java:602)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message