I did a Search for setItemPrice and only found it in one place in your post: the last line.
Where is this method defined?

To debug your code add plenty of printlns to show where the execution...