Message sent to the mailing list about API issue

28 views
Skip to first unread message

Xavier Watkins

unread,
Sep 26, 2017, 4:17:51 AM9/26/17
to ebi-proteins-api
See below
 
Hello, the API seems to be broken for requests accepting application/xml header. What is wrong? ------ Error msg-------- <html> <head> <title>Grizzly 2.3.28</title> <style> <!--div.header {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#003300;font-size:22px;-moz-border-radius-topleft: 10px;border-top-left-radius: 10px;-moz-border-radius-topright: 10px;border-top-right-radius: 10px;padding-left: 5px}div.body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:#FFFFCC;font-size:16px;padding-top:10px;padding-bottom:10px;padding-left:10px}div.footer {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#666633;font-size:14px;-moz-border-radius-bottomleft: 10px;border-bottom-left-radius: 10px;-moz-border-radius-bottomright: 10px;border-bottom-right-radius: 10px;padding-left: 5px}BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}B {font-family:Tahoma,Arial,sans-serif;color:black;}A {color : black;}HR {color : #999966;}--> </style> </head> <body> <div class="header">Internal Error</div> <div class="body"> <b>javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: java/util/zip/DataFormatException</b> <pre> 1: org.glassfish.grizzly.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:151) 2: org.glassfish.grizzly.servlet.FilterChainImpl.invokeFilterChain(FilterChainImpl.java:106) 3: org.glassfish.grizzly.servlet.ServletHandler.doServletService(ServletHandler.java:224) 4: org.glassfish.grizzly.servlet.ServletHandler.service(ServletHandler.java:173) 5: org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224) 6: org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593) 7: org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573) 8: java.lang.Thread.run(Thread.java:745) </pre> <b>Root Cause: java.lang.NoClassDefFoundError: java/util/zip/DataFormatException</b> <pre> 1: java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) 2: java.io.FilterInputStream.read(FilterInputStream.java:133) 3: sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) 4: sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) 5: sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) 6: java.io.InputStreamReader.read(InputStreamReader.java:184) 7: java.io.BufferedReader.fill(BufferedReader.java:161) 8: java.io.BufferedReader.readLine(BufferedReader.java:324) 9: java.io.BufferedReader.readLine(BufferedReader.java:389) 10: javax.xml.bind.ContextFinder.find(ContextFinder.java:437) ... 40 more</pre>Please see the log for more detail. </div> <div class="footer">Grizzly 2.3.28</div> </body> </html>

Lukáš Pravda

unread,
Sep 26, 2017, 10:55:25 AM9/26/17
to ebi-proteins-api
I'd be actually pretty great to fix it ASAP. As one of our services (http://ncbr.muni.cz/ChannelsDB), which just got accepted and is going to be published within a matter of days relies on the data provided over the API. So I need to know, if that is just some settings thing, which can get easily fixed or should I write JSON parser to retrieve deemed information.

Thank you

Dne úterý 26. září 2017 10:17:51 UTC+2 Xavier Watkins napsal(a):

Edward Turner

unread,
Sep 26, 2017, 11:08:28 AM9/26/17
to ebi-proteins-api
Hi Lukáš,

Thank you for getting in touch with us. Please could you send us the URL which produces this error message so that we can try to replicate and investigate the issue you are having?

Kind regards,

Edd

Lukáš Pravda

unread,
Sep 26, 2017, 1:06:12 PM9/26/17
to ebi-proteins-api
Hi Edward,

thank you for getting in touch with me. The problem seems to be resolved, as I do not face any troubles right now. Only yesterday evening I noticed that pretty much any requests to the url https://www.ebi.ac.uk/proteins/api/proteins/UNIPROT_ID (e.g https://www.ebi.ac.uk/proteins/api/proteins/P08684) resulted in a failure in case the header included key-value pair Accept-"application/xml". If the "applicatation/json" was set, everything was alright . So for more infrormation you probably need to decode the exception thrown, or check the log.

Anyway it works now :)

Thanks
Lukas

Dne úterý 26. září 2017 17:08:28 UTC+2 Edward Turner napsal(a):

Edward Turner

unread,
Sep 27, 2017, 3:46:26 AM9/27/17
to ebi-proteins-api
Hi Lukas,

Great, thanks for the information and we're very glad the issue has been resolved for you, though we'll still look into the underlying cause. Please do let us know if you experience any other problems, and we'll try to help out as soon as we can. For now though, have a good day and best wishes from the UniProt team.

Edd 
Reply all
Reply to author
Forward
0 new messages