[prev in list] [next in list] [prev in thread] [next in thread]
List: ojb-user
Subject: Re: PATCH: AbstractIndirectionHandler#getBroker() returns null
From: Armin Waibel <arminw () apache ! org>
Date: 2005-09-28 0:39:08
Message-ID: 4339E62C.5090905 () apache ! org
[Download RAW message or body]
Hi Steve,
thanks much for the patch. I checked in your stuff (+ minor refactoring
to avoid concurrency issues) in CVS branch + HEAD.
regards,
Armin
Steve_Clark@fws.gov wrote:
> When I upgraded to recent CVS 1.0.4 HEAD, I started getting constant NPEs
> in equals() calls to proxies. The problem is a bug in
> AbstractIndirectionHandler; here's a patch.
>
> RCS file:
> /home/cvspublic/db-ojb/src/java/org/apache/ojb/broker/core/proxy/AbstractIndirectionHandler.java,v
> retrieving revision 1.1.2.2
> diff -c -r1.1.2.2 AbstractIndirectionHandler.java
> *** AbstractIndirectionHandler.java 17 Aug 2005 21:19:39 -0000 1.1.2.2
> --- AbstractIndirectionHandler.java 26 Sep 2005 19:45:43 -0000
> ***************
> *** 216,223 ****
> _broker = (PersistenceBrokerInternal)
> PersistenceBrokerFactory.createPersistenceBroker(getBrokerKey());
> // TODO: Better way?
> _needsClose = true;
> - broker = _broker;
> }
> }
> return broker;
> }
> --- 216,223 ----
> _broker = (PersistenceBrokerInternal)
> PersistenceBrokerFactory.createPersistenceBroker(getBrokerKey());
> // TODO: Better way?
> _needsClose = true;
> }
> + broker = _broker;
> }
> return broker;
> }
>
> -steve
>
> Steve Clark
> ECOS Development Group
> steve_clark@fws.gov
> (970)226-9291
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic