RE: Large XML File as Generator
No the generator was a regular XML document. Since I'm writing a web based TV grid it was easier (and made more sense) to just put this large amount of XML data into my database then use XSP to just query it out. Works much faster.. and works really well too! I've got a complete grid with channel paging and everything. The only problems Ive run into so far is that some programs you get from XMLTV dont specify a stop time.. so if something doesnt have a stop time I dont have any way of getting the duration. Anyways.. problem solved (sorta) .. dont use a 6MB XML file as a generator :) Thanks, - Brent > -Original Message- > From: Hugo Burm [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 29, 2004 12:40 PM > To: [EMAIL PROTECTED] > Subject: RE: Large XML File as Generator > > > You did refer to XSP below, so, is it an XSP or an XML file > (are you using "file" or "serverpages" in the generator)? An > XSP file will be compiled into a Java class which cannot be > larger than 64 kb. May be your are including your large XML > file into your XSP file. > > Hugo Burm > > > > > -Original Message- > > From: Brent L Johnson [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, January 27, 2004 9:32 PM > > To: [EMAIL PROTECTED] > > Subject: Large XML File as Generator > > > > > > Does anyone know why I get the following when I attempt to > use a large > > XML file as a generator? (a blank page in my browser that > looks like > > this...) > > > > > > > > > > I get no errors or anything else.. this only happens with > large files. > > If I cut the file down it works just fine. I've seen this > behavior on > > different machines for different projects (the last time > was trying to > > use XSP/esql to process about 10K database rows). > > > > I'm using Cocoon to process XMLTV results to view > > a television grid. I have DirecTV with quite a few > > channels, and 7 days of TV data in XML format turns out > > to be a 5.8MB file. > > > > I think I'll probably just write something that just > > parses this file and dumps the data into a database > > and go from there.. but this is the second time I've noticed this > > behavior. > > > > Thanks, > > > > - Brent > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Large XML File as Generator
You did refer to XSP below, so, is it an XSP or an XML file (are you using "file" or "serverpages" in the generator)? An XSP file will be compiled into a Java class which cannot be larger than 64 kb. May be your are including your large XML file into your XSP file. Hugo Burm > -Original Message- > From: Brent L Johnson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 27, 2004 9:32 PM > To: [EMAIL PROTECTED] > Subject: Large XML File as Generator > > > Does anyone know why I get the following when I attempt to > use a large XML file as a generator? (a blank page in my > browser that looks like this...) > > > > > > > I get no errors or anything else.. this only happens with > large files. If I cut the file down it works just fine. > I've seen this behavior on different machines for different > projects (the last time was trying to use XSP/esql to process > about 10K database rows). > > I'm using Cocoon to process XMLTV results to view > a television grid. I have DirecTV with quite a few > channels, and 7 days of TV data in XML format turns out > to be a 5.8MB file. > > I think I'll probably just write something that just > parses this file and dumps the data into a database > and go from there.. but this is the second time I've noticed > this behavior. > > Thanks, > > - Brent > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Large XML File as Generator
Hello Brent, May be it is because pipeline of default configuration loads whole content in memory. There are some recommendation on serving large files on wiki: http://wiki.cocoondev.org/Wiki.jsp?page=ServingLargeFiles BLJ> (anyone know why Im having problems sending email to this mailing list? BLJ> anyone else having any similar problems lately?) BLJ> Does anyone know why I get the following when I attempt to BLJ> use a large XML file as a generator? (a blank page in my browser that BLJ> looks like this...) BLJ> BLJ> > BLJ> I get no errors or anything else.. this only happens with BLJ> large files. If I cut the file down it works just fine. BLJ> I've seen this behavior on different machines for different projects BLJ> (the last time was trying to use XSP/esql to process about 10K database BLJ> rows). BLJ> I'm using Cocoon to process XMLTV results to view BLJ> a television grid. I have DirecTV with quite a few BLJ> channels, and 7 days of TV data in XML format turns out BLJ> to be a 5.8MB file. BLJ> I think I'll probably just write something that just BLJ> parses this file and dumps the data into a database BLJ> and go from there.. but this is the second time I've noticed this BLJ> behavior. BLJ> Thanks, BLJ> - Brent BLJ> - BLJ> To unsubscribe, e-mail: [EMAIL PROTECTED] BLJ> For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Peter Velychko [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Large XML File as Generator
Brent L Johnson wrote: Does anyone know why I get the following when I attempt to use a large XML file as a generator? (a blank page in my browser that looks like this...) I get no errors or anything else.. this only happens with large files. If I cut the file down it works just fine. I've seen this behavior on different machines for different projects (the last time was trying to use XSP/esql to process about 10K database rows). Where have you looked for the errors? Make sure you look in your servlet container (jetty, tomcat, whatever) logs, as well as all cocoon logs. The console (depending on how you started the container) may have some as well. Generally I think empty pages like that happen under some error conditions I don't quite remember. Maybe when no handle-errors section is defined? Maybe under really bad exceptions like out of memory (which is likely to be your problem here). Geoff I'm using Cocoon to process XMLTV results to view a television grid. I have DirecTV with quite a few channels, and 7 days of TV data in XML format turns out to be a 5.8MB file. I think I'll probably just write something that just parses this file and dumps the data into a database and go from there.. but this is the second time I've noticed this behavior. Thanks, - Brent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]