Galera eu tenho um relatório , e o seguinte problema, em um determinado ponto a pagina para de ser executada. Não sei o motivo, eu utilizava o Tom Cat 5.0.30 ja mudei para o TomCat 5.0.28.
não executa nada…tem oque tem depois do while para!!
o meu codigo do relatório esta assim :
<table width="686" border="0" cellspacing="0">
<%
String data = new String();
String codrep = new String();
String codcli = new String();
String seqcli = new String();
String processo = new String();
double totais=0,totaisrep=0,totaisval=0,totaisvalrep=0;
while (rs.next()) {
if (!(codcli.equals(rs.getString("CODCLI")) ) || (! seqcli.equals(rs.getString("SEQCLI")))){
if(!codrep.equals("")){%>
<tr align="center" class="Titulos" >
<td height="10" align="left" colspan="3" style="border-left:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;"> <strong>&nbsp;&nbsp;Total em metros por cliente :</strong></td>
<td colspan="2" align="left" style="border-bottom:1px solid #000000;border-top:1px solid #000000;"><%=formatadorNum.format(totais)%> </td>
<td colspan="5" align="left" style="border-bottom:1px solid #000000;border-top:1px solid #000000;"><strong>Total em valores por cliente. : </strong></td>
<td colspan="2" align="left" style="border-right:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;"><%=formatadorNum.format(totaisval)%> &nbsp;</td>
</tr>
<% totais = 0;
totaisval = 0;}
if (!(codrep.equals(rs.getString("CODREP")))){
if(!codrep.equals("")){
%>
<tr align="center" class="Titulos" >
<td height="10" align="left" colspan="3" style="border-left:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;"> <strong>&nbsp;&nbsp;Total em metros por rep. :</strong></td>
<td colspan="2" align="left" style="border-bottom:1px solid #000000;border-top:1px solid #000000;"><%=formatadorNum.format(totaisrep)%> </td>
<td colspan="5" align="left" style="border-bottom:1px solid #000000;border-top:1px solid #000000;"><strong>Total em valores por rep. : </strong></td>
<td colspan="2" align="left" style="border-right:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;"><%=formatadorNum.format(totaisvalrep)%> &nbsp;</td>
</tr><%}%>
<tr align="center" class="Titulos" bgcolor="#E8E8E8" >
<td height="30" align="left" colspan="2" style="border-left:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;" > <strong><em>&nbsp;&nbsp;Representante : </em></strong></td>
<td height="30" colspan="10" align="left" style="border-right:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;"><%=rs.getString("CODREP")%> - <%=rs.getString("NOMREP")%></td>
</tr>
<%totaisrep=0;
totaisvalrep = 0;} %>
<tr align="center" class="Titulos" bgcolor="#E8E8E8" >
<td height="10" align="left" colspan="2" style="border-left:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;"> <strong><em>&nbsp;&nbsp;Cliente : <%=rs.getString("CODCLI")%>-<%=rs.getString("SEQCLI")%></em></strong></td>
<td colspan="10" align="left" style="border-right:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;"><%=rs.getString("NOMCLI")%> </td>
</tr>
<tr align="center" class="Titulos" >
<td width="11%" height="20" class="Titulos">Pedido</td>
<td width="13%" height="20" class="Titulos">Data</td>
<td width="13%" height="20" class="Titulos">Ordem</td>
<td width="6%" class="Titulos">Cor</td>
<td width="15%" colspan="2" class="Titulos">Desenho</td>
<td width="4%" class="Titulos">Var</td>
<td width="4%" class="Titulos">Aca</td>
<td width="3%" class="Titulos">S</td>
<td width="11%" height="20" class="Titulos">Quantidade</td>
<td width="15%" height="20" class="Titulos">Pre&ccedil;o Unit. </td>
<td width="5%" class="Titulos" style="border-right:1px solid #000000;">P</td>
</tr>
<%}%>
<% totais += rs.getFloat("QTDE");
totaisval += rs.getFloat("QTDE") * rs.getFloat("PRECO"); %>
<tr align="center" class="RegColuna">
<td width="11%" height="20" class="Registros" ><%=rs.getString("NUMPED")%></td>
<td width="13%" height="20" class="Registros"><%=formatadordata.format(rs.getDate("DATAPED"))%></td>
<td width="13%" height="20" class="Registros"><%=rs.getString("ORDEM")%></td>
<td width="6%" class="Registros"><%=rs.getString("COR")%></td>
<td width="15%" colspan="2" class="Registros"><%=rs.getString("DESENHO")%></td>
<td width="4%" class="Registros"><%=rs.getString("VARIANTE")%></td>
<td width="4%" class="Registros"><%=rs.getString("ACABAM")%></td>
<td width="3%" class="Registros"><%=rs.getString("STATUS")%></td>
<td width="11%" height="20" class="Registros"><%=formatadorNum.format(rs.getFloat("QTDE"))%></td>
<td width="15%" height="20" class="Registros"> <%=formatadorNum.format(rs.getFloat("PRECO"))%></td>
<td class="Registros" style="border-right:1px solid #000000;"><%=rs.getString("PROCESSOAUX")%></td>
</tr>
<%
totaisrep += rs.getFloat("QTDE");
totaisvalrep += rs.getFloat("QTDE") * rs.getFloat("PRECO");
codcli = rs.getString("CODCLI");
seqcli = rs.getString("SEQCLI");
codrep = rs.getString("CODREP");
} %>
<tr align="center" class="Titulos" >
<td height="10" align="left" colspan="3" style="border-left:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;"> <strong>&nbsp;&nbsp;Total em metros por cliente :</strong></td>
<td colspan="2" align="left" style="border-bottom:1px solid #000000;border-top:1px solid #000000;"><%=formatadorNum.format(totais)%> </td>
<td colspan="5" align="left" style="border-bottom:1px solid #000000;border-top:1px solid #000000;"><strong>Total em valores por cliente. : </strong></td>
<td colspan="2" align="left" style="border-right:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;"><%=formatadorNum.format(totaisval)%> </td>
</tr>
<tr align="center" class="Titulos">
<td height="10" align="left" colspan="3" style="border-left:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;"> <strong>&nbsp;&nbsp;Total em metros por rep. :</strong></td>
<td colspan="2" align="left" style="border-bottom:1px solid #000000;border-top:1px solid #000000;"><%=formatadorNum.format(totaisrep)%> </td>
<td colspan="5" align="left" style="border-bottom:1px solid #000000;border-top:1px solid #000000;"><strong>Total em valores por rep. : </strong></td>
<td colspan="2" align="left" style="border-right:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;"><%=formatadorNum.format(totaisvalrep)%> &nbsp;</td>
</tr>
</table>
se alguem souber algum motivo para ele parar de executar a minha pagina, eu agradeceria.
muito grato!!