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

Ask Your Question
0

space persistence problem

Hello,

I have some problem during pudeploy when I use any space schema except "mirror" If I use "mirror" space schema - no error because data is not loaded from DB at start-up. I'm using GigaSpacesXAP6.0 Persistence is based on Hibernate. Log is below....

I was searching by "MANUAL" and found nothing Any ideas how to check / debug / log / fix this ?

Thanks, illya


SEVERE [com.gigaspaces.core.engine]: Failed to init [spaceTest] space. com.j_spaces.core.sadapter.SAException: java.lang.NoSuchFieldError: MANUAL at com.j_spaces.sadapter.datasource.DataAdapter.makeEntriesIter(SourceFile:932) at com.j_spaces.obf.fr.f(SourceFile:828) at com.j_spaces.obf.ko.iK(SourceFile:908) at com.j_spaces.obf.ko.a(SourceFile:708) at com.j_spaces.core.JSpaceImpl.u(SourceFile:3385) at com.j_spaces.core.JSpaceImpl.r(SourceFile:3263) at com.j_spaces.core.JSpaceImpl.start(SourceFile:3100) at com.j_spaces.core.JSpaceImpl.<init>(SourceFile:369) at com.j_spaces.core.JSpaceContainerImpl.a(SourceFile:2997) at com.j_spaces.core.JSpaceContainerImpl.a(SourceFile:2920) at com.j_spaces.core.JSpaceContainerImpl.aU(SourceFile:1315) at com.j_spaces.core.JSpaceContainerImpl.aN(SourceFile:715) at com.j_spaces.core.JSpaceContainerImpl.<init>(SourceFile:610) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:695) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:814) at com.j_spaces.core.client.SpaceFinder._find(SourceFile:540) at com.j_spaces.core.client.SpaceFinder.find(SourceFile:387) at org.openspaces.core.space.UrlSpaceFactoryBean.doCreateSpace(UrlSpaceFactoryBean.java:275) at org.openspaces.core.space.AbstractSpaceFactoryBean.afterPropertiesSet(AbstractSpaceFactoryBean.java:124) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.AbstractBeanFactory.isSingleton(AbstractBeanFactory.java:358) at org.openspaces.core.context.GigaSpaceLateContextBeanFactoryPostProcessor.postProcessBeanFactory(GigaSpaceLateContextBeanFactoryPostProcessor.java:219 ) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:472) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:334) at org.openspaces.pu.container.integrated.IntegratedProcessingUnitContainerProvider.createContainer(IntegratedProcessingUnitContainerProvider.java:182) at org.openspaces.pu.container.servicegrid.PUServiceBeanImpl.startPU(PUServiceBeanImpl.java:194) at org.openspaces.pu.container.servicegrid.PUServiceBeanImpl.advertise(PUServiceBeanImpl.java:109) at org.jini.rio.resources.servicecore.ServiceAdminImpl.advertise(ServiceAdminImpl.java:212) at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.gigaspaces.lrmi.DynamicSmartStub._invoke(SourceFile:208) at com.gigaspaces.lrmi.DynamicSmartStub.invokeDirect(SourceFile:290) at com.gigaspaces.lrmi.DynamicSmartStub.invoke(SourceFile:348) at $Proxy15.advertise(Unknown Source) at org.jini.rio.resources.servicecore.ServiceAdminProxy.advertise(ServiceAdminProxy.java:114) at org.jini.rio.cybernode.ServiceBeanLoader.advertise(ServiceBeanLoader.java:444) at org.jini.rio.cybernode.ServiceBeanLoader.advertise(ServiceBeanLoader.java:405) at org.jini.rio.cybernode.JSBDelegate.advertise(JSBDelegate.java:325) at org.jini.rio.cybernode.JSBContainer.activate(JSBContainer.java:189) at org.jini.rio.cybernode.CybernodeImpl.instantiate(CybernodeImpl.java:968) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.j_spaces.obf.iw.a(SourceFile:333) at com.j_spaces.obf.fh.b(SourceFile:292) at com.j_spaces.obf.fh.a(SourceFile:358) at com.j_spaces.obf.jk.dispatch(SourceFile:118) at com.j_spaces.obf.ca.run(SourceFile:62) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NoSuchFieldError: MANUAL at com.gigaspaces.datasource.hibernate.HibernateDataSource.initialLoad(SourceFile:780) at com.j_spaces.obf.de.initialLoad(SourceFile:535) at com.j_spaces.sadapter.datasource.DataAdapter.makeEntriesIter(SourceFile:830) ... 67 more

Jun 27, 2008 7:33:18 AM WARNING [com.gigaspaces.core.common]: Space recovery failure.

Caused by: com.j_spaces.core.CreateException: Failed to init [spaceTest] space. java.lang.NoSuchFieldError: MANUAL Jun 27, 2008 7:33:18 AM

Edited by: Illya Havsiyevych on Jun 27, 2008 12:50 PM

Edited by: Illya Havsiyevych on Jun 27, 2008 12:51 PM

Edited by: Illya Havsiyevych on Jun 27, 2008 1:00 PM

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

asked 2008-06-27 12:49:50 -0500

illya77's avatar

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

jaissefsfex's avatar
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Are you using POJO or Entry based space domain class?
Are you using gs.xml or annotations for the space class decorations? Do you have space ID decorations?
I guess you are using gs.xml.
Please make sure these are located at the same location where the class file is located.

Please turn on POJO logging to make sure the decorations are picked up properly:
have com.gigaspaces.pojo.level = ALL
at:
\gigaspaces root\config\gs_logging.properties

See here info about POJO Space decorations:
http://www.gigaspaces.com/wiki/display/OLH/JavaSpacesPOJO

Shay

answered 2008-06-27 17:26:24 -0500

shay hassidim's avatar
edit flag offensive delete link more

Comments

Hello Shay

Are you using POJO or Entry based space domain class?

POJO

Without persistence all seems working Ok and we started to add persistence based on "persistent" or "default"+"persistence=yes" schemas +other changes like in examples ... and we started to get posted exception...

... but If we use "mirror" (this is crazy but...) space schema space could be deployed Ok

Are you using gs.xml or annotations for the space class decorations? Do you have space ID decorations? I guess you are using gs.xml. Please make sure these are located at the same location where the class file is located.

We have annotations: @SpaceClass, @SpaceId We are generating IDs by ourselves ( @SpaceId(autoGenerate=false) )

Please turn on POJO logging to make sure the decorations are picked up properly: have com.gigaspaces.pojo.level = ALA at: \gigaspaces root\config\gs_logging.properties

Added POJO logging, Please check full log below...

Thanks, illya


Jun 27, 2008 11:29:16 PM INFO [com.gigaspaces.container]:

System Environment: System: OS Version: 5.1 Architecture: x86 OS Name: Windows XP Number Of Processors: 1 J2SE Support: VM Vendor: Sun Microsystems Inc. Using Java Home: D:\sseverin\apps\Java\jdk1.6.0_06\jre Java(TM) SE Runtime Environment Java HotSpot(TM) Server VM (build 10.0-b22 ) JVM Memory: Max Heap Size (KB): 518464 Current Allocated Heap Size (KB): 4548 Network Interfaces Information: Host Name: [sergei] Network Interface Name: lo / Internal loopback interface for 127.0.0 network IP Address: 127.0.0.1 Network Interface Name: eth0 / VIA PCI 10/100Mb Fast Ethernet Adapter - Packet Scheduler Miniport IP Address: 192.168.1.13 GigaSpaces Platform: Edition: 6.0 XAP Build: 2040

Jun 27, 2008 11:29:16 PM INFO [com.gigaspaces.container]: Using an already running RMIRegistry on: < 192.168.1.13:10099 >

Jun 27, 2008 11:29:16 PM INFO [com.gigaspaces.core.lookupmanager]:

Directory Service (RMI Registry): [ <spacetest_container> container bound successfully to RMIRegistry. ] [ provider URL: rmi://192.168.1.13:10099 ]

Jun 27, 2008 11:29:16 PM CONFIG [com.gigaspaces.core.config]: Loaded the requested space schema < persistent > to be used for the < spaceTest > space configuration.

Jun 27, 2008 11:29:17 PM FINE [com.gigaspaces.pojo]: *.gs.xml files are loaded from : file:/D:/sseverin/apps/GigaSpacesXAP6.0/config/mapping

Jun 27, 2008 11:29:17 PM Class: com.gigaspaces.converter.pojo.ConverterHelper Method: afterPropertiesSet FINEST [com.gigaspaces.pojo]: The *.gs.xml mapping file structure: []

Jun 27, 2008 11:29:17 PM FINE [com.gigaspaces.pojo]: No *.gs.xml files were found under config/mapping folder.

Jun 27, 2008 11:29:18 PM CONFIG [com.gigaspaces.kernel]: JAR Specification version recognized as: [1.5]

Jun 27, 2008 11:29:18 PM INFO [com.gigaspaces.persistent]: *** PERFORMS WARM INIT *** spaceTest

Jun 27, 2008 11:29:18 PM INFO [com.gigaspaces.cache]: * CACHE MANAGER CREATED CACHE POLICY = 0 Logfile = false cache-size=100000 memorySA=false

Jun 27, 2008 11:29:18 PM SEVERE [com.gigaspaces.core.engine]: Failed to init [spaceTest] space. com.j_spaces ...

(more)
illya77's avatar illya77  ( 2008-06-28 00:41:27 -0500 )edit

Hello Shay,

I found Your other post [//question/6796/web-service-and-persistence-questions/&tstart=120] .. and double checked my classpath (shared-libs):

ant-antlr-1.6.5.jar antlr-2.7.6rc1.jar asm.jar asm-attrs.jar cglib-2.1.3.jar commons-collections-2.1.1.jar commons-dbcp-1.2.2.jar commons-logging-1.0.4.jar commons-pool-1.4.jar dom4j-1.6.1.jar ehcache-1.1.jar hibernate3.jar jdbc2_0-stdext.jar jta.jar log4j.jar postgresql-8.3-603.jdbc4.jar

and now my PU could be deployed... (I have other error during runtime, but this is other story then deploy)

So thanks !!! illya

illya77's avatar illya77  ( 2008-06-28 02:58:57 -0500 )edit

If I'm not wrong the reason for the problem you had is not placing your POJOs at the shared-lib folder. The Space domain POJO classes and their associated classes (nested , part of collections field , etc) must be located at the shared-lib folder. Shay

Edited by: Shay Hassidim on Jun 29, 2008 12:52 AM

shay hassidim's avatar shay hassidim  ( 2008-06-29 00:52:13 -0500 )edit

Shay,

my POJO classes are in <root> of PU directory

deploy\mygrid \ com......

but not az JAR in deploy\mygrid\shared-lib \

maybe this also affect my other problem [//question/5926/mirror-service-question/&tstart=0]

also my mirror service is configured the same way - my POJO classes are in <root> of PU directory

So should I create JAR from my POJOs and put into shared-lib ?

thanks, illya

illya77's avatar illya77  ( 2008-06-29 01:02:20 -0500 )edit

Yes.

This is the recommended approach. Do not have your space domain classes in exploded folder. It workarounds also issues found when having multiple GSMs and failover of the master GSM.

Shay

shay hassidim's avatar shay hassidim  ( 2008-06-29 07:21:54 -0500 )edit

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: 2008-06-27 12:49:50 -0500

Seen: 93 times

Last updated: Jun 27 '08