• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOF - statement has been closed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOF - statement has been closed?


  • Subject: Re: EOF - statement has been closed?
  • From: vladimir gadyatskiy <email@hidden>
  • Date: Thu, 21 Mar 2013 17:57:21 +0200

Hello all

I think that the problem is somewhere here:
    public static void preFetchRelationship(String entityName, String relationshipName, NSArray<?> objects, EOEditingContext ec) {
//        EOEntity eoEntity = getEntityModelManager().getEOEntity(entityName);
//        EODatabaseContext dc = EODatabaseContext.registeredDatabaseContextForModel(eoEntity.model(), ec);
//        EORelationship rel = eoEntity.relationshipNamed(relationshipName);
//        batchFetchRelationship(dc, rel, objects, ec, true);
    }


databaseContext.batchFetchRelationship(relationship, objectsToBatchFetch, editingContext);


Seems that commenting all prefetches fixed problem with connections closed.

But why?


Best regards,
Vladimir Gadyatskiy


Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: EOF - statement has been closed?
      • From: Chuck Hill <email@hidden>
References: 
 >RE: EOF - statement has been closed? (From: vladimir gadyatskiy <email@hidden>)
 >RE: EOF - statement has been closed? (From: Michael Gargano <email@hidden>)
 >Re: EOF - statement has been closed? (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: EOF - statement has been closed?
  • Next by Date: Re: joda dates in D2W
  • Previous by thread: Re: EOF - statement has been closed?
  • Next by thread: Re: EOF - statement has been closed?
  • Index(es):
    • Date
    • Thread