[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-3065) i am trying to add two fields in the my sql database and i am coming across these errors like no suitable errors and also could not find complete schema update

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Wed Jan 16 08:15:56 EST 2008


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Max Rydahl Andersen closed HHH-3065.
------------------------------------

    Resolution: Rejected

this is jira for bugs/feature requests, not a support forum.

please read docs and/or use the hibernate user forums.

> i am trying to add two fields in the my sql database and i am coming across these errors like no suitable errors and also could not find complete schema update
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HHH-3065
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3065
>             Project: Hibernate3
>          Issue Type: Task
>         Environment: windows ;jdk1.4;eclipse3.2;mysql;
>            Reporter: isaacpradeep
>         Attachments: student.rar
>
>
> Name: isaac
> Degree: be
> Phone: 1234
> 31   [main] WARN  org.hibernate.cfg.SettingsFactory  - Could not obtain connection metadata
> java.sql.SQLException: No suitable driver
> 	at java.sql.DriverManager.getConnection(Unknown Source)
> 	at java.sql.DriverManager.getConnection(Unknown Source)
> 	at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
> 	at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:68)
> 	at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> 	at student.AddStudent.main(AddStudent.java:28)
> 719  [main] WARN  net.sf.ehcache.config.Configurator  - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/hibernate/workspace/hibernate/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
> 2031 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate  - could not get database metadata
> java.sql.SQLException: No suitable driver
> 	at java.sql.DriverManager.getConnection(Unknown Source)
> 	at java.sql.DriverManager.getConnection(Unknown Source)
> 	at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
> 	at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:118)
> 	at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:263)
> 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1055)
> 	at student.AddStudent.main(AddStudent.java:28)
> 2031 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate  - could not complete schema update
> java.sql.SQLException: No suitable driver
> 	at java.sql.DriverManager.getConnection(Unknown Source)
> 	at java.sql.DriverManager.getConnection(Unknown Source)
> 	at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
> 	at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:118)
> 	at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:263)
> 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1055)
> 	at student.AddStudent.main(AddStudent.java:28)
> 2875 [main] WARN  org.hibernate.util.JDBCExceptionReporter  - SQL Error: 0, SQLState: 08001
> 2875 [main] ERROR org.hibernate.util.JDBCExceptionReporter  - No suitable driver
> org.hibernate.exception.GenericJDBCException: Cannot open connection
> 	at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92)
> 	at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80)
> 	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
> 	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
> 	at org.hibernate.jdbc.AbstractBatcher.openConnection(AbstractBatcher.java:427)
> 	at org.hibernate.jdbc.JDBCContext.connect(JDBCContext.java:168)
> 	at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:103)
> 	at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:49)
> 	at org.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:24)
> 	at org.hibernate.jdbc.JDBCContext.beginTransaction(JDBCContext.java:231)
> 	at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1073)
> 	at student.AddStudent.main(AddStudent.java:35)
> Caused by: java.sql.SQLException: No suitable driver
> 	at java.sql.DriverManager.getConnection(Unknown Source)
> 	at java.sql.DriverManager.getConnection(Unknown Source)
> 	at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
> 	at org.hibernate.jdbc.AbstractBatcher.openConnection(AbstractBatcher.java:424)
> 	... 7 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list