simpleweb-support Mailing List for Simple (Page 34)
Brought to you by:
niallg
You can subscribe to this list here.
2004 |
Jan
(1) |
Feb
(4) |
Mar
(2) |
Apr
(14) |
May
(22) |
Jun
(15) |
Jul
(9) |
Aug
(2) |
Sep
(7) |
Oct
(4) |
Nov
(2) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(7) |
Feb
(16) |
Mar
(17) |
Apr
|
May
(12) |
Jun
(4) |
Jul
(22) |
Aug
(50) |
Sep
(8) |
Oct
(23) |
Nov
(9) |
Dec
(50) |
2006 |
Jan
(6) |
Feb
(7) |
Mar
(8) |
Apr
(3) |
May
(13) |
Jun
(4) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
|
Nov
(6) |
Dec
(7) |
2007 |
Jan
(11) |
Feb
(3) |
Mar
(17) |
Apr
(21) |
May
(9) |
Jun
(4) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(8) |
Nov
(14) |
Dec
(3) |
2008 |
Jan
(3) |
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
(4) |
Aug
(4) |
Sep
(15) |
Oct
(9) |
Nov
(6) |
Dec
(2) |
2009 |
Jan
(29) |
Feb
(2) |
Mar
(8) |
Apr
(14) |
May
(4) |
Jun
(13) |
Jul
(5) |
Aug
|
Sep
|
Oct
(4) |
Nov
(3) |
Dec
(7) |
2010 |
Jan
|
Feb
(2) |
Mar
(61) |
Apr
(9) |
May
(10) |
Jun
(9) |
Jul
(10) |
Aug
(7) |
Sep
(15) |
Oct
(5) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
(11) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(4) |
Oct
|
Nov
(6) |
Dec
(9) |
2012 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(3) |
May
(2) |
Jun
|
Jul
(17) |
Aug
|
Sep
|
Oct
|
Nov
(10) |
Dec
(5) |
2013 |
Jan
(2) |
Feb
(4) |
Mar
|
Apr
(12) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(1) |
2014 |
Jan
|
Feb
(2) |
Mar
(6) |
Apr
|
May
|
Jun
(20) |
Jul
(12) |
Aug
(4) |
Sep
(3) |
Oct
(5) |
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Niall G. <nia...@an...> - 2004-07-15 08:47:32
|
Hi > I try to re-compile the Simple 2.5 but I get this error : > > > Information: 10 errors > > Information: 8 warnings > > C:\APPSERVER\src\simple\http\PlainPoller.java You must delete the PlainPoller.java class as it no longer exists in the new distribution and will not compile with the changes made. Niall |
From: bagas <ba...@in...> - 2004-07-15 07:44:20
|
Hi, I try to re-compile the Simple 2.5 but I get this error : Information: 10 errors Information: 8 warnings C:\APPSERVER\src\simple\http\PlainPoller.java Error: line (45) simple.http.PlainPoller is not abstract and does not override abstract method length() in simple.util.ByteStore Error: line (93) cannot resolve symbol constructor Poller (simple.http.Pipeline,int) Error: line (132) cannot resolve symbol variable buf Error: line (135) cannot resolve symbol variable buf Error: line (136) cannot resolve symbol method ensureCapacity (int) Error: line (139) cannot resolve symbol variable buf Error: line (146) cannot resolve symbol variable buf Error: line (149) cannot resolve symbol variable buf Error: line (153) cannot resolve symbol variable count Error: line (206) cannot resolve symbol variable count I wonder can you tell me the problem. Thank You -----Original Message----- From: sim...@li... [mailto:sim...@li...] On Behalf Of Niall Gallagher Sent: Wednesday, July 14, 2004 5:48 PM To: sim...@li... Subject: [Simpleweb-Support] Simple 2.5 Released Hi All, I have recently released version 2.5 which contains session support and various bug fixes. It can be downloaded at: http://simpleweb.sourceforge.net/download/2.5/ Niall ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <nia...@an...> - 2004-07-14 10:49:10
|
Hi All, I have recently released version 2.5 which contains session support and various bug fixes. It can be downloaded at: http://simpleweb.sourceforge.net/download/2.5/ Niall |
From: Niall G. <nia...@an...> - 2004-07-09 08:46:44
|
Hi > Would send handle(Request req, Response resp) return value first then > send response later cause any problems? There would be no problems with this. Have a look at the simple.http.load.ActiveService object, which is designed to do exactly this. > would somehow I can=E2=80=99t use the =E2=80=9CResponse resp=E2=80=9D? Not sure what you mean here. If you are having problems using the Response can you explain the problem. Niall |
From: bagas <ba...@in...> - 2004-07-09 03:52:30
|
Hi, Would send handle(Request req, Response resp) return value first then send response later cause any problems? I am writing a program that some how act like this : public void handle(Request req, Response resp) { /// from ProtocolHandler .. { new Thread() { public void run() { // do something that requires some time, so that http response will be send after the return value returned // //resp send something } }.start(); return true; } would somehow I can't use the "Response resp"? Thank you, Rahmat B. S |
From: Niall G. <ni...@em...> - 2004-06-23 11:05:15
|
Hi, > It would appear that DateParser doesn't take the local time zone into account when generating its string representation: I have had a look at the DateParser and it seems that getting a Calendar for a Locale such as Locale.UK or Locale.US does not affect the time generated by the Calendar. Since I am in GMT I did not verify this. I have changed DateParser such that it uses a TimeZone like this public DateParser(long date) { TimeZone zone = TimeZone.getTimeZone("GMT") Calendar calendar = Calendar.getInstance(zone); calendar.setTime(new Date(date)); // etc ... } Instead of public DateParser(long date) { Calendar calendar = Calendar.getInstance(Locale.UK); calendar.setTime(new Date(date)); // etc ... } Also, the DateParser.toLong method needs to be modified to replace Locale.UK with the correct time zone object. It sould work with these modifications, which I will include when I make the next release... Thanks for the feedback, Niall -- _______________________________________________ Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free! http://www.net2phone.com/cgi-bin/link.cgi?143 |
From: petite_abeille <pet...@ma...> - 2004-06-22 20:22:21
|
Hello, It would appear that DateParser doesn't take the local time zone into account when generating its string representation: new DateParser( System.currentTimeMillis() ).toString(); Tue, 22 Jun 2004 22:18:55 GMT Generates the correct time, but in my local time zone instead of GMT :/ Compare this with SimpleDateFormat: SimpleDateFormat aFormat = new SimpleDateFormat( "EEE, dd MMM yyyy HH:mm:ss 'GMT'" ); aFormat.setTimeZone( TimeZone.getTimeZone( "GMT" ) ); aFormat.format( new Date( System.currentTimeMillis() ) ); Tue, 22 Jun 2004 20:18:55 GMT What gives? Cheers, PA. |
From: Niall G. <nia...@an...> - 2004-06-22 15:42:52
|
Hi, As for the error below, this seems to be a new bug!! i have fixed it and it will be updated in the next release. Niall On Tue, 2004-06-22 at 16:24, Saxon FJELDSTED wrote: > Thanks!!! everything is working now. just some weird > error... below > > > > LoaderEngine engine = new MapperEngine(); > > > get a null pointer exception if using empty > constructor. this is the correct behaviour? > work fine if I pass in a context and container. > > Container container = new VelocityContainer(); > LoaderEngine engine = new MapperEngine( new > FileContext(), container); > > engine.link("*", "default"); > engine.load("my", "MyService", container); > engine.link("/service/my*", "my"); > > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Saxon F. <ts...@ya...> - 2004-06-22 15:24:25
|
Thanks!!! everything is working now. just some weird error... below > > LoaderEngine engine = new MapperEngine(); > get a null pointer exception if using empty constructor. this is the correct behaviour? work fine if I pass in a context and container. Container container = new VelocityContainer(); LoaderEngine engine = new MapperEngine( new FileContext(), container); engine.link("*", "default"); engine.load("my", "MyService", container); engine.link("/service/my*", "my"); __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail |
From: Niall G. <nia...@an...> - 2004-06-22 14:59:58
|
Hi > still not able to get it to work... > when prepare is call by MyService, the container is > null. The reason the container is null is because you are using the LoaderEngine.load method to load the service. The MapperEngine auto loads services and uses the object parameter to initialize the service. So instead of using > engine.link("*", "default"); > engine.load("my", "MyService"); > engine.link("/service/my*", "my"); Try using the following import simple.http.serve.*; import simple.http.*; import simple.http.connect.*; import simple.http.load.*; import simple.template.velocity.*; import simple.template.*; import java.net.*; public class Main { public static void main(String[] args) throws Exception { Container container = new VelocityContainer(); LoaderEngine engine = new MapperEngine(); engine.link("*", "default"); engine.load("my", "MyService", container); engine.link("/service/my*", "my"); ProtocolHandler handler = HandlerFactory.getInstance(engine); Connection connection = ConnectionFactory.getConnection(handler); connection.connect(new ServerSocket(8282)); } } |
From: Saxon F. <ts...@ya...> - 2004-06-22 13:53:14
|
still not able to get it to work... when prepare is call by MyService, the container is null. thanks so much for all the help. ----------------- public class Main { public static void main(String[] args) throws Exception { LoaderEngine engine = new MapperEngine( new FileContext(), new VelocityContainer()); engine.link("*", "default"); engine.load("my", "MyService"); engine.link("/service/my*", "my"); ProtocolHandler handler = HandlerFactory.getInstance(engine); Connection connection = ConnectionFactory.getConnection(handler); connection.connect(new ServerSocket(8282)); } } ----------------- public class MyService extends ReflectionService { private Container container; public MyService(Context context){ super(context); } public void prepare(Container container) { if (container == null) { System.out.println("null prepare"); } else { System.out.println("setting container"); } this.container = container; } public void process(Request req, Response resp) throws Exception { OutputStream out = resp.getOutputStream(); Document doc = container.lookup("test.vm"); doc.put("book", "hello world"); doc.write(out); out.close(); } } __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Niall G. <nia...@an...> - 2004-06-22 09:46:43
|
Hi, To use LoaderEngine with Velocity try this. // create a loader engine with the velocity container LoaderEngine engine = new MapperEngine(context, new VelocityContainer()); // make sure your service is a reflection service public MyService extends ReflectionService { priavte Container container; public MyService(Context context){ super(context); } public void prepare(Container container) { this.container = container; } public void process(Request req, Response resp) throws Exception { Document doc = container.lookup(""); doc.put("name", "value"); // etc .... } } Niall |
From: Saxon F. <ts...@ya...> - 2004-06-22 09:34:30
|
> import simple.http.serve.*; > import simple.http.*; > > import simple.template.BasicService; > > public class VelocityService extends BasicService { > > public VelocityService(Context context){ > this.context = context; > } > > public void process(Request req, Response resp) > throws Exception { > OutputStream out = resp.getOutputStream(); > String target = req.getURI(); system is an Environment object? its not in BasicService > Document doc = system.resolve(target); // can > be test.vm or whatever > > doc.("book", "Simpleweb Guide"); > doc.write(out); > > out.close(); > } > } > > // get every thing working > public static void main(String list[]) throws > Exception { > Context context = new FileContext(); > Container container = new VelocityContainer(); > TemplateEngine engine = new > TemplateEngine(context, container); > > Connection connection = > ConnectionFactory.getConnection(engine); > > conneciton.connect(new ServerSocket(8080)); > } I can't use LoaderEngine if I use TemplateEngine? > > To see this as a working implementation see > http://mambaweb.sf.net. The source is in the > mamba.jar JAR archive. __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail |
From: Niall G. <ni...@em...> - 2004-06-21 18:54:49
|
Hi > was reading through the template section ... but is > totally lost. can't get template to work. Yes, the documentation needs to be updated. > below is what i come up with... is it totally wrong? Not totally wrong, heres what is needed. import simple.http.serve.*; import simple.http.*; import simple.template.BasicService; public class VelocityService extends BasicService { public VelocityService(Context context){ this.context = context; } public void process(Request req, Response resp) throws Exception { OutputStream out = resp.getOutputStream(); String target = req.getURI(); Document doc = system.resolve(target); // can be test.vm or whatever doc.("book", "Simpleweb Guide"); doc.write(out); out.close(); } } // get every thing working public static void main(String list[]) throws Exception { Context context = new FileContext(); Container container = new VelocityContainer(); TemplateEngine engine = new TemplateEngine(context, container); Connection connection = ConnectionFactory.getConnection(engine); conneciton.connect(new ServerSocket(8080)); } To see this as a working implementation see http://mambaweb.sf.net. The source is in the mamba.jar JAR archive. Regards Niall -- _______________________________________________ Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free! http://www.net2phone.com/cgi-bin/link.cgi?143 |
From: Saxon F. <ts...@ya...> - 2004-06-21 17:02:33
|
was reading through the template section ... but is totally lost. can't get template to work. below is what i come up with... is it totally wrong? text.vm is in same directory as VelocityService.class and Main.class. -------------------- import simple.http.Request; import simple.http.Response; import simple.http.load.BasicService; import simple.http.serve.Context; import simple.template.ActiveController; import simple.template.TemplateEngine; import simple.template.velocity.VelocityContainer; import java.io.File; import java.io.PrintStream; public class VelocityService extends BasicService { public static TemplateEngine engine; public static VelocityContainer vc; public VelocityService(Context context) { try { super(context); vc = new VelocityContainer(); engine = new TemplateEngine(context, vc); } catch(Exception e) { System.out.println(e); } } public void process(Request req, Response resp) throws Exception { vc.put("book", "Simpleweb Guide"); engine.lookup("./text.vm").handle(req, resp); } } __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail |
From: petite_abeille <pet...@ma...> - 2004-06-19 19:22:40
|
Hello, Did anyone wrote a WebDAV service they would like to share? :) TIA. Cheers, PA. |
From: Niall G. <nia...@an...> - 2004-06-18 13:40:08
|
Hi This has been done already, the engine you can use is called simple.http.serve.FileEngine. You can also download a very basic server implementation from http://mambaweb.sourceforge.net which will provide directory listing and file downloads. P.S If you wish to override the directory listing provided you can implement a simple.http.serve.Format object, have a look at the javadocs for more information on this. Niall On Fri, 2004-06-18 at 14:26, Saxon FJELDSTED wrote: > I trying to get it to run as a simple web server where > it will list all the files in a directory and provide > a link to download the file. > > Do I just open the file and write it to Response or is > there a Service/Engine already written for this > purpose? > > thanks and regards > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > http://promotions.yahoo.com/new_mail > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Saxon F. <ts...@ya...> - 2004-06-18 13:26:13
|
I trying to get it to run as a simple web server where it will list all the files in a directory and provide a link to download the file. Do I just open the file and write it to Response or is there a Service/Engine already written for this purpose? thanks and regards __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail |
From: Niall G. <nia...@an...> - 2004-06-14 10:18:28
|
Hi, What exactly do you mean by "refusing requests" ? What tool do you use to perform the stress test ? One thing you must be aware of is that Simple will close inactive sockets very quickly using the default polling strategy (typically if a socket does not have data it is closed in about 7 seconds). Niall > Hi, >=20 > =20 >=20 > I am testing my program now =E2=80=A6 and using Simple as an embedded W= eb > server. I am now doing a stress test then this problem arouse, the > problem is after more than 50 simultaneous (using Thread) Connections > Simple start refusing request. Where and how should I change this > configuration? >=20 > =20 >=20 > Regards, >=20 > =20 >=20 > Rahmat Bagas Santoso >=20 >=20 |
From: bagas <ba...@in...> - 2004-06-14 03:32:54
|
Hi, I am testing my program now . and using Simple as an embedded Web server. I am now doing a stress test then this problem arouse, the problem is after more than 50 simultaneous (using Thread) Connections Simple start refusing request. Where and how should I change this configuration? Regards, Rahmat Bagas Santoso |
From: Niall G. <ni...@em...> - 2004-05-30 12:11:20
|
Hi, I had forgotten to gzip the archives, the link should work now. Niall ----- Original Message ----- From: petite_abeille <pet...@ma...> Date: Sat, 29 May 2004 13:28:37 +0200 To: sim...@li... Subject: [Simpleweb-Support] simple-core-2.4.2.tar.gz not found > "The requested URL /download/2.4.2/simple-core-2.4.2.tar.gz was not > found on this server." > > Is it available for download from somewhere else? > > TIA. > > Cheers, > > PA. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm |
From: petite_abeille <pet...@ma...> - 2004-05-29 11:27:39
|
"The requested URL /download/2.4.2/simple-core-2.4.2.tar.gz was not found on this server." Is it available for download from somewhere else? TIA. Cheers, PA. |
From: <ben...@id...> - 2004-05-25 08:59:54
|
Dear Open Source developer I am doing a research project on "Fun and Software Development" in which I kindly invite you to participate. You will find the online survey under http://fasd.ethz.ch/qsf/. The questionnaire consists of 53 questions and you will need about 15 minutes to complete it. With the FASD project (Fun and Software Development) we want to define the motivational significance of fun when software developers decide to engage in Open Source projects. What is special about our research project is that a similar survey is planned with software developers in commercial firms. This procedure allows the immediate comparison between the involved individuals and the conditions of production of these two development models. Thus we hope to obtain substantial new insights to the phenomenon of Open Source Development. With many thanks for your participation, Benno Luthiger PS: The results of the survey will be published under http://www.isu.unizh.ch/fuehrung/blprojects/FASD/. We have set up the mailing list fa...@we... for this study. Please see http://fasd.ethz.ch/qsf/mailinglist_en.html for registration to this mailing list. _______________________________________________________________________ Benno Luthiger Swiss Federal Institute of Technology Zurich 8092 Zurich Mail: benno.luthiger(at)id.ethz.ch _______________________________________________________________________ |
From: Marc N. <ma...@ke...> - 2004-05-20 19:35:40
|
That fixed it! Thanks Niall for your quick response. One quick note: the simple-2.4.2.tar.gz contains an old JAR file in the = jar directory. I rebuilt the new one in Ant but you may want to include = the 2.4.2 JAR in that directory for those who don't want to build it. Thanks again, Marc -----Original Message----- From: Niall Gallagher [mailto:ni...@em...]=20 Sent: Thursday, May 20, 2004 11:28 AM To: sim...@li... Subject: Re: [Simpleweb-Support] Chunked encoding changes Hi, I have fixed the problem with the ChunkedOutputStream. The source can be = downloaded from the following URL: http://simpleweb.sourceforge.net/download/2.4.2/ P.S If you notice that this does not work let me know, although I have = run several tests to make sure it correctly encodes content I may have = missed something. Regards, Niall ----- Original Message ----- From: "Niall Gallagher" <ni...@em...> Date: Thu, 20 May 2004 09:22:54 -0500 To: sim...@li... Subject: Re: [Simpleweb-Support] Chunked encoding changes > Hi, >=20 > Thanks for this bug report. I think the reason this is happening is = that I changed the MonitoredOutputStream to use the = MonitoredOutputStream.flushBytes() method instead of the = OutputStream.flush(). In fixing this bug I must have introduced a new = one. Ill have to run a few tests to see where the problem is, but you = can be sure that I will release an update (2.4.2) as soon as I find it. >=20 > Thanks for the feedback! > Niall >=20 > ----- Original Message ----- > From: "Marc Novakowski"=20 > Date: Mon, 17 May 2004 11:47:23 -0700 > To:=20 > Subject: [Simpleweb-Support] Chunked encoding changes >=20 >=20 > I've noticed a bit of a difference between 2.4 and 2.4.1 in the = generation of chunked-encoded responses.=A0 I have a SOAP handler that = uses Axis to generate SOAP responses, WSDL, etc. which worked fine in = 2.4.=A0 However when I upgraded to 2.4.1 I noticed that Internet = Explorer could not longer download the generated WSDL file that Axis = writes to the simpleweb Response output stream. > =A0 > Upon closer inspection of the data written to the client, it appears = that the last chunk in the response contains some extra CRLF = characters.=A0 Specifically, there are 2 extra CRLF's before the "0" = indicating last chunk. > =A0 > For example, here is what the last two chunks looked like in 2.4 = (which works fine): > =A0 > 12b > ervices" use=3D"literal"/> > =A0=A0=A0=A0=A0 </wsdl:output> > =A0=A0=A0 </wsdl:operation> > =A0 </wsdl:binding> > =A0 <wsdl:service name=3D"EnsService"> > =A0=A0=A0 <wsdl:port binding=3D"impl:ensSoapBinding" name=3D"ens"> > =A0=A0=A0=A0=A0 <wsdlsoap:address location=3D"http://transport.url"/> > =A0=A0=A0 </wsdl:port> > =A0 </wsdl:service> > </wsdl:definitions> > 0 > =A0 > =A0 > And this is what the same file looks like when using 2.4.1: > =A0 > 12b > ervices" use=3D"literal"/> > =A0=A0=A0=A0=A0 </wsdl:output> > =A0=A0=A0 </wsdl:operation> > =A0 </wsdl:binding> > =A0 <wsdl:service name=3D"EnsService"> > =A0=A0=A0 <wsdl:port binding=3D"impl:ensSoapBinding" name=3D"ens"> > =A0=A0=A0=A0=A0 <wsdlsoap:address location=3D"http://transport.url"/> > =A0=A0=A0 </wsdl:port> > =A0 </wsdl:service> > </wsdl:definitions> > =A0 > =A0 > 0 > =A0 > =A0 > In both cases the 0 has two CRLF's after it (which is correct = according to the spec) however in the 2.4.1 case it has two extra CRLF's = before the "0" (for a total of 3).=A0 I don't think this is correct, and = Internet Explorer seems to agree (it keeps "spinning" the globe, as if = it's waiting for more bytes). > =A0 > I tried going through the files in CVS to see where this might have = been broken, but it looks like everything in there is about 9 months = old, so I'm not sure where the "2.4.1" source code lives (other than in = the released tar.gz file). > =A0 > I've tried modifying ChunkedOutputStream.doClose() to remove the = "doControl()" before writing the "0", but that only removed one of the = CRLF's before the 0.=A0 I'm not quite sure where the other one is being = written. > =A0 > Any help you can provide would be appreciated! > =A0 > Thanks, > Marc Novakowski > --=20 > ___________________________________________________________ > Sign-up for Ads Free at Mail.com > http://promo.mail.com/adsfreejump.htm >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle = 10g.=20 > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support --=20 ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. = Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <ni...@em...> - 2004-05-20 18:35:00
|
Hi, I have fixed the problem with the ChunkedOutputStream. The source can be downloaded from the following URL: http://simpleweb.sourceforge.net/download/2.4.2/ P.S If you notice that this does not work let me know, although I have run several tests to make sure it correctly encodes content I may have missed something. Regards, Niall ----- Original Message ----- From: "Niall Gallagher" <ni...@em...> Date: Thu, 20 May 2004 09:22:54 -0500 To: sim...@li... Subject: Re: [Simpleweb-Support] Chunked encoding changes > Hi, > > Thanks for this bug report. I think the reason this is happening is that I changed the MonitoredOutputStream to use the MonitoredOutputStream.flushBytes() method instead of the OutputStream.flush(). In fixing this bug I must have introduced a new one. Ill have to run a few tests to see where the problem is, but you can be sure that I will release an update (2.4.2) as soon as I find it. > > Thanks for the feedback! > Niall > > ----- Original Message ----- > From: "Marc Novakowski" > Date: Mon, 17 May 2004 11:47:23 -0700 > To: > Subject: [Simpleweb-Support] Chunked encoding changes > > > Ive noticed a bit of a difference between 2.4 and 2.4.1 in the generation of chunked-encoded responses. I have a SOAP handler that uses Axis to generate SOAP responses, WSDL, etc. which worked fine in 2.4. However when I upgraded to 2.4.1 I noticed that Internet Explorer could not longer download the generated WSDL file that Axis writes to the simpleweb Response output stream. > > Upon closer inspection of the data written to the client, it appears that the last chunk in the response contains some extra CRLF characters. Specifically, there are 2 extra CRLFs before the 0 indicating last chunk. > > For example, here is what the last two chunks looked like in 2.4 (which works fine): > > 12b > ervices" use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="EnsService"> > <wsdl:port binding="impl:ensSoapBinding" name="ens"> > <wsdlsoap:address location="http://transport.url"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > 0 > > > And this is what the same file looks like when using 2.4.1: > > 12b > ervices" use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="EnsService"> > <wsdl:port binding="impl:ensSoapBinding" name="ens"> > <wsdlsoap:address location="http://transport.url"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > > > 0 > > > In both cases the 0 has two CRLFs after it (which is correct according to the spec) however in the 2.4.1 case it has two extra CRLFs before the 0 (for a total of 3). I dont think this is correct, and Internet Explorer seems to agree (it keeps spinning the globe, as if its waiting for more bytes). > > I tried going through the files in CVS to see where this might have been broken, but it looks like everything in there is about 9 months old, so Im not sure where the 2.4.1 source code lives (other than in the released tar.gz file). > > Ive tried modifying ChunkedOutputStream.doClose() to remove the doControl() before writing the 0, but that only removed one of the CRLFs before the 0. Im not quite sure where the other one is being written. > > Any help you can provide would be appreciated! > > Thanks, > Marc Novakowski > -- > ___________________________________________________________ > Sign-up for Ads Free at Mail.com > http://promo.mail.com/adsfreejump.htm > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm |