Big picture is: an input file is split into certain blocks, those blocks are given certain order and are re-combined to form a file again. Then an executable is run on them and results are generated. These results are displayed on a file, and a list is provided to the user to download. If not, the next step would zip those files and send an email to the user as an attachment and then delete the files on the server.
Problem: it works fine, however, with larger files (1GB), it displays the files to download, but on the next step I am getting this error message:
I have checked the log file ( i am using log4j ), and it is showing this error:
I am suspecting it is happneing becuase of session time out, because it is running fine with the smaller files. Can I get some help here ? If I need to post my code here or if I need to explain more, please let me know.
2007-06-26 15:47:14,814 INFO [formjavabean.application] (step 12)Deleting files on the server - starts
2007-06-26 15:47:14,939 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/RLFA].[jsp]] Servlet.service() for servlet jsp threw exception
Not sure whether this is a session timeout issue. As per the logs, while deleting the files on the server, null is being passed to the Integer.parseInt method, which is causing this NumberFormatException. You might have to check why the null is being passed to that method.
The session-timeout value is in minutes. As per the web.xml dtd
If the timeout is 0 or less, the container ensures the default
behaviour of sessions is never to time out.
and here is my send mail method:
Can anyone help me figure out the problem ? log file also suggest : illegal address, and then produces the error listed above. I fail to understand, how is running fine with smaller input files and not with larger files. I have tried using negative session time out time, it works but now it is sending an email with the result.zip (the size of the file is not right). I can see the size as 109KB on the server, but the attached result.zip is just 9KB.
Someone, please help.
[ July 04, 2007: Message edited by: Nasir Munir ]