Hi,
I've been struggling for three days but keep getting an error
referencing fetching the remote config file:
distributed_test:
[junit] Feb 27, 2009 4:23:48 PM
net.jsunit.RemoteConfigurationFetcher fetch
[junit] INFO: Fetching remote machine configuration from
http://myremotemachine:80/jsunit
[junit] Exception in thread "Thread-0" java.lang.RuntimeException:
org.jdom.input.JDOMParseException: Error on line 1: White spaces are
required between publicId and systemId.
[junit] at
net.jsunit.utility.XmlUtility.asXmlDocument(XmlUtility.java:39)
[junit] at
net.jsunit.RemoteMachineServerHitter.hitURL(RemoteMachineServerHitter.java:26)
[junit] at
net.jsunit.RemoteConfigurationSource.<init>(RemoteConfigurationSource.java:18)
[junit] at
net.jsunit.RemoteConfigurationFetcher.fetch(RemoteConfigurationFetcher.java:32)
[junit] at
net.jsunit.RemoteConfigurationFetcher.run(RemoteConfigurationFetcher.java:24)
[junit] Caused by: org.jdom.input.JDOMParseException: Error on
line 1: White spaces are required between publicId and systemId.
[junit] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:468)
[junit] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:851)
[junit] at
net.jsunit.utility.XmlUtility.asXmlDocument(XmlUtility.java:37)
[junit] ... 4 more
[junit] Caused by: org.xml.sax.SAXParseException: White spaces are
required between publicId and systemId.
[junit] at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
[junit] at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
[junit] at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
[junit] at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
[junit] at
org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
[junit] at
org.apache.xerces.impl.XMLScanner.scanExternalID(Unknown Source)
[junit] at
org.apache.xerces.impl.XMLDocumentScannerImpl.scanDoctypeDecl(Unknown
Source)
[junit] at
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown
Source)
[junit] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
[junit] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[junit] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[junit] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[junit] at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[junit] at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[junit] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
[junit] ... 6 more
[junit] Testsuite: net.jsunit.DistributedTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] ------------- Standard Error -----------------
[junit] Feb 27, 2009 4:23:48 PM
net.jsunit.RemoteConfigurationFetcher fetch
[junit] INFO: Fetching remote machine configuration from
http://myremotemachine:80/jsunit
[junit] Exception in thread "Thread-0" java.lang.RuntimeException:
org.jdom.input.JDOMParseException: Error on line 1: White spaces are
required between publicId and systemId.
[junit] at
net.jsunit.utility.XmlUtility.asXmlDocument(XmlUtility.java:39)
[junit] at
net.jsunit.RemoteMachineServerHitter.hitURL(RemoteMachineServerHitter.java:26)
[junit] at
net.jsunit.RemoteConfigurationSource.<init>(RemoteConfigurationSource.java:18)
[junit] at
net.jsunit.RemoteConfigurationFetcher.fetch(RemoteConfigurationFetcher.java:32)
[junit] at
net.jsunit.RemoteConfigurationFetcher.run(RemoteConfigurationFetcher.java:24)
[junit] Caused by: org.jdom.input.JDOMParseException: Error on
line 1: White spaces are required between publicId and systemId.
[junit] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:468)
[junit] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:851)
[junit] at
net.jsunit.utility.XmlUtility.asXmlDocument(XmlUtility.java:37)
[junit] ... 4 more
[junit] Caused by: org.xml.sax.SAXParseException: White spaces are
required between publicId and systemId.
[junit] at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
[junit] at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
[junit] at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
[junit] at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
[junit] at
org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
[junit] at
org.apache.xerces.impl.XMLScanner.scanExternalID(Unknown Source)
[junit] at
org.apache.xerces.impl.XMLDocumentScannerImpl.scanDoctypeDecl(Unknown
Source)
[junit] at
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown
Source)
[junit] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
[junit] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[junit] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[junit] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[junit] at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[junit] at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[junit] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
[junit] ... 6 more
[junit] ------------- ---------------- ---------------
[junit]
[junit] Caused an ERROR
[junit] null
[junit] java.lang.reflect.InvocationTargetException
[junit] Caused by: java.lang.NullPointerException
[junit] at
net.jsunit.DistributedTestSuiteBuilder.addTestsForRemoteConfigurationTo(Distribu\
tedTestSuiteBuilder.java:83)
[junit] at
net.jsunit.DistributedTestSuiteBuilder.addTestsTo(DistributedTestSuiteBuilder.ja\
va:76)
[junit] at net.jsunit.DistributedTest.suite(DistributedTest.java:106)
[junit] at net.jsunit.DistributedTest.suite(DistributedTest.java:111)
[junit]
BUILD FAILED
/Users/me/Sites/jsunit2.3/build.xml:131: Test
net.jsunit.DistributedTest failed
I get the same error with 2.2 too. I've run standalone_test on the
remote machine worked fine.
Local machine is a Mac Book Pro the remote is a Win XP.
Please help, my hair is as thin as is acceptable!
TANX
Andrew