lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: Problem deploying in Google App Engine
Date Sun, 17 Nov 2013 21:16:58 GMT
Hi,

Google App Engine is (like Android) not 100% Java compliant, as it only provides a subset
of the official (and mandatory) Java API.

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de

> -----Original Message-----
> From: Goutham Tholpadi [mailto:gtholpadi@gmail.com]
> Sent: Sunday, November 17, 2013 6:35 PM
> To: java-user@lucene.apache.org
> Subject: Problem deploying in Google App Engine
> 
> 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(Ru
> ntime.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.ch
> eckRestricted(RuntimeHelper.java:70)
> 	at
> com.google.appengine.tools.development.agent.runtime.Runtime.checkRes
> tricted(Runtime.java:64)
> 	at
> org.apache.lucene.search.ConstantScoreAutoRewrite$TermStateByteStart.i
> nit(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(ConstantScor
> eAutoRewrite.java:94)
> 	at
> org.apache.lucene.search.MultiTermQuery$ConstantScoreAutoRewrite.rewr
> ite(MultiTermQuery.java:220)
> 	at
> org.apache.lucene.search.MultiTermQuery.rewrite(MultiTermQuery.java:28
> 8)
> 	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(IndexSea
> rcher.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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message