Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
GAE startup
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  24 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Flavio Duarte  
View profile  
 More options Jul 30 2011, 1:50 pm
From: Flavio Duarte <flaviogabr...@gmail.com>
Date: Sat, 30 Jul 2011 14:50:50 -0300
Local: Sat, Jul 30 2011 1:50 pm
Subject: GAE startup

Boa tarde pessoal,
estava usando minha aplicação hoje a tarde no GAE e ela começou a não
responder mais, comecei a olhar os logs e teve alguns desses problemas aqui

com.google.apphosting.api.DeadlineExceededException: This request
(0f20277dbc01399e) started at 2011/07/30 16:48:24.109 UTC and was
still executing at 2011/07/30 16:48:54.931 UTC.

Uncaught exception from servlet
org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider
org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not
be instantiated: com.google.apphosting.api.DeadlineExceededException:
This request (a58ff55da93c9c6a) started at 2011/07/30 17:28:38.326 UTC
and was still executing at 2011/07/30 17:29:07.985 UTC.

estou usando objectify e spring no projeto, alguém já teve isso ou o
que pode ser?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miguel Cartagena  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 7:46 am
From: Miguel Cartagena <miguel.cartag...@gmail.com>
Date: Mon, 1 Aug 2011 04:46:09 -0700 (PDT)
Local: Mon, Aug 1 2011 7:46 am
Subject: Re: GAE startup

Flavio,

Uma das restrições do GAE é que uma requisição HTTP deve durar no máximo
30s. Se o processamento passar disso, o servidor do GAE automaticamente
retornará uma timeout.

Veja que tinha de processamento está sendo executado e tente dividir - na
própria página do objectify tem um exemplo usando cursor.

Abraços


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Flavio Duarte  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 10:03 am
From: Flavio Duarte <flaviogabr...@gmail.com>
Date: Mon, 1 Aug 2011 11:03:40 -0300
Local: Mon, Aug 1 2011 10:03 am
Subject: Re: GAE startup

Olá,
eu sei dessa limitação
esse problema estava acontecendo no startup da aplicação

depois de um tempo voltou a funcionar normal, isso que é estranho

Em 1 de agosto de 2011 08:46, Miguel Cartagena
<miguel.cartag...@gmail.com>escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Fuster  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 10:05 am
From: Bruno Fuster <brunofus...@gmail.com>
Date: Mon, 1 Aug 2011 11:05:02 -0300
Local: Mon, Aug 1 2011 10:05 am
Subject: Re: GAE startup

Flavio, tudo bem?

Algumas dicas:

- Troque o Spring por Pico
- Desabilite annotation scan e crie seu CustomProvider

Você habilitou o Always On ? Caso sim, quanto tempo leva suas requests na
URI /_ah/warmup ?
Sem o always on sua app vai iniciar quando acessar alguma página, então o
tempo de startup + o tempo de processar os dados dessa página pode ser um
problema. Na segunda request funcionaria de boa talvez.

Abs,

2011/8/1 Miguel Cartagena <miguel.cartag...@gmail.com>

--
Bruno Fuster

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Flavio Duarte  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 10:08 am
From: Flavio Duarte <flaviogabr...@gmail.com>
Date: Mon, 1 Aug 2011 11:08:00 -0300
Subject: Re: GAE startup

Vou fazer isso e trago o feedback

Em 1 de agosto de 2011 11:05, Bruno Fuster <brunofus...@gmail.com> escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Fuster  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 10:13 am
From: Bruno Fuster <brunofus...@gmail.com>
Date: Mon, 1 Aug 2011 11:13:51 -0300
Local: Mon, Aug 1 2011 10:13 am
Subject: Re: GAE startup

Exemplo do custom provider com Pico:

http://www.koders.com/java/fidDAB90D74D11B2D71585A44240AC5F212D4E38D2...

ai é só por no web.xml

   <context-param>

    <param-name>br.com.caelum.vraptor.provider</param-name>

    <param-value>br.com.suaapp.vraptor.CustomProvider</param-value>

</context-param>

<context-param>

<param-name>br.com.caelum.vraptor.scanning</param-name>

        <param-value>disabled</param-value>

</context-param>

Outra dica Flavio é habilitar o appstats e ver o numero de RPCs que sua app
faz ao iniciar, talvez você consiga estudar e minimizar essas chamadas.

Para ativar adicione um filtro e uma servlet (coloque a URI /appstats no seu
security-constraint):

   <servlet>

        <servlet-name>appstats</servlet-name>

        <servlet-class>com.google.appengine.tools.appstats.AppstatsServlet</
servlet-class>

</servlet>

<servlet-mapping>

        <servlet-name>appstats</servlet-name>

        <url-pattern>/appstats/*</url-pattern>

</servlet-mapping>

   <filter>

       <filter-name>appstats</filter-name>

       <filter-class>com.google.appengine.tools.appstats.AppstatsFilter</
filter-class>

       <init-param>

           <param-name>logMessage</param-name>

           <param-value>Appstats available: /appstats/details?time={ID}</
param-value>

        </init-param>

</filter>

<filter-mapping>

       <filter-name>appstats</filter-name>

       <url-pattern>/*</url-pattern>

</filter-mapping>

2011/8/1 Flavio Duarte <flaviogabr...@gmail.com>

--
Bruno Fuster

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Flavio Duarte  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 10:15 am
From: Flavio Duarte <flaviogabr...@gmail.com>
Date: Mon, 1 Aug 2011 11:15:15 -0300
Local: Mon, Aug 1 2011 10:15 am
Subject: Re: GAE startup

Blz, muito obrigado pelas discas
como é que posso fazer para habilitar as urls com /_ah/?

E você usa objectify?

Em 1 de agosto de 2011 11:13, Bruno Fuster <brunofus...@gmail.com> escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Fuster  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 10:17 am
From: Bruno Fuster <brunofus...@gmail.com>
Date: Mon, 1 Aug 2011 11:17:54 -0300
Local: Mon, Aug 1 2011 10:17 am
Subject: Re: GAE startup

Uso sim.

Para habilitar as URLs com /_ah voce precisa fazer um CustomVraptor:

   public class CustomVRaptor extends VRaptor {

 @Override

public void doFilter(ServletRequest req, ServletResponse res,

 FilterChain chain) throws IOException, ServletException {

  String uri = ((HttpServletRequest)req).getRequestURI();

  if (uri.startsWith("/_ah") || uri.startsWith("/appstats")) {

 chain.doFilter(req, res);

 } else {

 super.doFilter(req, res, chain);

 }

}

 }

e alterar no webxml:

   <filter>

<filter-name>vraptor</filter-name>

<filter-class>br.com.suaapp.vraptor.CustomVRaptor</filter-class>

</filter>

2011/8/1 Flavio Duarte <flaviogabr...@gmail.com>

--
Bruno Fuster

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Flavio Duarte  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 10:22 am
From: Flavio Duarte <flaviogabr...@gmail.com>
Date: Mon, 1 Aug 2011 11:22:34 -0300
Local: Mon, Aug 1 2011 10:22 am
Subject: Re: GAE startup

Entendi,
não estou no computador do projeto, quando eu estiver eu faço isso

a minha dúvida do objectify era a seguinte

eu faço os registros das minhas classes junto com a minha classe factory
mas aqui http://code.google.com/p/objectify-appengine/wiki/BestPractices tem
algo que fala sobre registos só que não entendi direito
ai queria saber como você faz o registro

Em 1 de agosto de 2011 11:17, Bruno Fuster <brunofus...@gmail.com> escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Fuster  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 10:22 am
From: Bruno Fuster <brunofus...@gmail.com>
Date: Mon, 1 Aug 2011 11:22:46 -0300
Local: Mon, Aug 1 2011 10:22 am
Subject: Re: GAE startup

Desculpem o código zuado ae :(

Segue: https://gist.github.com/1118212

2011/8/1 Bruno Fuster <brunofus...@gmail.com>

--
Bruno Fuster

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Flavio Duarte  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 10:24 am
From: Flavio Duarte <flaviogabr...@gmail.com>
Date: Mon, 1 Aug 2011 11:24:35 -0300
Local: Mon, Aug 1 2011 10:24 am
Subject: Re: GAE startup

Eu tinha entendido o código, sem problemas :)

Em 1 de agosto de 2011 11:22, Bruno Fuster <brunofus...@gmail.com> escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lucas Cavalcanti  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 10:29 am
From: Lucas Cavalcanti <lucasmrtu...@gmail.com>
Date: Mon, 1 Aug 2011 11:29:15 -0300
Local: Mon, Aug 1 2011 10:29 am
Subject: Re: GAE startup

quanto ao scan, tem como fazer ele estático, daí vc não precisa criar o
custom provider:

execute o main dessa classe:
http://vraptor.caelum.com.br/javadoc/br/com/caelum/vraptor/scan/VRapt...
e passe o caminho do web.xml como argumento.

2011/8/1 Flavio Duarte <flaviogabr...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Fuster  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 11:30 am
From: Bruno Fuster <brunofus...@gmail.com>
Date: Mon, 1 Aug 2011 12:30:47 -0300
Local: Mon, Aug 1 2011 11:30 am
Subject: Re: GAE startup

Valeu Lucas!!!! Estou gerando static aqui agora :D

Cara, uma vez o Sérgio comentou de um prototipo para cachear estruturas
caras do VRaptor para os proximos inits. Existe algo que possa ser usado?
Caso não, qual seria a idéia? Cachear o Webappbootstrap ?

@Flavio

Certo,

Eu tenho um DataStoreTemplate.class aqui que é um @Component
@ApplicationScoped e não é @Lazy. O VRaptor sempre vai inicializar esse
componente ao startar a app. Nesse componente eu registro minhas classes
(usando static{} mesmo).

O problema que eles citam é que se você usar o ObjectifyService.register()
direto da classe que você quer registrar você pode ter problemas porque a
JVM inicializa classes sob-demanda então não da pra garantir que ela será
inicializada ao startar a app.

[]s

2011/8/1 Lucas Cavalcanti <lucasmrtu...@gmail.com>

--
Bruno Fuster

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lucas Cavalcanti  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 11:50 am
From: Lucas Cavalcanti <lucasmrtu...@gmail.com>
Date: Mon, 1 Aug 2011 12:50:18 -0300
Local: Mon, Aug 1 2011 11:50 am
Subject: Re: GAE startup

se vc gera o static webbapp, ele já está cacheado. Acho que é isso que o
sergio quis dizer

2011/8/1 Bruno Fuster <brunofus...@gmail.com>

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Fuster  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 11:51 am
From: Bruno Fuster <brunofus...@gmail.com>
Date: Mon, 1 Aug 2011 12:51:27 -0300
Local: Mon, Aug 1 2011 11:51 am
Subject: Re: GAE startup

perfeito! valeu mesmo!! startup time ta entre 2~3 segundos, muito bom!

2011/8/1 Lucas Cavalcanti <lucasmrtu...@gmail.com>

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Flavio Duarte  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 12:07 pm
From: Flavio Duarte <flaviogabr...@gmail.com>
Date: Mon, 1 Aug 2011 13:07:44 -0300
Local: Mon, Aug 1 2011 12:07 pm
Subject: Re: GAE startup

Achei um gist do Garcia sobre registro do objectify, é como estou fazendo
https://gist.github.com/1064225

:)

você poderia colocar como usou o staticscanning?

Em 1 de agosto de 2011 12:51, Bruno Fuster <brunofus...@gmail.com> escreveu:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Otávio Garcia  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 8:59 pm
From: Otávio Garcia <ota...@otavio.com.br>
Date: Mon, 1 Aug 2011 21:59:01 -0300
Local: Mon, Aug 1 2011 8:59 pm
Subject: Re: GAE startup

Oi pessoal.

Atualizei o meu gist com um modo mais elegante de usar Objectify. Por favor,
me corrijam se houver uma forma melhor. Em breve quero criar um cookbook
sobre Objectify com VRaptor. https://gist.github.com/1064225

Outra coisa que eu fiz foi adicionar uma task para gerar a classe que o
Lucas citou no momento do build/update pro GAE/J.
https://gist.github.com/1119370

Abraços

2011/8/1 Flavio Duarte <flaviogabr...@gmail.com>

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Flavio Duarte  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 9:25 pm
From: Flavio Duarte <flaviogabr...@gmail.com>
Date: Mon, 1 Aug 2011 22:25:41 -0300
Local: Mon, Aug 1 2011 9:25 pm
Subject: Re: GAE startup

Não entendi direito, a única maneira de usar VRaptorStaticScanning é com a
task como o Garcia mostrou?

Em 1 de agosto de 2011 21:59, Otávio Garcia <ota...@otavio.com.br> escreveu:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Otávio Garcia  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 9:43 pm
From: Otávio Garcia <ota...@otavio.com.br>
Date: Mon, 1 Aug 2011 22:43:41 -0300
Local: Mon, Aug 1 2011 9:43 pm
Subject: Re: GAE startup

Não. O VRaptor quando inicializa procura por uma classe chamada
br.com.caelum.vraptor.scan.VRaptorStaticScanning. Você pode gerar essa
classe via ant-task, pode rodar na mão a classe que o Lucas falou, ou pode
até mesmo fazer essa classe "na mão".

A ant-task é só para facilitar as coisas. Assim você roda a task update e
ele já faz tudo, criando o static-scanning, empacotando a aplicação e
enviando para o GAE.

2011/8/1 Flavio Duarte <flaviogabr...@gmail.com>

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Flavio Duarte  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 9:51 pm
From: Flavio Duarte <flaviogabr...@gmail.com>
Date: Mon, 1 Aug 2011 22:51:51 -0300
Local: Mon, Aug 1 2011 9:51 pm
Subject: Re: GAE startup

Hm entendi
Vou fazer aqui

Em 1 de agosto de 2011 22:43, Otávio Garcia <ota...@otavio.com.br> escreveu:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Flavio Duarte  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 10:04 pm
From: Flavio Duarte <flaviogabr...@gmail.com>
Date: Mon, 1 Aug 2011 23:04:47 -0300
Local: Mon, Aug 1 2011 10:04 pm
Subject: Re: GAE startup

Ele cria a classe StaticProjectBootstrap.class?
com essa é com o scanning desativado foi gritante a diferença

Em 1 de agosto de 2011 22:43, Otávio Garcia <ota...@otavio.com.br> escreveu:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lucas Cavalcanti  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 10:22 pm
From: Lucas Cavalcanti <lucasmrtu...@gmail.com>
Date: Mon, 1 Aug 2011 23:22:31 -0300
Local: Mon, Aug 1 2011 10:22 pm
Subject: Re: GAE startup

sim, o scan demora um pouco ;)

em apps normais essa demora é aceitável, no GAE não.

2011/8/1 Flavio Duarte <flaviogabr...@gmail.com>

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Otávio Garcia  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 11:41 pm
From: Otávio Garcia <ota...@otavio.com.br>
Date: Tue, 2 Aug 2011 00:41:18 -0300
Local: Mon, Aug 1 2011 11:41 pm
Subject: Re: GAE startup

Lucas, apenas criando a StaticProjectBootstrap não é a mesma coisa que
desativar no web.xml via br.com.caelum.vraptor.scanning?

2011/8/1 Lucas Cavalcanti <lucasmrtu...@gmail.com>

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lucas Cavalcanti  
View profile   Translate to Translated (View Original)
 More options Aug 1 2011, 11:52 pm
From: Lucas Cavalcanti <lucasmrtu...@gmail.com>
Date: Tue, 2 Aug 2011 00:52:44 -0300
Local: Mon, Aug 1 2011 11:52 pm
Subject: Re: GAE startup

teoricamente sim

2011/8/2 Otávio Garcia <ota...@otavio.com.br>

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »