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

Ask Your Question
0

LookupFinder failed to find service on remote server.

I am using Java to connect to service on a remote server. I am able to connect to the service locally but having trouble connecting to it from a remote server.

I confirmed that the space is reachable using gs.sh in bin directory -

gs> space ping -url jini://localhost/*/eventsSpace?locators=localhost&groups=MAF3GSGroup&state=started
total 2
ping from <eventsSpace> space
with:
Finder URL: jini://localhost/*/eventsSpace?locators=localhost&groups=MAF3GSGroup&state=started&timeout=5000
Lease Timeout:  10 seconds
LookupFinder timeout: 5000 milliseconds
Buffer Size: 100
Iterations: 5

total 2
[1]  14192  eventsSpace  MAF3GSGroup  deveshtest  eventsSpace_container2  Primary  
[2]  14189  eventsSpace  MAF3GSGroup  deveshtest  eventsSpace_container1  Primary  
[3]  all

whereas connecting over the network isnt working -

gs> space ping -url jini://a.b.c.d/*/eventsSpace?locators=a.b.c.d&groups=MAF3GSGroup&state=started
total 0
Service is not found using the URL: jini://a.b.c.d/*/eventsSpace?        locators=a.b.c.d&groups=MAF3GSGroup&state=started&timeout=5000
When using the CLI, lookup groups should be defined via the LOOKUPGROUPS environment property and not a URL parameter.
When using the CLI lookup locators should be defined via the LOOKUPLOCATORS environment property and not a URL parameter.

Below are the server logs -

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'evaluarTransaccionService': Cannot resolve reference to bean 'gigaSpaceEvent' while setting bean property 'gigaSpace'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gigaSpaceEvent': Cannot resolve reference to bean 'eventSpace' while setting bean property 'space'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventSpace': Invocation of init method failed; nested exception is org.openspaces.core.space.CannotFindSpaceException: Failed to find space with url [jini://a.b.c.d/*/eventsSpace?locators=a.b.c.d&groups=MAF3GSGroup&state=started]; nested exception is com.j_spaces.core.client.FinderException: LookupFinder failed to find service using the following service attributes: 

 Service attributes: [net.jini.lookup.entry.Name(name=eventsSpace)]
 Service attributes: [com.j_spaces.lookup.entry.State(state=started,electable=null,replicable=null)]
 Lookup timeout: [5000]
 Classes: [interface com.j_spaces.core.service.Service]
 Jini Lookup Groups: [MAF3GSGroup]
 Jini Lookup Locators: a.b.c.d
 Number of Lookup Services: 1

at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1356)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:710)
at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:519)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:339)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:316)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:303)
at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1162)
at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144)
at org.openspaces.core.context.GigaSpaceContextBeanPostProcessor.initMapsIfNecessary(GigaSpaceContextBeanPostProcessor.java:71)
at org.openspaces.core.context.GigaSpaceContextBeanPostProcessor.findGigaSpaceByName(GigaSpaceContextBeanPostProcessor.java:95)
at org.openspaces.core.context.GigaSpaceContextBeanPostProcessor$AnnotatedMember.resolve(GigaSpaceContextBeanPostProcessor.java:218)
at org.openspaces.core.context.GigaSpaceContextBeanPostProcessor$AnnotatedMember.inject(GigaSpaceContextBeanPostProcessor.java:173)
at org.openspaces.core.context.GigaSpaceContextBeanPostProcessor.postProcessAfterInstantiation(GigaSpaceContextBeanPostProcessor.java:117)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1068)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:605)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

How can i connect to the service remotely? Is there anything missing in the configuration?

asked 2016-03-11 00:38:13 -0500

Ankit Rustagi gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Gigaspaces listens on one NIC, so if it's listening on localhost it isn't listening generally. You should set NIC_ADDR for the machine(s) on which you run space components and connect to those IP addresses. See the documentation here:

http://docs.gigaspaces.com/xap102adm/...

answered 2016-03-15 09:20:36 -0500

jb 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: 2016-03-11 00:38:13 -0500

Seen: 597 times

Last updated: Mar 15 '16