[
https://issues.apache.org/jira/browse/CASSANDRA-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733313#action_12733313
]
Jason Carver commented on CASSANDRA-307:
----------------------------------------
Interesting, my JDK was old (1.6.0_05) so I couldn't reproduce the problem.
Perhaps the workaround on the link you sent me:
=====
Submitted On 09-OCT-2008
David.F
I had a line with same exception :
document = builder.parse(translationFileName);
I succeed to get rid of error with 'new File(...)':
document = builder.parse(new File(translationFileName));
=====
Applied like:
Index: src/java/org/apache/cassandra/utils/XMLUtils.java
===================================================================
--- src/java/org/apache/cassandra/utils/XMLUtils.java (revision 795691)
+++ src/java/org/apache/cassandra/utils/XMLUtils.java (working copy)
@@ -43,8 +43,13 @@
{
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
- document_ = db.parse(xmlSrc);
+ //Prevent issue where spaces break xml source path on JDK 6/Windows
+ // by wrapping xml path in a File obj
+ File xmlFile = new File(xmlSrc);
+
+ document_ = db.parse(xmlFile);
+
XPathFactory xpathFactory = XPathFactory.newInstance();
xpath_ = xpathFactory.newXPath();
}
> Running on Windows XP, get "Incorrect number of parameters: and"
> ----------------------------------------------------------------
>
> Key: CASSANDRA-307
> URL: https://issues.apache.org/jira/browse/CASSANDRA-307
> Project: Cassandra
> Issue Type: Bug
> Environment: Windows XP
> Reporter: Jason Carver
> Priority: Minor
> Original Estimate: 0.08h
> Remaining Estimate: 0.08h
>
> My eclipse workspace is in "C:\Documents and Settings\Jason\My Documents"
> A couple lines in cassandra.bat missed using double-quotes to protect against
> folders with spaces in the name.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.