aspose file tools*
The moose likes Object Relational Mapping and the fly likes java.lang.UnsupportedOperationException: The user must supply a JDBC connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "java.lang.UnsupportedOperationException: The user must supply a JDBC connection " Watch "java.lang.UnsupportedOperationException: The user must supply a JDBC connection " New topic
Author

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

Varun Nambuthiri
Ranch Hand

Joined: Sep 20, 2010
Posts: 76
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


All's well that Debugs well .
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

This looks like a typo

"hibernate.connection_url"


[How To Ask Questions][Read before you PM me]
Varun Nambuthiri
Ranch Hand

Joined: Sep 20, 2010
Posts: 76
Hi ,

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

Thank you again !!
Regards
Varun
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.UnsupportedOperationException: The user must supply a JDBC connection