Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7751499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:33:51+00:00 2026-06-01T11:33:51+00:00

My group is trying to build a server using Apache Thrift but we are

  • 0

My group is trying to build a server using Apache Thrift but we are having strange compilation issues. In the generated Java files from Thrift, the following lines are present:

  public static class Client extends shared.BasicServer.Client implements org.apache.thrift.TServiceClient, Iface {
  public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {

These are defined as inner classes. When I try to build the project in Eclipse, it actually creates the .class files and the program runs, but Eclipse still says there are various errors related to these lines, including the following:

Bound mismatch: The type Backend.Client is not a valid substitute for the bounded parameter of the type TServiceClientFactory Backend.java /server/src/thrift line 42 Java Problem

The type TServiceClient cannot be a superinterface of Client; a superinterface must be an interface Backend.java /server/src/thrift line 41 Java Problem

I believe this is because org.apache.thrift.TServiceClient is actually an abstract class, not an interface, and yet Client is trying to implement it. However, as I said before, the program compiles and works, and I don’t really understand how.

Does anyone have any idea how to get rid of/suppress these errors? I have a feeling there is some simple option I should be passing to my build configuration.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T11:33:52+00:00Added an answer on June 1, 2026 at 11:33 am

    I ran into this same issue In Eclipse, as well as IntelliJ.

    What I found was that thrift versions between the thrift compiler and lib-thrift were not in sync.

    I had version 0.6.0 of thrift (from $sudo port install thrift) that i used to generate my java code, and was using lib-thrift-0.8.0.jar

    I followed the following instructions to install Thrift from source, for my platform, and then regenerated and updated my java generated thrift code and these errors were resolved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having an issue when trying to build an Annotated Timeline Graph using
I am trying to build a self-hosted PHP site, but I am having trouble
I am using sql server 2008 and I'm trying to build a query for
I'm trying to build expandableList with SimpleCursorTreeAdapter but my list does not make groups,
I'm trying to build a QRCodeReader for a project our research group is working
I am trying to build RPM for my java code.RPM build and install sections
I am trying to build a WPF application using the MVVM pattern. It would
I'm trying to set up a new Team Build Server for doing continuous integration,
I'm trying to build some statistics for an email group I participate. Is there
I'm trying to build a simple component extending spark.components.Group to have a background color,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.