Skip to content

IllegalAccessError with a Scala-based ChannelInitializer #781

Closed

Description

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

Activity

  1. normanmaurer commented on Nov 30, 2012

    @normanmaurer
    Member

    This shows the problem...

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

  2. normanmaurer commented on Nov 30, 2012

    @normanmaurer
    Member

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

  3. normanmaurer commented on Nov 30, 2012

    @normanmaurer
    Member

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

  4. normanmaurer commented on Nov 30, 2012

    @normanmaurer
    Member

    @zcourts Upgrade scala and it works :)

  5. zcourts commented on Dec 1, 2012

    @zcourts
    Contributor

    @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

  6. added 2 commits that reference this issue on Aug 11, 2014
  7. added a commit that references this issue on Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions