-->
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: Websphere Server Crashes after executing Hibernate code.
PostPosted: Tue Jul 03, 2007 11:41 pm 
Newbie

Joined: Thu Nov 02, 2006 11:41 am
Posts: 6
The Server JVM crashes after I call an EJB method that executes Hibernate Code.

Everything works though - it writes the records to the DB and all that and crashes after that.

Code:
       <property name="current_session_context_class">jta</property>
        <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
        <property name="transaction.manager_lookup_class">org.hibernate.transaction.WebSphereTransactionManagerLookup</property>


I've tried the WebSphereExtendedJTATransactionLookup with no luck either - it fails with:
Quote:
org.hibernate.TransactionException: could not register synchronization with JTA TransactionManager


Code:
            ScreenDAO screenDAO = new ScreenDAO();
            Session session = screenDAO.getCurrentSession();
            Screen screen = (Screen) session.load(Screen.class, screenId);

            NotificationType notificationType = (NotificationType) session.load(NotificationType.class, notificationTypeCode);
            Notification notification = new Notification(screen, notificationType);
            notification.generateAndSendNotification();
            notification.save(session);


I do not have any beginTransaction() or commit() as this is running in a Session Bean with Container Managed Transactions.

Does anyone have a clue why the JVM Crashes?


Top
 Profile  
 
 Post subject: Environment Info
PostPosted: Wed Jul 04, 2007 12:07 am 
Newbie

Joined: Thu Nov 02, 2006 11:41 am
Posts: 6
Some additional Info:

Hibernate versions tried:
3.2.0
3.2.4 SP1

Websphere versions tried:
6.0.2.9
6.0.2.19


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 04, 2007 4:49 pm 
Newbie

Joined: Thu Nov 02, 2006 11:41 am
Posts: 6
Well, the problem was not with Hibernate.

The PDF generation is done by Flying Saucer and Itext.

Flying saucer (V6) was doing something to make the server crash.

I got the latest version of flying saucer (7RC1), disabled logging and it works fine.

I am using Velocity 5.0 to populate the PDF templates and there is no issue with that.

But its still wierd how flying saucer can cause the server to crash.


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.