Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1484

NPE in the file system connector when using NFS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 2.8.2.Final
    • 2.6.0.Final
    • JCR, Storage
    • None

      When using the file system connector to access files and directories that include NFS-mounted directories and files, the following exception may occur:

      javax.jcr.RepositoryException: Error starting the "filesystem" repository (check the configuration): Error starting the "filesystem" repository (check the configuration): null
      	at org.modeshape.jcr.JcrEngine$JcrRepositoryHolder.getRepository(JcrEngine.java:833)
      	at org.modeshape.jcr.JcrEngine.getRepository(JcrEngine.java:365)
      	at org.modeshape.jboss.managed.JNDIManagedRepositories.getRepository(JNDIManagedRepositories.java:87)
      	at org.jboss.community.magnolia.services.modeshape.RepositoryServlet.doGet(RepositoryServlet.java:133)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
      	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      	at java.lang.Thread.run(Thread.java:662)
      Caused by: javax.jcr.RepositoryException: Error starting the "filesystem" repository (check the configuration): null
      	at org.modeshape.jcr.JcrEngine$RepositoryInitializer.call(JcrEngine.java:911)
      	at org.modeshape.jcr.JcrEngine$RepositoryInitializer.call(JcrEngine.java:883)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	... 1 more
      Caused by: java.lang.NullPointerException
      	at java.util.Arrays.sort(Arrays.java:1078)
      	at org.modeshape.connector.filesystem.FileSystemWorkspace.getNode(FileSystemWorkspace.java:531)
      	at org.modeshape.graph.connector.base.PathTransaction.getNode(PathTransaction.java:166)
      	at org.modeshape.graph.connector.base.PathTransaction.getNode(PathTransaction.java:141)
      	at org.modeshape.graph.connector.base.PathTransaction.getNode(PathTransaction.java:59)
      	at org.modeshape.graph.connector.base.Processor.getTargetNode(Processor.java:657)
      	at org.modeshape.graph.connector.base.Processor.process(Processor.java:107)
      	at org.modeshape.graph.request.processor.RequestProcessor.process(RequestProcessor.java:668)
      	at org.modeshape.graph.request.processor.RequestProcessor.process(RequestProcessor.java:291)
      	at org.modeshape.graph.request.processor.RequestProcessor.process(RequestProcessor.java:363)
      	at org.modeshape.graph.request.processor.RequestProcessor.process(RequestProcessor.java:235)
      	at org.modeshape.graph.connector.base.Connection.execute(Connection.java:115)
      	at org.modeshape.graph.connector.RepositoryConnectionPool$ConnectionWrapper.execute(RepositoryConnectionPool.java:1129)
      	at org.modeshape.graph.request.CompositeRequestChannel$2.call(CompositeRequestChannel.java:193)
      	at org.modeshape.graph.request.CompositeRequestChannel$2.call(CompositeRequestChannel.java:183)
      	... 5 more
      

              rhauch Randall Hauch (Inactive)
              rhauch Randall Hauch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: