You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Prasad Pimplaskar <vi...@aol.com> on 2007/02/28 23:04:06 UTC

Re: [JCR Browser] Jackrabbit RMI server on AIX

Here is the successfull outcome of the IBM-JDK issues (exceptions)
experienced ...
1. NPE in TransientRepository(RepositoryFactory factory) constructor
InputStream in =
           
RepositoryImpl.class.getResourceAsStream("repository.properties");
        try {
            descriptors.load(in);
        } finally {
            in.close();
        }
Notice the un-guarded stream closure in finally block. It assumes that the
class loader finds the property file. Not so with IBM-JDK. More explaination
below. 

2. Exception in thread "main" java.lang.ExceptionInInitializerError
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:154) .....
Caused by: java.lang.NullPointerException
 at java.security.SecureRandom.nextBytes(SecureRandom.java:430) 

I was using -Dext.java.dirs mechanism to use all the Jackrabbit jars when
invoking the RMI server and/or the clients. Somehow there is class loader
problem that fails loading the property file in #1 and some internal
classes. 

So the solution is to mention all jar files with "java -cp/-classpath" when
invoking the server/client.

This behaviot was observed with only IBM JDK on AIX as well as Windows
platform. 
Sun JDK is fine (on Solaris and WIndows) with -Djava.ext.dirs option. 


- Prasad Pimplaskar

-- 
View this message in context: http://www.nabble.com/Jackrabbit-RMI-server-on-AIX-tf3184097.html#a9239522
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.