Re: [akka-user][deprecated] How to generate the javadoc for offline use?

2018-05-16 Thread Konrad “ktoso” Malawski
Hi there,

It’s `sbt Dakka.genjavadoc.enabled=true doc` if I remember correctly.

I suggest you ask questions on the https://discuss.akka.io forum as that
one we monitor more actively nowadays (as mentioned in the footer and
header of the mailing list)

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

On May 16, 2018 at 7:31:37, Thai (lgoptimusv...@gmail.com) wrote:

Hi All,

I check out the code from github and run the unidoc task in sbt, but it
creates the scala API. How can I create the java api?

Regards.
--
*
** New discussion forum: https://discuss.akka.io/ replacing akka-user
google-group soon.
** This group will soon be put into read-only mode, and replaced by
discuss.akka.io
** More details:
https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*
>>
>> 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.

-- 
*
** New discussion forum: https://discuss.akka.io/ replacing akka-user 
google-group soon.
** This group will soon be put into read-only mode, and replaced by 
discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*
>> 
>>  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.


[akka-user][deprecated] Akka Streams Resuming Materializer does not log exceptions

2018-05-16 Thread dollyg
Hello all,

When I provide a resuming materializer to the stream, the exceptions that 
occurred in the stream do not get logged. Is there any way to log these 
exceptions ?

import akka.actor.ActorSystem
import akka.stream.scaladsl.Source
import akka.stream.{ActorMaterializer, ActorMaterializerSettings, Materializer, 
Supervision}

import scala.concurrent.duration.DurationInt

object Demo extends App {

  private implicit val actorSystem: ActorSystem = ActorSystem()

  lazy val settings: ActorMaterializerSettings =

ActorMaterializerSettings(actorSystem).withSupervisionStrategy(Supervision.getResumingDecider)

  implicit lazy val resumingMat: Materializer = ActorMaterializer(settings)

  var counter = 0
  def eventGenerator(): Int = {
counter += 1
if (counter > 5) throw new RuntimeException("Could not create an event")
else 1
  }

  Source.tick(0.millis, 10.millis, ()).map(_ ⇒ 
eventGenerator()).runForeach(println)
}

-- 
*
** New discussion forum: https://discuss.akka.io/ replacing akka-user 
google-group soon.
** This group will soon be put into read-only mode, and replaced by 
discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*
>> 
>>  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][deprecated] Akka Streams Resuming Materializer does not log exceptions

2018-05-16 Thread Konrad “ktoso” Malawski
Use the .log() operator.

Same as exceptions thrown in a Future do not automatically get logged.

There has been discussion about enabling this always, however you’d then be
swamped with errors which are recovered and actually “fine and nothing to
worry about”.

If you want logging, put a log() there.

PS: New discussion forum: https://discuss.akka.io/ replacing akka-user
google-group soon. :-)

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

On May 17, 2018 at 1:55:24, dol...@thoughtworks.com (dol...@thoughtworks.com)
wrote:

Hello all,

When I provide a resuming materializer to the stream, the exceptions that
occurred in the stream do not get logged. Is there any way to log these
exceptions ?

import akka.actor.ActorSystem
import akka.stream.scaladsl.Source
import akka.stream.{ActorMaterializer, ActorMaterializerSettings,
Materializer, Supervision}

import scala.concurrent.duration.DurationInt

object Demo extends App {

  private implicit val actorSystem: ActorSystem = ActorSystem()

  lazy val settings: ActorMaterializerSettings =

ActorMaterializerSettings(actorSystem).withSupervisionStrategy(Supervision.getResumingDecider)

  implicit lazy val resumingMat: Materializer = ActorMaterializer(settings)

  var counter = 0
  def eventGenerator(): Int = {
counter += 1
if (counter > 5) throw new RuntimeException("Could not create an event")
else 1
  }

  Source.tick(0.millis, 10.millis, ()).map(_ ⇒
eventGenerator()).runForeach(println)
}

--
*
** New discussion forum: https://discuss.akka.io/ replacing akka-user
google-group soon.
** This group will soon be put into read-only mode, and replaced by
discuss.akka.io
** More details:
https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*
>>
>> 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.

-- 
*
** New discussion forum: https://discuss.akka.io/ replacing akka-user 
google-group soon.
** This group will soon be put into read-only mode, and replaced by 
discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*
>> 
>>  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][deprecated] Caused by: com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'enabled'

2018-05-16 Thread Konrad “ktoso” Malawski
It is likely related to your build or code, please share that.

Can we continue this on discuss.akka.io please though?
You have a better chance to get answers quickly there.


As noted in the header of this mailing list:
We announced
 a new
discussion forum, located here: https://discuss.akka.io
Please ask your new questions on the new forum, as we move over discussions
to it entirely.
We hope you'll enjoy the new forums, which will serve the same purpose as
akka-user has served so far.

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

On May 17, 2018 at 12:04:47, Saggie (sagarpati...@gmail.com) wrote:

I am trying get my cluster up and running on my localhost with below
configuration (application.conf).
But I am getting follwing error.

Caused by: com.typesafe.config.ConfigException$Missing: No configuration
setting found for key 'enabled'

I am pretty sure it finds the application.conffile as I confirmed that any
changes to file will cause to take effect in next run.
I keep wondering where is this 'enabled' config that I am missing in


application.conf:

Master {

akka {


  actor {
provider = "cluster"
  }
  remote {
maximum-payload-bytes = 3000 bytes
log-remote-lifecycle-events = off
netty.tcp {
  hostname = "127.0.0.1"
  port = 0
  message-frame-size =  3000b
  send-buffer-size =  3000b
  receive-buffer-size =  3000b
  maximum-frame-size = 3000b
}
  }


  cluster {
roles = ["Master"]
seed-nodes = [
  "akka.tcp://GyanClusterSystem@127.0.0.1:2556"]



# auto downing is NOT safe for production deployments.
# you may want to use it during development, read more about it in the
docs.
#
#auto-down-unreachable-after = 10s
  }
}
}


Worker {
akka {
  actor {
provider = "cluster"
  }
  remote {
maximum-payload-bytes = 3000 bytes
log-remote-lifecycle-events = off
netty.tcp {
  hostname = "127.0.0.1"
  port = 0
  message-frame-size =  3000b
  send-buffer-size =  3000b
  receive-buffer-size =  3000b
  maximum-frame-size = 3000b
}
  }


  cluster {
roles = ["Worker"]
seed-nodes = [
  "akka.tcp://GyanClusterSystem@127.0.0.1:2556"]



# auto downing is NOT safe for production deployments.
# you may want to use it during development, read more about it in the
docs.
#
   # auto-down-unreachable-after = 10s
  }
}
}



--
*
** New discussion forum: https://discuss.akka.io/ replacing akka-user
google-group soon.
** This group will soon be put into read-only mode, and replaced by
discuss.akka.io
** More details:
https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*
>>
>> 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.

-- 
*
** New discussion forum: https://discuss.akka.io/ replacing akka-user 
google-group soon.
** This group will soon be put into read-only mode, and replaced by 
discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*
>> 
>>  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.


[akka-user][deprecated] Caused by: com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'enabled'

2018-05-16 Thread Saggie
I am trying get my cluster up and running on my localhost with below 
configuration (application.conf).
But I am getting follwing error. 

Caused by: com.typesafe.config.ConfigException$Missing: No configuration 
setting found for key 'enabled'

I am pretty sure it finds the application.conffile as I confirmed that any 
changes to file will cause to take effect in next run.
I keep wondering where is this 'enabled' config that I am missing in 


application.conf:

Master {

akka { 


  actor {
provider = "cluster"
  }
  remote {
maximum-payload-bytes = 3000 bytes
log-remote-lifecycle-events = off
netty.tcp {
  hostname = "127.0.0.1"
  port = 0
  message-frame-size =  3000b
  send-buffer-size =  3000b
  receive-buffer-size =  3000b
  maximum-frame-size = 3000b
}
  }


  cluster {
roles = ["Master"] 
seed-nodes = [
  "akka.tcp://GyanClusterSystem@127.0.0.1:2556"]
  


# auto downing is NOT safe for production deployments.
# you may want to use it during development, read more about it in the 
docs.
#
#auto-down-unreachable-after = 10s
  }
}
}


Worker {
akka { 
  actor {
provider = "cluster"
  }
  remote {
maximum-payload-bytes = 3000 bytes
log-remote-lifecycle-events = off
netty.tcp {
  hostname = "127.0.0.1"
  port = 0
  message-frame-size =  3000b
  send-buffer-size =  3000b
  receive-buffer-size =  3000b
  maximum-frame-size = 3000b
}
  }


  cluster {
roles = ["Worker"]
seed-nodes = [
  "akka.tcp://GyanClusterSystem@127.0.0.1:2556"]
  


# auto downing is NOT safe for production deployments.
# you may want to use it during development, read more about it in the 
docs.
#
   # auto-down-unreachable-after = 10s
  }
}
}



-- 
*
** New discussion forum: https://discuss.akka.io/ replacing akka-user 
google-group soon.
** This group will soon be put into read-only mode, and replaced by 
discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*
>> 
>>  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][deprecated] Caused by: com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'enabled'

2018-05-16 Thread Saggie
I posted it there already ..
https://discuss.lightbend.com/t/akka-com-typesafe-config-configexception-missing-no-configuration-setting-found-for-key-enabled/1056

On Wednesday, May 16, 2018 at 11:06:33 PM UTC-4, Konrad Malawski wrote:
>
> It is likely related to your build or code, please share that.
>
> Can we continue this on discuss.akka.io please though? 
> You have a better chance to get answers quickly there.
>
>
> As noted in the header of this mailing list: 
> We announced 
>  a new 
> discussion forum, located here: https://discuss.akka.io
> Please ask your new questions on the new forum, as we move over 
> discussions to it entirely.
> We hope you'll enjoy the new forums, which will serve the same purpose as 
> akka-user has served so far.
>
> -- 
> Cheers,
> Konrad 'ktoso ' Malawski
> Akka  @ Lightbend 
>
> On May 17, 2018 at 12:04:47, Saggie (sagarp...@gmail.com ) 
> wrote:
>
> I am trying get my cluster up and running on my localhost with below 
> configuration (application.conf).
> But I am getting follwing error.
>
> Caused by: com.typesafe.config.ConfigException$Missing: No configuration 
> setting found for key 'enabled'
>
> I am pretty sure it finds the application.conffile as I confirmed that any 
> changes to file will cause to take effect in next run.
> I keep wondering where is this 'enabled' config that I am missing in
>
>
> application.conf:
>
> Master {
>
> akka {
>
>
>   actor {
> provider = "cluster"
>   }
>   remote {
> maximum-payload-bytes = 3000 bytes
> log-remote-lifecycle-events = off
> netty.tcp {
>   hostname = "127.0.0.1"
>   port = 0
>   message-frame-size =  3000b
>   send-buffer-size =  3000b
>   receive-buffer-size =  3000b
>   maximum-frame-size = 3000b
> }
>   }
>
>
>   cluster {
> roles = ["Master"]
> seed-nodes = [
>   "akka.tcp://GyanClusterSystem@127.0.0.1:2556"]
>  
>
>
> # auto downing is NOT safe for production deployments.
> # you may want to use it during development, read more about it in the 
> docs.
> #
> #auto-down-unreachable-after = 10s
>   }
> }
> }
>
>
> Worker {
> akka {
>   actor {
> provider = "cluster"
>   }
>   remote {
> maximum-payload-bytes = 3000 bytes
> log-remote-lifecycle-events = off
> netty.tcp {
>   hostname = "127.0.0.1"
>   port = 0
>   message-frame-size =  3000b
>   send-buffer-size =  3000b
>   receive-buffer-size =  3000b
>   maximum-frame-size = 3000b
> }
>   }
>
>
>   cluster {
> roles = ["Worker"]
> seed-nodes = [
>   "akka.tcp://GyanClusterSystem@127.0.0.1:2556"]
>  
>
>
> # auto downing is NOT safe for production deployments.
> # you may want to use it during development, read more about it in the 
> docs.
> #
># auto-down-unreachable-after = 10s
>   }
> }
> }
>
>
>
> --
>
> *
> ** New discussion forum: https://discuss.akka.io/ replacing akka-user 
> google-group soon.
> ** This group will soon be put into read-only mode, and replaced by 
> discuss.akka.io
> ** More details: 
> https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
>
> *
> >>
> >> 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 .
> To post to this group, send email to akka...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
*
** New discussion forum: https://discuss.akka.io/ replacing akka-user 
google-group soon.
** This group will soon be put into read-only mode, and replaced by 
discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*
>> 
>>  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