I added the issue https://github.com/akka/akka/issues/15535


Am Montag, 14. Juli 2014 11:24:28 UTC+2 schrieb Konrad Malawski:
>
> Thanks for reporting, Wolfgang!
> Looks like a bug indeed, would you mind creating an issue with these 
> details on our issue tracker?
>
> https://github.com/akka/akka/issues?labels=t%3Astream&state=open
>
>
> On Mon, Jul 14, 2014 at 10:37 AM, Wolfgang F. <wolfgan...@hotmail.com 
> <javascript:>> wrote:
>
>> Hi
>>
>> I found a small bug in the implementation of the ActorProducer. 
>>
>> I created an Actor (which has the ActorProducer implemented) 
>> I did not use the actor (I just created it)
>> When now the system is shutdown the following exception occurs
>>
>> *Exception:*
>>
>> java.lang.NullPointerException: null
>>         at 
>> akka.stream.actor.ActorProducer$class.aroundPostStop(ActorProducer.scala:237)
>>  
>> ~[akka-stream-experimental_2.10-0.3.jar:na]
>>         at 
>> com.jd.hddoc.dispatcher.com.api.ConsumerProducerActor.aroundPostStop(ConsumerProducerActor.scala:7)
>>  
>> ~[classes/:na]
>>         at 
>> akka.actor.dungeon.FaultHandling$class.akka$actor$dungeon$FaultHandling$$finishTerminate(FaultHandling.scala:210)
>>  
>> ~[akka-actor_2.10-2.3.3.jar:na]
>>
>> It caused because the state isActive returns true but subscribes is 
>> uninitialized 
>>
>> *Sample:*
>>
>> class ProducerActor() extends  ActorProducer[Int] {...}
>>
>>     ...
>>    val system = ActorSystem("serverSystem", serverConf)
>>    val sourceAndDestination = system.actorOf(Props[ProducerActor])
>>    system.shutdown()
>>     ...
>>
>> Regards
>>
>> Wolfgang
>>
>> -- 
>> >>>>>>>>>> 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+...@googlegroups.com <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Cheers,
> Konrad 'ktoso' Malawski
> hAkker @ Typesafe
>
> <http://typesafe.com>
>  

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to