Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug Failed to lookup price FileNotFoundException

Author of MaxiBots
Joined
Dec 3, 2013
Messages
6,771
I believe this occurred when GrandExchange.lookup(item.getID()) was called on a strange rock @Cloud

Code:
java.io.FileNotFoundException: http://services.runescape.com/m=itemdb_rs/api/catalogue/detail.json?item=15542
[SDK Debug] Failed to lookup the price of 15542 in the official item database.
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1836)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
    at java.net.URL.openStream(URL.java:1045)
    at com.runemate.game.api.hybrid.net.GrandExchange.goto(dfb:159)
    at com.runemate.game.api.hybrid.net.GrandExchange.lookup(dfb:20)
    at com.runemate.game.api.hybrid.net.GrandExchange.lookup(dfb:1)
    at com.runemate.api.framework.items.ItemListener.getItemValue(ItemListener.java:41)
    at com.runemate.api.framework.items.ItemListener.handleItems(ItemListener.java:91)
    at com.runemate.api.framework.items.ItemListener.onItemAdded(ItemListener.java:64)
    at com.runemate.game.api.script.framework.core.EventDispatcher.process(fsa:215)
    at nul.IiIIIIiiiiiI.goto(seb:224)
    at nul.iIiIIIiiiIiI.run(vxa:106)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
 
Joined
Dec 10, 2014
Messages
3,255
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.
 
Author of MaxiBots
Joined
Dec 3, 2013
Messages
6,771
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.
Line 41 calls the aforementioned method from the runemate api ge class.
 
Author of MaxiBots
Joined
Dec 3, 2013
Messages
6,771
Why would URL#openStream() throw a FileNotFoundException for that...
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
 
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.
 
Top