简体   繁体   English

java.lang.NoSuchMethodError:org.apache.xmlbeans.XmlOptions.setSaveAggressiveNamespaces()Lorg / apache / xmlbeans / XmlOptions;

[英]java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setSaveAggressiveNamespaces()Lorg/apache/xmlbeans/XmlOptions;

I am trying to write a program which write the data in Excel. 我正在尝试编写一个在Excel中编写数据的程序。 But i keep getting an error which is shown below: 但我不断收到如下所示的错误:

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setSaveAggressiveNamespaces()Lorg/apache/xmlbeans/XmlOptions;
    at org.apache.poi.POIXMLDocumentPart.<clinit>(POIXMLDocumentPart.java:56)
    at wriExcel.main(wriExcel.java:19)

On finding the solutions, I could only find that I should use XMLBeans 2.0 or higher. 在找到解决方案时,我只能发现我应该使用XMLBeans 2.0或更高版本。 But, I am using xmlbeans 2.3.0 . 但是,我正在使用xmlbeans 2.3.0 Is there any other reason for this error. 这个错误还有其他原因吗?

使用xmlbeans-2.6.0.jar可以解决我的问题...!

This error might be because required needed for the project is not there so you have to download jar and then add that jar to your classpath here is the link 该错误可能是因为项目所需的需求不存在,因此您必须下载jar,然后将该jar添加到您的类路径中, 这是链接

find out which jar you need 找出你需要的罐子

Use the xmlbeans jar file shipped with PIO libraries, and avoid to download from any other source as there will be jar file conflicts. 使用PIO库随附的xmlbeans jar文件,并避免从任何其他来源下载,因为这将导致jar文件冲突。

You can find the xmlbeans under "ooxml-lib" shipped with PIO. 您可以在PIO附带的“ooxml-lib”下找到xmlbeans。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setEntityExpansionLimit(I)Lorg/apache/xmlbeans/XmlOptions - java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setEntityExpansionLimit(I)Lorg/apache/xmlbeans/XmlOptions 获取:: java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.put(Ljava/lang/Object;)V - Getting :: java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.put(Ljava/lang/Object;)V 线程“AWT-EventQueue-0”中的异常 java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.put(Ljava/lang/Object;)V - Exception in thread “AWT-EventQueue-0” java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.put(Ljava/lang/Object;)V java.lang.ClassNotFoundException:org.apache.xmlbeans.XmlOptions - java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlOptions 错误:java.lang.NoClassDefFoundError:无法解决以下问题:Lorg / apache / xmlbeans / XmlOptions; - error: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/xmlbeans/XmlOptions; 引起原因:java.lang.LinkageError:加载程序约束违规:解决方法“ org.apache.xmlbeans.XmlOptions.setLoadReplaceDocumentElement时” - Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "org.apache.xmlbeans.XmlOptions.setLoadReplaceDocumentElement 可执行jar中的jar:jorg.apache.xmlbeans.XmlOptions.setEntityExpansionLimit(I)org.apache.poi.ooxml.POIXMLTypeLoader。 <clinit> - Jar in executable Jar: jorg.apache.xmlbeans.XmlOptions.setEntityExpansionLimit(I) org.apache.poi.ooxml.POIXMLTypeLoader.<clinit> 读取xmlbeans中的“ java.lang.NoSuchMethodError”异常 - “java.lang.NoSuchMethodError” exception in reading xmlbeans POI 5.0.0、xmlbeans-5.0.1、xlsx-streamer-2.2.0 java.lang.NoSuchMethodError org.apache.poi.xssf.model.SharedStringsTable.getEntryAt(I) - POI 5.0.0, xmlbeans-5.0.1, xlsx-streamer-2.2.0 java.lang.NoSuchMethodError org.apache.poi.xssf.model.SharedStringsTable.getEntryAt(I) java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlObject 错误 - java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlObject Error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM