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 2014/05/21 11:47:44 UTC

[Bug 56550] New: Java error message showed when deploying to AIX environment.

https://issues.apache.org/bugzilla/show_bug.cgi?id=56550

            Bug ID: 56550
           Summary: Java error message showed when deploying to AIX
                    environment.
           Product: POI
           Version: 3.9
          Hardware: Other
                OS: AIX
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: POI Overall
          Assignee: dev@poi.apache.org
          Reporter: henry.sze@excel.com.hk

Created attachment 31644
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31644&action=edit
List of included JAR files ; Error prompt in WebLogic 12c

Below steps will reproduce the problem :
1. Included the required XDocReport jar files (Including the
"poi-ooxml-3.9.jar")in my JavaEE project and export to an EAR file.
2. Deployed the EAR file to WebLogic Server 12c on the AIX.
3. Update the EAR and start the project as an application on WebLogic Server
12c.

Expected: The project is started and state is "Active".
Actual: Java error showed "java.lang.NoSuchFieldException: classes"

- Seems there is no problem if the same EAR is deployed to WebLogic Server 12c
in Windows environment.

- I further found the below error lines in WebLogic 12c's log files :

....
....
Caused By: java.lang.NoSuchFieldException: classes
    at java.lang.Class.getDeclaredFieldImpl(Native Method)
    at java.lang.Class.getDeclaredField(Class.java:599)
    at org.apache.poi.util.OOXMLLite.<clinit>(OOXMLLite.java:39)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:236)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:219)
....
....

Refer to line 4 >> at org.apache.poi.util.OOXMLLite.<clinit>(OOXMLLite.java:39)
I further found the "OOXMLLite.class" in "poi-ooxml-3.9.jar", and next I try to
read the content with a decompiler and found some "classes" definition in the
files which I guess maybe the cause of the error ?

-- 
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 56550] Java error message showed when deploying to AIX environment.

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

henry.sze@excel.com.hk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #3 from henry.sze@excel.com.hk ---
Please find attached the screen showing the JVM difference in both environment. 
Seems there is not exact matched JVM version provided by IBM.

-- 
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 56550] Java error message showed when deploying to AIX environment.

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

--- Comment #4 from Dominik Stadler <do...@gmx.at> ---
See https://builds.apache.org/view/POI/job/POI-JDK-IBM/7/console for the same
on the Apache Jenkins instance.

-- 
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 56550] Java error message showed when deploying to AIX environment.

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Can you please describe which exact version of the JDK you are using on the two
environments?

This might be related to IBM JDK being used on AIX by default. I have created
and started a separate Jenkins run on IBM JDK to see if we can reproduce the
problem with IBM JDK on Linux or really some AIX machine is needed to reproduce
the problem.

-- 
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 56550] Java error message showed when deploying to AIX environment.

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

--- Comment #2 from henry.sze@excel.com.hk ---
Created attachment 31651
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31651&action=edit
JVM version and vendor using in Windows and AIX

-- 
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 56550] Java error message showed when deploying to AIX environment.

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

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

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

--- Comment #5 from Dominik Stadler <do...@gmx.at> ---
I have now adjust the code which fails to not try to access this field during
static initialization of the class. This should prevent this case, however
please note that compiling POI itself will still not work with IBM JDK as there
we currently need this information for creating the Schema jars.

See https://builds.apache.org/view/POI/job/POI-JDK-IBM/ for the latest tries of
compiling with IBM JDK which still fail.

I am closing this as the problem you reported should be fixed and full support
for compiling POI with IBM JDK is not planned.

Please try with a nightly build that includes this fix to see if there are
additional hurdles for running on IBM JDK, unfortunately we do not have good
test environments for this available currently...

-- 
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