Bug Failed to lookup price FileNotFoundException

Discussion in 'Client & Site Support' started by Aidden, Jun 14, 2016.

  1. I believe this occurred when GrandExchange.lookup(item.getID()) was called on a strange rock @Cloud

    Code (Text):
    1.  
    2. java.io.FileNotFoundException: http://services.runescape.com/m=itemdb_rs/api/catalogue/detail.json?item=15542
    3. [SDK Debug] Failed to lookup the price of 15542 in the official item database.
    4.     at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1836)
    5.     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
    6.     at java.net.URL.openStream(URL.java:1045)
    7.     at com.runemate.game.api.hybrid.net.GrandExchange.goto(dfb:159)
    8.     at com.runemate.game.api.hybrid.net.GrandExchange.lookup(dfb:20)
    9.     at com.runemate.game.api.hybrid.net.GrandExchange.lookup(dfb:1)
    10.     at com.runemate.api.framework.items.ItemListener.getItemValue(ItemListener.java:41)
    11.     at com.runemate.api.framework.items.ItemListener.handleItems(ItemListener.java:91)
    12.     at com.runemate.api.framework.items.ItemListener.onItemAdded(ItemListener.java:64)
    13.     at com.runemate.game.api.script.framework.core.EventDispatcher.process(fsa:215)
    14.     at nul.IiIIIIiiiiiI.goto(seb:224)
    15.     at nul.iIiIIIiiiIiI.run(vxa:106)
    16.     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    17.     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    18.     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    19.     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    20.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    21.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    22.     at java.lang.Thread.run(Thread.java:745)
     
  2. I'm assuming "com.runemate.api.framework.items.ItemListener.getItemValue(ItemListener.java:41)" is your own code, and not a part of the runemate api?

    I feel like the exception is pretty straight forward, but should probably return null instead of throwing the exception.
     
  3. Line 41 calls the aforementioned method from the runemate api ge class.
     
  4. Why would URL#openStream() throw a FileNotFoundException for that...
     
  5. No idea but that's what it pointed to and that's the method that makes sense considering it's requesting an item from the runescape item lookup service
    --- Double Post Merged, Jun 17, 2016, Original Post Date: Jun 16, 2016 ---
    Just occurred again with the sliskelion piece. Looks like the service 404's when it's a non-tradable item. Not sure why it throws a file exception though.
     

Share This Page

Loading...