-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Misterious exception someone help pls.
PostPosted: Mon Aug 10, 2009 3:52 pm 
Newbie

Joined: Mon Aug 10, 2009 3:30 pm
Posts: 1
Hi everyone, from the beginning i`d like to apologize for my english, that is not so good
I'm having some trouble to make a simple operation on my program.
I just want take some information from my DB, but when my code run this line:

Code:
        List<Configuration> list =  this.configurationDAL.search("02.%", "codigo", 1);


from there go to:

Code:
public List<Configuration> search(String codigo, String orderByField, int orderByMethod) {
        Criteria criteria = getSession().createCriteria(Configuration.class);

       if (codigo != null){
           criteria.add(Restrictions.like("codigo", codigo));
       }
       if (orderByField != null && orderByMethod != Constants.OrderByMethod.DB){
           if (orderByMethod==Constants.OrderByMethod.DESC){
               criteria.addOrder(Order.desc(orderByField));
           }else{
               criteria.addOrder(Order.asc(orderByField));
           }
       }
       return criteria.list();
    }

and the exeption comes from:
Code:
      return criteria.list();


Quote:
org.springframework.orm.hibernate3.HibernateSystemException : A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: entidades.PedidoVenda.linhaPedidoVendaPecaCollection; nested exception is org.hibernate.HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: entidades.PedidoVenda.linhaPedidoVendaPecaCollection


but the misterious are becouse i make other method and other class and entity and still trown the same exeption aways on return.

EDIT: I forgot say before, this exception have no realationship with the operation.

and on my glassfish drops this warn:

Quote:
4814063 [httpSSLWorkerThread-8080-0] WARN loading.LoadContexts - fail-safe cleanup (collections) : org.hibernate.engine.loading.CollectionLoadContext@15d2c01<rs=org.postgresql.jdbc3.Jdbc3ResultSet@1ff0850>

but i search and this warn is a version bug of hibernate.

Pls help-me
Ty for read.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.