1 Reply Latest reply on Apr 15, 2015 11:07 AM by hchiorean

    Uploading file name containing special characters come across failure

    lizhenxing

      javax.jcr.PathNotFoundException: No node exists at path '/video/人物 Muffin Stories - Albert Einstein   Children's Tales, Stories and Fables  muffin songs.m4v' in workspace "default"

        at org.modeshape.jcr.JcrSession.cachedNode(JcrSession.java:624)

        at org.modeshape.jcr.JcrSession.node(JcrSession.java:656)

        at org.modeshape.jcr.JcrSession.node(JcrSession.java:675)

        at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:859)

        at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:842)

        at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:126)

        at org.modeshape.jcr.api.JcrTools.findOrCreateNode(JcrTools.java:430)

        at org.modeshape.jcr.api.JcrTools.findOrCreateChild(JcrTools.java:477)

        at org.modeshape.jcr.api.JcrTools.uploadFile(JcrTools.java:173)

        at cn.boxfish.rms.util.Upload.fileUpload(Upload.java:73)

        at cn.boxfish.rms.util.BatchImport.main(BatchImport.java:43)

        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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)

       

      Exception in thread "main" javax.jcr.nodetype.ConstraintViolationException: The values for the '{http://www.jcp.org/jcr/1.0}content' property on node '/video/人物 Muffin Stories - Albert Einstein  | Children's Tales, Stories and Fables | muffin songs.m4v' no longer satisfy the type and/or constraints on the 'jcr:content' property definition on the 'nt:file' node type definition

        at org.modeshape.jcr.JcrSession$JcrPreSave.process(JcrSession.java:2317)

        at org.modeshape.jcr.cache.document.WritableSessionCache.runPreSaveBeforeTransaction(WritableSessionCache.java:515)

        at org.modeshape.jcr.cache.document.WritableSessionCache.save(WritableSessionCache.java:573)

        at org.modeshape.jcr.JcrSession.save(JcrSession.java:1166)

        at cn.boxfish.rms.util.BatchImport.main(BatchImport.java:59)

        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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)