cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonToken.isStructStart()Z exception

Helpful | Level 6

Hi, I am developing a desktop application that will allow me to upload a file to my Db account, This is going to be executed on a VM. The problem is that even though it is working just fine on my computer, I am getting This strange exception when i run it on the VM.

Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:49
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:5
Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonToken.isStructStart()Z
at com.dropbox.core.stone.StoneSerializer.skipValue(StoneSerializer.java:11
at com.dropbox.core.ApiErrorResponse$Serializer.deserialize(ApiErrorResponse.java:62)
at com.dropbox.core.ApiErrorResponse$Serializer.deserialize(ApiErrorResponse.java:36)
at com.dropbox.core.stone.StoneSerializer.deserialize(StoneSerializer.java:66)
at com.dropbox.core.DbxWrappedException.fromResponse(DbxWrappedException.java:43)
at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:106)
at com.dropbox.core.v2.DbxRawClientV2.executeRetriable(DbxRawClientV2.java:256)
at com.dropbox.core.v2.DbxRawClientV2.rpcStyle(DbxRawClientV2.java:97)
at com.dropbox.core.v2.files.DbxUserFilesRequests.getMetadata(DbxUserFilesRequests.java:632)
at com.dropbox.core.v2.files.DbxUserFilesRequests.getMetadata(DbxUserFilesRequests.java:663)
at my.tools.dropbox.DropboxApi.exist(DropboxApi.java:292)
... 5 more

The line that is causing this is

 Metadata a= client.files().getMetadata(path);

Do  you have any idea what might be the problem? I have been searching the internet with no luck!

1 Accepted Solution

Accepted Solutions
Highlighted

Re: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonToken.isStructStart()Z exception

Helpful | Level 6

That makes no sense to me, (mainly since it was working on my computer but not on the VM) but it seems that the problem was that  I am using the google sheet API on the same project, which is using the jackson library as well. So it seemed that there was some problem with the maven dependencies there. I directly imported both the dropbox and the google maven on the same project, and maven automatically managed to handle the dependencies. Initially i was importing it as a jar file, causing the problem.

 

Thanks for the hints

View solution in original post

2 Replies 2
Highlighted

Re: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonToken.isStructStart()Z exception

Dropboxer
Dropboxer
It's difficult to say off hand what the problem may be, but as it's only happening in one environment for you, and not the other, it sounds like it may be specific to the setup of that VM. Can you check that the Jackson library is installed properly there, and that you only have one version installed? You may also want to try upgrading it.
Highlighted

Re: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonToken.isStructStart()Z exception

Helpful | Level 6

That makes no sense to me, (mainly since it was working on my computer but not on the VM) but it seems that the problem was that  I am using the google sheet API on the same project, which is using the jackson library as well. So it seemed that there was some problem with the maven dependencies there. I directly imported both the dropbox and the google maven on the same project, and maven automatically managed to handle the dependencies. Initially i was importing it as a jar file, causing the problem.

 

Thanks for the hints

View solution in original post

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Polls
Have you been keeping up good habits while working from home?
We've created a working from home cheat sheet to help keep up on those habits, check it out here.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?