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 2016/01/27 17:42:52 UTC

[Bug 58925] New: IllegalArgumentException: already added: Lorg/apache/xmlbeans/xml/stream/XMLEvent

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

            Bug ID: 58925
           Summary: IllegalArgumentException: already added:
                    Lorg/apache/xmlbeans/xml/stream/XMLEvent
           Product: POI
           Version: 3.13-FINAL
          Hardware: Other
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: XWPF
          Assignee: dev@poi.apache.org
          Reporter: rowan.tarek@gmail.com

Integrating POI to Android. 
Referencing poi, poi_ooxml and xml-beans results in Uncaught translation error:
java.lang.IllegalArgumentException: already added for multiple classes. Classes
of issue are:
1- Lorg/apache/xmlbeans/xml/stream/Location;
2- Lorg/apache/xmlbeans/xml/stream/ReferenceResolver;
3- Lorg/apache/xmlbeans/xml/stream/XMLEvent;
4- Lorg/apache/xmlbeans/xml/stream/XMLInputStream;
5- Lorg/apache/xmlbeans/xml/stream/XMLName;
6- Lorg/apache/xmlbeans/xml/stream/XMLStreamException;
7- Lorg/apache/xmlbeans/xml/stream/utils/NestedThrowable;
8- Lorg/apache/xmlbeans/xml/stream/utils/NestedThrowable$Util;

removing any of the jar files mentioned causes dependency error.

Full log:
Uncaught translation error: java.lang.IllegalArgumentException: already added:
Lorg/apache/xmlbeans/xml/stream/Location;
Uncaught translation error: java.lang.IllegalArgumentException: already added:
Lorg/apache/xmlbeans/xml/stream/ReferenceResolver;
Uncaught translation error: java.lang.IllegalArgumentException: already added:
Lorg/apache/xmlbeans/xml/stream/XMLEvent;
Uncaught translation error: java.lang.IllegalArgumentException: already added:
Lorg/apache/xmlbeans/xml/stream/XMLInputStream;
Uncaught translation error: java.lang.IllegalArgumentException: already added:
Lorg/apache/xmlbeans/xml/stream/XMLName;
Uncaught translation error: java.lang.IllegalArgumentException: already added:
Lorg/apache/xmlbeans/xml/stream/XMLStreamException;
Uncaught translation error: java.lang.IllegalArgumentException: already added:
Lorg/apache/xmlbeans/xml/stream/utils/NestedThrowable;
Uncaught translation error: java.lang.IllegalArgumentException: already added:
Lorg/apache/xmlbeans/xml/stream/utils/NestedThrowable$Util;
8 errors; aborting
Error:Execution failed for task ':app:preDexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_51\bin\java.exe'' finished with non-zero exit value 1

-- 
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 58925] IllegalArgumentException: already added: Lorg/apache/xmlbeans/xml/stream/XMLEvent

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

--- Comment #2 from Rowan <ro...@gmail.com> ---
Thanks for directing me to the right way.
I edited the xml-beans jar and got it to build. Unfortunately, I got a runtime
exception of
java.lang.NoClassDefFoundError: Failed resolution of:
Ljavax/xml/stream/XMLEventFactory;

Googling it and it seems it takes so many workarounds to get POI to work.
A feature-needed but sadly lot of hacks and workarounds to run.

-- 
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 58925] IllegalArgumentException: already added: Lorg/apache/xmlbeans/xml/stream/XMLEvent

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |59268

-- 
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 58925] IllegalArgumentException: already added: Lorg/apache/xmlbeans/xml/stream/XMLEvent

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58925
Bug 58925 depends on bug 59268, which changed state.

Bug 59268 Summary: Work on providing an updated version of XMLBeans
https://bz.apache.org/bugzilla/show_bug.cgi?id=59268

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

-- 
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 58925] IllegalArgumentException: already added: Lorg/apache/xmlbeans/xml/stream/XMLEvent

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

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED
                 OS|                            |All

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
This is an xmlbeans bug, not a POI bug - their 2.6 release jar seems to have
some duplicate classes in. You need one of: a fixed xmlbeans jar, a different
(earlier) runtime jar, to unpack+repack yourself to remove the duplicates, or
to tell your environment to ignore 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