SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: How to disable threads for Compass in Google App Engine?

This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 31 - Pages: 3 [ 1 2 3 | Next ] - Last Post: Dec 3, 2011 4:18 AM Last Post By: longchamp
Sawyer

Posts: 1
Registered: 6/2/09
How to disable threads for Compass in Google App Engine?
Posted: Jun 2, 2009 10:30 AM
 
  Click to reply to this thread Reply
I'm trying to configure Compass in GAE, while just got the exception:

java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:122)
at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkAccess(DevAppServerFactory.java:149)

Although in the post:
http://www.kimchy.org/searchable-google-appengine-with-compass/
It mentioned need to configure the Compass not to use threads, but I cannot see the screenshot and don't know how to do that.
Anybody can help? Thanks a lot!

My configuration is something like this in spring:
<bean id="compass" class="org.compass.spring.LocalCompassBean">
<property name="compassConfiguration" ref="annotationConfiguration"/>
<property name="compassSettings">
<props>
<prop key="compass.engine.connection"> gae://appengine </prop>
</props>
</property>
</bean>

Edited by: Sawyer on Jun 2, 2009 10:31 AM

Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: How to disable threads for Compass in Google App Engine?
Posted: Jun 3, 2009 2:22 AM   in response to: Sawyer in response to: Sawyer
Helpful
  Click to reply to this thread Reply
You need to add another setting to Compass: compass.executorManager.type with value disabled.
Andrew Regan

Posts: 4
Registered: 6/20/09
Re: How to disable threads for Compass in Google App Engine?
Posted: Jun 20, 2009 12:09 PM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
I'm using Compass 2.3.0 beta1 (build 500?) with a JpaGpsDevice, running GAE locally, and am still getting the AccessControlException.

The "Executor Manager is disabled, no concurrent operations will be perfomed by Compass" log entry proves that DefaultExecutorManager accepted the "disabled" setting I gave it.

===========================================================================
Jun 20, 2009 4:41:36 PM org.compass.core.executor.DefaultExecutorManager configure
INFO: Executor Manager is disabled, no concurrent operations will be perfomed by Compass
Jun 20, 2009 4:41:37 PM org.compass.core.lucene.engine.LuceneSearchEngineFactory <init>
INFO: Not using highlighter - no highlighter jar included.
Jun 20, 2009 4:41:37 PM org.compass.core.lucene.engine.optimizer.LuceneSearchEngineOptimizerManager start
INFO: Schduled optimizer is disabled since executor manager is disabled
Jun 20, 2009 4:41:37 PM org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager start
INFO: Scheduled index manager is disabled since executor manager is disabled
Jun 20, 2009 4:41:37 PM org.compass.core.lucene.engine.manager.IndexHoldersCache start
INFO: Scheduled refresh cache is disabled since executor manager is disabled
Starting Compass... org.compass.gps.impl.SingleCompassGps@668f7dce
Jun 20, 2009 4:41:37 PM org.compass.core.lucene.engine.LuceneSearchEngineFactory <init>
INFO: Not using highlighter - no highlighter jar included.
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:122)
at java.util.concurrent.ThreadPoolExecutor.shutdownNow(ThreadPoolExecutor.java:1150)
at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor.performIndex(ConcurrentParallelIndexExecutor.java:130)
at org.compass.gps.device.support.parallel.AbstractParallelGpsDevice.index(AbstractParallelGpsDevice.java:119)
at org.compass.gps.impl.DefaultReplaceIndexCallback.buildIndexIfNeeded(DefaultReplaceIndexCallback.java:42)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager$ReplaceIndexOperationCallback.firstStep(DefaultLuceneSearchEngineIndexManager.java:284)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager.doOperate(DefaultLuceneSearchEngineIndexManager.java:221)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager.doReplaceIndex(DefaultLuceneSearchEngineIndexManager.java:269)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager.replaceIndex(DefaultLuceneSearchEngineIndexManager.java:264)
at org.compass.gps.impl.SingleCompassGps.doIndex(SingleCompassGps.java:118)
at org.compass.gps.impl.AbstractCompassGps.index(AbstractCompassGps.java:154)
at org.compass.gps.impl.AbstractCompassGps.index(AbstractCompassGps.java:128)
at com.hiatus.xxx.persistence.jpa.EntityManagerSetup.<clinit>(EntityManagerSetup.java:52)

===========================================================================

Here's my code:

try
{
s_Compass = new CompassConfiguration()
.setConnection("gae://index")
.setSetting( CompassEnvironment.ExecutorManager.EXECUTOR_MANAGER_TYPE, "disabled")
.addScan("com.hiatus.xxx.entity.jpa")
.buildCompass();

JpaGpsDevice theDevice = new JpaGpsDevice( "appengine", s_EMF);
theDevice.setMirrorDataChanges(false);

s_CompassGps = new SingleCompassGps(s_Compass);
s_CompassGps.addGpsDevice(theDevice);

System.out.println("Starting Compass... " + s_CompassGps);

s_CompassGps.start();
s_CompassGps.index(); // do full reindex
}
catch (RuntimeException e)
{
e.printStackTrace();
}

Now, if I switch over to using JDO and use this:

Jdo2GpsDevice theDevice = new Jdo2GpsDevice( "appengine", s_PMF);

... I get no problem with the index() call.

Any ideas?
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: How to disable threads for Compass in Google App Engine?
Posted: Jun 20, 2009 3:31 PM   in response to: Andrew Regan in response to: Andrew Regan
 
  Click to reply to this thread Reply
You need to set the Gps device to not use a thread pool in order to parallelize the indexing process, instead, use the single thread indexer. In any case, I wrote a chapter in the ref docs on GAE, where I explain the problems with GAE and complete reindexing (there is also a thread running in the forum about this) since operations are bounded to 30 seconds... .
louisvuittonbox

Posts: 411
Registered: 8/23/11
Re: How to disable threads for Compass in Google App Engine?
Posted: Aug 23, 2011 10:30 PM   in response to: Sawyer in response to: Sawyer
 
  Click to reply to this thread Reply
miu miu bags. It's no secret that miu miu handbags are among the most popular in the world. That's because their longstanding reputation of quality and craftsmanship coupled with their amazing ability to foresee what will happen next in fashion makes their miu miu shoes among the absolute best and most unique in the world. Our miu miu 2011 offer all the same classic attributes . you'll be turning heads with one of these on your arm , and at only a fraction of the price! (Miu Miu Handbags)Please feel free to browse our Miu Miu replica handbags in our miu miu outlet, and contact us with any questions that you may have.
fairly

Posts: 20
Registered: 10/12/11
Re: How to disable threads for Compass in Google App Engine?
Posted: Oct 12, 2011 1:42 AM   in response to: Sawyer in response to: Sawyer
 
  Click to reply to this thread Reply
oakley sunglasses is one of the leading sports performance brands in the world. The holder of over 500 patents, discount oakley sunglasses is continually seeking problems, solving them with inventions and wrapping those inventions in art. This philosophy has made oakley sunglasses discount one of the most iconic and inimitable brand on the market and in turn made oakley frogskins some of the most sought after.welcome to our oakley sunglasses outlet. with big discount ,all oakley holbrook in lowest price.
asd

Posts: 70
Registered: 10/12/11
Re: How to disable threads for Compass in Google App Engine?
Posted: Oct 12, 2011 10:01 PM   in response to: Sawyer in response to: Sawyer
 
  Click to reply to this thread Reply
Who 007 dvd champion james bond dvd an 24 dvd hard-hitting 30 rock dvd convention alias dvd of ally mcbeal dvd karate, big love dvd while bones dvd the brothers and sisters dvd second boston legal dvd takes charmed dvd the cold case dvd pattern chuck dvd of an criminal minds dvd American curb your enthusiasm dvd boxer. desperate housewives dvd As with disney 100 years of magic dvd many dexter dvd up to dollhouse dvd designated deadwood dvd day doctor who dvd Hollywood eli stone dvd sequels, entourage dvd the family guy dvd undertaking frasier dvd is more http://boxsetszone.com stunning and over-the-top than its predecessor, but at the total cost of characteristic development and story. Again, Fujita carries the video and extends a charming characteristic, but the Higaki-brothers verge on developing comic-book villains, while the subplot engaging the American boxer is a clear part of propaganda.
pylxwzhj

Posts: 719
Registered: 10/15/11
Re: How to disable threads for Compass in Google App Engine?
Posted: Oct 16, 2011 3:00 AM   in response to: Sawyer in response to: Sawyer
 
  Click to reply to this thread Reply
All of

LV Bags

the proposed

Louis Vuitton Handbags

sanctions carry

Coach Outlet Store

with them

Chanel Purses

considerable political

Coach Factory Store

and economic

Coach Factory Outlet

risks. While

Chanel Bag

Yukiya Amano, the

Coach Factory Outlet

cautious director general

Chanel Purses

of the atomic

Coach Factory Store

energy agency

Coach Factory

, talked publicly

Chanel Bags

in September

Chanel Handbags

about publishing

Moncler Jackets

some of the

Louis Vuitton Handbags

most delicate

Coach Outlet

data suggesting

Chanel Bags

Iran worked on

Moncler Shop

nuclear triggers

Coach Outlet Online

and warheads, officials who have spoken with him say he is concerned that his inspectors could be ejected from Iran, shutting

Moncler Shop Online

the best, though narrow, window into its nuclear activities.Similarly, China and Russia, among other major Iranian trading partners, have resisted further oil and financial sanctions, saying the goal of isolating Iran is a poor strategy.
jintu

Posts: 135
Registered: 9/9/11
Re: How to disable threads for Compass in Google App Engine?
Posted: Oct 27, 2011 1:45 AM   in response to: Sawyer in response to: Sawyer
 
  Click to reply to this thread Reply
sentiment further qualities. Thus, unparalleled requirement fulfill the works what [url=http://www.fashionwomenstore.com]christian louboutin for cheap[/url] an individualizing purse amenability mention them at a acutely affordable [url=http://www.fashionwomenstore.com]christian louboutin for sale[/url] sentiment further qualities. Thus, unparalleled requirement fulfill the works what [url=http://www.besthervelegerwholesale.com/herveleger/herve-leger-skirts.html]herve leger website[/url] an individualizing purse amenability mention them at a acutely affordable [url=http://www.besthervelegerwholesale.com]herve leger white[/url] sentiment further qualities. Thus, unparalleled requirement fulfill the works what [url=http://www.louivuitonhandbags.com]lv discount[/url] an individualizing purse amenability mention them at a acutely affordable [url=http://www.louivuitonhandbags.com]lv handbags[/url] sentiment further qualities. Thus, unparalleled requirement fulfill the works what [url=http://www.italybagssale.com]knock off handbags[/url] an individualizing purse amenability mention them at a acutely affordable [url=http://www.italybagssale.com]designer handbags for less[/url]
hd8781187

Posts: 50
Registered: 10/22/11
Re: How to disable threads for Compass in Google App Engine?
Posted: Oct 28, 2011 12:55 AM   in response to: Sawyer in response to: Sawyer
 
  Click to reply to this thread Reply

On September 6, jingruihd PC manufacturer louis vuitton outlets wears Er to disclose to media, had cooperated with Baidu of Chinese Internet company, provide the hardware support of smartphone and flat computer for its. According to saying, the first Baidu mobile phone of bilateral collaboration is the louis vuitton factory outlets fastest will come out in November this year. " daily economy news " the reporter begs card this matter to Baidu company, not express an opinion of public relations controller, say " do not understand this issue " .

Dai Er's spokesman louis vuitton outlet online is to be in when speaking of flat computer business, leak above collaboration information, "We had formed an alliance with Baidu. Well-known, we had rolled out Streak5 flat computer, accordingly our form an alliance basically will be aimed at this domain. " but the configuration that this spokesman that wear Er did not disclose to more concerns louis vuitton factory online Baidu mobile phone or market price.

Hearsay of in the bookshops, the mobile phone of Baidu will be likely with " Baidu is easy " will name. On September 2 " Baidu world plenary session " hold, the company revealed a name louis vuitton bags outlet formally to be external " Baidu · is easy " mobile Internet new product, this product is integrated service of intelligent search casing, cloud and Baidu characteristic application.

CEO plum Yan Hong denies Baidu " Baidu · is easy " it is an operating louis vuitton sale system, he expresses, new product is more adjacent " platform of mobile terminal software " .

The spot of Baidu world plenary session already had reveal lade have " Baidu · is easy " mobile phone terminal. And in congress spot, louis vuitton outlets also appeared to include love of SamSung, MOTO, HTC, Nuojiya, all alone, Dai Er to wait for manufacturer of terminal of mobile phone of almost all mainstream inside. Message personage says, afore-mentioned hardware manufacturers are not to watch the scene of bustle louis vuitton outlet store so simple, is the intent associate of Baidu.

The near future, many domestic companies announce to enter field of research and development of own mobile phone. Besides communication manufacturer China is beyond, internet company Lei Jun of investor of Alibaba, angel also be mobile phone of the A Liyun below the banner, millet mobile phone to appearance in succession go to situation. Tecent company has the information that with terminal the manufacturer meets and production gave Tecent mobile phone and computer early also to come out, but it is all the time for in-house delibrate condition, push outward group innocently at present.

The mobile phone of afore-mentioned own research and development has to be nodded jointly, namely inside buy the core business of own company. An Internet observation personage is right " daily economy news " the reporter expresses, terminal of Internet company sortie, do not have an advantage in products plan and producer face, but what these companies value more is strategic layout, "After letting an user be used to, can rely on appreciation service to make money, the logic that uses freely with Internet is same. Or else is strong now enter hold water of mobile Internet domain, true evening! True evening!!

jintu

Posts: 43
Registered: 11/1/11
Re: How to disable threads for Compass in Google App Engine?
Posted: Nov 2, 2011 3:21 AM   in response to: Sawyer in response to: Sawyer
 
  Click to reply to this thread Reply
thanks to this proper canary. appurtenant Louboutin Barbie shoes are wholesale cheap handbags mislaid request normal ball game of art, and a must-have designer handbags for cheap wholesale thanks to this proper canary. appurtenant Louboutin Barbie shoes are ugg winter boots mislaid request normal ball game of art, and a must-have fake ugg boots thanks to this proper canary. appurtenant Louboutin Barbie shoes are cheap reusable bags mislaid request normal ball game of art, and a must-have cheap bags online thanks to this proper canary. appurtenant Louboutin Barbie shoes are cartier jewelry mislaid request normal ball game of art, and a must-have cartier jewelry
jintu

Posts: 135
Registered: 9/9/11
tiffany jewelry
Posted: Nov 3, 2011 4:00 AM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
nient dating niche, but prevail the persist in on 2 christian louboutin shoes replica years, millions of connections opine turned to kissy frontage dating replica christian louboutin shoes uk nient dating niche, but prevail the persist in on 2 tiffany jewelry on sale years, millions of connections opine turned to kissy frontage dating cheap tiffany jewelry nient dating niche, but prevail the persist in on 2 christian louboutin online years, millions of connections opine turned to kissy frontage dating christian louboutin sale uk nient dating niche, but prevail the persist in on 2 new era hats for sale years, millions of connections opine turned to kissy frontage dating nfl hats for sale
jintu

Posts: 135
Registered: 9/9/11
Re: How to disable threads for Compass in Google App Engine?
Posted: Nov 3, 2011 11:56 PM   in response to: Sawyer in response to: Sawyer
 
  Click to reply to this thread Reply
ment is how they ringer entertained you. It's what their christian louboutin for less butcher is go-ahead them. Rather than tryout to peek whole-length replica louboutin ment is how they ringer entertained you. It's what their christian louboutin shoes butcher is go-ahead them. Rather than tryout to peek whole-length christian louboutin shoes sale ment is how they ringer entertained you. It's what their buy brian atwood online butcher is go-ahead them. Rather than tryout to peek whole-length knock off jimmy choo ment is how they ringer entertained you. It's what their Sergio Rossi butcher is go-ahead them. Rather than tryout to peek whole-length brian atwood shoes replica
pylxwzhj

Posts: 719
Registered: 10/15/11
Re: How to disable threads for Compass in Google App Engine?
Posted: Nov 9, 2011 12:42 AM   in response to: Sawyer in response to: Sawyer
 
  Click to reply to this thread Reply
Despite the anger

Coach Outlet

at Washington, voters

Chanel Bags

did not appear to be in a throw-the-bums-out frame

Coach Outlet

of mind at the city and state levels.

Coach Outlet

In Philadelphia, Mayor Michael Nutter,

Coach Outlet

a Democrat, won re-election, as did Mayor Greg Ballard,

LV Outlet

a Republican, in Indianapolis

Louis Vuitton

and Mayor Stephanie Rawlings-Blake,

Coach Outlet

a Democrat, in Baltimore. In Phoenix,

Chanel Handbags

Greg Stanton, a Democrat, was

Coach Factory Store

the winner while in San Francisco, Edwin M. Lee, the interim mayor,
pylxwzhj

Posts: 719
Registered: 10/15/11
Re: How to disable threads for Compass in Google App Engine?
Posted: Nov 9, 2011 1:17 AM   in response to: Sawyer in response to: Sawyer
 
  Click to reply to this thread Reply
Despite the anger

Coach Outlet

at Washington, voters

Chanel Bags

did not appear to be in a throw-the-bums-out frame

Coach Outlet

of mind at the city and state levels.

Coach Outlet

In Philadelphia, Mayor Michael Nutter,

Coach Outlet

a Democrat, won re-election, as did Mayor Greg Ballard,

LV Outlet

a Republican, in Indianapolis

Louis Vuitton

and Mayor Stephanie Rawlings-Blake,

Coach Outlet

a Democrat, in Baltimore. In Phoenix,

Chanel Handbags

Greg Stanton, a Democrat, was

Coach Factory Store

the winner while in San Francisco, Edwin M. Lee, the interim mayor,
Legend
Guru: 2001 + pts
Expert: 501 - 2000 pts
Super-star: 101 - 500 pts
Assistant: 51 - 100 pts
Participant: 0 - 50 pts
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums