Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
Thanks Howard, beta 9 seems to fix the issue :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-IOCSymbols-THREAD-POOL-ENABLED-does-not-work-tp4728718p4817670.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
On Sat, Sep 17, 2011 at 2:18 PM, TG wrote: > Is this issue fixed? Anyway I can download the binaries? Thanks. See the Tapestry home page about accessing the beta previews. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-IOCSymbols-THREAD-POOL-ENABLED-does-not-work-tp4728718p4814755.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
Is this issue fixed? Anyway I can download the binaries? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-IOCSymbols-THREAD-POOL-ENABLED-does-not-work-tp4728718p4814755.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
On Wed, Aug 24, 2011 at 7:17 PM, Kalle Korhonen wrote: > Which I did... Oh well... the mail arrived before the link ;-) Cheers -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
On Wed, Aug 24, 2011 at 10:15 AM, Massimo Lusetti wrote: > On Wed, Aug 24, 2011 at 7:12 PM, Kalle Korhonen > wrote: >> Not IoC, but core. Created issue >> https://issues.apache.org/jira/browse/TAP5-1616 but the problem >> (beyond just constructing the service) is TAP5-1572. > So you should link the two issues together. Which I did... - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
On Wed, Aug 24, 2011 at 7:12 PM, Kalle Korhonen wrote: > Not IoC, but core. Created issue > https://issues.apache.org/jira/browse/TAP5-1616 but the problem > (beyond just constructing the service) is TAP5-1572. So you should link the two issues together. Cheers -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
On Wed, Aug 24, 2011 at 9:43 AM, Thiago H. de Paula Figueiredo wrote: > On Wed, 24 Aug 2011 13:24:46 -0300, Kalle Korhonen > wrote: >> So TG, just confirming - does the whole app not work (not load) >> because of these errors? I worried that was the case after Howard >> added PeriodicExecutor. If so, I think we need to fix it. It's one >> thing not being able to use the service but far worse if the failure >> in constructing this service prevents using T5.3 on GAE at all. > Does Tapestry-IoC really use this internally? If not, we could leave the > service interface in T-IoC and move the implementation to a separate > package. Not IoC, but core. Created issue https://issues.apache.org/jira/browse/TAP5-1616 but the problem (beyond just constructing the service) is TAP5-1572. Kalle - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
On Wed, 24 Aug 2011 13:24:46 -0300, Kalle Korhonen wrote: So TG, just confirming - does the whole app not work (not load) because of these errors? I worried that was the case after Howard added PeriodicExecutor. If so, I think we need to fix it. It's one thing not being able to use the service but far worse if the failure in constructing this service prevents using T5.3 on GAE at all. Does Tapestry-IoC really use this internally? If not, we could leave the service interface in T-IoC and move the implementation to a separate package. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
On Wed, Aug 24, 2011 at 9:34 AM, TG wrote: > Whole app is not working anymore. Using alpha 12, it works. Not sure if this > helps. Thanks for confirming, I think we have a pretty good idea of what fails. > I remember the "backward compatibility" with GAEJ is one of the feature of > Tapestry, I am hoping it is still true. I'll make sure it holds true but not it may take a while. We could isolate the problem services into a yet another module in which case it'd be sufficient to just exclude the module but there's probably a way to just render the service unusable if initialization fails rather than causing a fatal load error. Kalle - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
Whole app is not working anymore. Using alpha 12, it works. Not sure if this helps. I remember the "backward compatibility" with GAEJ is one of the feature of Tapestry, I am hoping it is still true. Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-IOCSymbols-THREAD-POOL-ENABLED-does-not-work-tp4728718p4731044.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
So TG, just confirming - does the whole app not work (not load) because of these errors? I worried that was the case after Howard added PeriodicExecutor. If so, I think we need to fix it. It's one thing not being able to use the service but far worse if the failure in constructing this service prevents using T5.3 on GAE at all. Kalle On Wed, Aug 24, 2011 at 5:12 AM, TG wrote: > Could any other kind soul advice if this flag works at all in the latest > alpha? If I revert to some other version before alpha 13 of 5.3, it works > but it has some other issue like - > > Exception constructing service 'PageSource': Error invoking service builder > method > org.apache.tapestry5.internal.services.InternalModule.buildPageSource(PageSourceImpl, > InvalidationEventHub, InvalidationEventHub) (at InternalModule.java:160) > (for service 'PageSource'): Exception invoking method public void > org.apache.tapestry5.internal.services.PageSourceImpl.startJanitor(org.apache.tapestry5.ioc.services.cron.PeriodicExecutor,long): > Exception constructing service 'PeriodicExecutor': Error invoking > constructor > org.apache.tapestry5.ioc.internal.services.cron.PeriodicExecutorImpl(ParallelExecutor, > Logger) (at PeriodicExecutorImpl.java:190) via > org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at > TapestryIOCModule.java:49) (for service 'PeriodicExecutor'): access denied > (java.lang.RuntimePermission modifyThreadGroup) > > Thanks for any help. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-IOCSymbols-THREAD-POOL-ENABLED-does-not-work-tp4728718p4730200.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
On Wed, 24 Aug 2011 09:12:56 -0300, TG wrote: Could any other kind soul advice if this flag works at all in the latest alpha? If I revert to some other version before alpha 13 of 5.3, it works but it has some other issue like - I've posted this before to somehow it didn't make it to the list: GAE doesn't allow creating new threads nor code that uses them, so there's nothing Tapestry nor anyone besides Google can do for you. [1] http://code.google.com/appengine/docs/java/runtime.html, section "The Sandbox": "An App Engine application cannot: (...) * spawn a sub-process or thread. (...)" "A Java application cannot create a new java.lang.ThreadGroup nor a new java.lang.Thread. These restrictions also apply to JRE classes that make use of threads. For example, an application cannot create a new java.util.concurrent.ThreadPoolExecutor, or a java.util.Timer. An application can perform operations against the current thread, such as Thread.currentThread().dumpStack()." Now, something I haven't posted before: try to override the PeriodicalExecutor service in Tapestry-IoC with an empty implementation. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
Could any other kind soul advice if this flag works at all in the latest alpha? If I revert to some other version before alpha 13 of 5.3, it works but it has some other issue like - Exception constructing service 'PageSource': Error invoking service builder method org.apache.tapestry5.internal.services.InternalModule.buildPageSource(PageSourceImpl, InvalidationEventHub, InvalidationEventHub) (at InternalModule.java:160) (for service 'PageSource'): Exception invoking method public void org.apache.tapestry5.internal.services.PageSourceImpl.startJanitor(org.apache.tapestry5.ioc.services.cron.PeriodicExecutor,long): Exception constructing service 'PeriodicExecutor': Error invoking constructor org.apache.tapestry5.ioc.internal.services.cron.PeriodicExecutorImpl(ParallelExecutor, Logger) (at PeriodicExecutorImpl.java:190) via org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at TapestryIOCModule.java:49) (for service 'PeriodicExecutor'): access denied (java.lang.RuntimePermission modifyThreadGroup) Thanks for any help. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-IOCSymbols-THREAD-POOL-ENABLED-does-not-work-tp4728718p4730200.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
The AppModule is recognized and loaded Howard. I put a sysout inpublic static void bind(ServiceBinder binder), thus confirming that. Anything else is different in 5.3? I see that the flags used to be Strings, not a boolean, I was just wondering ... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-IOCSymbols-THREAD-POOL-ENABLED-does-not-work-tp4728718p4728774.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?
This usually works out to be a naming problem, where the AppModule is not loaded because its in the wrong package or something. Check the logging output to see if your module is actually loaded. On Tue, Aug 23, 2011 at 5:20 PM, TG wrote: > My AppModule's method - > > public static void > contributeApplicationDefaults(MappedConfiguration > configuration) { > configuration.add("tapestry.thread-pool-enabled", false); > ... > > I also tried - > > public static void > contributeApplicationDefaults(MappedConfiguration > configuration) { > configuration.add(IOCSymbols.THREAD_POOL_ENABLED, false); > > ... > > But I got thread creation permission error in both cases. Is this broken in > Tapestry 5.3? The version I used is 5.3 alpha 13. I need this so that it > works on GAEJ. > > Thanks. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-IOCSymbols-THREAD-POOL-ENABLED-does-not-work-tp4728718p4728718.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org