Help with dependencies using akka http 10.0.11 and akka stream 2.5.8

625 views
Skip to first unread message

Papelucho Nomas

unread,
Dec 12, 2017, 9:01:23 AM12/12/17
to Akka User List
Hello,

I'm using akka http and streams on my project but when I update stream to 2.5.7 or 2.5.8 I get the following exception, only during execution using the fat jar and not in test.


Dec 12 10:08:20 batch java[44371]: Exception in thread "main" java.lang.NoClassDefFoundError: akka/stream/stage/CallbackWrapper
...
Dec 12 10:08:20 batch java[44371]: Caused by: java.lang.ClassNotFoundException: akka.stream.stage.CallbackWrapper



If I go back to 2.5.6 it works fine, I found that CallbackWrapper does not exists on 2.5.7 and that akka http depends on streams 2.4.x


- Should I stay in akka stream 2.5.6 and check the release notes of akka http until they move to 2.5.x?
- Is there another dependency I'm not including?
- Should I check my build.sbt so test and assembly classpaths are the same? how can I validate that? (maybe this is not an akka question)



Thanks,
Sebastian.

Arnout Engelen

unread,
Dec 12, 2017, 10:29:55 AM12/12/17
to akka...@googlegroups.com
Hello,

CallbackWrapper is a piece of internal API which is indeed no longer available in stream 2.5.8. This should normally not be a problem (as it was internal), and in general akka-http 10.0.x should work with akka 2.5.x.

There might be some other project that accidentally depended on this internal API - this was the case for example for akka-streams-kafka, which was fixed in version 0.18.

Could you share a bit more of the stacktrace leading up to this exception?



Kind regards,

Arnout

--
>>>>>>>>>> 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+unsubscribe@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.



--
Arnout Engelen

Papelucho Nomas

unread,
Dec 12, 2017, 2:12:54 PM12/12/17
to Akka User List
Arnout,


Short version: it was akka-streams-kafka 0.16.


Long version: I had to update "akka-stream-kafka" from "0.16" -> "0.18". To keep things straight updated "kafka-clients" to "0.11.0.1" and "scalatest-embedded-kafka" from "0.14.0" to "0.16.0"

My unit tests complete but I'm not happy with testing against higher version of kafka, so I'll have to update it sooner than later... :(

It is hard for me to debug this kind of stuff, I would like to know what are the final dependencies of a library in SBT.



Thank you very much,
Sebastian.



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.

Patrik Nordwall

unread,
Dec 12, 2017, 5:32:39 PM12/12/17
to akka...@googlegroups.com
tis 12 dec. 2017 kl. 20:13 skrev Papelucho Nomas <pape...@gmail.com>:
Arnout,


Short version: it was akka-streams-kafka 0.16.


Long version: I had to update "akka-stream-kafka" from "0.16" -> "0.18". To keep things straight updated "kafka-clients" to "0.11.0.1" and "scalatest-embedded-kafka" from "0.14.0" to "0.16.0"

My unit tests complete but I'm not happy with testing against higher version of kafka, so I'll have to update it sooner than later... :(

It is hard for me to debug this kind of stuff, I would like to know what are the final dependencies of a library in SBT.

Reply all
Reply to author
Forward
0 new messages