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

IllegalAccessError with a Scala-based ChannelInitializer #781

Closed
trustin opened this issue Nov 30, 2012 · 5 comments
Closed

IllegalAccessError with a Scala-based ChannelInitializer #781

trustin opened this issue Nov 30, 2012 · 5 comments

Comments

@trustin
Copy link
Member

trustin commented Nov 30, 2012

java.lang.IllegalAccessError: tried to access class
io.netty.channel.ChannelPropertyAccess"... from a ChannelInitializer
when SocketChannel.pipeline() is called.

Perhaps a bug in Scala compiler, but we need to see if there's a workaround that can be done from our side until it is fixed.

@normanmaurer
Copy link
Member

This shows the problem...

git://github.com/normanmaurer/netty-scala-problem.git

@normanmaurer
Copy link
Member

@trustin I asked Viktor for help.. let us see what he can find out..

@normanmaurer
Copy link
Member

@trustin works with 2.10.0-RC3 so seems like it was fixes in scala recently :)

@normanmaurer
Copy link
Member

@zcourts Upgrade scala and it works :)

@zcourts
Copy link
Contributor

zcourts commented Dec 1, 2012

@normanmaurer Yeah I tested with 2.10x and it works, staying with Scala 2.9.2 until 2.10 is released though so the work around for now is just create the ChannelInitializer in Java

For ref. related Scala bug https://issues.scala-lang.org/browse/SI-1430

asfgit pushed a commit to apache/spark that referenced this issue Aug 11, 2014
The Netty network module was originally written when Scala 2.9.x had a bug that prevents a pure Scala implementation, and a subset of the files were done in Java. We have since upgraded to Scala 2.10, and can migrate all Java files now to Scala.

netty/netty#781

mesos/spark#522

Author: Reynold Xin <rxin@apache.org>

Closes #1865 from rxin/netty and squashes the following commits:

332422f [Reynold Xin] Code review feedback
ca9eeee [Reynold Xin] Minor update.
7f1434b [Reynold Xin] [SPARK-2936] Migrate Netty network module from Java to Scala
asfgit pushed a commit to apache/spark that referenced this issue Aug 15, 2014
The Netty network module was originally written when Scala 2.9.x had a bug that prevents a pure Scala implementation, and a subset of the files were done in Java. We have since upgraded to Scala 2.10, and can migrate all Java files now to Scala.

netty/netty#781

mesos/spark#522

Author: Reynold Xin <rxin@apache.org>

Closes #1865 from rxin/netty and squashes the following commits:

332422f [Reynold Xin] Code review feedback
ca9eeee [Reynold Xin] Minor update.
7f1434b [Reynold Xin] [SPARK-2936] Migrate Netty network module from Java to Scala

(cherry picked from commit ba28a8f)
Signed-off-by: Reynold Xin <rxin@apache.org>
xiliu82 pushed a commit to xiliu82/spark that referenced this issue Sep 4, 2014
The Netty network module was originally written when Scala 2.9.x had a bug that prevents a pure Scala implementation, and a subset of the files were done in Java. We have since upgraded to Scala 2.10, and can migrate all Java files now to Scala.

netty/netty#781

mesos/spark#522

Author: Reynold Xin <rxin@apache.org>

Closes apache#1865 from rxin/netty and squashes the following commits:

332422f [Reynold Xin] Code review feedback
ca9eeee [Reynold Xin] Minor update.
7f1434b [Reynold Xin] [SPARK-2936] Migrate Netty network module from Java to Scala
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

3 participants