mercredi 5 août 2015

Magnolia 5.4 upgrade java.nio.file.InvalidPathException on publishing/unpublishing


When I tried to upgrade to magnolia 5.4 from 5.3.9 or download magnolia bundle with tomcat from official website and just run it, on publishing/unpublishing I receive:

Exception in thread "Thread-68" java.nio.file.InvalidPathException: Illegal char <:> at index 48: C:\dev\apache-tomcat-8.0.21\webapps\mg-auth\/jcr:system/jcr:versionStorage/af/72/95/af72957c-bb65-4132-881c-205eee9e68f3/1.12
    at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
    at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
    at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
    at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
    at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
    at java.nio.file.Paths.get(Paths.java:84)
    at info.magnolia.resourceloader.file.FileSystemResourceOrigin.getPath(FileSystemResourceOrigin.java:241)
    at info.magnolia.resourceloader.file.FileSystemResourceOrigin.hasPath(FileSystemResourceOrigin.java:139)
    at info.magnolia.resourceloader.util.Functions$1.apply(Functions.java:60)
    at info.magnolia.resourceloader.util.Functions$1.apply(Functions.java:57)
    at com.google.common.collect.Iterators$7.computeNext(Iterators.java:652)
    at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
    at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
    at com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:43)
    at com.google.common.collect.Iterators.addAll(Iterators.java:361)
    at com.google.common.collect.Lists.newArrayList(Lists.java:160)
    at com.google.common.collect.Lists.newArrayList(Lists.java:144)
    at info.magnolia.resourceloader.layered.LayeredResourceOrigin.getByPath(LayeredResourceOrigin.java:96)
    at info.magnolia.resourceloader.layered.RelayerResourceVisitor.visitFile(RelayerResourceVisitor.java:60)
    at info.magnolia.resourceloader.jcr.JcrResourceOrigin$1.onEvent(JcrResourceOrigin.java:330)
    at info.magnolia.cms.util.ObservationUtil$ObservationBasedDelayedExecutor$1.run(ObservationUtil.java:253)
    at info.magnolia.cms.util.DelayedExecutor$RunnableWrapper.run(DelayedExecutor.java:103)
    at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:745)

I am very puzzled by the path structure and by the reason why the resource loader tries to resolve this path.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire