galaxyproject / blend4j

blend4j is a JVM partial reimplementation of the Python library bioblend for interacting with Galaxy, CloudMan, and BioCloudCentral.
Eclipse Public License 1.0
16 stars 22 forks source link

InvocationTargetException #2

Open rdlecler opened 11 years ago

rdlecler commented 11 years ago

I tried running Examples.java but caught an Exception (see below)

Note: I'm using Jersey 1.17, and I couldn't find the old codehas libraries as it appears that they were updated to the com.org.fasterxml, so I had to update all the package names.

Cheers, Rob

Found history with name TestHistory1 and id 1db3a2621ee83293 Found history with name Upload Test History and id c96b1e7d095dbdd6 Found history with name testHistorya2908386-ad8f-44fd-8f8c-696b15380823 and id 01c97f9db62b771b Found history with name Upload Test History and id 7d10270a9e17d13e Found history with name testHistory1a60d5ca-747a-4725-b605-12acad0a71ba and id 1c0aea2a5c77b7c5 Found history with name testHistoryfe2c081e-0cad-4d22-90f8-f61b0370aa8a and id 536de0230ef77ce5 Found history with name testHistoryd620cf70-fda8-40ff-bcdc-7de84dbc2ba7 and id 046e46fbdbfb23d7 Found history with name testHistorya6660f48-b6be-44e4-891b-1aca5586f5a6 and id 610475881700b502 Found history with name testHistoryf53a4fde-0bd1-457a-beaf-7d363343d217 and id 50ff9decf61f8c35 Found history with name testHistory131e2cb5-ee47-408c-bc80-3752c96607f6 and id 874c457f6d7e78ab Found history with name testHistory1805ed8a-1e5c-47fe-bb18-9d465e59808e and id 2977abadda23957f Found history with name Upload Test History and id 0b69aa3f754d0b70 Found history with name testHistory7f77c62b-5744-48b9-928c-e6f8e76e8610 and id 26effb503f74d366 Found history with name Upload Test History and id bdb8bdc4c1428384 Found history with name testHistory0857b4f4-6c13-4499-8725-0c0c3c09a3e4 and id 3353a144d274d9fd Found history with name Upload Test History and id f2ef8cd25a6d83eb Found history with name Upload Test History and id 449dfdbf4b325f13 Found history with name Upload Test History and id ecda98a08ebe5379 Found history with name testHistory317648b9-45c1-44d6-b35d-4a6f54b8c678 and id 13a76ba718bc6547 Found history with name testHistory58e0ae55-67b2-48cf-8146-18fbbba9fd52 and id 950e77746683dc0f Found history with name testHistoryee312780-3460-4a05-af2e-03f7e1336309 and id 429d1d7e3d791f66 Found history with name testHistory63de4bc4-1358-4aea-8787-c652a91275ea and id 508c32cb09aa9842 Found history with name testHistoryd370f90a-a2b8-4e3a-8b6a-726c82f4b8a1 and id d3a92945ad48f694 Found history with name testHistory9053d363-1a2c-417f-9100-917d715c49c1 and id bb6c7fab3d9266fb Found history with name testHistory289ce122-5710-4392-be67-6b243c31a1b6 and id 0465f82e25343c7b Found history with name testHistory78f6f788-5b23-4515-8478-e1dba4203129 and id 29db3aafe4c85469 Found history with name testHistorybf88d728-cd21-4c44-a4c1-7d63ad499a8f and id 59d9bdf9931e24f6 Found history with name testHistory0974f03d-7a1a-4c58-b50c-84c5fac92cfe and id ccdb14ba878d5349 Found history with name testHistory86bed660-81c7-455f-8e7c-175e76bc3c24 and id 566e7df7f2f98d29 Found history with name testHistory5e58c6ea-3651-435a-be58-72b7dcd16025 and id fbaf04fd28824d50 Found history with name testHistory53880b50-3083-447b-95c7-97ee5038a5ac and id ff5de47a2fe20d96 Found history with name testHistoryd7545c55-23ff-4d65-96a7-7a517dcabcc2 and id 72b231b4f10c4a6b Found history with name testHistory72931df0-d8cc-4908-a8e6-d23fa7422ac2 and id 1843496bbba11294 Found history with name testHistorye9c93be1-7061-4dde-941a-87106758c678 and id a207c4e75fff75e5 Found history with name testHistory98972efd-b8ff-408e-8d73-221cf5c176d6 and id 20f0bcbe8f4467d8 Found history with name testHistorycfcb5cfe-9f99-40bd-a618-cf6fa12a36e3 and id 2d15b3811ed1e263 Found history with name testHistory40fee6e7-1a29-42d9-b9bb-56e91e4a1f66 and id 222d85075b554a59 Found history with name testHistory3ee7a5df-e589-4eaf-85c9-8883300b2555 and id 4e2e0201da33a401 Found history with name testHistory9357be5d-d484-4a03-a6ab-534a62b7c218 and id abbfab38d740acae Found history with name testHistory8cd72a25-8b5d-4eaf-ae07-dec253bb1ab1 and id cfd971f78160197a Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.github.jmchilton.blend4j.galaxy.Examples.runExample(Examples.java:239) at com.github.jmchilton.blend4j.galaxy.Examples.runExamples(Examples.java:47) at com.github.jmchilton.blend4j.galaxy.Examples.main(Examples.java:35) Caused by: com.sun.jersey.api.client.ClientHandlerException: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class com.github.jmchilton.blend4j.galaxy.beans.Library, and MIME media type, application/json, was not found at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:151) at com.sun.jersey.api.client.Client.handle(Client.java:648) at com.sun.jersey.api.client.WebResource.handle(WebResource.java:680) at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:568) at com.github.jmchilton.blend4j.galaxy.ClientImpl.create(ClientImpl.java:79) at com.github.jmchilton.blend4j.galaxy.ClientImpl.create(ClientImpl.java:72) at com.github.jmchilton.blend4j.galaxy.LibrariesClientImpl.createLibraryRequest(LibrariesClientImpl.java:25) at com.github.jmchilton.blend4j.galaxy.LibrariesClientImpl.createLibrary(LibrariesClientImpl.java:30) at com.github.jmchilton.blend4j.galaxy.Examples.levelsOfAbstraction(Examples.java:94) ... 7 more Caused by: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class com.github.jmchilton.blend4j.galaxy.beans.Library, and MIME media type, application/json, was not found at com.sun.jersey.api.client.RequestWriter.writeRequestEntity(RequestWriter.java:288) at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:213) at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149) ... 16 more