Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Bug #85 (closed)

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

Hibernate silently swallows bad connection url.

Reported by: jamoore Owned by: jamoore
Priority: minor Cc:
Sprint: n.a.
Total Remaining Time: n.a.

Description

An invalid hibernate.connection.url will not fail until an actual call is made to the database. The reason for this can be seen in org.hibernate.cfg.SettingsFactory#buildSettings?(Properties) line 102 (in version 3.1.2) where all SQLExceptions are swallowed. (This link works currently).

The suggested immediate fix is to access the DB any time that a live connection must be guaranteed.

Change History (3)

comment:1 Changed 18 years ago by jmoore

  • Resolution set to fixed
  • Status changed from new to closed

r666 shows code which

   // doesn't fail but should 
   applicationContext.getBean("hibernateTemplate");

   // and which should but doesn't 
   template.get( Experimenter.class, new Long(0) );

Closing for now. If anyone knows of anything we can do about this, speak up.

comment:3 Changed 18 years ago by jmoore

  • Keywords changed from interation2 to iteration2
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.66064 sec.)

We're Hiring!