JPA Console java.lang.UnsupportedOperationException: The user must supply a JDBC connection
Board,
I am not able to make the JPA Console work.
I have configured the JPA facet with:
- persistence.xml located in /src/main/resources/META_INF
- Date Source Mapping (only one in my case) configured with an oracle data source (Tested with the SQL console)
- JPA provider is hibernate
- downloaded the libraries the IDE was requesting
I have made a Run/Debug configuration (Query Language Console) and selected the configured context in the JPA facet.
I also tried going in the Persistence window, selecting the context and clicking on "open query console".
If I type:
FROM Tarrif
I get :
java.lang.UnsupportedOperationException: The user must supply a JDBC connection
at org.hibernate.connection.UserSuppliedConnectionProvider.getConnection(UserSuppliedConnectionProvider.java:54)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142)
at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85)
at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1463)
at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60)
请先登录再写评论。
Greetings ideapotoire,
I'm unable to reproduce the problem.
Hibernate complains that Data Source URL is not correctly set.
Please create a youtrack ticket and attach sample project to reproduce.
Also please specify IDEA build number.
Regards,
Gregory Shrago
On 4/15/11 7:49 PM, ideapotoire ideapotoire wrote:
>
>
>
>
>
>
>
>
>
--
Gregory Shrago
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop With Pleasure!"