lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Goutham Tholpadi <gtholp...@gmail.com>
Subject Problem deploying in Google App Engine
Date Sun, 17 Nov 2013 17:34:37 GMT
Hi,

I am trying to deploy is a tiny Lucene-based application in the Google App
Engine (GAE). When I test run it on my machine (using the GAE SDK), I get
the following error when I call IndexSearcher.search() in my code. Has any
one run into this before?

java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory
is a restricted class. Please see the Google  App Engine developer's
guide for more details.
	at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)
	at org.apache.lucene.util.RamUsageEstimator.<clinit>(RamUsageEstimator.java:231)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:186)
	at com.google.appengine.tools.development.agent.runtime.RuntimeHelper.checkRestricted(RuntimeHelper.java:70)
	at com.google.appengine.tools.development.agent.runtime.Runtime.checkRestricted(Runtime.java:64)
	at org.apache.lucene.search.ConstantScoreAutoRewrite$TermStateByteStart.init(ConstantScoreAutoRewrite.java:196)
	at org.apache.lucene.util.BytesRefHash.<init>(BytesRefHash.java:92)
	at org.apache.lucene.search.ConstantScoreAutoRewrite$CutOffTermCollector.<init>(ConstantScoreAutoRewrite.java:155)
	at org.apache.lucene.search.ConstantScoreAutoRewrite.rewrite(ConstantScoreAutoRewrite.java:94)
	at org.apache.lucene.search.MultiTermQuery$ConstantScoreAutoRewrite.rewrite(MultiTermQuery.java:220)
	at org.apache.lucene.search.MultiTermQuery.rewrite(MultiTermQuery.java:288)
	at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:412)
	at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:639)
	at org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:686)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:281)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:269)


Thanks in advance!
Goutham

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message