-->
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.  [ 3 posts ] 
Author Message
 Post subject: got past mapping and connection pooling - whats the problem?
PostPosted: Thu Aug 05, 2004 11:19 am 
Beginner
Beginner

Joined: Wed Aug 04, 2004 9:01 pm
Posts: 21
Could someone look at my debug messages and let me know what is the problem that I am facing? I got past through connection pooling, mapping file recognition, loading cache provider etc.


2004-08-05 11:05:42 DEBUG MemoryStore.<init>(104) - initialized MemoryStore for
sampleCache2
2004-08-05 11:05:42 DEBUG MemoryStore.loadMapInstance(124) - sampleCache1 Cache: Using SpoolingLinkedHashMap implementation
2004-08-05 11:05:42 DEBUG MemoryStore.<init>(104) - initialized MemoryStore for
sampleCache1
2004-08-05 11:05:42 WARN Plugin.<init>(95) - Could not find configuration for n
et.sf.hibernate.cache.UpdateTimestampsCache. Configuring using the defaultCache
settings.
2004-08-05 11:05:42 DEBUG MemoryStore.loadMapInstance(124) - net.sf.hibernate.ca
che.UpdateTimestampsCache Cache: Using SpoolingLinkedHashMap implementation
2004-08-05 11:05:42 DEBUG MemoryStore.<init>(104) - initialized MemoryStore for
net.sf.hibernate.cache.UpdateTimestampsCache
2004-08-05 11:05:42 INFO QueryCache.<init>(39) - starting query cache at region
: net.sf.hibernate.cache.QueryCache
2004-08-05 11:05:42 DEBUG CacheManager.create(182) - Attempting to create an exi
sting instance. Existing instance returned.
2004-08-05 11:05:42 WARN Plugin.<init>(95) - Could not find configuration for net.sf.hibernate.cache.QueryCache. Configuring using the defaultCache settings.
2004-08-05 11:05:42 DEBUG MemoryStore.loadMapInstance(124) - net.sf.hibernate.ca
che.QueryCache Cache: Using SpoolingLinkedHashMap implementation
2004-08-05 11:05:42 DEBUG MemoryStore.<init>(104) - initialized MemoryStore for
net.sf.hibernate.cache.QueryCache

I am going to finally block where I am closing the hibernate session. The database record is not getting created.


2004-08-05 11:05:42 INFO CreateRequest.create(?) - In Finally block


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 05, 2004 11:21 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
What part of the red message wasn't clear?

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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 05, 2004 11:29 am 
Beginner
Beginner

Joined: Wed Aug 04, 2004 9:01 pm
Posts: 21
christian wrote:
What part of the red message wasn't clear?


Below is my code:

I am not seeing these other debug messages that I have put in between.
It is going into the finally block and printing the log message.

List productList = new ArrayList();
productList.add("Visio");
productList.add("Excel");
productList.add("Word");

RequestType reqType = RequestType.SOFTWARE;
logger.info("Before Request Creation");
// 1. Build a Request
Request r = new Request("1","requestorDn","customerDn","comments",
"lastApproverDn", "fulfillmentBuildingDn",
"fulfillmentRoomNumber", "nextApproverRoleDn",
"ticketNumber", "status", reqType,productList);

logger.info("After Request Creation");
Transaction tx = null;
try {
//3. Open a session
Session session = HibernateUtil.currentSession();

// 4. Save Request and close Session

tx = session.beginTransaction();
session.save(r);
logger.info("After Request Save");
tx.commit();
logger.info("After Transaction Commit");
}
catch (HibernateException he) {
if (tx!=null)
try {
logger.info("In Catch block before rollback");
tx.rollback();
logger.info("In Catch block after rollback");
} catch (HibernateException e) {
e.printStackTrace();
throw new ARTException(he.getMessage(), ARTError.ARTDB_ERROR);
}
finally {
logger.info("In Finally block");
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.