You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by "John Kaputin (JIRA)" <ji...@apache.org> on 2007/03/22 12:57:32 UTC

[jira] Created: (WODEN-154) Resolver error - IllegalArgumentException "URI is not hierarchical"

Resolver error - IllegalArgumentException "URI is not hierarchical"
-------------------------------------------------------------------

                 Key: WODEN-154
                 URL: https://issues.apache.org/jira/browse/WODEN-154
             Project: Woden
          Issue Type: Bug
          Components: Parser
            Reporter: John Kaputin
         Assigned To: Graham Turrell
             Fix For: M8


Woden M7 raises this error when the junit tests are run via the woden-test-1.0-incubating-M7.jar file, rather than via the junit classes in the sandbox filesystem (e.g. the Eclipse project /bin directory). 

This was initially resolved in Woden trunk by capitalizing a relative filepath string in SimpleURIResolver.

	private final String schemaCatalogLocation = "meta-inf/";
was changed to:
	private final String schemaCatalogLocation = "META-INF/";

However, while this change allowed the junit test to run successfully via the jar file, it caused the same error to occur then running them against the file system. Graham is looking into this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


[jira] Commented: (WODEN-154) Resolver error - IllegalArgumentException "URI is not hierarchical"

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WODEN-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485714 ] 

Graham Turrell commented on WODEN-154:
--------------------------------------

r524408.
Also fixed a similar problem in test/javax/xml/namespace/QNameTest.java, where an attempt was made to open a FileInputStream from a URL which may be a jar URL.
This caused the test to fail unexpectedly when running via the woden test jar, when the test resource is indeed being extracted from the jar.
Tested in both scenarios, both connected and disconnected.

> Resolver error - IllegalArgumentException "URI is not hierarchical"
> -------------------------------------------------------------------
>
>                 Key: WODEN-154
>                 URL: https://issues.apache.org/jira/browse/WODEN-154
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>            Reporter: John Kaputin
>         Assigned To: Graham Turrell
>             Fix For: M8
>
>
> Woden M7 raises this error when the junit tests are run via the woden-test-1.0-incubating-M7.jar file, rather than via the junit classes in the sandbox filesystem (e.g. the Eclipse project /bin directory). 
> This was initially resolved in Woden trunk by capitalizing a relative filepath string in SimpleURIResolver.
> 	private final String schemaCatalogLocation = "meta-inf/";
> was changed to:
> 	private final String schemaCatalogLocation = "META-INF/";
> However, while this change allowed the junit test to run successfully via the jar file, it caused the same error to occur then running them against the file system. Graham is looking into this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


[jira] Resolved: (WODEN-154) Resolver error - IllegalArgumentException "URI is not hierarchical"

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WODEN-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Graham Turrell resolved WODEN-154.
----------------------------------

    Resolution: Fixed

Committed revision 522465.
SimpleURIResolver was attempting to create a File object (then a FileInputStream) from a URI representing a jar URL.
Changed to use OpenStream() from the URL.

> Resolver error - IllegalArgumentException "URI is not hierarchical"
> -------------------------------------------------------------------
>
>                 Key: WODEN-154
>                 URL: https://issues.apache.org/jira/browse/WODEN-154
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>            Reporter: John Kaputin
>         Assigned To: Graham Turrell
>             Fix For: M8
>
>
> Woden M7 raises this error when the junit tests are run via the woden-test-1.0-incubating-M7.jar file, rather than via the junit classes in the sandbox filesystem (e.g. the Eclipse project /bin directory). 
> This was initially resolved in Woden trunk by capitalizing a relative filepath string in SimpleURIResolver.
> 	private final String schemaCatalogLocation = "meta-inf/";
> was changed to:
> 	private final String schemaCatalogLocation = "META-INF/";
> However, while this change allowed the junit test to run successfully via the jar file, it caused the same error to occur then running them against the file system. Graham is looking into this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


[jira] Updated: (WODEN-154) Resolver error - IllegalArgumentException "URI is not hierarchical"

Posted by "Jeremy Hughes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WODEN-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Hughes updated WODEN-154:
--------------------------------

        Fix Version/s:     (was: M8)
                       M7a
    Affects Version/s: M7a

> Resolver error - IllegalArgumentException "URI is not hierarchical"
> -------------------------------------------------------------------
>
>                 Key: WODEN-154
>                 URL: https://issues.apache.org/jira/browse/WODEN-154
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: M7a
>            Reporter: John Kaputin
>         Assigned To: Graham Turrell
>             Fix For: M7a
>
>
> Woden M7 raises this error when the junit tests are run via the woden-test-1.0-incubating-M7.jar file, rather than via the junit classes in the sandbox filesystem (e.g. the Eclipse project /bin directory). 
> This was initially resolved in Woden trunk by capitalizing a relative filepath string in SimpleURIResolver.
> 	private final String schemaCatalogLocation = "meta-inf/";
> was changed to:
> 	private final String schemaCatalogLocation = "META-INF/";
> However, while this change allowed the junit test to run successfully via the jar file, it caused the same error to occur then running them against the file system. Graham is looking into this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


[jira] Commented: (WODEN-154) Resolver error - IllegalArgumentException "URI is not hierarchical"

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WODEN-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483278 ] 

John Kaputin commented on WODEN-154:
------------------------------------

r521408
Reverted back to the lower case "meta-inf/" while this is being investigated, so that the 'runTests' target in build.xml will run without this error occurring.

> Resolver error - IllegalArgumentException "URI is not hierarchical"
> -------------------------------------------------------------------
>
>                 Key: WODEN-154
>                 URL: https://issues.apache.org/jira/browse/WODEN-154
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>            Reporter: John Kaputin
>         Assigned To: Graham Turrell
>             Fix For: M8
>
>
> Woden M7 raises this error when the junit tests are run via the woden-test-1.0-incubating-M7.jar file, rather than via the junit classes in the sandbox filesystem (e.g. the Eclipse project /bin directory). 
> This was initially resolved in Woden trunk by capitalizing a relative filepath string in SimpleURIResolver.
> 	private final String schemaCatalogLocation = "meta-inf/";
> was changed to:
> 	private final String schemaCatalogLocation = "META-INF/";
> However, while this change allowed the junit test to run successfully via the jar file, it caused the same error to occur then running them against the file system. Graham is looking into this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org