File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to avoid response.getOutputStream() exception

 
kotha vijaybabu
Ranch Hand
Posts: 77
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai

iam getting response.getOutputStream() has been already called exception
in my action class.
but i didnot called that in my project
that is coming from other code which is not accessible for me

so my question is how can i avoid that exception
it is creating much problem in my code while updating database

thanks in advance

vijay
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you need to get the output stream to update the database ? Can you post code here ?
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
response.getOutputStream() is used to reply raw bytes to client. How can It be realted with DB?

outputStream can be get only once for response. If you try to get second time you will get exception. You cannot avoid it.

Can you explain little bit about your problem?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic