• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.UnsupportedOperationException: The user must supply a JDBC connection

 
Varun Nambuthiri
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am having a little problem in Hibernate . I looked through the already given solutions and nothing seems to be working for me .

hibernate.cfg.xml file :



and the code where error occurs TestLogin.java




and the stack trace is

java.lang.UnsupportedOperationException: The user must supply a JDBC connection
at org.hibernate.connection.UserSuppliedConnectionProvider.getConnection(UserSuppliedConnectionProvider.java:54)
at org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.prepare(ManagedProviderConnectionHelper.java:52)
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:252)
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:211)
at com.hibernate.chap1.TestLogin.main(TestLogin.java:20)

First of all please explaination of that particular Exception is needed . So that if this happens again its easier to solve and then the if possible the solution .

Thanks and Regards
Varun
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This looks like a typo

"hibernate.connection_url"
 
Varun Nambuthiri
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Thank you !! I was brooding over it for a long time .. and just couldnt find out the error !

Thank you again !!
Regards
Varun
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic