nikgoodley-ibboost / cakupan

Automatically exported from code.google.com/p/cakupan
0 stars 0 forks source link

com.thoughtworks.xstream.converters.ConversionException: Illegal character in path at index 0: #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

write junit testcase and include setup() method as shown below.

protected void setUp() throws Exception {
        System.setProperty("javax.xml.transform.TransformerFactory","com.cakupan.xslt.transform.SaxonCakupanTransformerInstrumentFactoryImpl");
        Processor proc = new Processor(false);
        XsltCompiler comp = proc.newXsltCompiler();
        try {
            CoverageIOUtil.setDestDir(new File("target/cakupan-instrument"));
            SaxonCakupanTraceListener listener = new SaxonCakupanTraceListener("example2");
        } catch (XSLTCoverageException e) {
            System.out.println(e.getMessage());
            e.printStackTrace();
        }
        super.setUp();
    }

What is the expected output? What do you see instead?
I am not able to instantiate SaxonCakupanTraceListener. PFA AisXsltTest.java

What version of the product are you using? On what operating system?
cakupan-1.5.jar; xstream-1.4.7.jar; saxon9-9.0.0.8.jar; windows7

Please provide any additional information below.
com.cakupan.xslt.exception.XSLTCoverageException: Coverage file not found!
    at com.cakupan.xslt.util.XSLTCakupanUtil.loadCoverageStats(Unknown Source)
    at com.cakupan.xslt.trace.SaxonCakupanTraceListener.<init>(Unknown Source)
    at com.ais.xslt.codecoverage.AisXsltTest.setUp(AisXsltTest.java:41)
    at junit.framework.TestCase.runBare(TestCase.java:139)
    at junit.framework.TestResult$1.protect(TestResult.java:122)
    at junit.framework.TestResult.runProtected(TestResult.java:142)
    at junit.framework.TestResult.run(TestResult.java:125)
    at junit.framework.TestCase.run(TestCase.java:129)
    at junit.framework.TestSuite.runTest(TestSuite.java:255)
    at junit.framework.TestSuite.run(TestSuite.java:250)
    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
    at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
    at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
    at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
    at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
Caused by: com.thoughtworks.xstream.converters.ConversionException: Illegal 
character in path at index 0: 
         : Illegal character in path at index 0: 

---- Debugging information ----
message             : Illegal character in path at index 0: 

cause-exception     : java.net.URISyntaxException
cause-message       : Illegal character in path at index 0: 

class               : java.net.URI
required-type       : java.net.URI
converter-type      : 
com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter   : com.thoughtworks.xstream.converters.basic.URIConverter
path                : /tree-map/entry/com.cakupan.xslt.data.CoverageFile/uri
line number         : 7
class[1]            : com.cakupan.xslt.data.CoverageFile
converter-type[1]   : 
com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]            : java.util.TreeMap
converter-type[2]   : 
com.thoughtworks.xstream.converters.collections.TreeMapConverter
version             : 1.4.7
-------------------------------
    at com.thoughtworks.xstream.converters.basic.URIConverter.fromString(URIConverter.java:34)
    at com.thoughtworks.xstream.converters.SingleValueConverterWrapper.fromString(SingleValueConverterWrapper.java:41)
    at com.thoughtworks.xstream.converters.SingleValueConverterWrapper.unmarshal(SingleValueConverterWrapper.java:49)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:474)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:406)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
    at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
    at com.thoughtworks.xstream.converters.collections.MapConverter.putCurrentEntryIntoMap(MapConverter.java:110)
    at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:98)
    at com.thoughtworks.xstream.converters.collections.TreeMapConverter.populateTreeMap(TreeMapConverter.java:116)
    at com.thoughtworks.xstream.converters.collections.TreeMapConverter.unmarshal(TreeMapConverter.java:79)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
    at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1185)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1169)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1040)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1031)
    at com.cakupan.xslt.util.XStreamUtil.fromXML(Unknown Source)
    ... 23 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 0: 

    at java.net.URI$Parser.fail(URI.java:2829)
    at java.net.URI$Parser.checkChars(URI.java:3002)
    at java.net.URI$Parser.parseHierarchical(URI.java:3086)
    at java.net.URI$Parser.parse(URI.java:3044)
    at java.net.URI.<init>(URI.java:595)
    at com.thoughtworks.xstream.converters.basic.URIConverter.fromString(URIConverter.java:32)
    ... 51 more

Original issue reported on code.google.com by baluyp...@gmail.com on 16 Nov 2014 at 9:39

Attachments: