Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion NucleusUserException: Object Manager has been closed
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Arjan  
View profile  
 More options Apr 22 2009, 4:37 am
From: Arjan <huij...@gmail.com>
Date: Wed, 22 Apr 2009 01:37:48 -0700 (PDT)
Local: Wed, Apr 22 2009 4:37 am
Subject: Re: NucleusUserException: Object Manager has been closed
I use Spring MVC and they have included a filter that keeps the
persistence manager open in the view. It is defined in web.xml:

<filter>
        <filter-name>OpenPersistenceManagerInView</filter-name>
        <filter-
class>org.springframework.orm.jdo.support.OpenPersistenceManagerInViewFilte r</
filter-class>
</filter>

I don't know how to do this without Spring MVC, but it might give you
a clue.

Good luck!

Arjan Huijzer

On Apr 22, 7:26 am, tha <hathanht...@gmail.com> wrote:

> I put together a simple application herehttp://jira.codehaus.org/browse/MGAE-1
> I don't see any similar problem when I test it.

> On Apr 18, 8:29 am, pyko <psychop...@gmail.com> wrote:

> > I am also having problems with getResultList() giving
> > NucleusUserException error. I've tried calling size() as suggested
> > here, but it doesn't seem to work. Like tha I'm using Spring as well.

> > public List<Product> getAllProducts() {
> >         String query = "select description, price from
> > springapp.domain.Product";
> >         List<Product> allProducts = (List<Product>)
> > entityManager.createQuery(query).getResultList(); // debug: Method
> > threw 'org.datanucleus.exceptions.NucleusUserException' exception.
> >         allProducts.size(); // debug:
> > org.datanucleus.exceptions.NucleusUserException: Object Manager has
> > been closed
> >         return allProducts;
> >     }

> > At first I thought maybe I haven't set up my entityManager etc
> > properly (new to Spring) however, finding a product by Id works...so
> > I'm not quite sure what is happening.

> >     public Product getProductWithId(int id) {
> >         Product product = entityManager.find(Product.class, id);
> >         return product;
> >     }

> > Any help will be great. Thanks!

> > On Apr 14, 1:46 am, tha <hathanht...@gmail.com> wrote:

> > > Submitted a ticket athttp://code.google.com/p/datanucleus-appengine/issues/detail?id=24

> > > On Apr 13, 9:27 pm, datanucleus <andy_jeffer...@yahoo.com> wrote:

> > > > Why not raise a bug onhttp://code.google.com/p/datanucleus-appengine/
> > > > since DataNucleus itself provides mechanisms for reading in of query
> > > > results when a transaction commits. It's likely just not yet
> > > > implemented in the plugin yet


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.