tags:

views:

738

answers:

6

I have a JSP accessed through JBoss. It renders a list (a search result). If the response gets big, approximately larger than 200k the response is truncated. I can see how the page just ends in the middle of a tag in Firefox. IE totally freaks out an so does Fiddler. Responses smaller than 200k are no problem.

Anyone has experienced this? I don't know where to look for the problem... any suggestions are welcome.

A: 

Maybe it has something to do with flushing the buffer? thath number (200k) ringed the bell of a problem I had with it. Place a page directive like this:

<%@page buffer="500kb" autoFlush="true" %>

and play with the buffer size and autoflush values.

Victor
A: 

Thanks for your answer! Unfortunately - it didn't work. I have tried it but the issue remains at about 200kb. And it turns out the default buffer is only 8kb... so I suppose it is not the buffer size that causes this.

More suggestions?

Malin
+1  A: 

If your JSP renders a very complex html page, then it might just be the browsers tripping over their own feet. Can you retrieve the page via wget or curl? Is it truncated then, too?

Henning
A: 

I second Henning's suggestion. I have used JSPs on JBoss to return multi megabyte responses, I would look at the code or possibly an intermediate proxy server rather than JBoss.

Tony BenBrahim
A: 

Thank you all again. During the pasted days I've experienced a disk crash, vomiting children and a trip to Spain.

Since the disk crash I cannot reproduce this behavior! I have not lost any code and I have the exact same JBoss. But I have a slightly different Java and Firefox version. No Fiddler installed (although I had it turned off on my old machine).

I still have no clue what caused it. But also I don't care anymore :P

Malin
A: 

Does anyone find a solution to this? I am facing similar issue without any success.

Thanks Chirag

Chirag
You should have opened a new topic for this wherein you eventually references this topic as a link. I can only give a hint here: what does the appserver logs say? Any overseen exceptions caused by some raw Java code (scriptlets) in a JSP file?
BalusC