【发布时间】:2010-02-26 20:26:03
【问题描述】:
我刚开始使用 IntelliJ-IDEA,不知道问题是否出在 IDE 上。我假设不是,但我不知道。我花了很多时间在谷歌上搜索这个错误无济于事。
错误发生在编译时。奇怪的是,我将我的代码恢复到错误出现之前的状态,并且仍然被抛出。这是我认为导致问题的一些代码。但我认为这可能是我的代码之外的东西。
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);
componentXPath.selctNodes(doc) 以某种方式导致了问题。如果我删除这一行,那么它编译得很好,但我需要获取所有要使用的节点的列表。
错误显示在消息窗格中:Error: Value storage corrupted: negative offset
任何帮助将不胜感激。
【问题讨论】:
标签: java xpath intellij-idea