Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Streaming data to html problem

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Streaming data to html problem

    Hi,

    I am retriving a large queryset back to a vector that needs to stream to html but when the vector has over a few hundred records the page is timing out, can anyone advise of the best solution would be, is there a way of paging a vector.

    I am looping through each element in the vector and doing an out.println() with the results in to a table.

    It works if I only loop 50 times but not 500.

    See a bit of the errorlog below

    ClientAbortException: java.io.IOException
    at org.apache.catalina.connector.OutputBuffer.realWri teBytes(OutputBuffer.java:358)
    at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(B yteChunk.java:434)
    at org.apache.tomcat.util.buf.ByteChunk.append(ByteCh unk.java:293)


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Streaming data to html problem

    Please do not double post. Your other thread has been deleted

  3. The Following User Says Thank You to copeg For This Useful Post:

    adec (February 10th, 2012)

  4. #3
    Member
    Join Date
    Oct 2011
    Posts
    36
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Re: Streaming data to html problem

    I am studying servlet now. As I know, your problem might be caused by limit of outputbuffer size. You can also set max rows for each query and run query for serveral times, not only one time.

    I hope this will be useful.

Similar Threads

  1. Problem to get info from HTML file
    By zecute in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: May 19th, 2011, 04:57 AM
  2. [SOLVED] Get data from HTML file
    By zecute in forum What's Wrong With My Code?
    Replies: 0
    Last Post: May 8th, 2011, 09:12 AM
  3. Streaming Raw Data to a Client - huge message loss
    By MarkusTandy in forum Java Networking
    Replies: 0
    Last Post: February 19th, 2011, 07:41 PM
  4. Any way to write html form data to file?
    By nathan.fortier@gmail.com in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: January 14th, 2011, 03:03 PM