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 2017/09/25 21:18:49 UTC

[Bug 61564] New: Illegal reflective access by org.apache.poi.util.DocumentHelper in Java 9

https://bz.apache.org/bugzilla/show_bug.cgi?id=61564

            Bug ID: 61564
           Summary: Illegal reflective access by
                    org.apache.poi.util.DocumentHelper in Java 9
           Product: POI
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POI Overall
          Assignee: dev@poi.apache.org
          Reporter: tallison@mitre.org
  Target Milestone: ---

WARNING: Illegal reflective access by org.apache.poi.util.DocumentHelper
(file:/tika-eval-1.17-SNAPSHOT.jar) to method
com.sun.org.apache.xerces.internal.util.SecurityManager.setEntityExpansionLimit(int)

I should have caught this before the 3.17 release...oh, well.  4.0.0 is just
around the corner, right? :)

-- 
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 61564] Illegal reflective access by org.apache.poi.util.DocumentHelper in Java 9

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61564

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dominik Stadler <do...@gmx.at> ---
Fixed for trunk/4.0, no easy fix possible for 3.17/Java 6 as far as I see
except to build in something like "if !java9". please provide patches if you
think this is required before we release the next major release.

-- 
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 61564] Illegal reflective access by org.apache.poi.util.DocumentHelper in Java 9

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61564

Javen O'Neal <on...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Javen O'Neal <on...@apache.org> ---
Sounds like a 3.17.1 might be in order.

-- 
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 61564] Illegal reflective access by org.apache.poi.util.DocumentHelper in Java 9

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61564

--- Comment #3 from Dominik Stadler <do...@gmx.at> ---
In trunk I tried to fix this by removing the reflection on com.sun.. packages
as we can now expect the attribute to be supported by the internal XML Parser
since we know that we use Java 8 there. See r1811145, not sure how a "fix" for
3.17/Java 6 would look like, we cannot remove the reflective access there as it
is required for an important security functionality that is not accessible
otherwise for some JDKs as far as I remember.

-- 
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 61564] Illegal reflective access by org.apache.poi.util.DocumentHelper in Java 9

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61564

PJ Fanning <fa...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |61572


Referenced Bugs:

https://bz.apache.org/bugzilla/show_bug.cgi?id=61572
[Bug 61572] Illegal reflective access by
org.apache.poi.openxml4j.util.ZipSecureFile in Java 9
-- 
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 61564] Illegal reflective access by org.apache.poi.util.DocumentHelper in Java 9

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61564

PJ Fanning <fa...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|61575                       |


Referenced Bugs:

https://bz.apache.org/bugzilla/show_bug.cgi?id=61575
[Bug 61575] OpenXML4JRuntimeException when closing OPCPackage
-- 
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 61564] Illegal reflective access by org.apache.poi.util.DocumentHelper in Java 9

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61564

--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
Similar to bug 61572, this one also is caused by reflection usage and only
causes an output to stderr as far as I see.

Some of these reflection usages are needed in 3.x to allow to run/compile
against Java 6, 7 and 8 as some internal JDK functionality is different across
versions.

So let's first investigate if we can get rid of reflection here after we moved
to Java 8 in 4.0 and if we may keep the warning in for 3.17.

See
https://stackoverflow.com/questions/46230413/jdk9-an-illegal-reflective-access-operation-has-occurred-org-python-core-pysys
for some more related description.

-- 
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 61564] Illegal reflective access by org.apache.poi.util.DocumentHelper in Java 9

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61564

PJ Fanning <fa...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |61575


Referenced Bugs:

https://bz.apache.org/bugzilla/show_bug.cgi?id=61575
[Bug 61575] OpenXML4JRuntimeException when closing OPCPackage
-- 
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