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

    SVN with local directory repository

    camunda

      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

        • 1. Re: SVN with local directory repository
          spagop

          Hello Bernd,

           

          try with this URL "file://localhost/C:/temp/svn", because in my Mac OS, I have a local test, that runs well. And so is my configuration:

           

          --- My local config

                  <mode:source
                              jcr:name="SVNSource"
                              mode:classname="org.modeshape.connector.svn.SvnRepositorySource"
                              mode:description="The ModeShape SVN repository (anonymous access)"
                              mode:repositoryRootUrl="file://localhost/Users/sp/innoq-dev/innoq-jboss/modeshape/extensions/modeshape-connector-svn/src/test/resources/dummy_svn_repos/"
                              mode:defaultWorkspaceName="trunk"
                              mode:predefinedWorkspaceNames="trunk"
                              mode:creatingWorkspaceAllowed="false"
                              mode:username="sp"
                              mode:password=""
                  />

           

          Cheers,

          Serge.

          • 2. Re: SVN with local directory repository
            camunda
            Same problem, still the NullPointerException.
            • 3. Re: SVN with local directory repository
              spagop
              which type (FSFS or Berkeley DB) of SVN Datastore are you installed locally?
              • 4. Re: SVN with local directory repository
                bcarothers
                Could you please try this with the following url: file:///C:/temp/svn/  (note the trailing slash)
                • 5. Re: SVN with local directory repository
                  camunda
                  Yes, that helped :-) Thanks!