taupilu / gbif-providertoolkit

Automatically exported from code.google.com/p/gbif-providertoolkit
0 stars 1 forks source link

NullPointerException upon trying to import an eml.xml file of an existing resource #1037

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create New Resource
2.Optional archived resource to load: (eml.xml).

What version of the provider software are you using? The version should be
displayed in the footer of any page.
IPT Version 2.0.5-r4398-security-update-1

What browser are you using?
Iceweasel 17.0.9

The same eml.xml file was imported correctly to other IPT server. I've sent it 
to Kyle and the issue is reproduced only in my IPT.

Tomcat 7, Debian ("Jessie")
java -version :
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-5)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

I'm attaching a complete stack trace as copied from your log file.

Workaround: Importing a zip file.

Original issue reported on code.google.com by menashe....@gmail.com on 11 Dec 2013 at 10:36

Attachments:

GoogleCodeExporter commented 9 years ago
I've found online the following info which may help:
java.lang.UnsupportedOperationException - For backward compatibility, when 
implementations for earlier versions of JAXP is used, this exception will be 
thrown.

Source: 
http://stackoverflow.com/questions/3348273/error-while-trying-to-validate-xml-in
-java

Maybe also the following link can help: 
http://www.jroller.com/navanee/entry/unsupportedoperationexception_this_parser_d
oes_not

Original comment by menashe....@gmail.com on 11 Dec 2013 at 10:57

GoogleCodeExporter commented 9 years ago
From Menashè: 

"Actually there is no bug of IPT, but only a compatibility issue which can be 
resolved easily by creating another Tomcat instance. Library sharing between 
web applications should be avoided. In this case, the xmlparserv2.jar is a part 
of Oracle 12 database server or Oracle sqldeveloper. It was placed in lib under 
CATALINA_HOME and not in the level of the web application which needs this 
Oracle library since it needs it upon Tomcat restart. So I have isolated this 
other application to a separate Tomcat instance, while IPT is deployed in an 
instance in which there are no foreign libraries in lib under CATALINA_HOME. 
All is resolved."

No action needed, so closing issue as won't fix. Thanks again

Original comment by kyle.br...@gmail.com on 20 Dec 2013 at 5:06

GoogleCodeExporter commented 9 years ago

Original comment by kyle.br...@gmail.com on 20 Dec 2013 at 5:11