This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

OpenOffice.org: AbstractMethod error with Sun's jaxp/parser


The following little standalone example at
http://people.redhat.com/caolanm/gcj.problems/parsertest.tar.gz
barfs with...

Exception in thread "main" java.lang.AbstractMethodError: 
(
Class:com.sun.xml.tree.XmlDocument Method:normalize Signature:()V 
	From Superclass:com.sun.xml.tree.NodeBase[1]
)
   at _Jv_Linker.make_vtable(java.lang.Class)
(/usr/gcjtest/lib/libgcj.so.6.0.0)
   at _Jv_Linker.wait_for_state(java.lang.Class, int)
(/usr/gcjtest/lib/libgcj.so.6.0.0)
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/gcjtest/lib/libgcj.so.6.0.0)
   at java.lang.Class.initializeClass()
(/usr/gcjtest/lib/libgcj.so.6.0.0)
   at _Jv_Linker.resolve_pool_entry(java.lang.Class, int)
(/usr/gcjtest/lib/libgcj.so.6.0.0)
   at caolantest2.main(java.lang.String[]) (Unknown Source)

while it loads fine with sun's java.

[1] I patched the AbstractMethodError throw to add some extra info
http://people.redhat.com/caolanm/gcj.patches/gcj.verbose.AbstractError.patch

By converting the original code in question away from using
jaxp.jar/parser.jar and substituting equivalent xerces stuff I can
workaround this, but that's a bit invasive for me to have hopes of
easily upstreaming to OpenOffice.org.

C.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]