Skip to content

GitHub API and Open-AI crashes with Jackson update #1314

Open

Description

@Zabuzard

GitHub-API

We have just updated our Jackson (#1313) and that leads to the bot crashing:

java.lang.NoSuchFieldError: Class com.fasterxml.jackson.databind.PropertyNamingStrategy does not have member field 'com.fasterxml.jackson.databind.PropertyNamingStrategy SNAKE_CASE'
     at org.kohsuke.github.GitHubClient.<clinit>(GitHubClient.java:92)
     at org.kohsuke.github.GitHub.<init>(GitHub.java:137)
     at org.kohsuke.github.GitHubBuilder.build(GitHubBuilder.java:509)
     at org.kohsuke.github.GitHub.connectUsingOAuth(GitHub.java:401)
     at org.togetherjava.tjbot.features.github.GitHubReference.acquireRepositories(GitHubReference.java:99)
     at org.togetherjava.tjbot.features.github.GitHubReference.<init>(GitHubReference.java:89)
     at org.togetherjava.tjbot.features.Features.createFeatures(Features.java:117)
     at org.togetherjava.tjbot.features.system.BotCore.<init>(BotCore.java:90)
     at org.togetherjava.tjbot.Application.runBot(Application.java:91)
     at org.togetherjava.tjbot.Application.main(Application.java:65)

Reason is this foreign code:

static {
    MAPPER.setVisibility(new VisibilityChecker.Std(NONE, NONE, NONE, NONE, ANY));
    MAPPER.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
    MAPPER.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_ENUMS, true);
    MAPPER.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);
}

from GitHubClient coming from this dependency:

implementation 'org.kohsuke:github-api:1.329'

So apparently this dependency is using our Jackson instead of its own, leading to the crash.

Until this is fixed, Jackson can not be updated anymore, our pipeline is blocked.

This also includes the GitHub-API itself whose newest version updates its Jackson and that bleeds into our dependency...

Open-AI

The same happens with Open-AI apparently:

error

Cant update Jackson.

Activity

  1. added theissue type on Aug 29, 2025
  2. Zabuzard commented on Sep 5, 2025

    @Zabuzard
    MemberAuthor

    The Github-API just upgraded their Jackson, leading to the same crash since it bleeds into our project...
    For the time being, I merged both, the upgrade for GitHub-API and our Jackson, so they both align again.

    This really has to be addressed...

  3. changed the title [-]GitHub API crashes with Jackson update[/-] [+]GitHub API and Open-AI crashes with Jackson update[/+] on Sep 5, 2025
  4. JankiGadhiya commented on Sep 11, 2025

    @JankiGadhiya
    Contributor

    Is this issue fixed? or still open?

  5. Zabuzard commented on Sep 11, 2025

    @Zabuzard
    MemberAuthor

    its still there. im not sure how much we can do on our side. ideally these ext frameworks would shade their dependencies or something

  6. ankitsmt211 commented on Feb 3, 2026

    @ankitsmt211
    Member

    Someone already opened this issue on Github dependency that we're using
    hub4j/github-api#2166

    seems like they're fixing in two parts, out of which first one was merged last week
    hub4j/github-api#2182

    not sure how long till this is out

  7. Anvith433 commented on Aug 20, 2026

    @Anvith433

    is this bug resolved or stilll there? if the bug still there i am interested to work on this issue.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions