Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will not compile #21

Open
max8github opened this issue Nov 7, 2019 · 3 comments
Open

Will not compile #21

max8github opened this issue Nov 7, 2019 · 3 comments

Comments

@max8github
Copy link

max8github commented Nov 7, 2019

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...
@patriknw
Copy link
Owner

patriknw commented Nov 7, 2019

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:

@max8github
Copy link
Author

max8github commented Nov 7, 2019

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

@patriknw
Copy link
Owner

patriknw commented Nov 7, 2019

It’s all in the docs

at the end of those pages you also find links to example projects for the specific topics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants