-->
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.  [ 1 post ] 
Author Message
 Post subject: java.rmi.StubNotFoundException on buildSessionFactory
PostPosted: Thu Jan 06, 2005 9:45 am 
Newbie

Joined: Thu Jan 06, 2005 9:32 am
Posts: 1
Hi all,

I'm utilizing Hibernate version: 2.1.1 and i have a error on buildSessionFactory like this :

Full stack trace of exception that occurs:

[java] 06/01/2005 11:07:37 net.sf.hibernate.cfg.Configuration buildSessionFactory
[java] SEVERE: java.rmi.StubNotFoundException: Stub class not found: net.sf.hibernate.impl.SessionFactoryImpl_Stub; nested exception is:
[java] java.lang.ClassNotFoundException: net.sf.hibernate.impl.SessionFactoryImpl_Stub
[java] net.sf.hibernate.HibernateException: java.rmi.StubNotFoundException: Stub class not found: net.sf.hibernate.impl.SessionFactoryImpl_Stub; nested exception is:
[java] java.lang.ClassNotFoundException: net.sf.hibernate.impl.SessionFactoryImpl_Stub
[java] at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:750)
[java] at net.sf.hibernate.console.Start.initialize(Start.java:207)
[java] at net.sf.hibernate.console.Start.reconfig(Start.java:180)
[java] at net.sf.hibernate.console.Start$4.configurationChanged(Start.java:539)
[java] at net.sf.hibernate.console.ConfigurationUI$ApplyConfig.actionPerformed(ConfigurationUI.java:321)
[java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
[java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
[java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
[java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
[java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
[java] at java.awt.Component.processMouseEvent(Component.java:5100)
[java] at java.awt.Component.processEvent(Component.java:4897)
[java] at java.awt.Container.processEvent(Container.java:1569)
[java] at java.awt.Component.dispatchEventImpl(Component.java:3615)
[java] at java.awt.Container.dispatchEventImpl(Container.java:1627)
[java] at java.awt.Component.dispatchEvent(Component.java:3477)
[java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
[java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
[java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
[java] at java.awt.Container.dispatchEventImpl(Container.java:1613)
[java] at java.awt.Window.dispatchEventImpl(Window.java:1606)
[java] at java.awt.Component.dispatchEvent(Component.java:3477)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
[java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
[java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
[java] Caused by: java.rmi.StubNotFoundException: Stub class not found: net.sf.hibernate.impl.SessionFactoryImpl_Stub; nested exception is:
[java] java.lang.ClassNotFoundException: net.sf.hibernate.impl.SessionFactoryImpl_Stub
[java] at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:98)
[java] at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:55)
[java] at sun.rmi.server.UnicastServerRef.setSkeleton(UnicastServerRef.java:179)
[java] at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:142)
[java] at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:129)
[java] at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:275)
[java] at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:178)
[java] at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:155)
[java] at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.exportObject(PortableRemoteObject.java:103)
[java] at javax.rmi.PortableRemoteObject.exportObject(PortableRemoteObject.java:84)
[java] at javax.rmi.PortableRemoteObject.<init>(PortableRemoteObject.java:68)
[java] at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:126)
[java] at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:741)
[java] ... 27 more
[java] Caused by: java.lang.ClassNotFoundException: net.sf.hibernate.impl.SessionFactoryImpl_Stub
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
[java] at sun.rmi.server.RemoteProxy.loadClassFromClass(RemoteProxy.java:191)
[java] at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:93)
[java] ... 39 more

--------------------

How to fix this problem? Have i to generate a Stub?

Thanks


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

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.