I have scanned the mailing lists and bugs but can't seem to find anything related to this. I have been migrating my code from 1.5.5 to 2.0.0 and addressing my issues as I come across them. I have recently hit an issue which is outputting no error, exception or any other failure message. (I _do_ have logger statements enabled). It took using the Java Debugger to figure out exactly where it is dying.

Here is my (abbreviated) code block:

repository = new TransientRepository("repository.xml", "ArchiveRepository"); if ( repository != null ) {
        SimpleCredentials sc = new SimpleCredentials ("decryptedUser", 
"decryptedPwd".toCharArray());
        //session = repository.login(sc);
        //session = repository.login (sc,null);
        session = repository.login (sc,"default");    //DYING ON THIS LINE 
(tried the 2 lines above this also.)
   }
In stepping through the code using jdb, I determined things start going down hill at line 332 in org.apache.jackrabbit.core.RepositoryImpl.<init>():

330 // create registries 331 nsReg = createNamespaceRegistry(new BasedFileSystem(repStore, "/namespaces")); 332 => ntReg = createNodeTypeRegistry(nsReg, new BasedFileSystem(repStore, "/nodetypes"));
`...and it enters the createNodeTypeRegistry() method, as expected:

657 protected NodeTypeRegistry createNodeTypeRegistry(NamespaceRegistry nsReg, 658 FileSystem fs) 659 throws RepositoryException { 660 => return NodeTypeRegistry.create(nsReg, fs); 661 }

but then, rather than entering the NodeTypeRegistry class and executing the create() method, it immediately returns back to the RepositoryImpl.<init>() finally block as though an Exception was thrown and it shuts down the repository!

406 } finally { 407 => if (!succeeded) { 408 try { 409 // repository startup failed, clean up... 410 shutdown(); 411 } catch (Throwable t) { If there is anyone who can at a glance give me advise on what may be causing this, it would be greatly appreciated. If any more info is required, please feel free to request it.

H. Wilson

Reply via email to