tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago H. de Paula Figueiredo" <thiag...@gmail.com>
Subject Re: org.apache.tapestry5.runtime.ComponentEventException
Date Tue, 01 Mar 2011 12:37:12 GMT
On Tue, 01 Mar 2011 09:35:00 -0300, robnangle <robnangle@gmail.com> wrote:

> Ye I noticed that but cant see what could be wrong with that line:
>
> Line 245:
> String statement = "INSERT INTO teams(user_id, team_name, keeper,  
> fullBack1,
> fullBack2, fullBack3, halfBack1, halfBack2, halfBack3, midfield1,  
> midfield2,
> halfForward1, halfForward2, halfForward3, fullForward1, fullForward2,
> fullForward3) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
> 		
> Line 246:
> prep = conn.prepareStatement(statement);

The conn variable seems to be null. And are you sure you want JDBC code in  
a Tapestry page?

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Mime
View raw message