On 05/05/2016 18:49, Gary Larsen wrote:

Hi,

In order to support JDK 8 it was necessary to update to SaxonHE 9. (can’t remember exactly why right now)

New problem is that when the Cocoon app is installed on a path with spaces (say ‘a-test 2’) there’s a new exception:

net.sf.saxon.trans.XPathException: Invalid URI for stylesheet: file:/C:/a-test 2/netvisn-server-c1022-72-6043/webapps/netvisn/site/stylesheets/netvisn-error2html.xsl


"file:/C:/a-test 2/netvisn-server-c1022-72-6043/webapps/netvisn/site/stylesheets/netvisn-error2html.xsl"

is not a valid URI, while

"file:/C:/a-test%202/netvisn-server-c1022-72-6043/webapps/netvisn/site/stylesheets/netvisn-error2html.xsl"

is valid instead.

The blank space between 'a-test' and '2' is not allowed within URI, you need to percent-encode.

This as [1] says, "The space character, for example, is quoted by replacing it with "%20"

HTH
Regards.

[1] http://docs.oracle.com/javase/8/docs/api/java/net/URI.html

--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC,
Olingo PMC, CXF Committer, OpenJPA Committer
http://home.apache.org/~ilgrosso/

Reply via email to