Hello,

The class is part of channel_iface_impl_stub-1.0.jar.  Make sure you have it in 
the java classpath of your client.

All the best
Philip Alexiev
Software Engineer, KIM Platform


On Sep 30, 2010, at 12:25 PM, nguyen viet nghi wrote:

> I used this code for testing :
> 
> import java.rmi.NotBoundException;
> import java.rmi.RemoteException;
> import com.ontotext.kim.client.*;
> 
> 
> public class Test {
>       public static void main(String args[]) {
> 
>               try {
>                       KIMService serviceKim = GetService.from();
>                       System.out.println("KIM Server connected.");
>               } catch (RemoteException e) {
>                       // TODO Auto-generated catch block
>                       e.printStackTrace();
>               } catch (NotBoundException e) {
>                       // TODO Auto-generated catch block
>                       e.printStackTrace();
>               }
>               
> 
>       }
> }
> 
> and console prints : 
> Using         localhost:1099   to connect to KIM service.
> java.rmi.RemoteException: Cannot connect to KIMService at localhost:1099, 
> because of the following error: error unmarshalling return; nested exception 
> is: 
>       java.lang.ClassNotFoundException: 
> org.openrdf.util.rmirouting.ChannelIfaceImpl_Stub (no security manager: RMI 
> class loader disabled); nested exception is: 
>       java.rmi.UnmarshalException: error unmarshalling return; nested 
> exception is: 
>       java.lang.ClassNotFoundException: 
> org.openrdf.util.rmirouting.ChannelIfaceImpl_Stub (no security manager: RMI 
> class loader disabled)
>       at 
> com.ontotext.kim.client.GetService.connectToFactory(GetService.java:158)
>       at com.ontotext.kim.client.GetService.from(GetService.java:124)
>       at com.ontotext.kim.client.GetService.from(GetService.java:107)
>       at com.ontotext.kim.client.GetService.from(GetService.java:93)
>       at Test.main(Test.java:10)
> Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested 
> exception is: 
>       java.lang.ClassNotFoundException: 
> org.openrdf.util.rmirouting.ChannelIfaceImpl_Stub (no security manager: RMI 
> class loader disabled)
>       at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
>       at 
> com.ontotext.kim.client.GetService.connectToFactory(GetService.java:152)
>       ... 4 more
> Caused by: java.lang.ClassNotFoundException: 
> org.openrdf.util.rmirouting.ChannelIfaceImpl_Stub (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.readObject(Unknown Source)
>       ... 6 more
> 
> I don't understand about this problem. Please help me solve it. Thank you 
> very much !
>  PS: I am using Tomcat : D:\Tomcat and my Java : D:\jdk1.6.0_20. I think that 
> don't have bug with directory containing spaces.

_______________________________________________
Kim-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion

Reply via email to