Hemanth Mummadi wrote:You must be trying to parse null somewhere in your servlet. Check that out. Information provided by you was insufficient, you can paste the code snippet which is causing this issue.
int i=1;
int t_cost=0;
while (rs.next())
{
String s = new Integer(i).toString();
table.addCell(s);
b1=rs.getString("I");
b2=rs.getString("IT");
table.addCell(b1+" and "+b2);
b3=rs.getString("Q");
table.addCell(b3);
b5=rs.getString("P");
table.addCell(b5);
i=i+1;
}
table.setSpacingAfter(30);
document.add(table);
String str= String.valueOf(t_cost);
table.setHorizontalAlignment(Element.ALIGN_LEFT);
p12.setAlignment(Element.ALIGN_RIGHT);