Hibernate console: ClassNotFoundException (org.springframework.beans.factory.BeanDefinitionStoreException)

I'm trying to run the Hibernate console on IntelliJ... I have a Hibernate facet with an associated datasource:
data_sources.png
I can connect to the datasource and run queries without issues... When I try and run some simple HQL (from CourseSectionProfile) ... I get the following exception...

IntelliJ_hibernate_console_error.png



Stack trace is:


hql> from CourseSectionProfile;
java.lang.ClassNotFoundException: org.springframework.beans.factory.BeanDefinitionStoreException PluginClassLoader[com.intellij.hibernate, 1.0] (no security manager: RMI class loader disabled)
 at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:373)
 at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:163)
 at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
 at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
 at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
 at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
 at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:225)
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
 at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
 at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 in RemoteUtil$2$1$1.compute(RemoteUtil.java:99)
 in RemoteUtil.executeWithClassLoader(RemoteUtil.java:160)
 in RemoteUtil$2$1.invoke(RemoteUtil.java:96)
 in HibernateEngine.ensureInitialized(HibernateEngine.java:115)



Environment info:
OS: Windows 7
IntelliJ: version 12.0.3
Library versions: see below:

library_definitions.png



Omair
1 comment

I've created http://youtrack.jetbrains.com/issue/IDEA-102721 for this problem.

Once it is fixed you'll get a better error message that will point to the real cause.

0

Please sign in to leave a comment.