-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Suddenly started getting exception: user must supply a jdbc
PostPosted: Sat Feb 05, 2011 5:53 pm 
Newbie

Joined: Mon Nov 02, 2009 3:27 pm
Posts: 5
Everything was working fine and I was adding some new persistent classes to my domain model when I started gettting:

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

I've tried backing out all my recent changes. Surfing the web I found suggestions that it might have something to do with the persistence.xml. Here's mine - It seems ok to me.

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0">
<persistence-unit name="vingenius">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>us.vingeni.vingenius.client.model.GrowingRegion</class>
<class>us.vingeni.vingenius.client.model.VintageRating</class>
<class>us.vingeni.vingenius.client.model.Grape</class>
<class>us.vingeni.vingenius.client.model.Producer</class>
<class>us.vingeni.vingenius.client.model.Wine</class>
<properties>
<property name="hibernate.connection.websiteUrl" value="jdbc:postgresql:vingenius"/>
<property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>
<property name="hibernate.connection.username" value="postgres"/>
<property name="hibernate.connection.password" value="postgres"/>
<property name="hibernate.archive.autodetection" value="class"/>
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
<property name="hibernate.hbm2ddl.auto" value="create" />
<!--
<property name="hibernate.search.default.indexBase" value="/Users/ljw1001/IdeaProjects/vingenius3/data/search"/>
-->
</properties>
</persistence-unit>
</persistence>

The database is up and performing correctly. I rebooted in case the connection pool was used up. I'm totally at a loss. Any help is greatly appreciated.

I'm using 3.6 with java 1.6 on OSX.
My app is plain pojos, no spring or EJBs.
I'm using annotations.

Thanks much for any help at all.


Top
 Profile  
 
 Post subject: Re: Suddenly started getting exception: user must supply a jdbc
PostPosted: Sat Feb 05, 2011 6:23 pm 
Newbie

Joined: Mon Nov 02, 2009 3:27 pm
Posts: 5
Bah. An automated refactor/rename of an instance variable caused the string "url" in the persistence.xml to become "websiteUrl".

There's three hours of my life I'll never get back. :)

Resolved.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.