kinyerakenneth / lastfm-java

Automatically exported from code.google.com/p/lastfm-java
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Artist.getImages throws a NumberFormatException #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I wondered why my last.fm project did'nt work any more. So I checked the 
output. I haven't changed anything, since a few weeks (perhaps months, I 
haven't used it a long time) I'll get a NumberFormatException.

What steps will reproduce the problem?
1. Just try to use the following line PaginatedResult<Image> result = 
Artist.getImages(track.getArtist(), api_key);
2. In debug-mode the output of track.getArtist() was "As I Lay Dying" and the 
api_key was filled correct

What is the expected output? What do you see instead?

I've got the following Exception:

java.lang.NumberFormatException: null

    at java.lang.Integer.parseInt(Integer.java:443)
    at java.lang.Integer.parseInt(Integer.java:514)
    at net.roarsoftware.lastfm.Artist.getImages(Artist.java:322)
    at net.roarsoftware.lastfm.Artist.getImages(Artist.java:301)
    at LastFm.getNewPlaylist(LastFm.java:166)
    at LastFm.tuneSimilar(LastFm.java:136)
    at MediaCenter.mouseClick(MediaCenter.java:4787)
    at MediaCenter$2.mouseClicked(MediaCenter.java:283)
    at java.awt.Component.processMouseEvent(Component.java:6111)
    at java.awt.Component.processEvent(Component.java:5873)
    at java.awt.Container.processEvent(Container.java:2105)
    at java.awt.Window.processEvent(Window.java:1836)
    at java.awt.Component.dispatchEventImpl(Component.java:4469)
    at java.awt.Container.dispatchEventImpl(Container.java:2163)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4295)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

What version of the product are you using? On what operating system?

last.fm-bindings V 0.1.0 on openSuse 11.2

Original issue reported on code.google.com by killinge...@googlemail.com on 1 Mar 2011 at 6:42

GoogleCodeExporter commented 9 years ago
You appear not to be using v0.1.0 based on the stack trace:
    at net.roarsoftware.lastfm.Artist.getImages(Artist.java:322)
    at net.roarsoftware.lastfm.Artist.getImages(Artist.java:301)
as this package is non-existent anymore. Please update to the newest version 
and check if it works, as I can't reproduce that error

Original comment by jannikov...@gmail.com on 2 Mar 2011 at 3:04

GoogleCodeExporter commented 9 years ago
Well, thank you for that hint ;)

I've updated the jar package in the wrong directory, the build path linked to 
the old one. Now everything works fine like it did before :)

Original comment by killinge...@googlemail.com on 4 Mar 2011 at 4:54

GoogleCodeExporter commented 9 years ago

Original comment by jannikov...@gmail.com on 4 Mar 2011 at 6:42