Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333749

Summary: createEntityManager() fails with nested "java.sql.SQLException: No suitable driver" if username or password is wrong
Product: z_Archived Reporter: Markus Tiede <markus.tiede>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P2 CC: tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 342706    

Description Markus Tiede CLA 2011-01-07 09:43:16 EST
Calling new PersistenceProvider().createEntityManagerFactory("puName",somePropertiesWithWrongUserNameOrPassword).createEntityManager(); fails with a javax.persistence.PersistenceException --> org.eclipse.persistence.exceptions.DatabaseException --> "java.sql.SQLException: No suitable driver - 08001" if the given username or password is wrong. There is currently no way to retrieve the real reason for the failed database connection, e.g. to communicate this problem to the user who has just entered the username and/or password.
Comment 1 Tom Ware CLA 2011-01-26 14:47:47 EST
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:33:00 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink