-->
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: session.createCriteria === UNCAUGHT EXCEPTION ====
PostPosted: Thu Apr 21, 2005 7:28 pm 
Newbie

Joined: Thu Aug 19, 2004 9:05 am
Posts: 7
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: Hibernate 2

Mapping documents:

Code between sessionFactory.openSession() and session.close():
I have a statement like this:

Code:
 
List objList = session.createCriteria(MyObject.class)
                  .add(Expression.eq("lastName", lastname))
                  .list();


This works fine.

I changed the code to add one more where clause like this:
Code:
 
List objList = session.createCriteria(MyObject.class)
                  .add(Expression.eq("lastName", lastname))
                  .add(Expression.eq("firstName", firstname))
                  .list();


This cause unknown error and stopped my server. No Exeception or Throwable caught. Screen output below.

I am using Hibernate 2, Windows 2000, WSAD 5.1.2


Full stack trace of any exception that occurs:

Unhandled exception
Type=GPF vmState=0xffffffff
Target=20030915 (Windows 2000 5.0 build 2195 Service Pack 4 x86)
ExceptionCode=0xc0000005 ExceptionAddress=0x1000a0b2 ContextFlags=0x0001003f
Handler1=0x111016c0 Handler2=0x10019730
Module=C:\IBM\WSAD512\runtimes\base_v51\java\jre\bin\j9vm21.dll
Module_base_address=0x10000000
Offset_in_DLL=0x0000a0b2
EDI=0x00000064 ESI=0x0c2f8ea9 EAX=0x9c100057
EBX=0x0c2ec6d8 ECX=0x0b04b6cc EDX=0x0c2e5069
EBP=0x04632b00 ESP=0x0b04b6b8 EIP=0x1000a0b2



Name and version of the database you are using:DB2

The generated SQL (show_sql=true):
Server Stops. No SQL generated.


Debug level Hibernate log excerpt:



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.