RMI « Development « JPA Q&A





1. RMI and Hibernate    coderanch.com

Hi All, I have a class that uses Hibernate to get data from the database. I invoke a method in this class from a RMI server. The issue is that the RMI server works fine when there is no Hibernate component. Also, its the same with the Hibernate component. It works fine when invoked directly and doesnt work when invoked through ...

2. Hibernate and RMI    coderanch.com

4. Problem Using Hibernate with RMI    forum.hibernate.org

Hi, i'm using Hibernate with RMI and when i try to update/delete an object (insert and get works just fine) i get the following exception: Code: Exception in thread "main" org.hibernate.MappingException: Unknown entity: $Proxy3 at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:610) at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1246) at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180) at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:459) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84) ...

5. java.rmi.MarshalException    forum.hibernate.org

Author Message jliang Post subject: java.rmi.MarshalException Posted: Wed Feb 18, 2004 9:01 pm Newbie Joined: Tue Feb 17, 2004 7:34 pm Posts: 5 Stack trace of a CORBA Exception, is it because of some libraries dependancy problem? Anybody has seen this before. SessionBeanA calls SessionBeanB to perform a query and return the result from the query to SessionBeanA with ...

6. Hibernate RMI and limiting the object graph    forum.hibernate.org

Hello I am writing a multi-tier rmi app and am using hibernate for the first time. I created a bunch of classes to transfer across the wire which work fine. I specifically imported no hibernate associated classes or jars into any of these classes because I did not want any references to the hibernate classes to exist on the clients. As ...

7. Abusing RMI and Hibernate    forum.hibernate.org

I'm trying to remote the functionality of the Hibernate Session over RMI. I've got a RemoteSession which implements the Session interface, and delegates to a remote Session via RMI. First of all keep in mind any time you move an object over RMI, your making copies of it. Therefore you gotta get fancy with evicting and locking things as they come ...

8. one-to-many and rmi creates net.sf.hibernate.PropertyValueEx    forum.hibernate.org

Hello I have been trying to figure this out for a while I have 2 objects here are relevant snippets Party implements Externalizable private List phones = null; /** * @hibernate.bag name="phones" cascade="all-delete-orphan" * *@hibernate.collection-key column="id" * @hibernate.collection-one-to-many class="org.marcus.Phone" */ public java.util.List getPhones() { return phones; } public void setPhones(java.util.List phones) { this.phones = phones; } Phone implements Externalizable private Party ...

9. java.rmi.StubNotFoundException on buildSessionFactory    forum.hibernate.org

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] ...





10. RMI or CORBA with Hibernate?    forum.hibernate.org

11. hibernate objects over RMI-IIOP    forum.hibernate.org

Hi, We are developing an app that exposes several EJB over RMI-IIOP. We are using hibernate 2.1 for persistence, so the return value for the EJBs are objects retrieved with hibernate. The problem is that the objects retrieved with hibernate uses is own Collections implementation classes (net.sf.hibernate.collection.*) and other helper classes (net.sf.hibernate.impl.SessionImpl$CollectionEntry). When the EJB client tries to invoke the EJB ...

12. Hibernate in RMI    forum.hibernate.org

Hi, I have problem running Hibernate in my application using RMI. the hibernate.cfg.xml always not found, i'm sure to put the file in my class path. looks like it have a problem in RMISecurityManager. [b]Hibernate version:[/b] 3.0.5 [b]Full stack trace of any exception that occurs:[/b] runserver: [java] 0 [main] INFO cfg.Environment - Hibernate 3.0.5 [java] 0 [main] INFO cfg.Environment - hibernate.properties ...

13. java.rmi.UnmarshalException    forum.hibernate.org

Hi I am receiving the following exception java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: org.hibernate.collection.PersistentSet at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162) at ManagerFacade_Stub.getData(Unknown Source) at ManagerDelegate.getData(ManagerDelegate.java:93) at test.loadTest(test.java:43) at test.(test.java:26) at test.main(test.java:35) Caused by: java.lang.ClassNotFoundException: org.hibernate.collection.PersistentSet at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:430) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) I get that exception on my ...

14. Lazy inicializatin and RMI    forum.hibernate.org

Hibernate version: 3.1 Name and version of the database you are using: Oracle 9i I have this problem Object A has a collection of object B, and object B has a collection of object C. Both collections are lazy I need to send Object A (including the collection of objects B and the collection of objects C) to another aplication using ...

15. java.rmi.UnmarshalException (once more)...    forum.hibernate.org

Hi, Hibernate version: Hibernate 3.2.0 - jdk 1.3 Full stack trace of any exception that occurs: Exception: java.rmi.UnmarshalException: failed to unmarshal interface Exception: java.rmi.UnmarshalException: failed to unmarshal interface java.util. List; nested exception is: java.lang.ClassNotFoundException: long java.lang.ClassNotFoundException: long at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass Loader.java:179) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAw areClassLoader.java:65) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw areClassLoader.java:43) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:195) at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:12 6) at ...

16. Hibernate Object transfers over RMI    forum.hibernate.org

Hi, We have a Rich Client Application running on a remote Weblogic 9.2 server. Recently we noticed some sort of slowness on the first invocation of a command from the client. The first instance was taking somewhere around 55 seconds for the serializable data transfer between server and client.While the same Object being transferred took 2 seconds on second command invocation.When ...





17. java.rmi.UnmarshalException: Error unmarshaling    forum.hibernate.org

Hi All, I'm trying to update database using Hibernate. Below is the String which I'm trying to update in DB. Error: After Effects error: File computerfightsback.wmv cannot be opened, it may be in an unsupported format. Note that it has some special Characters. Also the call is remote EJB call which calls Hibernate method for updating DB. 2009-03-13 11:43:32,185 53840739 WARN ...