Bug 333749 - createEntityManager() fails with nested "java.sql.SQLException: No suitable driver" if username or password is wrong
Summary: createEntityManager() fails with nested "java.sql.SQLException: No suitable d...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 342706
  Show dependency tree
 
Reported: 2011-01-07 09:43 EST by Markus Tiede CLA
Modified: 2022-06-09 10:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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