jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prasad Pimplaskar <vit...@aol.com>
Subject Re: [JCR Browser] Jackrabbit RMI server on AIX
Date Wed, 28 Feb 2007 22:04:06 GMT

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.


Mime
View raw message