5 Replies Latest reply on Feb 5, 2010 4:09 AM by Bernd Ruecker

    SVN with local directory repository

    Bernd Ruecker Master

      Hey guys.

       

      Another problem, but this time not urgent. Would have just been handy for testing. When I use a local repository in the file system with the URL "file:///C:/temp/svn" (which works in TortoiseSVN) I get an exception:

       

      java.lang.NullPointerException
           at org.modeshape.connector.svn.SvnRepository$SvnWorkspace.<init>(SvnRepository.java:166)
           at org.modeshape.connector.svn.SvnRepository.doCreateWorkspace(SvnRepository.java:111)
           at org.modeshape.connector.svn.SvnRepository.initialize(SvnRepository.java:87)
           at org.modeshape.connector.svn.SvnRepository.<init>(SvnRepository.java:80)
           at org.modeshape.connector.svn.SvnRepositorySource.getConnection(SvnRepositorySource.java:405)
           at org.modeshape.graph.connector.RepositoryConnectionPool.newWrappedConnection(RepositoryConnectionPool.java:849)
           at org.modeshape.graph.connector.RepositoryConnectionPool.getConnection(RepositoryConnectionPool.java:705)
           at org.modeshape.repository.RepositoryLibrary.createConnection(RepositoryLibrary.java:554)
           at org.modeshape.graph.Graph.execute(Graph.java:262)
           at org.modeshape.graph.Graph$5.process(Graph.java:210)
           at org.modeshape.graph.request.RequestBuilder.getWorkspaces(RequestBuilder.java:61)
           at org.modeshape.graph.Graph.getWorkspaces(Graph.java:348)
           at org.modeshape.jcr.RepositoryQueryManager$SelfContained.reindexContent(RepositoryQueryManager.java:385)
           at org.modeshape.jcr.RepositoryQueryManager$SelfContained.<init>(RepositoryQueryManager.java:335)
           at org.modeshape.jcr.JcrRepository.<init>(JcrRepository.java:601)
           at org.modeshape.jcr.JcrEngine.doCreateJcrRepository(JcrEngine.java:269)
           at org.modeshape.jcr.JcrEngine.getRepository(JcrEngine.java:175)
           at com.camunda.hemera.connect.SvnViaModeShapeTest.setupJcrSession(SvnViaModeShapeTest.java:119)
           at com.camunda.hemera.connect.SvnViaModeShapeTest.testReadDirectoryTree(SvnViaModeShapeTest.java:212)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at junit.framework.TestCase.runTest(TestCase.java:154)
           at junit.framework.TestCase.runBare(TestCase.java:127)
           at junit.framework.TestResult$1.protect(TestResult.java:106)
           at junit.framework.TestResult.runProtected(TestResult.java:124)
           at junit.framework.TestResult.run(TestResult.java:109)
           at junit.framework.TestCase.run(TestCase.java:118)
           at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
           at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      

       

       

      Just wanted you guys let you know...

       

      Cheers

      Bernd