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:498)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonToken.isStructStart()Z
at com.dropbox.core.stone.StoneSerializer.skipValue(StoneSerializer.java:118)
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!