开发者

Don't understand why I am getting this - 'Error: Value storage corrupted: negative offset'

开发者 https://www.devze.com 2022-12-21 04:30 出处:网络
I just started using IntelliJ-IDEA, and I don\'t know if the problem resides with the IDE or not. I\'m assuming not but I have no idea. I\'ve spent quite a lot of time googling this error to no avail.

I just started using IntelliJ-IDEA, and I don't know if the problem resides with the IDE or not. I'm assuming not but I have no idea. I've spent quite a lot of time googling this error to no avail.

The error comes about at compile time. The weird thing is that I returned my code to the way it was before the error was showing up and it is still being thrown. Here is a little bit of my code that I believe is causing the problem. But I think it might be something be开发者_C百科sides my code.

import org.joda.xpath.XPath;

private XPath componentXPath;
private List list;
this.componentXPath = XPath.newInstance("(//rss/channel/item)");
Document doc = jiraAdapter.fetch("path to XML file");
list = componentXPath.selectNodes(doc);

The componentXPath.selctNodes(doc) is somehow causing the problem. If i remove this line, then it compiles fine, but I need to get a list of all the nodes to work with.

The error shows up in the messages pane: Error: Value storage corrupted: negative offset

Any help would be greatly appreciated.


What IDEA version do you use? Try File | Invalidate Caches and then rebuild the project.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号