Announcement Announcement Module
Collapse
No announcement yet.
Posting to LinkedIn - ALLOW_NUMERIC_LEADING_ZEROS error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Posting to LinkedIn - ALLOW_NUMERIC_LEADING_ZEROS error

    Hi,
    This is my first post. I am trying to post a message onto LinkedIn and I am getting the following exception(please see attachment for full stack trace).[INDENT=2]java.lang.NoSuchFieldError: ALLOW_NUMERIC_LEADING_ZEROS[/INDENT][INDENT=2]
    [/INDENT][INDENT=2] at org.springframework.social.linkedin.api.impl.Linke dInTemplate.registerLinkedInJsonModule(LinkedInTem plate.java:102)[/INDENT][INDENT=2]
    [/INDENT][INDENT=2] at org.springframework.social.linkedin.api.impl.Linke dInTemplate.<init>(LinkedInTemplate.java:62)[/INDENT][INDENT=2]
    [/INDENT][INDENT=2] at org.springframework.social.linkedin.connect.Linked InServiceProvider.getApi(LinkedInServiceProvider.j ava:38)[/INDENT][INDENT=2]
    [/INDENT][INDENT=2] at org.springframework.social.linkedin.connect.Linked InServiceProvider.getApi(LinkedInServiceProvider.j ava:27)[/INDENT]
    I am using the following code. Please let me know if you see anything wrong with my usage.

    ConnectionRepository connectionRepository = this.usersConnectionRepository.createConnectionRep ository("myusername"); //real username in code


    Connection<LinkedIn> connection = connectionRepository.findPrimaryConnection(LinkedI n.class);


    LinkedIn linkedin = connection.getApi(); //null checks done

    linkedin.communicationOperations().sendMessage("Te sting", "This is my test from SocialMediaPoster", linkedin.profileOperations().getProfileId());

    Thanks,
    Sumanth


  • #2
    Hi Sumanth,

    I have the same problem, how could you solve it?

    Greetings!

    Comment

    Working...
    X