• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

second request of servlet cause hibernate problem

 
Ranch Hand
Posts: 510
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,
i wrote a servlet in which i'm calling a DAO class that uses hibernate. i used the simplest hibernate.cfg.xml and annotated classes . to create sessionFactory i use a static method that returns same sessionFactory instance each time and open a session (actually getCurrentSession())
if i enter servlet url in browser it runs fine for first time ,but if i keep tomcat server running then request servlet for second time it throws exception below.

is this problem because i use a static method that returns the same sessionFactory instance? if not can anyone what exception below is about?

Thanks.

 
Yahya Elyasse
Ranch Hand
Posts: 510
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i fixed previous db connection problem. but when i use this url =http://harpsoft-register-test.com:8080/harpsoft_register/PayPalIPNListener
in paypal ipn simulator it tells me it couldn't connect to specified url.
what i did is i edited file/etc/hosts and added line:
127.0.0.1 harpsoft-register-test.com
when i browse to http://harpsoft-register-test.com:8080/harpsoft_register/PayPalIPNListener in browser the servlet runs well ,but when i specify url_notification="http://harpsoft-register-test.com:8080/harpsoft_register/PayPalIPNListener " in paypal ipn simulator it said it could'nt connect to this url.
probably my router setttings? or firewall ? i'm using a Linux openSuse box.
hope you can help in figuring out how to test url with 'localhost' inside paypal ipn simulator at https://developer.paypal.com/us/cgi-bin/devscr if you have a developer test account in paypal.

thanks much
 
Fire me boy! Cool, soothing, shameless self promotion:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic