IOException:更改了索引规范 [英] IOException: Changed index specification

查看:108
本文介绍了IOException:更改了索引规范的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用Eclipse的Juno / Google Plugin for Eclipse的GWT 2.5.1和GAE / J 1.7.6 web应用程序,并且我正在试验Search API。升级到1.7.6 GAE SDK后,开始发生以下情况:


  1. 当应用程序在GAE开发模式下运行且我的索引为填充后,
    随后可通过程序访问。
  2. 如果开发模式是
    终止并再次启动,程序访问尝试失败(无返回结果),如
    所示:

      SEVERE:无法访问索引
    java.io.IOException:在com.google.appengine处更改了description_index
    的索引规范。 api.search.dev.LuceneDirectoryMap.getDirectory(LuceneDirectoryMap.java:198)
    at com.google.appengine.api.search.dev.LuceneDirectoryMap $ FileBased.getDirectory(LuceneDirectoryMap.java:64)
    at com.google.appengine.api.search.dev.LocalSearchService.search(LocalSearchService.java:438)


    ol>

    由于Search API正在开发中,我更愿意使用SDK以及最新的错误修正和改进。有没有人对异常的原因有任何建议?



    更新



    在App Engine SDK for Java版本1.7.7.1,可从 App Engine下载页面获得。

    解决方案

    在1.7.7.1 SDK for Java中发布的修复程序。请参阅此处


    I am developing a GWT 2.5.1 and GAE/J 1.7.6 web app using Eclipse Juno/Google Plugin for Eclipse, and I am experimenting with the Search API. After an upgrade to the 1.7.6 GAE SDK the following started happening:

    1. When the app is running in GAE Dev Mode and my index is populated, it's subsequently programmatically accessible.
    2. If the Dev Mode is terminated and started again, programmatic access attempts fail (no results returned) as follows:

      SEVERE: Failed to access index
      java.io.IOException: Changed index specification for description_index
      at com.google.appengine.api.search.dev.LuceneDirectoryMap.getDirectory(LuceneDirectoryMap.java:198)
      at com.google.appengine.api.search.dev.LuceneDirectoryMap$FileBased.getDirectory(LuceneDirectoryMap.java:64)
      at com.google.appengine.api.search.dev.LocalSearchService.search(LocalSearchService.java:438)
      

    Since the Search API is in development I would much rather use the SDK with the latest bugfixes and improvements. Does anyone have any suggestions regarding the cause of the exception?

    Update

    Fixed in App Engine SDK for Java release 1.7.7.1, available from the App Engine Downloads page.

    解决方案

    Fix released in 1.7.7.1 SDK for Java. See here

    这篇关于IOException:更改了索引规范的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆