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

Ask Your Question
0

Error handling read/take/change

IJSpace space = new UrlSpaceConfigurer("jini:////myspace").space();//jini:////DemoGrid String url = "jini:////DemoGrid?groups=$(XapNet.Groups)"; GigaSpace gs = new GigaSpaceConfigurer(space).gigaSpace(); SQLQuery<profile> query=new SQLQuery<profile>(Profile.class,"last_name='yxezg'"); Long count=count(gs,query ,space.toString()); System.out.println(count);

I am getting the following exception

2016-07-27 18:41:18,887 myspace [1] SEVERE [com.gigaspaces.space.engine] - Error handling read/take/change. multiple; Caused by: java.lang.IllegalArgumentException: Unknown property name 'myspace_container2:myspace' in type org.test.executor.Profile
[gsc][1/19424]          at com.gigaspaces.internal.server.storage.AbstractEntryData.getPropertyValue(AbstractEntryData.java:114)
[gsc][1/19424]          at com.gigaspaces.internal.server.storage.AbstractEntryData.getPathValue(AbstractEntryData.java:254)
[gsc][1/19424]          at com.gigaspaces.internal.query.EntryHolderAggregatorContext.getPathValueImpl(EntryHolderAggregatorContext.java:62)
[gsc][1/19424]          at com.gigaspaces.query.aggregators.SpaceEntriesAggregatorContext.getPathValue(SpaceEntriesAggregatorContext.java:33)
[gsc][1/19424]          at com.gigaspaces.query.aggregators.AbstractPathAggregator.getPathValue(AbstractPathAggregator.java:35)
[gsc][1/19424]          at com.gigaspaces.query.aggregators.CountAggregator.aggregate(CountAggregator.java:36)
[gsc][1/19424]          at com.gigaspaces.query.aggregators.SpaceEntriesAggregatorContext.aggregate(SpaceEntriesAggregatorContext.java:62)
[gsc][1/19424]          at com.gigaspaces.internal.query.EntryHolderAggregatorContext.scan(EntryHolderAggregatorContext.java:32)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceEngine.performReadTemplateOnEntryCoreSA(SpaceEngine.java:5208)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceEngine.performTemplateOnEntryCoreSA_impl(SpaceEngine.java:5146)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceEngine.performTemplateOnEntryCoreSA(SpaceEngine.java:5001)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceEngine.performTemplateOnEntryXtnAwareSA(SpaceEngine.java:4931)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceEngine.performTemplateOnEntrySA(SpaceEngine.java:4674)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceEngine.performTemplate(SpaceEngine.java:4512)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Entry(SpaceEngine.java:4444)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Scan(SpaceEngine.java:4362)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Type(SpaceEngine.java:4494)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceEngine.executeOnMatchingEntries(SpaceEngine.java:4317)
[gsc][1/19424]          at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2837)
[gsc][1/19424]          at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2623)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2154)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceEngine.aggregate(SpaceEngine.java:6952)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.operations.AggregateEntriesSpaceOperation.execute(AggregateEntriesSpaceOperation.java:26)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.operations.AggregateEntriesSpaceOperation.execute(AggregateEntriesSpaceOperation.java:13)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:78)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1872)
[gsc][1/19424]          at com.gigaspaces.internal.server.space.SpaceImpl.executeOperationAsync(SpaceImpl.java:1879)
[gsc][1/19424]          at com.gigaspaces.internal.remoting.RemoteOperationsExecutorGigaspacesMethodinternalInvoke3.internalInvoke(Unknown Source)
[gsc][1/19424]          at com.gigaspaces.internal.reflection.fast.AbstractMethod.invoke(AbstractMethod.java:41)
[gsc][1/19424]          at com.gigaspaces.lrmi.LRMIRuntime.invoked(LRMIRuntime.java:479)
[gsc][1/19424]          at com.gigaspaces.lrmi.nio.Pivot.consumeAndHandleRequest(Pivot.java:573)
[gsc][1/19424]          at com.gigaspaces.lrmi.nio.Pivot.handleRequest(Pivot.java:667)
[gsc][1/19424]          at com.gigaspaces.lrmi.nio.Pivot$ChannelEntryTask.run(Pivot.java:196)
[gsc][1/19424]          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[gsc][1/19424]          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[gsc][1/19424]          at java.lang.Thread.run(Thread.java:745)

asked 2016-07-27 08:31:39 -0600

ninadnehete gravatar image

updated 2016-07-27 08:34:06 -0600

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

It looks like the Profile class does not have the last_name property. How have you deployed this class? Check if it is the same as the class you are currently working with.

Also, the snippet of code that you provided would not work due to syntax errors. The profile type should be capitalized. The basic format of the jini url is: jini:////spaceName.

answered 2016-07-27 09:32:33 -0600

Dixson Huie gravatar image
edit flag offensive delete link more

Comments

In my class I have last_name property set and I can see it by querying it Gui. I have used to Write() to write POJO to space there can't be any error in the jini url and its the same class I am working with ...because I can read the objects via readMultiple like

 results= gs.readMultiple(new SQLQuery<Profile>(Profile.class,"active='yes'"));
        System.out.println("*****ARRAY**"+results.length);

gives me a correct result (not the efficient way to get the count)

ninadnehete gravatar imageninadnehete ( 2016-07-28 06:55:30 -0600 )edit

Are you using RemoteOperations? Make sure your Profile class deployed on the server side includes the last_name property.

Dixson Huie gravatar imageDixson Huie ( 2016-07-28 15:55:18 -0600 )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: 2016-07-27 08:31:39 -0600

Seen: 35 times

Last updated: Jul 27 '16