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

Ask Your Question
0

A simple question

Is it possible to have a batch mode notifier in partition topology?

I got null pointer exception when I try. The exception is show below.

I have try ignoreEventOnNullTake in SimpleNotifyContainerConfigurer and useLocalCache in the url but they do not work.

SEVERE [org.openspaces.events.notify.SimpleNotifyEventListenerContainer]: [null] Execution of event listener failed java.lang.NullPointerException at cwtsui.example.Notify$SpaceListener.onEvent(Notify.java:24) at cwtsui.example.Notify$SpaceListener.onEvent(Notify.java:16) at org.openspaces.events.AbstractEventListenerContainer.invokeListener(AbstractEventListenerContainer.java:136) at org.openspaces.events.notify.AbstractNotifyEventListenerContainer.invokeListenerWithTransaction(AbstractNotifyEventListenerContainer.java:583) at org.openspaces.events.notify.SimpleNotifyEventListenerContainer$BatchNotifyListenerDelegate.notifyBatch(SimpleNotifyEventListenerContainer.java:215) at com.j_spaces.core.client.NotifyDelegator.notifyBatch(NotifyDelegator.java:237) at com.j_spaces.core.client.RemoteEventListenerExporter$TransientDelegator.notifyBatch(RemoteEventListenerExporter.java:99) 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.gigaspaces.lrmi.LRMIRuntime.invoked(LRMIRuntime.java:381) at com.gigaspaces.lrmi.nio.Pivot.consumeAndHandleRequest(Pivot.java:371) at com.gigaspaces.lrmi.nio.Pivot.handleRequest(Pivot.java:459) at com.gigaspaces.lrmi.nio.Pivot$ChannelEntryTask.run(Pivot.java:149) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)

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

asked 2009-02-24 19:48:11 -0600

cwtsui gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

It does not sounds that simple...

Can u explain what are you trying to implement? How local cache + batch notifications + take serve your application? Local cache should be used for read mostly cases.

Which product version you use?

Shay

answered 2009-02-24 21:57:36 -0600

shay hassidim gravatar image
edit flag offensive delete link more
0

The situation is that I have a data grid (partition topology). Many object are written into the space per second. An application will notify the object. It is slow so I try to use batch mode.

When batch mode is used, NullPointerException was thrown.

I just want to read the Object when the object is written to the space.

answered 2009-02-25 00:18:42 -0600

cwtsui gravatar image
edit flag offensive delete link more

Comments

Why won't you have a notify container with embedded space getting notifications about incoming objects and acting upon?
Each notify container will deal with the events arriving to its embedded space.
This will happen very fast. In fact you will have multiple threads within the notify container handling incoming events.
With such architecture the notify container should be able to keep up with the incoming events.

Shay

shay hassidim gravatar imageshay hassidim ( 2009-02-26 14:31:09 -0600 )edit

thank for your advice

cwtsui gravatar imagecwtsui ( 2009-02-26 21:16: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: 2009-02-24 19:48:11 -0600

Seen: 46 times

Last updated: Feb 25 '09