| 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: | Eclipselink | Assignee: | 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 | ||
Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
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.