iterator hasnext() returns true but next() throws NoSuchElementException

前端 未结 2 404
夕颜
夕颜 2020-12-21 07:44

When I debugged my code I found that the hasNext() method of Iterator returned true, but the next() method threw NoSuchEl

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-21 08:28

    the code worked when i restarted the server and redeployed my app, so nothing was wrong with the code i guess, i cant understand this strange behavior of glassfish!

提交回复
热议问题