Possível BUG VRaptor 3.5.2 com Hibernate 4.2.5

468 views
Skip to first unread message

Bruno Rota

unread,
Sep 19, 2013, 11:53:54 PM9/19/13
to caelum-...@googlegroups.com
Boa noite

Eu atualizei a versao do VRaptor para a 3.5.2 eu estava utilizando a 3.5.1, atualizei devido a um bug que tinha na versao anterior em relação a upload de arquivos.

Após atuaizar para a versao 3.5.2, o criar de session e session factory ficou doidao, eu gerencio a transação da seguinte maneira

package br.com.rotamotors.transacoes;

import org.hibernate.Session;
import org.hibernate.Transaction;

import br.com.caelum.vraptor.Intercepts;
import br.com.caelum.vraptor.Lazy;
import br.com.caelum.vraptor.core.InterceptorStack;
import br.com.caelum.vraptor.interceptor.Interceptor;
import br.com.caelum.vraptor.resource.ResourceMethod;

@Intercepts
@Lazy
public class TransactionInterceptor implements Interceptor {

private final Session session;

public TransactionInterceptor(Session session) {
this.session = session;
}

public void intercept(InterceptorStack stack, ResourceMethod method,
Object instance) {
Transaction transaction = null;

try {

try{
transaction = session.beginTransaction();
}catch(Exception e){
e.printStackTrace();
}

stack.next(method, instance);
transaction.commit();

} finally {
if (transaction.isActive()) {
transaction.rollback();
}
}
}

public boolean accepts(ResourceMethod method) {
return  method
                .getMethod() //metodo anotado
                .isAnnotationPresent(Transactional.class)
            || method
                .getResource() //ou recurso anotado
                .getType()
                .isAnnotationPresent(Transactional.class);
}
}

--------------------------------------------------------------------------------------

package br.com.rotamotors.factory;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.service.ServiceRegistryBuilder;

import br.com.caelum.vraptor.ioc.ApplicationScoped;
import br.com.caelum.vraptor.ioc.Component;
import br.com.caelum.vraptor.ioc.ComponentFactory;

@Component
@ApplicationScoped
public class CriadorDeSessionFactory implements 
    ComponentFactory<SessionFactory> {

  private SessionFactory factory;

  @PostConstruct
  public void abre() {
 
 Configuration configuration = new Configuration();

 configuration.configure();

 ServiceRegistry serviceRegistry = new ServiceRegistryBuilder().applySettings(configuration.getProperties()).buildServiceRegistry();
 
 this.factory = configuration.buildSessionFactory(serviceRegistry);
  }
  
  public SessionFactory getInstance() {
    return this.factory;
  }
 
  @PreDestroy
  public void fecha() {
    this.factory.close();
  }
}

-------------------------------------------------------------

package br.com.rotamotors.factory;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import br.com.caelum.vraptor.ioc.Component;
import br.com.caelum.vraptor.ioc.ComponentFactory;

@Component
public class CriadorDeSession implements ComponentFactory<Session> {

  private final SessionFactory factory;
  private Session session;

  public CriadorDeSession(SessionFactory factory) {
    this.factory = factory;
  }

  @PostConstruct
  public void abre() {
    this.session = factory.openSession();
  }
  
  public Session getInstance() {
    return this.session;
  }
  
  @PreDestroy
  public void fecha() {
    this.session.close();
  }
}

---------------------------------------------------------------

Meu metodo do controller

@Transactional
public void adicionarPerfils(){

Perfil perfil1 = new Perfil();
perfil1.setId(1);
perfil1.setDescricao("ANUNCIANTE");
Perfil perfil2 = new Perfil();
perfil2.setId(2);
perfil2.setDescricao("REVENDEDOR");
Perfil perfil3 = new Perfil();
perfil3.setId(3);
perfil3.setDescricao("ADMIN");
perfilBO.adicionar(perfil1);
perfilBO.adicionar(perfil2);
perfilBO.adicionar(perfil3);
}

-----------------------------------------

PerfilBO


@Component
public class PerfilBOImpl implements PerfilBO{

private Session session;
public PerfilBOImpl(Session session){
this.session = session;
}
public void adicionar(Perfil perfil){
session.save(perfil);
}

---------------------------------------------------

Bom vamos lá, na versão 3.5.1, funcionava tudo direitinho, após atualizar a versão para a 3.5.2 eu obtenho o seguinte erro ao tentar inserir um objeto

23:50:06,933 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) UsuarioBO: br.com.rotamotors.businessobjects.UsuarioBOImpl@6a869709
23:50:06,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) org.hibernate.TransactionException: nested transactions not supported
23:50:06,950 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:152)
23:50:06,950 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1426)
23:50:06,950 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.rotamotors.transacoes.TransactionInterceptor.intercept(TransactionInterceptor.java:30)
23:50:06,951 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.core.LazyInterceptorHandler.execute(LazyInterceptorHandler.java:59)
23:50:06,951 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
23:50:06,952 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.interceptor.ResourceLookupInterceptor.intercept(ResourceLookupInterceptor.java:69)
23:50:06,952 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
23:50:06,953 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
23:50:06,953 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.core.EnhancedRequestExecution.execute(EnhancedRequestExecution.java:44)
23:50:06,954 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.VRaptor$1.insideRequest(VRaptor.java:91)
23:50:06,954 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.ioc.guice.GuiceProvider.provideForRequest(GuiceProvider.java:82)
23:50:06,954 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.c


--------------------------------------

Esse exception é lançada na hora de abrir a transação dentro do meu interceptor

try{
transaction = session.beginTransaction();
}catch(Exception e){
e.printStackTrace();
}

--------------------------------------------------------

Eu reparei que da versao 3.5.1 para a 3.5.2 apenas o jar gson foi alterado de versao, na versao 3.5.1 ele usa o gson-2.2.1.jar e na 3.5.2 gson-2.2.4.jar, para testar se era esse jar que estava dando problema, eu utilizei o vraptor 3.5.2 porem com o  gson-2.2.1.jar que era da versão anterior, e nao funcionou também.

Esse problema deve estar ligado a versao do vraptor 3.5.2, pois na versão 3.5.1 funciona sem problemas.

Alguém tem idéia do que pode ser?

Obrigado pela atenção.

Valeww

Bruno Rota

unread,
Sep 19, 2013, 11:56:16 PM9/19/13
to caelum-...@googlegroups.com
Caso seja necessário, segue meu pom.xml, eu estou utilizando o JBoss 7.1.1

<modelVersion>4.0.0</modelVersion>
<groupId>rotamotors</groupId>
<artifactId>rotamotors</artifactId>
<packaging>war</packaging>
<version>1.0</version>
<name>rotamotors</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>1.0.0.Final</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-security</artifactId>
<version>7.1.1.Final</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>br.com.caelum</groupId>
<artifactId>vraptor</artifactId>
<version>3.5.2</version>
<exclusions>
<exclusion>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.2.5.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate.common</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>4.0.2.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.0.1.Final</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-xc</artifactId>
<version>1.9.13</version>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
<version>1.17.1</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.5.5</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3</version>
</dependency>
</dependencies>
<profiles>
<profile>
<!-- When built in OpenShift the 'openshift' profile will be used when 
invoking mvn. -->
<!-- Use this profile for any OpenShift specific customization your app rotamotors
will need. -->
<!-- By default that is to put the resulting archive into the 'deployments' 
folder. -->
<id>openshift</id>
<build>
<finalName>rotamotors</finalName>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<outputDirectory>deployments</outputDirectory>
<warName>ROOT</warName>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>



2013/9/19 Bruno Rota <brunor...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "caelum-vraptor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caelum-vrapto...@googlegroups.com.
To post to this group, send email to caelum-...@googlegroups.com.
Visit this group at http://groups.google.com/group/caelum-vraptor.
For more options, visit https://groups.google.com/groups/opt_out.

Lucas Cavalcanti

unread,
Sep 20, 2013, 12:18:32 AM9/20/13
to caelum-vraptor

Tenta dar um clean no projeto e no servidor. O que parece estar acontecendo é o TransactionInterceptor rodar mais de uma vez na mesma request, o q não faz mto sentido

Bruno Rota

unread,
Sep 20, 2013, 12:25:35 AM9/20/13
to caelum-...@googlegroups.com
Lucas, fiz isso agora, porém acontece a mesma coisa.

Acho dificil ser isso, pois eu acabei de formatar a máquina e instalar o ambiente, baixei o projeto do git, servidor novo, eclipse novo


2013/9/20 Lucas Cavalcanti <lucasm...@gmail.com>

Lucas Cavalcanti

unread,
Sep 20, 2013, 12:31:17 AM9/20/13
to caelum-vraptor

Se vc trocar de novo pro 3.5.1 funciona?

Bruno Rota

unread,
Sep 20, 2013, 12:31:23 AM9/20/13
to caelum-...@googlegroups.com
Lucas, é isso que você falou mesmo

Porém, não é que o interceptor está executando 2 vezes, o problema é que cada requisição está chamando o método duas vezes, muito estranho

Quando eu acesso


o método 

public void teste2(){
System.out.println("TESTE 2");
}

é executado 2 vezes


Bruno Rota

unread,
Sep 20, 2013, 12:33:04 AM9/20/13
to caelum-...@googlegroups.com
Lucas, funciona sim, na 3.5.1 funciona normal.


2013/9/20 Lucas Cavalcanti <lucasm...@gmail.com>

Bruno Rota

unread,
Sep 20, 2013, 12:34:29 AM9/20/13
to caelum-...@googlegroups.com
Acabei de testar novamente, mudei pra 3.5.1

E acessei o mesmo método, e funcionou

Foi executado apenas uma vez


Bruno Rota

unread,
Sep 20, 2013, 12:36:30 AM9/20/13
to caelum-...@googlegroups.com
Desabilitei o Jaas, pensando que era alguma coisa coisa relacionada, e ficou na mesma também

Lucas Cavalcanti

unread,
Sep 20, 2013, 12:36:39 AM9/20/13
to caelum-vraptor

Liga o log de debug do vraptor e veja se aparecem coisas duplicadas na inicialização ou na requisição.

Tenta ver se o filtro do VRaptor ta declarado 2 vezes

Bruno Rota

unread,
Sep 20, 2013, 12:39:19 AM9/20/13
to caelum-...@googlegroups.com
Como  q eu faço pra ligar o debug do vraptor?



2013/9/20 Lucas Cavalcanti <lucasm...@gmail.com>

Bruno Rota

unread,
Sep 20, 2013, 12:57:34 AM9/20/13
to caelum-...@googlegroups.com
Lucas, baixei o https://code.google.com/p/vraptor3/downloads/detail?name=vraptor-blank-project-3.5.2.zip&can=2&q=,

E da o mesmo problema, de chamar 2 vezes o metodo,

Criei o controller

@Resource
public class Teste {

public void teste(){
System.out.println("TESTE");
}
}

e acessei


O método teste é executado duas vezes

Isso no jboss7.1.1

Nao testei em outro server.

Bruno Rota

unread,
Sep 20, 2013, 1:10:59 AM9/20/13
to caelum-...@googlegroups.com
Lucas, acho que o erro não é referente ao JBoss 7 nao

Eu rodei o blanck project no tomcat 7 e da o mesmo problema, de executar o metodo 2 vezes.

Otávio Garcia

unread,
Sep 20, 2013, 5:28:09 AM9/20/13
to caelum-...@googlegroups.com
Use este trecho ao invés do seu intercepts. É importante sempre testar a transaction antes de fazer commit ou rollback.


    public void intercept(InterceptorStack stack, ResourceMethod method, Object instance) {
        Transaction transaction = null;
        try {
            transaction = session.beginTransaction();
            stack.next(method, instance);
            if (!validator.hasErrors() && transaction.isActive()) {
                transaction.commit();
            }
        } finally {
            if (transaction != null && transaction.isActive()) {
                transaction.rollback();
            }
        }
    }

Otávio Garcia

unread,
Sep 20, 2013, 5:49:33 AM9/20/13
to caelum-...@googlegroups.com

Bruno Rota

unread,
Sep 20, 2013, 7:42:07 AM9/20/13
to caelum-...@googlegroups.com
Obrigado pela dica Otávio.

Vou implementar no meu código.


2013/9/20 Otávio Garcia <ota...@otavio.com.br>

Bruno Rota

unread,
Sep 20, 2013, 7:44:41 AM9/20/13
to caelum-...@googlegroups.com
Então Otávio, eu vi o plugin, o problema é que no plugin ele sempre abre um contexto transacional, mesmo onde não é necessário, eu queria evitar isso na aplicação, por isso que eu não usei.

Mas o meu problema aqui, não é a hibernate pelo que eu identifiquei depois, parece que tem um Bug na versao 3.5.2 do VRaptor, baixei o blakproject do site e ele esta sempre chamando o método 2 vezes, na versão 3.5.1 funciona normal.


2013/9/20 Otávio Garcia <ota...@otavio.com.br>

Otávio Garcia

unread,
Sep 20, 2013, 7:46:47 AM9/20/13
to caelum-...@googlegroups.com
Habilita o logging do vraptor para debug para podermos entender melhor o que está acontecendo.

Bruno Rota

unread,
Sep 20, 2013, 7:51:07 AM9/20/13
to caelum-...@googlegroups.com
Como eu faço isso?

Otávio se quiser testar, é só baixar o blankprojet da versao 3.5.2 e chamar algum metodo de algum controller, o método vai ser chamado 2 vezes

ex

@Resource
public class Teste{

public void teste(){

System.out.println("Teste");
}
}

Se eu acessar

localhost:8080/vratporTeste/teste/teste

o método teste executa 2 vezes

imprimeTeste duas vezes no console.



2013/9/20 Otávio Garcia <ota...@otavio.com.br>

Bruno Rota

unread,
Sep 20, 2013, 7:57:37 AM9/20/13
to caelum-...@googlegroups.com
Esse blankproject https://code.google.com/p/vraptor3/downloads/detail?name=vraptor-blank-project-3.5.2.zip&can=2&q=

De inicio eu achei que era o hibernate, depois o jboss, porém teste no tomcat 7 e acontece o mesmo problema,

Acabei de testar no trabalho e deu o mesmo problema.

Bruno Rota

unread,
Sep 20, 2013, 7:57:59 AM9/20/13
to caelum-...@googlegroups.com
Saida do console do tomcat em modo DEBUG

-------------------------------------------------------------

Sep 20, 2013 8:57:07 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64:/usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
Sep 20, 2013 8:57:08 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:vraptor-blank-project' did not find a matching property.
Sep 20, 2013 8:57:08 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Sep 20, 2013 8:57:08 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Sep 20, 2013 8:57:08 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 734 ms
Sep 20, 2013 8:57:08 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Sep 20, 2013 8:57:08 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.42
08:57:09,807  INFO [BasicConfiguration  ] Using class br.com.caelum.vraptor.ioc.guice.GuiceProvider as Container Provider
08:57:10,488 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.PrimitiveFloatConverter to class br.com.caelum.vraptor.converter.PrimitiveFloatConverter
08:57:10,493 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.BigDecimalConverter to class br.com.caelum.vraptor.converter.BigDecimalConverter
08:57:10,496 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.CharacterConverter to class br.com.caelum.vraptor.converter.CharacterConverter
08:57:10,498 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.LocaleBasedCalendarConverter to class br.com.caelum.vraptor.converter.LocaleBasedCalendarConverter
08:57:10,502 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.ByteConverter to class br.com.caelum.vraptor.converter.ByteConverter
08:57:10,505 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.ShortConverter to class br.com.caelum.vraptor.converter.ShortConverter
08:57:10,508 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.PrimitiveLongConverter to class br.com.caelum.vraptor.converter.PrimitiveLongConverter
08:57:10,511 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.BooleanConverter to class br.com.caelum.vraptor.converter.BooleanConverter
08:57:10,514 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.BigIntegerConverter to class br.com.caelum.vraptor.converter.BigIntegerConverter
08:57:10,516 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.PrimitiveShortConverter to class br.com.caelum.vraptor.converter.PrimitiveShortConverter
08:57:10,519 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.EnumConverter to class br.com.caelum.vraptor.converter.EnumConverter
08:57:10,522 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.PrimitiveDoubleConverter to class br.com.caelum.vraptor.converter.PrimitiveDoubleConverter
08:57:10,525 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.FloatConverter to class br.com.caelum.vraptor.converter.FloatConverter
08:57:10,528 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.PrimitiveByteConverter to class br.com.caelum.vraptor.converter.PrimitiveByteConverter
08:57:10,531 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.PrimitiveCharConverter to class br.com.caelum.vraptor.converter.PrimitiveCharConverter
08:57:10,534 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.LongConverter to class br.com.caelum.vraptor.converter.LongConverter
08:57:10,536 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.StringConverter to class br.com.caelum.vraptor.converter.StringConverter
08:57:10,539 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.PrimitiveBooleanConverter to class br.com.caelum.vraptor.converter.PrimitiveBooleanConverter
08:57:10,541 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.PrimitiveIntConverter to class br.com.caelum.vraptor.converter.PrimitiveIntConverter
08:57:10,544 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.LocaleBasedDateConverter to class br.com.caelum.vraptor.converter.LocaleBasedDateConverter
08:57:10,547 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.IntegerConverter to class br.com.caelum.vraptor.converter.IntegerConverter
08:57:10,550 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.interceptor.multipart.UploadedFileConverter to class br.com.caelum.vraptor.interceptor.multipart.UploadedFileConverter
08:57:10,554 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.converter.DoubleConverter to class br.com.caelum.vraptor.converter.DoubleConverter
08:57:10,558 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.ioc.ResourceHandler to class br.com.caelum.vraptor.ioc.ResourceHandler
08:57:10,565 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.ioc.ConverterHandler to class br.com.caelum.vraptor.ioc.ConverterHandler
08:57:10,568 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.ioc.InterceptorStereotypeHandler to class br.com.caelum.vraptor.ioc.InterceptorStereotypeHandler
08:57:10,571 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.deserialization.DeserializesHandler to class br.com.caelum.vraptor.deserialization.DeserializesHandler
08:57:10,574 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.serialization.xstream.XStreamXMLSerialization to class br.com.caelum.vraptor.serialization.xstream.XStreamXMLSerialization
08:57:10,575 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.serialization.xstream.XStreamJSONSerialization to class br.com.caelum.vraptor.serialization.xstream.XStreamJSONSerialization
08:57:10,584  INFO [BasicConfiguration  ] br.com.caelum.vraptor.scanning = null
08:57:10,584  INFO [WebAppBootstrapFactory] Dynamic WebAppBootstrap found.
08:57:10,698 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.blank.CadastroController to class br.com.caelum.vraptor.blank.CadastroController
08:57:10,707 DEBUG [GuiceComponentRegistry] Ignoring binding of class br.com.caelum.vraptor.blank.CadastroController to class br.com.caelum.vraptor.blank.CadastroController
08:57:10,709 DEBUG [GuiceComponentRegistry] Binding class br.com.caelum.vraptor.blank.IndexController to class br.com.caelum.vraptor.blank.IndexController
08:57:10,717 DEBUG [GuiceComponentRegistry] Ignoring binding of class br.com.caelum.vraptor.blank.IndexController to class br.com.caelum.vraptor.blank.IndexController
08:57:10,826 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.blank.CadastroController
08:57:10,835 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.blank.IndexController
08:57:10,836 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.deserialization.DefaultDeserializers
08:57:10,836 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.http.route.JavaEvaluator
08:57:10,837 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.resource.DefaultMethodNotAllowedHandler
08:57:10,837 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.serialization.NullProxyInitializer
08:57:10,838 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.multipart.DefaultMultipartConfig
08:57:10,838 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.restfulie.headers.DefaultRestDefaults
08:57:10,838 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.http.route.DefaultTypeFinder
08:57:10,839 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.http.ParanamerNameProvider
08:57:10,839 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.core.DefaultInterceptorHandlerFactory
08:57:10,840 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.view.DefaultAcceptHeaderToFormat
08:57:10,840 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.http.EncodingHandlerFactory
08:57:10,840 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.resource.DefaultResourceNotFoundHandler
08:57:10,841 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.core.DefaultRoutes
08:57:10,841 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.http.DefaultResourceTranslator
08:57:10,842 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.http.route.NoRoutesConfiguration
08:57:10,842 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.proxy.JavassistProxifier
08:57:10,842 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.core.DefaultConverters
08:57:10,843 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.proxy.ObjenesisInstanceCreator
08:57:10,843 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.core.DefaultStaticContentHandler
08:57:10,844 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.http.iogi.VRaptorDependencyProvider
08:57:10,844 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.http.route.PathAnnotationRoutesParser
08:57:10,845 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.DefaultTypeNameExtractor
08:57:10,846 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.http.route.DefaultRouter
08:57:10,846 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.serialization.xstream.XStreamConverters$NullConverter
08:57:10,847 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.TopologicalSortedInterceptorRegistry
08:57:10,847 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.core.DefaultInterceptorStack
08:57:10,847 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.serialization.xstream.XStreamBuilderImpl
08:57:10,848 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.core.EnhancedRequestExecution
08:57:10,848 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.serialization.xstream.XStreamJSONPSerialization
08:57:10,849 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.restfulie.headers.DefaultRestHeadersHandler
08:57:10,849 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.view.DefaultPageResult
08:57:10,850 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.config.ApplicationConfiguration
08:57:10,850 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.http.DefaultFormatResolver
08:57:10,850 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.core.DefaultResult
08:57:10,851 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.core.DefaultExceptionMapper
08:57:10,851 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.view.EmptyResult
08:57:10,852 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.multipart.Servlet3MultipartInterceptor
08:57:10,852 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.view.DefaultHttpResult
08:57:10,853 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.http.iogi.VRaptorInstantiator
08:57:10,853 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.serialization.xstream.XStreamXMLSerialization
08:57:10,854 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.validator.ReplicatorOutjector
08:57:10,854 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.ExceptionHandlerInterceptor
08:57:10,855 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.OutjectResult
08:57:10,855 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.FlashInterceptor
08:57:10,856 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.view.DefaultValidationViewsFactory
08:57:10,856 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.InstantiateInterceptor
08:57:10,856 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.DeserializingInterceptor
08:57:10,857 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.core.JstlLocalization
08:57:10,857 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.validator.MessageConverter
08:57:10,858 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.serialization.DefaultRepresentationResult
08:57:10,858 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.deserialization.FormDeserializer
08:57:10,859 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.http.iogi.VRaptorParameterNamesProvider
08:57:10,859 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.view.DefaultLogicResult
08:57:10,860 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.view.SessionFlashScope
08:57:10,860 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.serialization.I18nMessageSerialization
08:57:10,861 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.ResourceLookupInterceptor
08:57:10,861 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.view.DefaultPathResolver
08:57:10,862 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.validator.NullBeanValidator
08:57:10,863 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.serialization.xstream.XStreamJSONSerialization
08:57:10,863 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.deserialization.XStreamXMLDeserializer
08:57:10,864 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.http.iogi.IogiParametersProvider
08:57:10,864 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.validator.DefaultValidator
08:57:10,865 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.view.DefaultRefererResult
08:57:10,865 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.core.DefaultMethodInfo
08:57:10,866 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.serialization.HTMLSerialization
08:57:10,866 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.download.DownloadInterceptor
08:57:10,867 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.ExecuteMethodInterceptor
08:57:10,867 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.ForwardToDefaultViewInterceptor
08:57:10,868 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.serialization.xstream.XStreamConverters
08:57:10,868 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor
08:57:10,869 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.view.DefaultStatus
08:57:10,870 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.deserialization.JsonDeserializer
08:57:10,870 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.PrimitiveFloatConverter
08:57:10,870 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.BigDecimalConverter
08:57:10,871 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.CharacterConverter
08:57:10,871 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.LocaleBasedCalendarConverter
08:57:10,872 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.ByteConverter
08:57:10,872 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.ShortConverter
08:57:10,872 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.PrimitiveLongConverter
08:57:10,873 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.BooleanConverter
08:57:10,873 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.BigIntegerConverter
08:57:10,873 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.PrimitiveShortConverter
08:57:10,874 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.EnumConverter
08:57:10,874 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.PrimitiveDoubleConverter
08:57:10,875 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.FloatConverter
08:57:10,875 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.PrimitiveByteConverter
08:57:10,875 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.PrimitiveCharConverter
08:57:10,876 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.LongConverter
08:57:10,876 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.StringConverter
08:57:10,877 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.PrimitiveBooleanConverter
08:57:10,877 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.PrimitiveIntConverter
08:57:10,877 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.LocaleBasedDateConverter
08:57:10,878 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.IntegerConverter
08:57:10,878 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.interceptor.multipart.UploadedFileConverter
08:57:10,879 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.converter.DoubleConverter
08:57:10,880 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.ioc.ResourceHandler
08:57:10,884 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.ioc.ConverterHandler
08:57:10,885 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.ioc.InterceptorStereotypeHandler
08:57:10,886 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.deserialization.DeserializesHandler
08:57:10,891 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.ioc.guice.ComponentFactoryProviderAdapter<br.com.caelum.vraptor.http.EncodingHandler>
08:57:10,896 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.ioc.guice.GuiceComponentRegistry
08:57:10,897 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.ioc.guice.VRaptorAbstractModule$4
08:57:10,898 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.ioc.guice.VRaptorAbstractModule$3
08:57:10,898 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for com.google.inject.Stage
08:57:10,899 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.ioc.guice.VRaptorAbstractModule$2
08:57:10,907 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.ioc.guice.AllImplementationsProvider
08:57:10,908 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.ioc.guice.VRaptorAbstractModule$1
08:57:10,913 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for org.apache.catalina.core.ApplicationContextFacade
08:57:10,914 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.ioc.guice.GuiceProvider$GuiceContainer
08:57:10,995 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for com.google.inject.multibindings.Multibinder$RealMultibinder
08:57:11,017  INFO [DefaultConverters   ] Registering bundled converters
08:57:11,018 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveFloatConverter
08:57:11,018 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.BigDecimalConverter
08:57:11,018 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.CharacterConverter
08:57:11,018 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.LocaleBasedCalendarConverter
08:57:11,018 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.ByteConverter
08:57:11,019 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.ShortConverter
08:57:11,019 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveLongConverter
08:57:11,019 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.BooleanConverter
08:57:11,019 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.BigIntegerConverter
08:57:11,019 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveShortConverter
08:57:11,019 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.EnumConverter
08:57:11,019 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveDoubleConverter
08:57:11,019 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.FloatConverter
08:57:11,019 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveByteConverter
08:57:11,019 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveCharConverter
08:57:11,019 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.LongConverter
08:57:11,019 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.StringConverter
08:57:11,020 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveBooleanConverter
08:57:11,020 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveIntConverter
08:57:11,020 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.LocaleBasedDateConverter
08:57:11,020 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.IntegerConverter
08:57:11,020 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.interceptor.multipart.UploadedFileConverter
08:57:11,020 DEBUG [DefaultConverters   ] bundled converter to be registered: class br.com.caelum.vraptor.converter.DoubleConverter
08:57:11,028  INFO [LinkToHandler       ] Registering linkTo component
08:57:11,054 DEBUG [ResourceHandler     ] Found resource: class br.com.caelum.vraptor.blank.CadastroController
08:57:11,069 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for CadastroController.teste() as []
08:57:11,070 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for CadastroController.teste() as []
08:57:11,073 DEBUG [DefaultParametersControl] For /cadastro/teste retrieved /cadastro/teste with {}
08:57:11,074  INFO [DefaultRouteBuilder ] /cadastro/teste                                   [ALL] -> CadastroController.teste()
08:57:11,074 DEBUG [ResourceHandler     ] Found resource: class br.com.caelum.vraptor.blank.IndexController
08:57:11,075 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for IndexController.index() as []
08:57:11,075 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for IndexController.index() as []
08:57:11,075 DEBUG [DefaultParametersControl] For / retrieved / with {}
08:57:11,075  INFO [DefaultRouteBuilder ] /                                                 [ALL] -> IndexController.index()
08:57:11,076 DEBUG [InterceptorStereotypeHandler] Found interceptor for interface br.com.caelum.vraptor.interceptor.multipart.MultipartInterceptor
08:57:11,080 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.ExceptionHandlerInterceptor
08:57:11,081 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.OutjectResult
08:57:11,081 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.FlashInterceptor
08:57:11,081 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.InstantiateInterceptor
08:57:11,082 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.DeserializingInterceptor
08:57:11,082 DEBUG [DeserializesHandler ] Ignoring default deserializer class br.com.caelum.vraptor.deserialization.FormDeserializer
08:57:11,082 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.ResourceLookupInterceptor
08:57:11,082 DEBUG [DeserializesHandler ] Ignoring default deserializer interface br.com.caelum.vraptor.deserialization.XMLDeserializer
08:57:11,083 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.download.DownloadInterceptor
08:57:11,083 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.ExecuteMethodInterceptor
08:57:11,083 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.ForwardToDefaultViewInterceptor
08:57:11,083 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor
08:57:11,084 DEBUG [DeserializesHandler ] Ignoring default deserializer class br.com.caelum.vraptor.deserialization.JsonDeserializer
08:57:11,085 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.PrimitiveFloatConverter
08:57:11,085 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.BigDecimalConverter
08:57:11,086 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.CharacterConverter
08:57:11,086 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.LocaleBasedCalendarConverter
08:57:11,087 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.ByteConverter
08:57:11,088 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.ShortConverter
08:57:11,088 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.PrimitiveLongConverter
08:57:11,089 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.BooleanConverter
08:57:11,089 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.BigIntegerConverter
08:57:11,090 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.PrimitiveShortConverter
08:57:11,090 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.EnumConverter
08:57:11,091 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.PrimitiveDoubleConverter
08:57:11,091 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.FloatConverter
08:57:11,092 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.PrimitiveByteConverter
08:57:11,092 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.PrimitiveCharConverter
08:57:11,093 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.LongConverter
08:57:11,093 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.StringConverter
08:57:11,094 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.PrimitiveBooleanConverter
08:57:11,094 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.PrimitiveIntConverter
08:57:11,095 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.LocaleBasedDateConverter
08:57:11,096 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.IntegerConverter
08:57:11,096 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.interceptor.multipart.UploadedFileConverter
08:57:11,097 DEBUG [ConverterHandler    ] Ignoring handling default converter class br.com.caelum.vraptor.converter.DoubleConverter
08:57:11,113 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.ioc.guice.RequestCustomScope
08:57:11,131 DEBUG [ScopeLifecycleListener] Registering lifecycle listeners for br.com.caelum.vraptor.ioc.guice.SessionCustomScope
08:57:11,132  INFO [VRaptor             ] VRaptor 3.5.2-SNAPSHOT successfuly initialized
Sep 20, 2013 8:57:11 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Sep 20, 2013 8:57:11 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Sep 20, 2013 8:57:11 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2881 ms

Bruno Rota

unread,
Sep 20, 2013, 7:59:54 AM9/20/13
to caelum-...@googlegroups.com
Quando eu acesso o metodo do meu controller, obtenho a seguinte saida

---------------------------------------------------------------------------------

08:58:45,412 DEBUG [VRaptor             ] VRaptor received a new request
08:58:45,439 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ResourceLookupInterceptor
08:58:45,440 DEBUG [DefaultResourceTranslator] trying to access /cadastro/teste
08:58:45,443 DEBUG [DefaultResourceTranslator] found resource [DefaultResourceMethod: CadastroController.teste()]
08:58:45,445 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ExceptionHandlerInterceptor
08:58:45,445 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor FlashInterceptor
08:58:45,446 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor InstantiateInterceptor
08:58:45,449 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ExecuteMethodInterceptor
08:58:45,449 DEBUG [ExecuteMethodInterceptor] Invoking CadastroController.teste()
TESTE
08:58:45,449 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ForwardToDefaultViewInterceptor
08:58:45,449 DEBUG [ForwardToDefaultViewInterceptor] forwarding to the dafault page for this logic
08:58:45,451 DEBUG [DefaultPageResult   ] forwarding to /WEB-INF/jsp/cadastro/teste.jsp
08:58:45,454 DEBUG [VRaptor             ] VRaptor received a new request
08:58:45,454 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ResourceLookupInterceptor
08:58:45,454 DEBUG [DefaultResourceTranslator] trying to access /cadastro/teste
08:58:45,454 DEBUG [DefaultResourceTranslator] found resource [DefaultResourceMethod: CadastroController.teste()]
08:58:45,454 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ExceptionHandlerInterceptor
08:58:45,454 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor FlashInterceptor
08:58:45,454 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor InstantiateInterceptor
08:58:45,455 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ExecuteMethodInterceptor
08:58:45,455 DEBUG [ExecuteMethodInterceptor] Invoking CadastroController.teste()
TESTE
08:58:45,455 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ForwardToDefaultViewInterceptor
08:58:45,455 DEBUG [ForwardToDefaultViewInterceptor] Request already dispatched and commited somewhere else, not forwarding.
08:58:45,455 DEBUG [VRaptor             ] VRaptor ended the request
08:58:45,455 DEBUG [VRaptor             ] VRaptor ended the request


2013/9/20 Bruno Rota <brunor...@gmail.com>

Otávio Garcia

unread,
Sep 20, 2013, 8:01:17 AM9/20/13
to caelum-...@googlegroups.com
Você está com o filtro declarado no web.xml? Se você está usando servlet 3, você não precisa declarar este filtro.

Bruno Rota

unread,
Sep 20, 2013, 8:04:17 AM9/20/13
to caelum-...@googlegroups.com
Otávio, a aplicação que eu estava desenvolvendo estava sem o filtro, estou utilizando servlet 3.0.

O blankproject estava com o filtro, acabei de retirar, e deu o mesmo comportamento.


2013/9/20 Otávio Garcia <ota...@otavio.com.br>
Você está com o filtro declarado no web.xml? Se você está usando servlet 3, você não precisa declarar este filtro.

--

Otávio Garcia

unread,
Sep 20, 2013, 8:06:43 AM9/20/13
to caelum-...@googlegroups.com
Você quer dizer que na 3.5.1 não é esse problema. Mas que atualizar para a 3.5.2 ocorreu?


2013/9/20 Bruno Rota <brunor...@gmail.com>

Rafael Ponte

unread,
Sep 20, 2013, 8:07:40 AM9/20/13
to caelum-...@googlegroups.com
O filtro no web.xml não deveria ser problema. Ele tem prioridade em relação a anotação ou web-fragments!


2013/9/20 Bruno Rota <brunor...@gmail.com>

Bruno Rota

unread,
Sep 20, 2013, 8:11:09 AM9/20/13
to caelum-...@googlegroups.com
Na 3.5.1 nao tem esse problema.

Eu atuailzei meu projeto para a 3.5.2, achei que fosse algum conflito de lib e tals,

Porém até baixando o blackproject, só com o vrator, da o problema na 3.5.2.

Na 3.5.1 funciona perfeitamente.

Otávio Garcia

unread,
Sep 20, 2013, 8:12:24 AM9/20/13
to caelum-...@googlegroups.com
Bruno, vou fazer um diff aqui para ver as mudanças entre as versões.

Só faz um favor: abre o jar do vraptor e veja se tem um arquivo META-INF/beans.xml?



2013/9/20 Bruno Rota <brunor...@gmail.com>

Bruno Rota

unread,
Sep 20, 2013, 8:16:20 AM9/20/13
to caelum-...@googlegroups.com
Otávio,

Não tem não

Tem apenas um web-fragment.xml, MANIFEST, e um diretório maven

Otávio Garcia

unread,
Sep 20, 2013, 8:31:21 AM9/20/13
to caelum-...@googlegroups.com
Bruno, outra questão: você está usando guice, spring ou pico?

Bruno Rota

unread,
Sep 20, 2013, 8:42:04 AM9/20/13
to caelum-...@googlegroups.com
Otávio, eu uso o default que vem com o vraptor, eu acho que é o Guice

Bruno Rota

unread,
Sep 20, 2013, 10:06:11 AM9/20/13
to caelum-...@googlegroups.com
Fiz um teste aqui, baixei o vraptorblankproject da versao 3.5.2, e alterei o jar vraptor-3.5.2.jar para o vraptor-3.5.1.jar e funcionou perfeitamente,

O problema deve estar nesse jar vraptor-3.5.2.jar

Otávio Garcia

unread,
Sep 24, 2013, 8:25:53 AM9/24/13
to caelum-...@googlegroups.com
Bruno, fiz alguns testes aqui, porém não consegui reproduzir esse bug. Vou fazer mais alguns testes e te aviso.


On Fri, Sep 20, 2013 at 11:06 AM, Bruno Rota <brunor...@gmail.com> wrote:
Fiz um teste aqui, baixei o vraptorblankproject da versao 3.5.2, e alterei o jar vraptor-3.5.2.jar para o vraptor-3.5.1.jar e funcionou perfeitamente,

O problema deve estar nesse jar vraptor-3.5.2.jar

--

Bruno Rota

unread,
Sep 24, 2013, 8:28:24 AM9/24/13
to caelum-...@googlegroups.com
Otávio, para reproduzir eu apenas baixar o blank project da versao 3.5.2 e criei um controller, vou criar um projeto aqui e eu passo o link pra vc, calma ae

Otávio Garcia

unread,
Sep 24, 2013, 8:30:53 AM9/24/13
to caelum-...@googlegroups.com
Foi exatamente o que eu fiz. Mas para mim rodou apenas uma única vez certinho.


2013/9/24 Bruno Rota <brunor...@gmail.com>

Bruno Rota

unread,
Sep 24, 2013, 8:41:21 AM9/24/13
to caelum-...@googlegroups.com
Otávio, vc falando que funcionou ai, eu descobri o BUG,

O Bug é quando vc cria um método no controller e não cria a JSP pra ele, ae ele chama o método duas vezes.

O problema é que na versão 3.5.1 não acontece isso, mesmo sem pagina JSP, ele chama o método do controller apenas uma vez.

Faz o teste ae pra vc simular o problema.

Cria um controller, e um metodo pra ele, e não cria a página para esse controller.

Otávio Garcia

unread,
Sep 24, 2013, 8:42:09 AM9/24/13
to caelum-...@googlegroups.com
Hmm, o que eu fiz tinha uma página JSP.

Me confirma o nome do jar que você está usando? Pegou do maven ou copiou manual?

Bruno Rota

unread,
Sep 24, 2013, 8:45:49 AM9/24/13
to caelum-...@googlegroups.com
Então Otávio, já testei das duas formas, baixando do Maven e o blankproject,



Valeww

Bruno Rota

unread,
Sep 24, 2013, 8:47:03 AM9/24/13
to caelum-...@googlegroups.com
Nome do jar do vraptor vraptor-3.5.2.jar

Otávio Garcia

unread,
Sep 24, 2013, 8:47:54 AM9/24/13
to caelum-...@googlegroups.com
Obrigado Bruno.


2013/9/24 Bruno Rota <brunor...@gmail.com>

Rafael Ponte

unread,
Sep 24, 2013, 9:01:06 PM9/24/13
to caelum-...@googlegroups.com

E ae, alguma novidade sobre o bug?

Amanha quando eu chegar no escritório eu posso fazer alguns testes.

Bruno Rota

unread,
Sep 24, 2013, 9:25:16 PM9/24/13
to caelum-...@googlegroups.com
Entao, eu passei pro Otavio

Descobri que esse bug de chamar o metodo duas vezes só ocorre quando não é definido uma pagina pra esse metodo

Quando vc cria a pagina jsp ele chama corretamente apenas uma vez

Na versao 3.5.1 ele sempre chama uma vez, independente de ter pagina ou nao, quando nao tem pagina aparece apenas a mensagem que a pagina nao existe, no 3.5.2 ele chama duas vezes e a pagina fica em branco

Bruno Rota

unread,
Sep 24, 2013, 9:25:37 PM9/24/13
to caelum-...@googlegroups.com
OBS: Descobri isso com a ajuda do Otávio

Carlos Alberto Junior Spohr Poletto

unread,
Sep 26, 2013, 2:32:24 PM9/26/13
to caelum-...@googlegroups.com
Buenas senhores,

Estava conversando com o Dipold antes, e só colocando o meu relato aqui...

Migrei a versão do vraptor na minha aplicação para 3.5.2 juntamente com a versão do Hibernate 4.2.5.Final, e não tive problemas, exceto que o repositório do Maven o plugin do Otávio 'vraptor-jpa' está desatualizado...ao fazer um clone e recompilar com o maven localmente funcionou 100%.

Eu uso as interfaces da JPA puramente e não tive problemas, nos módulos de relatórios do Jasper, eu obtenho a Session através da EntityManager.getDelegate() de boa.

Enfim, apenas um feed aqui no fórum referente aos bugs nesta versão.

On Friday, September 20, 2013 12:53:54 AM UTC-3, Bruno Rota wrote:
Boa noite

Eu atualizei a versao do VRaptor para a 3.5.2 eu estava utilizando a 3.5.1, atualizei devido a um bug que tinha na versao anterior em relação a upload de arquivos.

Após atuaizar para a versao 3.5.2, o criar de session e session factory ficou doidao, eu gerencio a transação da seguinte maneira

package br.com.rotamotors.transacoes;

import org.hibernate.Session;
import org.hibernate.Transaction;

import br.com.caelum.vraptor.Intercepts;
import br.com.caelum.vraptor.Lazy;
import br.com.caelum.vraptor.core.InterceptorStack;
import br.com.caelum.vraptor.interceptor.Interceptor;
import br.com.caelum.vraptor.resource.ResourceMethod;

@Intercepts
@Lazy
public class TransactionInterceptor implements Interceptor {

private final Session session;

public TransactionInterceptor(Session session) {
this.session = session;
}

public void intercept(InterceptorStack stack, ResourceMethod method,
Object instance) {
Transaction transaction = null;

try {

try{
transaction = session.beginTransaction();
}catch(Exception e){
e.printStackTrace();
}

stack.next(method, instance);
transaction.commit();

} finally {
if (transaction.isActive()) {
transaction.rollback();
}
}
}

public boolean accepts(ResourceMethod method) {
return  method
                .getMethod() //metodo anotado
                .isAnnotationPresent(Transactional.class)
            || method
                .getResource() //ou recurso anotado
                .getType()
                .isAnnotationPresent(Transactional.class);
}
}

--------------------------------------------------------------------------------------

package br.com.rotamotors.factory;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.service.ServiceRegistryBuilder;

import br.com.caelum.vraptor.ioc.ApplicationScoped;
import br.com.caelum.vraptor.ioc.Component;
import br.com.caelum.vraptor.ioc.ComponentFactory;

@Component
@ApplicationScoped
public class CriadorDeSessionFactory implements 
    ComponentFactory<SessionFactory> {

  private SessionFactory factory;

  @PostConstruct
  public void abre() {
 
 Configuration configuration = new Configuration();

 configuration.configure();

 ServiceRegistry serviceRegistry = new ServiceRegistryBuilder().applySettings(configuration.getProperties()).buildServiceRegistry();
 
 this.factory = configuration.buildSessionFactory(serviceRegistry);
  }
  
  public SessionFactory getInstance() {
    return this.factory;
  }
 
  @PreDestroy
  public void fecha() {
    this.factory.close();
  }
}

-------------------------------------------------------------

package br.com.rotamotors.factory;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import br.com.caelum.vraptor.ioc.Component;
import br.com.caelum.vraptor.ioc.ComponentFactory;

@Component
public class CriadorDeSession implements ComponentFactory<Session> {

  private final SessionFactory factory;
  private Session session;

  public CriadorDeSession(SessionFactory factory) {
    this.factory = factory;
  }

  @PostConstruct
  public void abre() {
    this.session = factory.openSession();
  }
  
  public Session getInstance() {
    return this.session;
  }
  
  @PreDestroy
  public void fecha() {
    this.session.close();
  }
}

---------------------------------------------------------------

Meu metodo do controller

@Transactional
public void adicionarPerfils(){

Perfil perfil1 = new Perfil();
perfil1.setId(1);
perfil1.setDescricao("ANUNCIANTE");
Perfil perfil2 = new Perfil();
perfil2.setId(2);
perfil2.setDescricao("REVENDEDOR");
Perfil perfil3 = new Perfil();
perfil3.setId(3);
perfil3.setDescricao("ADMIN");
perfilBO.adicionar(perfil1);
perfilBO.adicionar(perfil2);
perfilBO.adicionar(perfil3);
}

-----------------------------------------

PerfilBO


@Component
public class PerfilBOImpl implements PerfilBO{

private Session session;
public PerfilBOImpl(Session session){
this.session = session;
}
public void adicionar(Perfil perfil){
session.save(perfil);
}

---------------------------------------------------

Bom vamos lá, na versão 3.5.1, funcionava tudo direitinho, após atualizar a versão para a 3.5.2 eu obtenho o seguinte erro ao tentar inserir um objeto

23:50:06,933 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) UsuarioBO: br.com.rotamotors.businessobjects.UsuarioBOImpl@6a869709
23:50:06,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) org.hibernate.TransactionException: nested transactions not supported
23:50:06,950 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:152)
23:50:06,950 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1426)
23:50:06,950 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.rotamotors.transacoes.TransactionInterceptor.intercept(TransactionInterceptor.java:30)
23:50:06,951 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.core.LazyInterceptorHandler.execute(LazyInterceptorHandler.java:59)
23:50:06,951 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
23:50:06,952 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.interceptor.ResourceLookupInterceptor.intercept(ResourceLookupInterceptor.java:69)
23:50:06,952 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
23:50:06,953 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
23:50:06,953 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.core.EnhancedRequestExecution.execute(EnhancedRequestExecution.java:44)
23:50:06,954 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.VRaptor$1.insideRequest(VRaptor.java:91)
23:50:06,954 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.caelum.vraptor.ioc.guice.GuiceProvider.provideForRequest(GuiceProvider.java:82)
23:50:06,954 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at br.com.c


--------------------------------------

Esse exception é lançada na hora de abrir a transação dentro do meu interceptor

try{
transaction = session.beginTransaction();
}catch(Exception e){
e.printStackTrace();
}

--------------------------------------------------------

Eu reparei que da versao 3.5.1 para a 3.5.2 apenas o jar gson foi alterado de versao, na versao 3.5.1 ele usa o gson-2.2.1.jar e na 3.5.2 gson-2.2.4.jar, para testar se era esse jar que estava dando problema, eu utilizei o vraptor 3.5.2 porem com o  gson-2.2.1.jar que era da versão anterior, e nao funcionou também.

Esse problema deve estar ligado a versao do vraptor 3.5.2, pois na versão 3.5.1 funciona sem problemas.

Alguém tem idéia do que pode ser?

Obrigado pela atenção.

Valeww

Otávio Garcia

unread,
Sep 26, 2013, 2:33:41 PM9/26/13
to caelum-...@googlegroups.com
Vou pedir para o Lucas gerar uma versão :)


2013/9/26 Carlos Alberto Junior Spohr Poletto <carlos...@gmail.com>

Bruno Rota

unread,
Sep 26, 2013, 2:34:56 PM9/26/13
to caelum-...@googlegroups.com
Opa Otávio, show de bola, quando sair a versão avisa aqui no grupo.

Otávio Garcia

unread,
Sep 26, 2013, 3:33:30 PM9/26/13
to caelum-...@googlegroups.com
Feito, é só aguardar a sincronização do maven.

Carlos, o plugin não é meu. O vraptor-jpa é da caelum :)


2013/9/26 Bruno Rota <brunor...@gmail.com>

Bruno Rota

unread,
Sep 26, 2013, 3:35:23 PM9/26/13
to caelum-...@googlegroups.com
Fera d+

Valeww =D

Bruno Rota

unread,
Sep 26, 2013, 3:35:58 PM9/26/13
to caelum-...@googlegroups.com
Otávio mais como vai sair

Vai ser uma versão 3.5.3?

Valeww

Lucas Cavalcanti

unread,
Sep 26, 2013, 3:38:22 PM9/26/13
to caelum-vraptor
o plugin da jpa saiu com a versão 1.0.1

a versão 3.5.3 do VRaptor deve sair em breve.


2013/9/26 Bruno Rota <brunor...@gmail.com>

Carlos Alberto Junior Spohr Poletto

unread,
Sep 26, 2013, 4:19:47 PM9/26/13
to caelum-...@googlegroups.com
OK.

@Otavio, apenas um equívoco. ;) 


2013/9/26 Lucas Cavalcanti <lucasm...@gmail.com>



--
Atenciosamente,

Carlos Alberto Junior Spohr Poletto

Bruno Rota

unread,
Sep 26, 2013, 4:24:56 PM9/26/13
to caelum-...@googlegroups.com
Então Carlos, o "bug" não é o Vraptor com o Hibernate 4.2, na hora que eu criei o tópico eu achei que fosse, porém analisando depois, com ajuda do grupo, foi verificado que o problema não era esse e sim outro.

Se verificar as mensagens do tópico você vai entender melhor.

valeww


Carlos Alberto Junior Spohr Poletto

unread,
Sep 26, 2013, 4:29:19 PM9/26/13
to caelum-...@googlegroups.com
Sim, eu tinha lido que era o caso do JSP.

Mas o caso da falta de um arquivo JSP, é apenas um erro que pode acontecer durante do dev, tipo a diferença entre o nome do método e do arquivo JSP respectivo.

Não vi ocorrer com requests AJAX ou JSON por exemplo.


2013/9/26 Bruno Rota <brunor...@gmail.com>



--
Atenciosamente,

Carlos Alberto Junior Spohr Poletto

Otávio Garcia

unread,
Sep 26, 2013, 4:32:13 PM9/26/13
to caelum-...@googlegroups.com
Bruno, você tem alguma error-page configurada no web.xml?


2013/9/26 Carlos Alberto Junior Spohr Poletto <carlos...@gmail.com>

Bruno Rota

unread,
Sep 26, 2013, 4:41:31 PM9/26/13
to caelum-...@googlegroups.com
Otávio, não por enquanto não configurei

Lucas Cavalcanti

unread,
Sep 30, 2013, 8:56:28 PM9/30/13
to caelum-vraptor

Bruno Rota

unread,
Sep 30, 2013, 9:28:25 PM9/30/13
to caelum-...@googlegroups.com
Lucas,

Testado e funcionando perfeitamente =)

Valewwwwwww

Marcos Filho

unread,
Sep 30, 2013, 9:54:35 PM9/30/13
to caelum-...@googlegroups.com
vai liberar essa nova versão @lucas?

Lucas Cavalcanti

unread,
Sep 30, 2013, 10:11:49 PM9/30/13
to caelum-vraptor
Essa é a idéia ;)

Só vamos fazer mais uns testes.

2013/9/30 Marcos Filho <mar...@ffm.com.br>

Rafael Ponte

unread,
Oct 1, 2013, 6:50:49 AM10/1/13
to caelum-...@googlegroups.com

Qual era o tal do bug, Lucas?

Bruno Rota

unread,
Oct 1, 2013, 7:41:36 AM10/1/13
to caelum-...@googlegroups.com
Rafael, o bug que eu achei era que no VRaptor 3.5.2 quando você criava um método no controller e não criava sua respectiva jsp, ele chamava o método 2 vezes e não dava a mensagem de página não encontrada.

Bruno Rota

unread,
Oct 1, 2013, 7:41:57 AM10/1/13
to caelum-...@googlegroups.com
Agora não sei se na versão 3.5.3 vai vir com alguma outra correção.

Lucas Cavalcanti

unread,
Oct 1, 2013, 10:36:48 AM10/1/13
to caelum-vraptor
Até agora foi só essa correção, mesmo.


2013/10/1 Bruno Rota <brunor...@gmail.com>

Eldio Santos Jr.

unread,
Oct 1, 2013, 10:55:35 AM10/1/13
to caelum-...@googlegroups.com
Lucas, só por curiosidade, pode dizer o que estava gerando esse problema?
Eldio Santos Junior
Tel.: (21) 8884-3757
Skype: eldiojr
Twitter: @eldius
Página pessoal: http://eldiosantos.net
                        http://eldiosantos.net/sobre/ 
Email/GTalk: eldio...@gmail.com

Lucas Cavalcanti

unread,
Oct 1, 2013, 12:49:22 PM10/1/13
to caelum-vraptor
https://github.com/caelum/vraptor/commit/8b803a9b3b9e68ac171e7adba5e197ca2c00ca5f

Por causa de um erro que estava acontecendo no WildFly com o plugin de CDI pro VRaptor, a gente mudou os forwards para usar o request original ao invés do request que o VRaptor decorou.

O problema é que quando a gente faz o request.getRequestDispatcher().forward(request, response);, o container muda o request e o response que estão wrappeados. A gente não sabia desse comportamento, daí quando passou a usar o getOriginalRequest(), o container mudava o request original e o VRaptor não ficava sabendo.

Daí quando a requisição passava pelo VRaptor de novo para procurar a jsp que não existe, ele achava que ainda era a primeira request e processava tudo de novo.

Não sei se deu pra entender, mas é o tipo de problema que vc nunca chutaria que ia acontecer.


2013/10/1 Eldio Santos Jr. <eldio...@gmail.com>
Reply all
Reply to author
Forward
0 new messages