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

Finatra cannot be built when Finagle's version > 6.13.0 #153

Closed
Gal3riel opened this Issue Jul 10, 2014 · 6 comments

Comments

5 participants
@Gal3riel

Gal3riel commented Jul 10, 2014

Library dependency in build.sbt is like this

libraryDependencies ++= Seq(
  "com.twitter" %% "finatra" % "1.5.3",
  "com.twitter" %% "finagle-core" % "6.18.0"
)

When the version of finagle > 6.13.0, the compiler will complain like this

Exception in thread "main" java.lang.AbstractMethodError: App$.com$twitter$app$App$$closeDeadline_$eq(Lcom/twitter/util/Time;)V
    at com.twitter.app.App$class.$init$(App.scala:81)
    at com.twitter.finatra.FinatraServer.<init>(FinatraServer.scala:31)
    at App$.<init>(App.scala:7)
    at App$.<clinit>(App.scala)
    at App.main(App.scala)

@Gal3riel Gal3riel changed the title from Finatra cannot be build when Finagle's version > 6.13.0 to Finatra cannot be built when Finagle's version > 6.13.0 Jul 10, 2014

@capotej

This comment has been minimized.

Contributor

capotej commented Jul 10, 2014

Interesting, have you tried to clean before?

@jmzhang

This comment has been minimized.

jmzhang commented Jul 11, 2014

Actually it's not the compiler throwing this exception, but it's when we run the app. The implementation of "Time" seems got referenced to some code in finagle 6.18.0. I also found a similar problem posted in google group https://groups.google.com/d/msg/finatra-users/6VGdQwJwsdQ/vkEQ8V5Zh8MJ Isn't there a way for library of different versions to coexist using sbt?

@jmzhang

This comment has been minimized.

jmzhang commented Jul 11, 2014

Some update: Problem solved when I bump the version of twitter-server to 1.7.2 and finagle-stats to 6.18.0 in Finatra build.sbt. Everything seems ok for now.

@mattweyant

This comment has been minimized.

mattweyant commented Aug 21, 2014

Had the same issue when trying to use finatra 1.5.3 with finagle 6.20.0. Updating to twitter-server 1.7.3 and finagle-stats 6.20.0 solved the problem.

@jmzhang

This comment has been minimized.

jmzhang commented Aug 21, 2014

@mattweyant actually finatra 1.5.4 is already on maven, this version works with finagle 6.18.0 at least. : )

@michiroth

This comment has been minimized.

michiroth commented Aug 29, 2014

yes, 1.5.4 works :)

@Gal3riel Gal3riel closed this Jan 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment