{"action":"created","issue":{"url":"https://api.github.com/repos/UltimaPhoenix/luceneappengine/issues/6","repository_url":"https://api.github.com/repos/UltimaPhoenix/luceneappengine","labels_url":"https://api.github.com/repos/UltimaPhoenix/luceneappengine/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/UltimaPhoenix/luceneappengine/issues/6/comments","events_url":"https://api.github.com/repos/UltimaPhoenix/luceneappengine/issues/6/events","html_url":"https://github.com/UltimaPhoenix/luceneappengine/issues/6","id":134726296,"number":6,"title":"java.lang.NoClassDefFoundError: java.nio.file.Paths is a restricted class. Please see the Google App Engine developer's guide for more details.","user":{"login":"Alchemist0823","id":4423239,"avatar_url":"https://avatars.githubusercontent.com/u/4423239?v=3","gravatar_id":"","url":"https://api.github.com/users/Alchemist0823","html_url":"https://github.com/Alchemist0823","followers_url":"https://api.github.com/users/Alchemist0823/followers","following_url":"https://api.github.com/users/Alchemist0823/following{/other_user}","gists_url":"https://api.github.com/users/Alchemist0823/gists{/gist_id}","starred_url":"https://api.github.com/users/Alchemist0823/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alchemist0823/subscriptions","organizations_url":"https://api.github.com/users/Alchemist0823/orgs","repos_url":"https://api.github.com/users/Alchemist0823/repos","events_url":"https://api.github.com/users/Alchemist0823/events{/privacy}","received_events_url":"https://api.github.com/users/Alchemist0823/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-18T23:13:16Z","updated_at":"2016-05-05T06:41:20Z","closed_at":null,"body":"```\r\ncom.google.api.server.spi.SystemService invokeServiceMethod: exception occurred while calling backend method\r\njava.lang.NoClassDefFoundError: java.nio.file.Paths is a restricted class. Please see the Google App Engine developer's guide for more details.\r\n\tat java.nio.file.Paths.<clinit>(Paths.java)\r\n\tat org.apache.lucene.util.StringHelper.<clinit>(StringHelper.java:260)\r\n\tat org.apache.lucene.index.DocumentsWriterPerThread.<init>(DocumentsWriterPerThread.java:181)\r\n\tat org.apache.lucene.index.DocumentsWriter.ensureInitialized(DocumentsWriter.java:397)\r\n\tat org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:453)\r\n\tat org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1350)\r\n\tat org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1138)\r\n\tat com.goodi.backend.search.IndexSearchService.index(IndexSearchService.java:39)\r\n\tat com.goodi.backend.ActionEndpoint.postQuestion(ActionEndpoint.java:163)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:44)\r\n\tat com.google.api.server.spi.SystemService.invokeServiceMethod(SystemService.java:363)\r\n\tat com.google.api.server.spi.SystemServiceServlet.execute(SystemServiceServlet.java:113)\r\n\tat com.google.api.server.spi.SystemServiceServlet.doPost(SystemServiceServlet.java:71)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:637)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:717)\r\n\tat org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)\r\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)\r\n\tat com.googlecode.objectify.ObjectifyFilter.doFilter(ObjectifyFilter.java:48)\r\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)\r\n\tat com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)\r\n\tat com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)\r\n\tat com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)\r\n\tat com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)\r\n\tat com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)\r\n\tat org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)\r\n\tat org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)\r\n\tat org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)\r\n\tat org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)\r\n\tat org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)\r\n\tat org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)\r\n\tat org.mortbay.jetty.Server.handle(Server.java:326)\r\n\tat org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)\r\n\tat org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)\r\n\tat org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)\r\n\tat com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:437)\r\n\tat com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:444)\r\n\tat com.google.tracing.CurrentContext.runInContext(CurrentContext.java:256)\r\n\tat com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:308)\r\n\tat com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:300)\r\n\tat com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:441)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\tSuppressed: java.lang.NoClassDefFoundError: Could not initialize class org.apache.lucene.util.StringHelper\r\n```"},"comment":{"url":"https://api.github.com/repos/UltimaPhoenix/luceneappengine/issues/comments/217087196","html_url":"https://github.com/UltimaPhoenix/luceneappengine/issues/6#issuecomment-217087196","issue_url":"https://api.github.com/repos/UltimaPhoenix/luceneappengine/issues/6","id":217087196,"user":{"login":"aabdolla","id":10984860,"avatar_url":"https://avatars.githubusercontent.com/u/10984860?v=3","gravatar_id":"","url":"https://api.github.com/users/aabdolla","html_url":"https://github.com/aabdolla","followers_url":"https://api.github.com/users/aabdolla/followers","following_url":"https://api.github.com/users/aabdolla/following{/other_user}","gists_url":"https://api.github.com/users/aabdolla/gists{/gist_id}","starred_url":"https://api.github.com/users/aabdolla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aabdolla/subscriptions","organizations_url":"https://api.github.com/users/aabdolla/orgs","repos_url":"https://api.github.com/users/aabdolla/repos","events_url":"https://api.github.com/users/aabdolla/events{/privacy}","received_events_url":"https://api.github.com/users/aabdolla/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T06:41:20Z","updated_at":"2016-05-05T06:41:20Z","body":"I am currently running into this problem trying to use certain suggestors.\r\n\r\nI am mainly copying the examples from here:\r\n\r\nhttps://github.com/edng/lucene4_cookbook_examples/blob/master/src/main/java/org/edng/lucene4/example/AutoSuggestTest.java\r\n\r\nOf course I am changing the Directory to GaeDirctory but I am getting this error when the suggestor is trying to build the dictionary like on line 63 of the AutoSuggestTest.\r\n\r\nI have successfully used the SpellChecker before but it indexes the dictionary a different way than the suggestors:\r\n\r\n`try (GaeDirectory directory = new GaeDirectory(indexPhraseName); GaeDirectory suggestDirectory = new GaeDirectory(indexPhraseSuggestionName)) {\r\n\t\t\tSpellChecker phraseRecommender = new SpellChecker(suggestDirectory);\r\n\t\r\n\t\t\tIndexReader reader = DirectoryReader.open(directory);\r\n\t\t\tphraseRecommender.indexDictionary(new LuceneDictionary(reader, \"title\"), getIndexWriterConfig(new StandardAnalyzer()), true);\r\n\t\t\tphraseRecommender.close();\r\n\t\t\treader.close();\r\n\t\t} catch (LockObtainFailedException e) {\r\n\t\t\trequest.setError(\"Cannot acquire lock to the :'\" + indexPhraseName + \"' or '\" + indexPhraseSuggestionName + \"'. Other indexing operation are executing please try again later.\");\r\n\t\t} catch (IOException e) {\r\n\t\t\trequest.setError(\"IO exception:'\" + indexPhraseName + \"' or '\" + indexPhraseSuggestionName + \"', cause:\" + e.getMessage());\r\n\t\t}`\r\n\r\nAny ideas?"}}