git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
857b970
)
patch for 'This parser does not support specification "null" version "null"' error
author
jprocter
<jprocter@compbio.dundee.ac.uk>
Mon, 11 Feb 2013 17:07:52 +0000
(17:07 +0000)
committer
jprocter
<jprocter@compbio.dundee.ac.uk>
Mon, 11 Feb 2013 17:07:52 +0000
(17:07 +0000)
src/jalview/io/RnamlFile.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/RnamlFile.java
b/src/jalview/io/RnamlFile.java
index
122e6e1
..
f108994
100644
(file)
--- a/
src/jalview/io/RnamlFile.java
+++ b/
src/jalview/io/RnamlFile.java
@@
-83,6
+83,13
@@
public class RnamlFile extends AlignFile
public void parse() throws IOException
{
public void parse() throws IOException
{
+ if (System.getProperty("java.version").indexOf("1.6")>-1 || System.getProperty("java.version").indexOf("1.5")>-1)
+ {
+ // patch for 'This parser does not support specification "null" version "null"' error
+ // this hack ensures we get a properly updated SAXParserFactory on older JVMs
+ // thanks to Stefan Birkner over at https://coderwall.com/p/kqsrrw
+ System.setProperty("javax.xml.parsers.SAXParserFactory", "com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl");
+ }
result = null;
try
{
result = null;
try
{