db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hernan Gustavo Bertagni" <hberta...@bancorio.com.ar>
Subject 1.0 default persistence broker error after session died
Date Wed, 31 Mar 2004 18:21:12 GMT
Hello all,

I've inherited an application made by others, and it uses OJB to access
the database (an Oracle 9i).

I'm having a problem with the persistence broker. The application gets
the broker using the PersistenceBrokerFactory.defaultPersistenceBroker()
and it works well most of the time. My problem is when a class is
modified and the active sessions die. After that, when I try to get the
default persistence broker I get the following error, and only when I
restart the project I'm able to access the broker again.

The error goes:

[3/31/04 15:12:09:488 ART] 3c9368e1 SystemOut     U [BOOT] ERROR:
[3/31/04 15:12:09:498 ART] 3c9368e1 SystemOut     U The specified class
"org.apache.ojb.broker.cache.ObjectCacheDefaultImpl" does not implement
the interface org.apache.ojb.broker.cache.ObjectCache, which is a
requirement for the key "ObjectCacheClass". Using default class
org.apache.ojb.broker.cache.ObjectCacheDefaultImpl
[3/31/04 15:12:09:558 ART] 3c9368e1 SystemOut     U [BOOT] ERROR:
[3/31/04 15:12:09:759 ART] 3c9368e1 SystemOut     U The specified class
"org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl" does not
implement the interface
org.apache.ojb.broker.accesslayer.ConnectionFactory, which is a
requirement for the key "ConnectionFactoryClass". Using default class
org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl
[3/31/04 15:12:09:769 ART] 3c9368e1 SystemOut     U [BOOT] ERROR:
[3/31/04 15:12:09:769 ART] 3c9368e1 SystemOut     U The specified class
"org.apache.ojb.odmg.locking.LockManagerDefaultImpl" does not implement
the interface org.apache.ojb.odmg.locking.LockManager, which is a
requirement for the key "LockManagerClass". Using default class
org.apache.ojb.odmg.locking.LockManagerDefaultImpl
[3/31/04 15:12:09:809 ART] 3c9368e1 SystemOut     U [BOOT] ERROR:
[3/31/04 15:12:09:809 ART] 3c9368e1 SystemOut     U The specified class
"org.apache.ojb.odmg.locking.InMemoryLockMapImpl" does not implement the
interface org.apache.ojb.odmg.locking.LockMap, which is a requirement
for the key "LockMapClass". Using default class
org.apache.ojb.odmg.locking.PersistentLockMapImpl
[3/31/04 15:12:09:809 ART] 3c9368e1 SystemOut     U [BOOT] ERROR:
[3/31/04 15:12:09:809 ART] 3c9368e1 SystemOut     U The specified class
"org.apache.ojb.broker.util.logging.PoorMansLoggerImpl" does not
implement the interface org.apache.ojb.broker.util.logging.Logger, which
is a requirement for the key "LoggerClass". Using default class
org.apache.ojb.broker.util.logging.PoorMansLoggerImpl
[3/31/04 15:12:09:839 ART] 3c9368e1 SystemOut     U [BOOT] ERROR:
[3/31/04 15:12:09:839 ART] 3c9368e1 SystemOut     U The specified class
"org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDefaultImpl"
does not implement the interface
org.apache.ojb.broker.metadata.fieldaccess.PersistentField, which is a
requirement for the key "PersistentFieldClass". Using default class
org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDefaultImpl
[3/31/04 15:12:09:999 ART] 3c9368e1 SystemOut     U [BOOT] ERROR:
[3/31/04 15:12:09:999 ART] 3c9368e1 SystemOut     U The specified class
"org.apache.ojb.broker.core.PersistenceBrokerImpl" does not implement
the interface org.apache.ojb.broker.PersistenceBroker, which is a
requirement for the key "PersistenceBrokerClass". Using default class
org.apache.ojb.broker.core.PersistenceBrokerImpl
[3/31/04 15:12:10:109 ART] 3c9368e1 SystemOut     U [BOOT] ERROR:
[3/31/04 15:12:10:109 ART] 3c9368e1 SystemOut     U The specified class
"org.apache.ojb.odmg.collections.DListImpl" does not implement the
interface org.apache.ojb.broker.ManageableCollection, which is a
requirement for the key "OqlCollectionClass". Using default class
org.apache.ojb.odmg.collections.DListImpl
java.lang.ClassCastException:
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl
 at
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(Unknown
Source)
 at
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.<clinit>(Unknown
Source)
 at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Unknown
Source)
 at
com.rio.gec.cliente.servlets.GestionClientes.doGet(GestionClientes.java:109)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)

[3/31/04 15:12:10:169 ART] 3c9368e1 SystemOut     U [BOOT] ERROR:
[3/31/04 15:12:10:169 ART] 3c9368e1 SystemOut     U Error in
instantiation of PersistenceBrokerFactory class class
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl, try to
use default PersistenceBrokerFactory implementation
[3/31/04 15:12:10:169 ART] 3c9368e1 SystemOut     U
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)

 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)

 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:721)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:374)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:118)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:239)

 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)

 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:151)

 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:317)

 at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)

 at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:391)

 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:284)
 at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)
[3/31/04 15:12:10:520 ART] 3c9368e1 WebGroup      X Servlet Error: :
java.lang.ExceptionInInitializerError:
org.apache.ojb.broker.metadata.MetadataException: Could not instantiate
FieldConversion class using default constructor:
org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlTimestampFieldConversion

 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1133)
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1161)
 at
org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Unknown
Source)
 at
org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorRepository(Unknown
Source)
 at org.apache.ojb.broker.metadata.MetadataManager.init(Unknown Source)
 at org.apache.ojb.broker.metadata.MetadataManager.<init>(Unknown
Source)
 at org.apache.ojb.broker.metadata.MetadataManager.<clinit>(Unknown
Source)
 at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.buildDefaultKey(Unknown
Source)
 at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.<init>(Unknown
Source)
 at
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(Unknown
Source)
 at
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.<clinit>(Unknown
Source)
 at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Unknown
Source)
 at
com.rio.gec.cliente.servlets.GestionClientes.doGet(GestionClientes.java:109)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)

 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)

 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:721)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:374)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:118)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:239)

 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)

 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:151)

 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:317)

 at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)

 at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:391)

 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:284)
 at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)
rethrown as org.apache.ojb.broker.metadata.MetadataException: Could not
read repository class descriptor data, using repository: repository.xml:
Could not instantiate FieldConversion class using default constructor:
org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlTimestampFieldConversion

 at org.apache.ojb.broker.metadata.MetadataManager.init(Unknown Source)
 at org.apache.ojb.broker.metadata.MetadataManager.<init>(Unknown
Source)
 at org.apache.ojb.broker.metadata.MetadataManager.<clinit>(Unknown
Source)
 at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.buildDefaultKey(Unknown
Source)
 at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.<init>(Unknown
Source)
 at
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(Unknown
Source)
 at
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.<clinit>(Unknown
Source)
 at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Unknown
Source)
 at
com.rio.gec.cliente.servlets.GestionClientes.doGet(GestionClientes.java:109)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)

 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)

 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:721)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:374)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:118)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:239)

 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)

 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:151)

 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:317)

 at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)

 at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:391)

 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:284)
 at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)

Any help you can give me will be welcomed. It's driving me nuts!!! :-/

Thanks

HerGus  :-)

P.S.: Excuse me if I not very clear in english, my main language is
spanish.



*********************************************************************
Visite http://www.bancorio.com.ar y tenga el Banco al alcance de su
mano.
*********************************************************************

NOTA DE CONFIDENCIALIDAD / CONFIDENTIALITY NOTE
Este mensaje (y sus anexos) es confidencial y puede contener
informacion (i) de propiedad exclusiva de Banco Rio de la Plata S.A.
sus afiliadas o subsidiarias; o (ii) amparada por el secreto
profesional. Si usted ha recibido este fax o e-mail por error, por
favor, comuniquelo inmediatamente via fax o e-mail y tenga la
amabilidad de destruirlo; no debera copiar el mensaje ni divulgar su
contenido a ninguna persona.
Muchas gracias.

This message (including attachments) is confidential. It may also
contain information that (i) is exclusively property of Banco Rio de
la Plata S.A. or its affiliates or subsidiaries; or (ii) is
privileged or otherwise legally exempt from disclosure. If you have
received it by mistake please let us know by fax or e-mail
immediately and destroy or delete it from your files or system; you
should also not copy the message nor disclose its contents to anyone.
Thank you.

*********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message