package.jdo validation error (Connection timed out)

#1

HI,

I am trying to read the odb file generated using objectdb 1.0. Using converter.jar, i converered to new objectDB file and then was trying to read the file and i got the following exception.

com.objectdb.o._JdoUserException: Failed to validate xml file <somePath>\RTDLogger.jar#package.jdo: Connection timed out: connect
NestedThrowables:
java.net.ConnectException: Connection timed out: connect

The same thing works using objectdb 1.0.  After upgrading to objectdb2.X, i again rebuilt the project and enhanced my persistance java classes.

I got the exception when in the following code

    pmf = JDOHelper.getPersistenceManagerFactory(
        getProperties(physicalPath,objectName), JDOHelper.class.getClassLoader());
    pmf.setMultithreaded(true);

    PersistenceManager pm = pmf.getPersistenceManager();

Can you please let me know if i need to change something in my package.jdo file. Please find the same file in the attachement.

Best regards,

Binit Bhaskar

#2

Try to remove the following line:

<!DOCTYPE jdo SYSTEM "http://java.sun.com/dtd/jdo_1_0.dtd">

otherwise the XML parser may try accessing that url (and it will probably fail if you are behind a firewall).

ObjectDB Support

Reply