Re: [akka-user] Akka 2.5.8 (Java Edition) Error initializing: java.lang.IllegalStateException: not yet initialized

2018-01-08 Thread Eduardo Fernandes
 
Fixed. As you've said there was a mix in initialization. I was using 
persistence jdbc version 3.0.0 which loaded an old version of the stream 
jar. After changing to 3.1.0 the problem was fixed. 

Many thanks for you time Patrik.

Regards.

-- 
>>  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 2.5.8 (Java Edition) Error initializing: java.lang.IllegalStateException: not yet initialized

2018-01-08 Thread Eduardo Fernandes
Thank you very much Patrik.

I'll check.

Best regards.


On Mon, Jan 8, 2018 at 8:53 AM, Patrik Nordwall 
wrote:

> Konrad is right. That is not the correct line numbers for GraphStage.scala
> in akka-stream 2.5.8 and not 2.5.6 either, so check what akka-stream
> dependency you actually have on the classpath.
>
> On Mon, Jan 8, 2018 at 7:50 AM, Konrad “ktoso” Malawski <
> konrad.malaw...@lightbend.com> wrote:
>
>> Are you not accidentally mixing Akka versions?
>> What does your dependency file look like with regards to Akka
>> dependencies.
>>
>> Akka Streams and Actor etc should all be on the same version.
>>
>> --
>> Cheers,
>> Konrad 'ktoso ' Malawski
>> Akka  @ Lightbend 
>>
>> On January 7, 2018 at 20:28:58, Eduardo Fernandes (edu...@gmail.com)
>> wrote:
>>
>> Hi all.
>>
>> First of all: have all a happy new year.
>>
>> I just jumped out from Akka 2.5.6 to 2.5.8. From that I'm getting the
>> following error when starting Akka:
>>
>> java.lang.IllegalStateException: not yet initialized: only setHandler is
>> allowed in GraphStageLogic constructor
>> at akka.stream.stage.GraphStageLogic.interpreter(GraphStage.scala:295)
>> at akka.stream.stage.GraphStageLogic$$anon$1.invoke(GraphStage.scala:960)
>> at akka.remote.artery.InboundControlJunction$$anon$2.attach(
>> Control.scala:129)
>> at akka.remote.artery.ArteryTransport.runInboundControlStream(A
>> rteryTransport.scala:704)
>> at akka.remote.artery.ArteryTransport.runInboundStreams(ArteryT
>> ransport.scala:686)
>> at akka.remote.artery.ArteryTransport.start(ArteryTransport.scala:455)
>> at akka.remote.RemoteActorRefProvider.init(RemoteActorRefProvid
>> er.scala:212)
>> at akka.cluster.ClusterActorRefProvider.init(ClusterActorRefPro
>> vider.scala:31)
>> at akka.actor.ActorSystemImpl.liftedTree2$1(ActorSystem.scala:797)
>> at akka.actor.ActorSystemImpl._start$lzycompute(ActorSystem.scala:794)
>> at akka.actor.ActorSystemImpl._start(ActorSystem.scala:794)
>> at akka.actor.ActorSystemImpl.start(ActorSystem.scala:810)
>> at akka.actor.ActorSystem$.apply(ActorSystem.scala:244)
>> at akka.actor.ActorSystem$.apply(ActorSystem.scala:287)
>> at akka.actor.ActorSystem$.apply(ActorSystem.scala:262)
>> at akka.actor.ActorSystem$.create(ActorSystem.scala:190)
>> at akka.actor.ActorSystem.create(ActorSystem.scala)
>>
>>
>> If I switch back to 2.5.6 or 2.5.5 and the error disappears.  I've tried
>> with 2.5.7 and the error is still there. Looks like some new behavior in
>> 2.5.7.
>>
>> I'm using Artery:
>>
>>   remote {
>> log-remote-lifecycle-events = off
>> artery {
>>   enabled = on
>>   canonical.hostname = 127.0.0.1
>>   canonical.port = 0
>> }
>>   }
>>
>> Many thanks in advance for your help!
>>
>>
>>
>>
>>
>>
>>
>> --
>> >> Read the docs: http://akka.io/docs/
>> >> Check the FAQ: http://doc.akka.io/docs/akka/c
>> urrent/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.
>>
>> --
>> >> Read the docs: http://akka.io/docs/
>> >> Check the FAQ: http://doc.akka.io/docs/akka/c
>> urrent/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
> Akka Tech Lead
> Lightbend  -  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 a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/akka-user/xy-Hn2BhE1E/unsubscribe.
> To unsubscribe from this group and all its topics, 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 

Re: [akka-user] Akka 2.5.8 (Java Edition) Error initializing: java.lang.IllegalStateException: not yet initialized

2018-01-07 Thread Patrik Nordwall
Konrad is right. That is not the correct line numbers for GraphStage.scala
in akka-stream 2.5.8 and not 2.5.6 either, so check what akka-stream
dependency you actually have on the classpath.

On Mon, Jan 8, 2018 at 7:50 AM, Konrad “ktoso” Malawski <
konrad.malaw...@lightbend.com> wrote:

> Are you not accidentally mixing Akka versions?
> What does your dependency file look like with regards to Akka dependencies.
>
> Akka Streams and Actor etc should all be on the same version.
>
> --
> Cheers,
> Konrad 'ktoso ' Malawski
> Akka  @ Lightbend 
>
> On January 7, 2018 at 20:28:58, Eduardo Fernandes (edu...@gmail.com)
> wrote:
>
> Hi all.
>
> First of all: have all a happy new year.
>
> I just jumped out from Akka 2.5.6 to 2.5.8. From that I'm getting the
> following error when starting Akka:
>
> java.lang.IllegalStateException: not yet initialized: only setHandler is
> allowed in GraphStageLogic constructor
> at akka.stream.stage.GraphStageLogic.interpreter(GraphStage.scala:295)
> at akka.stream.stage.GraphStageLogic$$anon$1.invoke(GraphStage.scala:960)
> at akka.remote.artery.InboundControlJunction$$anon$
> 2.attach(Control.scala:129)
> at akka.remote.artery.ArteryTransport.runInboundControlStream(
> ArteryTransport.scala:704)
> at akka.remote.artery.ArteryTransport.runInboundStreams(
> ArteryTransport.scala:686)
> at akka.remote.artery.ArteryTransport.start(ArteryTransport.scala:455)
> at akka.remote.RemoteActorRefProvider.init(RemoteActorRefProvider.scala:
> 212)
> at akka.cluster.ClusterActorRefProvider.init(
> ClusterActorRefProvider.scala:31)
> at akka.actor.ActorSystemImpl.liftedTree2$1(ActorSystem.scala:797)
> at akka.actor.ActorSystemImpl._start$lzycompute(ActorSystem.scala:794)
> at akka.actor.ActorSystemImpl._start(ActorSystem.scala:794)
> at akka.actor.ActorSystemImpl.start(ActorSystem.scala:810)
> at akka.actor.ActorSystem$.apply(ActorSystem.scala:244)
> at akka.actor.ActorSystem$.apply(ActorSystem.scala:287)
> at akka.actor.ActorSystem$.apply(ActorSystem.scala:262)
> at akka.actor.ActorSystem$.create(ActorSystem.scala:190)
> at akka.actor.ActorSystem.create(ActorSystem.scala)
>
>
> If I switch back to 2.5.6 or 2.5.5 and the error disappears.  I've tried
> with 2.5.7 and the error is still there. Looks like some new behavior in
> 2.5.7.
>
> I'm using Artery:
>
>   remote {
> log-remote-lifecycle-events = off
> artery {
>   enabled = on
>   canonical.hostname = 127.0.0.1
>   canonical.port = 0
> }
>   }
>
> Many thanks in advance for your help!
>
>
>
>
>
>
>
> --
> >> 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.
>
> --
> >> 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
Akka Tech Lead
Lightbend  -  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.


Re: [akka-user] Akka 2.5.8 (Java Edition) Error initializing: java.lang.IllegalStateException: not yet initialized

2018-01-07 Thread Konrad “ktoso” Malawski
Are you not accidentally mixing Akka versions?
What does your dependency file look like with regards to Akka dependencies.

Akka Streams and Actor etc should all be on the same version.

-- 
Cheers,
Konrad 'ktoso ' Malawski
Akka  @ Lightbend 

On January 7, 2018 at 20:28:58, Eduardo Fernandes (edu...@gmail.com) wrote:

Hi all.

First of all: have all a happy new year.

I just jumped out from Akka 2.5.6 to 2.5.8. From that I'm getting the
following error when starting Akka:

java.lang.IllegalStateException: not yet initialized: only setHandler is
allowed in GraphStageLogic constructor
at akka.stream.stage.GraphStageLogic.interpreter(GraphStage.scala:295)
at akka.stream.stage.GraphStageLogic$$anon$1.invoke(GraphStage.scala:960)
at
akka.remote.artery.InboundControlJunction$$anon$2.attach(Control.scala:129)
at
akka.remote.artery.ArteryTransport.runInboundControlStream(ArteryTransport.scala:704)
at
akka.remote.artery.ArteryTransport.runInboundStreams(ArteryTransport.scala:686)
at akka.remote.artery.ArteryTransport.start(ArteryTransport.scala:455)
at akka.remote.RemoteActorRefProvider.init(RemoteActorRefProvider.scala:212)
at
akka.cluster.ClusterActorRefProvider.init(ClusterActorRefProvider.scala:31)
at akka.actor.ActorSystemImpl.liftedTree2$1(ActorSystem.scala:797)
at akka.actor.ActorSystemImpl._start$lzycompute(ActorSystem.scala:794)
at akka.actor.ActorSystemImpl._start(ActorSystem.scala:794)
at akka.actor.ActorSystemImpl.start(ActorSystem.scala:810)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:244)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:287)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:262)
at akka.actor.ActorSystem$.create(ActorSystem.scala:190)
at akka.actor.ActorSystem.create(ActorSystem.scala)


If I switch back to 2.5.6 or 2.5.5 and the error disappears.  I've tried
with 2.5.7 and the error is still there. Looks like some new behavior in
2.5.7.

I'm using Artery:

  remote {
log-remote-lifecycle-events = off
artery {
  enabled = on
  canonical.hostname = 127.0.0.1
  canonical.port = 0
}
  }

Many thanks in advance for your help!







--
>> 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.

-- 
>>  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.