我正在尝试在GAE中使用WordNet,但我收到了下面提到的错误。在使用appengine属性指定目录后,我能够访问WordNet。不确定GAE是否允许读取WordNet的读取文件。整个异常跟踪是最后一行是我的函数调用WordNet synset API。在我的机器上作为Web应用程序本地执行时,该程序工作正常。所以我的逻辑没有错。只有在我尝试将代码部署到GAE时才会出现此问题。目前我正在尝试访问WordNet jar提供的synsets API。
com.google.apphosting.api.DeadlineExceededException: This request (68486dfc867c528f) started at 2015/03/13 06:49:06.494 UTC and was still executing at 2015/03/13 06:50:06.280 UTC.
at java.io.RandomAccessFile.read0(Native Method)
at java.io.RandomAccessFile.read(RandomAccessFile.java:348)
at edu.smu.tspell.wordnet.impl.RandomAccessReader.readNextCharacter(RandomAccessReader.java:139)
at edu.smu.tspell.wordnet.impl.RandomAccessReader.readToNextEndOfLine(RandomAccessReader.java:114)
at edu.smu.tspell.wordnet.impl.LineLocator.getLine(LineLocator.java:115)
at edu.smu.tspell.wordnet.impl.MultipleLineLocator.getLines(MultipleLineLocator.java:93)
at edu.smu.tspell.wordnet.impl.MultipleLineLocator.getLines(MultipleLineLocator.java:71)
at edu.smu.tspell.wordnet.impl.file.SenseIndexReader.getAllEntries(SenseIndexReader.java:171)
at edu.smu.tspell.wordnet.impl.file.SenseIndexReader.getLemmaEntries(SenseIndexReader.java:150)
at edu.smu.tspell.wordnet.impl.file.WordFormLookup.loadSynsets(WordFormLookup.java:274)
at edu.smu.tspell.wordnet.impl.file.WordFormLookup.getSynsets(WordFormLookup.java:230)
at edu.smu.tspell.wordnet.impl.file.WordFormLookup.getSynsets(WordFormLookup.java:172)
at edu.smu.tspell.wordnet.impl.file.FileDatabase.getSynsets(FileDatabase.java:87)
at edu.smu.tspell.wordnet.WordNetDatabase.getSynsets(WordNetDatabase.java:81)
at com.clusterReviews.myFile.myFunction(myFile.java:346)