【问题标题】:Don't understand why I am getting this - 'Error: Value storage corrupted: negative offset'不明白为什么我得到这个 - “错误:值存储损坏:负偏移”
【发布时间】: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


    【解决方案1】:

    您使用什么 IDEA 版本?尝试文件 |使缓存失效,然后重建项目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-03
      • 1970-01-01
      • 1970-01-01
      • 2013-11-06
      • 2012-05-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多