[akka-user] Re: PersistenceQuery.ReadJournal vs PersistentActor.onReceiveRecover

2016-01-01 Thread Jan-Terje Sørensen
Do you have a domain example of when this is usefull? 

torsdag 31. desember 2015 15.33.15 UTC+1 skrev Jan-Terje Sørensen følgende:
>
> Hi,
>
> Both PersistenceQuery.ReadJournal and PersistentActor.onReceiveRecover 
> handles events. 
>
> As I understand it we shall always use PersisteceQuery when projecting our 
> data. Can anyone please explain when I need to use the 
> PersistentActor.receiveRecover?
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] akka-persistance issue

2016-01-01 Thread Patrik Nordwall
That is strange. Do you have a way to reproduce it?
/Patrik

On Thu, Dec 31, 2015 at 2:30 PM, Neel Sachdeva  wrote:

>
> Hi Guys,
>
> I'm seeing this exception on server :
>
>
> akka.actor.OneForOneStrategy -
> java.util.NoSuchElementException
> at java.util.LinkedList.removeFirst(LinkedList.java:270)
> at java.util.LinkedList.pop(LinkedList.java:801)
> at
> akka.persistence.Eventsourced$$anon$2.onWriteMessageComplete(Eventsourced.scala:632)
> at
> akka.persistence.Eventsourced$ProcessingState$$anonfun$2.applyOrElse(Eventsourced.scala:554)
> at
> scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36)
> at
> akka.persistence.Eventsourced$$anon$2.stateReceive(Eventsourced.scala:628)
> at
> akka.persistence.Eventsourced$class.aroundReceive(Eventsourced.scala:158)
> at catalyst.actors.subr.Subr.aroundReceive(Subr.scala:242)
> at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
> at akka.actor.ActorCell.invoke_aroundBody0(ActorCell.scala:495)
> at akka.actor.ActorCell$AjcClosure1.run(ActorCell.scala:1)
> at
> org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
> at
> akka.kamon.instrumentation.ActorCellInstrumentation$$anonfun$aroundBehaviourInvoke$1.apply(ActorCellInstrumentation.scala:63)
> at kamon.trace.Tracer$.withContext(TracerModule.scala:53)
> at
> akka.kamon.instrumentation.ActorCellInstrumentation.aroundBehaviourInvoke(ActorCellInstrumentation.scala:62)
> at akka.actor.ActorCell.invoke(ActorCell.scala:488)
> at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
> at akka.dispatch.Mailbox.run(Mailbox.scala:224)
> at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
> at
> scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
> at
> scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
> at
> scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
> at
> scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
> 2015-12-22 14:01:16,876 DEBUG catalyst.actors.subr.Subr - restarting
>
>
> Problem is being caused at line 632 here
> https://github.com/akka/akka/blob/master/akka-persistence/src/main/scala/akka/persistence/Eventsourced.scala
> Any idea whats happening here ?
>
> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe  -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.