akka-typed-blog
akka-typed-blog copied to clipboard
Will not compile
Getting a compilation error. Tried multiple versions of scala, sbt, but always getting the protobuf error below:
akka-typed-blog (master) 👉 sbt run
[warn] Executing in batch mode.
[warn] For better performance, hit [ENTER] to switch to interactive mode, or
[warn] consider launching sbt without any commands, or explicitly passing 'shell'
[info] Loading global plugins from /Users/me/.sbt/0.13/plugins
[info] Updating {file:/Users/me/.sbt/0.13/plugins/}global-plugins...
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by sbt.ivyint.ErrorMessageAuthenticator$ (file:/Users/me/.sbt/boot/scala-2.10.6/org.scala-sbt/sbt/0.13.15/ivy-0.13.15.jar) to field java.net.Authenticator.theAuthenticator
WARNING: Please consider reporting this to the maintainers of sbt.ivyint.ErrorMessageAuthenticator$
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
error: error while loading String, class file '/Users/me/.sbt/0.13/java9-rt-ext-oracle_corporation_12_0_1/rt.jar(java/lang/String.class)' is broken
(class java.lang.NullPointerException/null)
[info] Loading project definition from /Users/me/code/tutorials/myfly/myass/akka-typed-blog/project
[info] Updating {file:/Users/me/code/tutorials/myfly/myass/akka-typed-blog/project/}akka-typed-blog-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
error: error while loading String, class file '/Users/me/.sbt/0.13/java9-rt-ext-oracle_corporation_12_0_1/rt.jar(java/lang/String.class)' is broken
(class java.lang.NullPointerException/null)
[info] Set current project to akka-typed-blog (in build file:/Users/me/code/tutorials/myfly/myass/akka-typed-blog/)
[info] Updating {file:/Users/me/code/tutorials/myfly/myass/akka-typed-blog/}akka-typed-blog...
[info] Resolving jline#jline;2.14.4 ...
[info] Done updating.
[info] Compiling 1 protobuf files to /Users/me/code/tutorials/myfly/myass/akka-typed-blog/target/scala-2.12/src_managed/main/compiled_protobuf
[info] Compiling schema /Users/me/code/tutorials/myfly/myass/akka-typed-blog/src/main/protobuf/BlogPostMessages.proto
[error] [libprotobuf WARNING google/protobuf/compiler/parser.cc:646] No syntax specified for the proto file: BlogPostMessages.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[info] Compiling protobuf
[info] Protoc target directory: /Users/me/code/tutorials/myfly/myass/akka-typed-blog/target/scala-2.12/src_managed/main/compiled_protobuf
[info] Compiling 35 Scala sources and 28 Java sources to /Users/me/code/tutorials/myfly/myass/akka-typed-blog/target/scala-2.12/classes...
[info] 'compiler-interface' not yet compiled for Scala 2.12.3. Compiling...
Those blog posts are pretty old by now. I'd recommend that you look at the latest Akka documentation instead. Starting points for Akka Typed:
- https://akka.io/try-akka/
- https://doc.akka.io/docs/akka/current/typed/guide/index.html
- https://doc.akka.io/docs/akka/current/typed/actors.html
Thanks. I did, but was really looking forward to getting running akka typed
code with akka-persistence
and clustering
(and fsm
, which, as i read, is "built-in" as opposed to untyped)...
Any other codebase you would be aware of?
Else, will try on my own...
It’s all in the docs
- https://doc.akka.io/docs/akka/current/typed/cluster.html
- https://doc.akka.io/docs/akka/current/typed/persistence.html
- https://doc.akka.io/docs/akka/current/typed/fsm.html
at the end of those pages you also find links to example projects for the specific topics