srvarey / gbif-occurrencestore

Automatically exported from code.google.com/p/gbif-occurrencestore
0 stars 0 forks source link

Nub lookup web service error #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following seemingly valid name, repeatably fails from the UDF call:

?name=Paenibacillus donghaensis Choi, J.H. Im, W.T. Yoo, J.S. Lee, S.M. Moon, 
D.S. Kim, H.J. Rhee, S.K. Roh, D.H.&genus=Paenibacillus

Added a "hack" to skip that name in the UDF itself as interim workaround but 
the WS should be fixed.

Original issue reported on code.google.com by timrobertson100 on 22 Apr 2011 at 5:46

GoogleCodeExporter commented 9 years ago
The name parser does eventually return and, from unit tests at least, returns 
the correct name.  It currently takes about 6 minutes though, so suspect the 
UDF is timing it out.  I'll look some more into the name parser to see what's 
taking so long.

Original comment by oliver.m...@gmail.com on 29 Apr 2011 at 2:00

GoogleCodeExporter commented 9 years ago
Changed hack in udf to parse names > 80 chars first before calling webservice, 
which will hopefully keep an eager timeout from killing the whole process.  In 
r540.

Original comment by oliver.m...@gmail.com on 2 May 2011 at 1:22

GoogleCodeExporter commented 9 years ago
This does not seem to be fixed. The tasks working on these long names now fail 
with "Task attempt_201105021430_0617_m_000118_3 failed to report status for 
1800 seconds. Killing!"

Here's an excerpt from the logs:
May 4, 2011 1:55:56 AM com.sun.jersey.api.client.ClientResponse getEntity
SEVERE: A message body reader for Java class 
org.gbif.ecat.lookup.NubLookupResult, and Java type class 
org.gbif.ecat.lookup.NubLookupResult, and MIME media type 
text/html;charset=iso-8859-1 was not found
May 4, 2011 1:55:56 AM com.sun.jersey.api.client.ClientResponse getEntity
SEVERE: The registered message body readers compatible with the MIME media type 
are:
*/* ->
  com.sun.jersey.core.impl.provider.entity.FormProvider
  com.sun.jersey.core.impl.provider.entity.StringProvider
  com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
  com.sun.jersey.core.impl.provider.entity.FileProvider
  com.sun.jersey.core.impl.provider.entity.InputStreamProvider
  com.sun.jersey.core.impl.provider.entity.DataSourceProvider
  com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General
  com.sun.jersey.core.impl.provider.entity.ReaderProvider
  com.sun.jersey.core.impl.provider.entity.DocumentProvider
  com.sun.jersey.core.impl.provider.entity.SourceProvider$StreamSourceReader
  com.sun.jersey.core.impl.provider.entity.SourceProvider$SAXSourceReader
  com.sun.jersey.core.impl.provider.entity.SourceProvider$DOMSourceReader
  com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General
  com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General
  com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$General
  com.sun.jersey.core.impl.provider.entity.EntityHolderReader

Failed WS call with: species=donghaensis&name=Paenibacillus donghaensis Choi, 
J.H. Im, W.T. Yoo, J.S. Lee, S.M. Moon, D.S. Kim, H.J. Rhee, S.K. Roh, 
D.H.&subspecies=&genus=Paenibacillus&

Original comment by lars.fra...@gmail.com on 4 May 2011 at 5:23

GoogleCodeExporter commented 9 years ago
Was a bug in the implementation of the new change.  Fixed now, and seems to be 
working.

Original comment by oliver.m...@gmail.com on 17 May 2011 at 9:44