nicho92 / MtgDesktopCompanion

Cards manager for magic the gathering
Apache License 2.0
159 stars 35 forks source link

Alert Tred Server not starting #151

Closed Thorgal-The-Viking closed 3 years ago

Thorgal-The-Viking commented 3 years ago

throws this error

ERROR org.magic.servers.impl.AlertTrendServer 81 - java.lang.NullPointerException

whats could be reason

nicho92 commented 3 years ago

"whats could be reason" ... many XD

can you send me your log file. i need more details

nicho92 commented 3 years ago

Also, check if your parameters are filled image

Thorgal-The-Viking commented 3 years ago

yes that is filled in.

I have 1 alert in the Alert screen. If I delete it, I can start the Alert Trend Server

If I recreate the aler, then stop/start alert, it fails to start again

nicho92 commented 3 years ago

can you tell me exact value in your attributes ?

nicho92 commented 3 years ago

and your selected Dashboard provider

Thorgal-The-Viking commented 3 years ago

its working only with mtgstocks. so I guess problem with other providers not returning values

Thorgal-The-Viking commented 3 years ago

this is how I recreate it :

I search "Underworld Breach"; I choose Extended Art version and click alert and put price 40

image

Then Alert Trend Server will only run with mtgstocks, crashing with mtgprice and mtg goldfish providers

Thorgal-The-Viking commented 3 years ago

in logs for mtgprice

2021-01-15 17:50:10 DEBUG org.magic.tools.URLTools 161 - GET http://www.mtgprice.com/sets/Theros_Beyond_Death/Underworld_Breach : 200 [512ms] 2021-01-15 17:50:10 DEBUG org.magic.api.dashboard.impl.MTGPriceDashBoard 196 - get Prices for Underworld_Breach http://www.mtgprice.com/sets/Theros_Beyond_Death/Underworld_Breach 2021-01-15 17:50:10 ERROR org.magic.servers.impl.AlertTrendServer 81 - java.lang.NullPointerException

and for mtggoldfish

2021-01-15 17:51:22 INFO org.magic.servers.impl.AlertTrendServer 118 - Server start with 120 min timeout 2021-01-15 17:51:22 TRACE org.magic.tools.TCache 40 - alerts-CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0} 2021-01-15 17:51:22 TRACE org.magic.tools.TCache 40 - alerts-CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0} 2021-01-15 17:51:22 TRACE org.magic.tools.TCache 40 - alerts-CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0} 2021-01-15 17:51:22 TRACE org.magic.tools.TCache 40 - alerts-CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0} 2021-01-15 17:51:22 ERROR org.magic.tools.URLTools 277 - Error https://www.mtggoldfish.com//price/Theros+Beyond+Death+Promos/Underworld+Breach#paper: GET 2021-01-15 17:51:22 TRACE org.magic.tools.URLTools 278 - Error Trace : <!DOCTYPE html>

Oops! Page not found! (404) 404 Page Not Found

Oops... Page not found!

The page you requested does not exist.

2021-01-15 17:51:22 DEBUG org.magic.tools.URLTools 161 - GET https://www.mtggoldfish.com//price/Theros+Beyond+Death+Promos/Underworld+Breach#paper : 404 [725ms] 2021-01-15 17:51:22 ERROR org.magic.api.dashboard.impl.MTGoldFishDashBoard 198 - java.io.FileNotFoundException: https://www.mtggoldfish.com//price/Theros+Beyond+Death+Promos/Underworld+Breach#paper 2021-01-15 17:51:22 ERROR org.magic.servers.impl.AlertTrendServer 81 - java.lang.NullPointerException

guess its another difficult issue with extended art cards.

Would it be possible to have euro prices from magic card market as provide in dashboard?

Thorgal-The-Viking commented 3 years ago

I tested with regular card version and that works. So yea, another extended art difficulty