Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Problems with OpenOffice Addin and gigaspace

Hi,

Right now I am going to deploy an Addin for openoffice by netBeans 6.5, when I'm trying to run the deployed function from the Addin,

The implementation of java: String url = "jini://192.168.128.74/*/kGrid?groups=koning";

    System.out.println("setting space " + url);
    try {
        IJSpace space = new UrlSpaceConfigurer(url).space(); // Connect to the space using the URL
        System.out.println("setting gigaspace ");
        gigaSpace = new GigaSpaceConfigurer(space).gigaSpace(); // Use gigaSpace simplified API
        System.out.println("finished seting gigaspace ");
    } catch (Throwable e) {
        System.out.println("Error in getting Space: " + e.toString());
    }

I got such errors in the console of netBeans.

setting space jini://192.168.128.74/*/kGrid?groups=koning WARNING: can't find [policy/policy.all] resource Jan 21, 2009 9:48:16 AM net.jini.lookup.ServiceDiscoveryManager lookup INFO: Exception occurred during query, discarding reggie [com.sun.jini.reggie.RegistrarProxy[registrar=5dc8d1b1-1b56-4142-9207-c9a8d6b3eb2d DynamicSmartStub [ImplObjClass: com.sun.jini.reggie.GigaRegistrar, ConnectionURL: NIO:///192.168.128.74:2000/4368555142126362_1, MaxConnPool: 1024 ]]] java.rmi.RemoteException: Failed to initialize client connection.DynamicSmartStub [ImplObjClass: com.sun.jini.reggie.GigaRegistrar, ConnectionURL: NIO:///192.168.128.74:2000/4368555142126362_1, MaxConnPool: 1024 ]; nested exception is: com.gigaspaces.config.ConfigurationException: Failed to init. Protocol Registry: com.gigaspaces.lrmi.nio.PAdapter; caused by: java.lang.ClassNotFoundException: cant get class provider for com.gigaspaces.lrmi.nio.PAdapter at com.gigaspaces.lrmi.DynamicSmartStub.getInvocationHandler(DynamicSmartStub.java:432) at com.gigaspaces.lrmi.DynamicSmartStub.invokeRemote(DynamicSmartStub.java:379) at com.gigaspaces.lrmi.DynamicSmartStub.invoke(DynamicSmartStub.java:369) at com.sun.jini.reggie.$Proxy14.lookup(Unknown Source) at com.sun.jini.reggie.RegistrarProxy.lookup(RegistrarProxy.java:130) at net.jini.lookup.ServiceDiscoveryManager.lookup(ServiceDiscoveryManager.java:2883) at com.j_spaces.core.client.LookupFinder.find(LookupFinder.java:303) at com.j_spaces.core.client.SpaceFinder.findRegularSpace(SpaceFinder.java:1033) at com.j_spaces.core.client.SpaceFinder._find(SpaceFinder.java:615) at com.j_spaces.core.client.SpaceFinder.internalFind(SpaceFinder.java:412) at com.j_spaces.core.client.SpaceFinder.internalFind(SpaceFinder.java:387) at com.j_spaces.core.client.SpaceFinder.find(SpaceFinder.java:206) at org.openspaces.core.space.UrlSpaceFactoryBean.doCreateSpace(UrlSpaceFactoryBean.java:312) at org.openspaces.core.space.AbstractSpaceFactoryBean.afterPropertiesSet(AbstractSpaceFactoryBean.java:149) at org.openspaces.core.space.UrlSpaceConfigurer.space(UrlSpaceConfigurer.java:237) at stockticker.stocktickerImpl.getStockValue(stocktickerImpl.java:87) Caused by: com.gigaspaces.config.ConfigurationException: Failed to init. Protocol Registry: com.gigaspaces.lrmi.nio.PAdapter; caused by: java.lang.ClassNotFoundException: cant get class provider for com.gigaspaces.lrmi.nio.PAdapter at com.gigaspaces.lrmi.ProtocolRegistry.init(ProtocolRegistry.java:50) at com.gigaspaces.lrmi.LRMIRuntime.init(LRMIRuntime.java:114) at com.gigaspaces.lrmi.LRMIRuntime.getRuntime(LRMIRuntime.java:103) at com.gigaspaces.lrmi.DynamicSmartStub.getInvocationHandler(DynamicSmartStub.java:417) ... 15 more Caused by: java.lang.ClassNotFoundException: cant get class provider for com.gigaspaces.lrmi.nio.PAdapter at com.gigaspaces.lrmi.classloading.LRMIClassLoader.getClassLoader(LRMIClassLoader.java:112) at com.gigaspaces.lrmi.classloading.LRMIClassLoader.loadClass(LRMIClassLoader.java:66) at com.j_spaces.kernel.ClassLoaderHelper.loadClass(ClassLoaderHelper.java:129) at com.j_spaces.kernel.ClassLoaderHelper.loadClass(ClassLoaderHelper.java:73) at com.gigaspaces.lrmi.ProtocolRegistry.init(ProtocolRegistry.java:41) ... 18 more Jan 21, 2009 9:48:16 AM net.jini.discovery.LookupLocatorDiscovery$InternalDiscoverylListener discovered WARNING: Exception in InternalDiscoverylListener.discovered() going to discard the discoveryEvent: net.jini.discovery.DiscoveryEvent[source=net.jini.discovery.LookupLocatorDiscovery@12b3d53] java.rmi.RemoteException: Failed to initialize client connection.DynamicSmartStub [ImplObjClass: com.sun.jini.reggie.GigaRegistrar, ConnectionURL: NIO:///192.168.128.74:2000/4368555142126362_1, MaxConnPool: 1024 ]; nested exception is: com.gigaspaces.config.ConfigurationException: Failed to init. Protocol Registry: com.gigaspaces.lrmi.nio.PAdapter; caused by: java.lang.ClassNotFoundException: cant get class provider for com.gigaspaces.lrmi.nio.PAdapter at com.gigaspaces.lrmi.DynamicSmartStub.getInvocationHandler(DynamicSmartStub.java:432) at com.gigaspaces.lrmi.DynamicSmartStub.invokeRemote(DynamicSmartStub.java:379) at com.gigaspaces.lrmi.DynamicSmartStub.invoke(DynamicSmartStub.java:369) at com.sun.jini.reggie.$Proxy14.getLocator(Unknown Source) at com.sun.jini.reggie.RegistrarProxy.getLocator(RegistrarProxy.java:229) at net.jini.discovery.LookupLocatorDiscovery$LookupAliveTask.<init>(LookupLocatorDiscovery.java:1729) at net.jini.discovery.LookupLocatorDiscovery$InternalDiscoverylListener.discovered(LookupLocatorDiscovery.java:1684) at net.jini.discovery.LookupLocatorDiscovery$Notifier.run(LookupLocatorDiscovery.java:707) Caused by: com.gigaspaces.config.ConfigurationException: Failed to init. Protocol Registry: com.gigaspaces.lrmi.nio.PAdapter; caused by: java.lang.ClassNotFoundException: cant get class provider for com.gigaspaces.lrmi.nio.PAdapter at com.gigaspaces.lrmi.ProtocolRegistry.init(ProtocolRegistry.java:50) at com.gigaspaces.lrmi.LRMIRuntime.init(LRMIRuntime.java:114) at com.gigaspaces.lrmi.LRMIRuntime.getRuntime(LRMIRuntime.java:103) at com.gigaspaces.lrmi.DynamicSmartStub.getInvocationHandler(DynamicSmartStub.java:417) ... 7 more Caused by: java.lang.ClassNotFoundException: cant get class provider for com.gigaspaces.lrmi.nio.PAdapter at com.gigaspaces.lrmi.classloading.LRMIClassLoader.getClassLoader(LRMIClassLoader.java:112) at com.gigaspaces.lrmi.classloading.LRMIClassLoader.loadClass(LRMIClassLoader.java:66) at com.j_spaces.kernel.ClassLoaderHelper.loadClass(ClassLoaderHelper.java:129) at com.j_spaces.kernel.ClassLoaderHelper.loadClass(ClassLoaderHelper.java:73) at com.gigaspaces.lrmi.ProtocolRegistry.init(ProtocolRegistry.java:41) ... 10 more ....................

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2819]{quote}

asked 2009-01-20 21:04:18 -0500

twinsenc gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Which GigaSpaces version are you using? Make sure you have the same version of libraries used at the client as the server.
It seems you have some jars missing in your classpath.
See this page for libraries you should have in the client CLASSPATH:
http://www.gigaspaces.com/wiki/display/XAP66/SettingClasspath

Shay

answered 2009-01-21 06:20:54 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2009-01-20 21:04:18 -0500

Seen: 401 times

Last updated: Jan 21 '09