You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2023/07/25 10:11:04 UTC
[Bug 66791] New: getting java.lang.NoSuchFieldError: RAW_XML_FILE_HEADER
https://bz.apache.org/bugzilla/show_bug.cgi?id=66791
Bug ID: 66791
Summary: getting java.lang.NoSuchFieldError:
RAW_XML_FILE_HEADER
Product: POI
Version: unspecified
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: POIFS
Assignee: dev@poi.apache.org
Reporter: srinivas.siddamnitw@gmail.com
Target Milestone: ---
while creating excel document using poi 3.17 library, getting below error
tack Trace java.lang.NoSuchFieldError: RAW_XML_FILE_HEADER
at
org.apache.poi.poifs.filesystem.FileMagic.<clinit>(FileMagic.java:42)
at
org.apache.poi.openxml4j.opc.internal.ZipHelper.openZipStream(ZipHelper.java:208)
at org.apache.poi.openxml4j.opc.ZipPackage.<init>(ZipPackage.java:98)
at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:324)
at org.apache.poi.util.PackageHelper.open(PackageHelper.java:37)
at
org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:295)
I have added all the below libraries to my classpath:
ooxml-schemas-1.3.jar
poi-3.17.jar
poi-ooxml_schemas-3.17.jar
commons-codec-1.10.jar
commons-logging-1.2.jar
commons-collections4-4.1.jar
curvesapi-1.04.jar
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 66791] getting java.lang.NoSuchFieldError: RAW_XML_FILE_HEADER
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66791
PJ Fanning <fa...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
Status|NEW |NEEDINFO
--- Comment #1 from PJ Fanning <fa...@yahoo.com> ---
do you have poi-ooxml-3.17.jar on your classpath?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 66791] getting java.lang.NoSuchFieldError: RAW_XML_FILE_HEADER
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66791
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
Status|NEEDINFO |RESOLVED
--- Comment #6 from Dominik Stadler <do...@gmx.at> ---
This is very likely a problem with the local environment and different versions
of some jar/class-files, so we likely cannot "fix" anything here.
Please reopen with more information and a standalone reproducing code-sample if
you are confident it is an actual problem in Apache POI itself.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 66791] getting java.lang.NoSuchFieldError: RAW_XML_FILE_HEADER
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66791
--- Comment #3 from PJ Fanning <fa...@yahoo.com> ---
POI 3.17 is 6 years old. It is no longer supported.
This sort of problem with NoSuchFieldError is most commonly caused by users
having multiple conflicting copies of the same jar(s) on their classpaths.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 66791] getting java.lang.NoSuchFieldError: RAW_XML_FILE_HEADER
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66791
--- Comment #2 from Srinivas <sr...@gmail.com> ---
Yes, poi-ooxml-3.17.jar was added to my classpath
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 66791] getting java.lang.NoSuchFieldError: RAW_XML_FILE_HEADER
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66791
--- Comment #5 from Nick Burch <ap...@gagravarr.org> ---
https://poi.apache.org/help/faq.html has some code you can use to track down
additional POI jars files you may have forgotten about
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 66791] getting java.lang.NoSuchFieldError: RAW_XML_FILE_HEADER
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66791
--- Comment #4 from Srinivas <sr...@gmail.com> ---
I have checked multiple times my classpath and I do not see any duplicates, is
there any other thing I can check on this?
Thanks for you quick responses.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org