-->
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.  [ 7 posts ] 
Author Message
 Post subject: NPE net.sf.hibernate.collection.Set.iterator(Set.java:131)
PostPosted: Tue Nov 23, 2004 6:34 pm 
Beginner
Beginner

Joined: Fri Sep 05, 2003 6:11 pm
Posts: 34
Hibernate version: 2.1.7.b

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:
java.lang.NullPointerException
net.sf.hibernate.collection.Set.iterator(Set.java:131)
kls.domain.entity.impl.AbstractHawb.lastMawb(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
org.python.core.PyMethod.__call__(PyMethod.java)
org.python.core.PyObject.__call__(PyObject.java)
org.python.core.PyInstance.invoke(PyInstance.java)
org.python.pycode._pyx0.addScan$14(C:\cvs\kls-war\intranet\import\importDcs.py:316)
org.python.pycode._pyx0.call_function(C:\cvs\kls-war\intranet\import\importDcs.py)
org.python.core.PyTableCode.call(PyTableCode.java)
org.python.core.PyTableCode.call(PyTableCode.java)
org.python.core.PyFunction.__call__(PyFunction.java)
org.python.core.PyInstance.invoke(PyInstance.java)
org.python.pycode._pyx0.doPost$4(C:\cvs\kls-war\intranet\import\importDcs.py:125)
org.python.pycode._pyx0.call_function(C:\cvs\kls-war\intranet\import\importDcs.py)
org.python.core.PyTableCode.call(PyTableCode.java)
org.python.core.PyTableCode.call(PyTableCode.java)
org.python.core.PyTableCode.call(PyTableCode.java)
org.python.core.PyFunction.__call__(PyFunction.java)
org.python.core.PyMethod.__call__(PyMethod.java)
org.python.core.PyObject.__call__(PyObject.java)
org.python.core.PyObject._jcallexc(PyObject.java)
org.python.proxies.main$importDcs$0.doPost(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
org.python.proxies.main$importDcs$0.service(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.python.util.PyServlet.service(PyServlet.java)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:71)
org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:171)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)




Name and version of the database you are using: MySQL 3.23.58

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 23, 2004 6:36 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
What about the red box?

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject: Desperate
PostPosted: Tue Nov 23, 2004 6:44 pm 
Beginner
Beginner

Joined: Fri Sep 05, 2003 6:11 pm
Posts: 34
I'm very sorry.

This problem has come up in a production environment.
So I'm very out of my mind.

This system has been working fine.

The only thing I think that has changed, is that some attributes mapped using Hibernate are now derived.
So the getter return a calculation based on children in a Set
The attribute is still mapped, the derived value seems to make it back
to the database in all the testing I've done.

Would it encourage you if I said I owned a copy of Hibernate in Action?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 23, 2004 6:50 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
It would encourage me (and others) if you provide COMPLETE and ACCURATE information about your problem. Nobody knows what you want.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 23, 2004 6:52 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
P.S. We offer production support services with guaranteed response times in our customer support system.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 23, 2004 7:22 pm 
Beginner
Beginner

Joined: Fri Sep 05, 2003 6:11 pm
Posts: 34
I'm trying to boil it down to a test case.

That will help with providing mapping and code.

I can't seem to get hibernate DEBUG logging turned on though.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 23, 2004 7:29 pm 
Beginner
Beginner

Joined: Fri Sep 05, 2003 6:11 pm
Posts: 34
From looking through CVS logs for our project it seems the problem started with the derived attributes change.

Are there any limitations to having an attribute mapped where the getter uses a child Set in it's calculation?


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

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.