S
sangha
Hi,
We are facing a problem when we try to store a excel file in session
and then retrive it from the session.
Everything works fine if we hit the URL on the server directly but when
we go via a proxy, then things fail.
-----------------------------------------------------------------------------------------------------------------
OutputStream output=new ByteArrayOutputStream();
ExcelHolder exHold = new ExcelHolder(); // This class implements
serializable interface
try {
bulkUploadId =
bulkUp.readAndValidateValues(bulkUploadForm.getUploadFile().getInputStream(),output);
}
catch (Exception e) {
exHold.setOutput(output);
request.getSession().setAttribute("ExcelErrorFile",exHold);
saveErrors(request,errors);
return mapping.findForward(bulkUploadForm.getPageRequested());
}
--------------------------------------------------------------------------------------------------
The error that we get is:
<Web application:
ServletContext(id=30100074,name=switchorder,context-path=) tried to
place a non-
serializable attribute: ExcelErrorFile into the session:
GTvL76KxG65FFsBH1w0vRrCG1jjhfTQGY8yjtSh2qcc1h51HpYbM!1750552768!4950
38327!1141829512839. This attribute will be lost upon redeployment or
session failover. Also, such attributes will be scoped
to the current server only and will not be replicated to the secondary
server. This message is logged only once per session.>
Any help will be appreciated.
Thanks,
Sangha
We are facing a problem when we try to store a excel file in session
and then retrive it from the session.
Everything works fine if we hit the URL on the server directly but when
we go via a proxy, then things fail.
-----------------------------------------------------------------------------------------------------------------
OutputStream output=new ByteArrayOutputStream();
ExcelHolder exHold = new ExcelHolder(); // This class implements
serializable interface
try {
bulkUploadId =
bulkUp.readAndValidateValues(bulkUploadForm.getUploadFile().getInputStream(),output);
}
catch (Exception e) {
exHold.setOutput(output);
request.getSession().setAttribute("ExcelErrorFile",exHold);
saveErrors(request,errors);
return mapping.findForward(bulkUploadForm.getPageRequested());
}
--------------------------------------------------------------------------------------------------
The error that we get is:
<Web application:
ServletContext(id=30100074,name=switchorder,context-path=) tried to
place a non-
serializable attribute: ExcelErrorFile into the session:
GTvL76KxG65FFsBH1w0vRrCG1jjhfTQGY8yjtSh2qcc1h51HpYbM!1750552768!4950
38327!1141829512839. This attribute will be lost upon redeployment or
session failover. Also, such attributes will be scoped
to the current server only and will not be replicated to the secondary
server. This message is logged only once per session.>
Any help will be appreciated.
Thanks,
Sangha