Sitelet https://github.com/XeroAPI/Xero-Java/issues/314
Skip to content

Running Application gives error with version 4.17.0 #314

Description

@SagarPrajapati2101

I was using xero-java version 4.10.0 which is working fine on me.
But when I change it to 4.17.0 because we required newly added taxes it will give me error at time of running my application.

issue.txt

Can you please tell that why it's happening ?
if it's any dependency issue then can you please tell that as well ?

with version 4.10.0 it's working fine.

Activity

  1. rdemarco-xero commented on May 17, 2022

    @rdemarco-xero
    Contributor

    Hi @SagarPrajapati2101 , the Jackson2 dependency has been deprecated and replaced with GSON. Replace the current JacksonFactory() usage in the AuthorizationCodeFlow.Builder and RefreshTokenRequest with GsonFactory().

  2. SagarPrajapati2101 commented on May 18, 2022

    @SagarPrajapati2101
    Author

    Hi @rdemarco-xero I check with the given changes but still gives me same error. Can you share the full Code of this ??

    Also, tell me any other changes required or not.

    I also share the code snippet with you which I change as per your suggestion

    Code snippet.txt

  3. rdemarco-xero commented on May 18, 2022

    @rdemarco-xero
    Contributor

    Hi @SagarPrajapati2101 , it appears this error could be caused by clashing versions of jackson.

    The latest release upreved the jackson-databind and jackson-core versions.
    image

    Can you check your Spring dependencies on Jackson? You may need to modify your pom.xml based on the stackoverflow post.

  4. added a commit that references this issue on Sep 10, 2024
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