ERROR: Cannot do a find that returns an EntityListIterator with no transaction in place.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ERROR: Cannot do a find that returns an EntityListIterator with no transaction in place.

BJ Freeman
 Wrap this call in a transaction.
this is code I took from the export all in web tools.

this is the code that is causing this error
                    try {
                        values = delegator.find("EntityName", null, null,
                                null, me.getPkFieldNames(), null);
                    } catch (GenericEntityException e) {
                        writer.close();
                        e.printStackTrace();
                    }

what am I missing?
everything seems to be workking