Hibernate Mentawai

Deixei o HibernateFiter pra lá e to tentando usar Hibernate direto:

Meu action:

//MeuEspaco.addUsuario this.action( "MeuEspaco" , MeuEspacoAction.class , "addPessoa" ) .on( MeuEspacoAction.SUCCESS , fwd( "MeuEspaco.pessoaCadastrada.jsp" ) );

Minha função:

[code] public String addPessoa() throws Exception {
Pessoa pessoa = new Pessoa();
pessoa.setNome( input.getStringValue( “nome” ) );
HibernatePessoaDAO pessoaDAO = new HibernatePessoaDAO();
try{
pessoaDAO.inserir( pessoa );
}catch( Exception e ){

	}		
	return SUCCESS;
}[/code]

PessoaDAO:

public void inserir( Pessoa pessoa ) throws Exception { Session session = HibernateUtil.currentSession(); Transaction transaction = session.beginTransaction(); //Object r = null; try{ //r = session.save( pessoa ); session.save( pessoa ); transaction.commit(); //return (Long) r; }catch( Exception e ){ transaction.rollback(); System.out.println( e.toString() ); }finally { HibernateUtil.closeSession(); } //return null; }

Exception:

[code]description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.reflect.InvocationTargetException
org.mentawai.core.Controller.service(Controller.java:313)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

org.mentawai.core.ActionException: java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.mentawai.core.InvocationChain.invoke(InvocationChain.java:105)
org.mentawai.core.Controller.invokeAction(Controller.java:340)
org.mentawai.core.Controller.service(Controller.java:288)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
[/code]

Alguém pode me ajudar? :wink:

PS: Rodei no main, ele tá persistindo normal…

Não achei solução em lugar algum… :shock: