Hi Joerg, there is a known bug in 0.9.9 to patch this see
http://archives.apache.org/eyebrowse/[EMAIL PROTECTED] pache.org&msgNo=5507 or try to use db.open("default#userName#password", Database.OPEN_READ_WRITE); regards, Armin ----- Original Message ----- From: "Joerg Lensing" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 3:30 PM Subject: PersistenceBrokerFactoryIF.instantiate(): strange behavior > Hi all, > look at this: > > Database db = impl.newDatabase(); > > try { > --->> db.open("default", Database.OPEN_READ_WRITE); > int i = 1; > } catch (ODMGException ex) { > ex.printStackTrace(); > } > > runs to: > private static PersistenceBrokerFactoryIF instantiate() { > if (log.isDebugEnabled()) > log.debug("Instantiate PersistenceBrokerFactory"); > try { > Configurator configurator = OjbConfigurator.getInstance(); > file://HERE: the code steps OVER the next two lines! (without being executed!) > > > Configuration config = configurator.getConfigurationFor(null); > Class pbfClass = > config.getClass("PersistenceBrokerFactoryClass", > PersistenceBrokerFactoryDefaultImpl.class); > PersistenceBrokerFactoryIF result = > (PersistenceBrokerFactoryIF) pbfClass.newInstance(); > configurator.configure(result); > if (log.isDebugEnabled()) > log.debug("PersistencebrokerFactory class: " + > pbfClass.getName()); > return result; > } catch (Exception e) { > log.error("Fehler joerg222", e); > log.error("Error in instantiation of > PersistenceBrokerFactory class", e); > return new PersistenceBrokerFactoryDefaultImpl(); > } > } > > > joerg > ps: until now i didn't get it to work - nothing -:( > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
