-->
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.  [ 4 posts ] 
Author Message
 Post subject: ClassNotFoundException:net.sf.hibernate.collection.Set
PostPosted: Mon Sep 26, 2005 4:43 am 
Newbie

Joined: Mon Sep 26, 2005 3:12 am
Posts: 2
We are using a Eclipse Plugin Client (3.0.1 and 3.1) to connect to the JBoss Server 4.0.2. We are also using Hibernate and MySQL. When we try to connect from Windows XP Eclipse Plugin Client to JBoss Server running on Linux then it gives the following error. However, the same code works fine if a Windows XP Eclipse Plugin Client connects to JBoss Server running on Windows XP.


Hibernate version: 2.1.7c

Mapping documents:

Code between sessionFactory.openSession() and session.close():

java.lang.reflect.UndeclaredThrowableException
at $Proxy1.getDevices(Unknown Source)
at com.windriver.dsm.client.DeviceLister.getDsmList(DeviceLister.java:82)
at com.windriver.dsm.configurator.model.ListModel.refresh(ListModel.java:49)
at com.windriver.dsm.configurator.view.DsmListViewerContentProvider.buildModel(DsmListViewerContentProvider.java:214)
at com.windriver.dsm.configurator.view.DsmListViewerContentProvider.<init>(DsmListViewerContentProvider.java:62)
at com.windriver.dsm.configurator.view.DsmListViewer.linkViewWithModel(DsmListViewer.java:155)
at com.windriver.dsm.configurator.view.DsmListViewer.constructViewer(DsmListViewer.java:123)
at com.windriver.dsm.configurator.view.TabUtil.createAssociatedTabs(TabUtil.java:122)
at com.windriver.dsm.configurator.view.TabUtil.createAssociatedTabs(TabUtil.java:53)
at com.windriver.dsm.configurator.view.ConfiguratorMainView.generateMainView(ConfiguratorMainView.java:118)
at com.windriver.dsm.configurator.action.ConfiguratorMainViewConnectAction.runSpecific(ConfiguratorMainViewConnectAction.java:45)
at com.windriver.dsm.configurator.action.ServerConnectAction.run(ServerConnectAction.java:72)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$8.handleEvent(ActionContributionItem.java:824)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
Caused by: java.lang.ClassNotFoundException: net.sf.hibernate.collection.Set (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.ArrayList.readObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.rmi.MarshalledObject.get(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:119)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:163)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:103)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:91)
... 35 more


MySQL 4.1.8

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 26, 2005 9:47 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
you have mixed hibernate version, probably
net.sf.hibernate.... are from hibernate version 2


Top
 Profile  
 
 Post subject: u feel that I have mixed up hibernate version 2 and 3 ?
PostPosted: Mon Sep 26, 2005 9:53 am 
Newbie

Joined: Mon Sep 26, 2005 3:12 am
Posts: 2
I dont think so. Moreover, the same setup(the same set of jars, wars and libraries) is working from Windows Client to Jboss on Windows.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 26, 2005 10:08 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
What is you version ?

I suppose ver 3, but on windows you have version 2 libraries in path
check double


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.