Hi all,
I am trying to cluster an application of which all the database TX's are managed by means of Hibernate configuration. And the application is running very well on a single jboss instance. But, when the clustering support is given to it, its generating a NPE
17:57:05,742 ERROR [STDERR] Exception in thread "Timer-10" 17:57:05,742 ERROR [STDERR] java.lang.NullPointerException 17:57:05,742 ERROR [STDERR] at com.casper.db.hibernate.DataConnect.getCurrentSession(DataConnect.java:91) 17:57:05,742 ERROR [STDERR] at com.casper.db.query.customer.ConversationsRecipientQuery.getAllUnreadedMails(ConversationsRecipientQuery.java:94) 17:57:05,742 ERROR [STDERR] at com.casper.db.services.ConversationsService.getAllUnreadedMails(ConversationsService.java:452) 17:57:05,742 ERROR [STDERR] at com.casper.web.portal.ui.CasperPortalHeader$4.run(CasperPortalHeader.java:347) 17:57:05,742 ERROR [STDERR] at com.casper.web.portal.ui.CasperPortalHeader$5.run(CasperPortalHeader.java:378) 17:57:05,742 ERROR [STDERR] at java.util.TimerThread.mainLoop(Timer.java:512) 17:57:05,743 ERROR [STDERR] at java.util.TimerThread.run(Timer.java:462)
Please let me know If I need to take any care about the hibernate code, when clustering an application.
- Hoping to listen from you at the earliest with your suggestions and making a healthy discussion.
|