For reference, this is now tracked at:
https://github.com/akka/akka/issues/19418
and
https://issues.scala-lang.org/browse/SI-9621

-- 
Cheers,
Konrad 'ktoso’ Malawski
Akka @ Typesafe

On 12 January 2016 at 20:19:56, rklaehn (rkla...@gmail.com) wrote:

Just tried this from home. Also does not work. This is really weird.

$ git clone https://github.com/rklaehn/invaliddependency

$ cd invaliddependency

$ sbt clean compile

[info] Loading project definition from 
/Users/rklaehn/projects_git/rklaehn/invaliddependency/project

[info] Set current project to invaliddependency (in build 
file:/Users/rklaehn/projects_git/rklaehn/invaliddependency/)

[success] Total time: 0 s, completed Jan 12, 2016 8:18:55 PM

[info] Updating 
{file:/Users/rklaehn/projects_git/rklaehn/invaliddependency/}invaliddependency...

[info] Resolving jline#jline;2.12.1 ...

[info] Done updating.

[info] Compiling 1 Scala source to 
/Users/rklaehn/projects_git/rklaehn/invaliddependency/target/scala-2.11/classes...

[error] missing or invalid dependency detected while loading class file 
'MediaType.class'.

[error] Could not access type WithFixedCharset in trait 
akka.http.javadsl.model.MediaType,

[error] because it (or its dependencies) are missing. Check your build 
definition for

[error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to 
see the problematic classpath.)

[error] A full rebuild may help if 'MediaType.class' was compiled against an 
incompatible version of akka.http.javadsl.model.MediaType.

[error] one error found

[error] (compile:compileIncremental) Compilation failed

[error] Total time: 2 s, completed Jan 12, 2016 8:18:57 PM

On Tuesday, January 12, 2016 at 7:58:27 PM UTC+1, rklaehn wrote:
OK, I have now narrowed it down a bit more. I removed everything in any way 
related to akka-http, and then added back things until it breaks. It seems that 
the problem only happens when I use MediaTypes.`application/json` in a certain 
way. Now I am even more confused than before.

Here is a repository that reproduces the whole weirdness: 
https://github.com/rklaehn/invaliddependency

I will compile this from my home machine to check that it is not some local 
configuration weirdness. But we have had this happen from two machines at 
work...

On Tuesday, January 12, 2016 at 4:55:31 PM UTC+1, Konrad Malawski wrote:
It should work properly.
There was a PR refactoring that area, indeed: 
https://github.com/akka/akka/pull/19066/files

Are you sure you don't have mixed up akka http dependencies or something like 
that via messy dependencies?
You mention you looked at dependencyTree so that would show up there though 
hm...

-- 
Cheers,
Konrad 'ktoso’ Malawski
Akka @ Typesafe

On 12 January 2016 at 16:43:30, Rüdiger Klaehn (rkl...@gmail.com) wrote:

Hi Roland,

I did a sbt clean, and my colleague even deleted the ivy cache. We
also don't know the offending code, since we do not intentionally use
anything out of javadsl, such as akka.http.javadsl.model.MediaType. So
I am a bit confused. The migration guide does not say anything about
MediaType.

Cheers,

Rüdiger

On Tue, Jan 12, 2016 at 4:19 PM, Roland Kuhn <goo...@rkuhn.info> wrote:
> Hi Rüdiger,
>
> there were some changes in that area, it might help if you show the
> offending code. It also looks like you didn’t do a full clean before the
> build. Have you checked the migration guide? If we missed this point, please
> raise an issue.
>
> Regards,
>
> Roland
>
> 12 jan 2016 kl. 16:00 skrev rklaehn <rkl...@gmail.com>:
>
> Hi all,
>
> we are trying out akka-http 2.0.1 with a pretty large code base. After
> fixing all compile errors, we get the following dependency error:
>
> [error] missing or invalid dependency detected while loading class file
> 'MediaType.class'.
> [error] Could not access type WithFixedCharset in trait
> akka.http.javadsl.model.MediaType,
> [error] because it (or its dependencies) are missing. Check your build
> definition for
> [error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath`
> to see the problematic classpath.)
> [error] A full rebuild may help if 'MediaType.class' was compiled against an
> incompatible version of akka.http.javadsl.model.MediaType.
> [error] one error found
>
> I looked at the dependencies using sbt dependencyTree, but did not see
> anything obviously wrong. Before I dig deeper, does this problem sound
> familiar to anybody?
>
> Cheers,
>
> Rüdiger
>
> --
>>>>>>>>>>> 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.
>
>
>
>
> Dr. Roland Kuhn
> Akka Tech Lead
> Typesafe – Reactive apps on the JVM.
> twitter: @rolandkuhn
>
>
> --
>>>>>>>>>>> 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.

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

Reply via email to