[Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Kasper Nielsen
Hi gang, I love commons-math, one problem though! lets take a look at the dependecies common-lang: 189 kb commons-beanutils: 116 kb commons-collections-SNAPSHOT.jar 463 commons-discovery 70 kb commons-logging-1.0.3.jar 31 kb kb Thats 850 kb!!! of 3rd party libraries that are only used in a few

Re: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread __matthewHawthorne
I, for one, like the idea of commons projects depending on each other when necessary. There is always a lot of controversy with regards to including another jar that I don't quite understand. I agree that if there are only 1 or 2 references, it may be reasonable to include the dependencies

Re: [collections] [PATCH] CompositeCollection class for Commons-Collections

2003-11-05 Thread Brian McCallister
On Wednesday, November 5, 2003, at 12:10 AM, Phil Steitz wrote: I think that that javadoc for remove is incorrect when it says: This implementation calls coderemove()/code on each collection. It stops when it finds the element to be removed. The contract needs to be made more explicit here. It

Re: [collections] [PATCH] CompositeCollection class for Commons-Collections

2003-11-05 Thread Brian McCallister
On Monday, November 3, 2003, at 07:48 PM, Stephen Colebourne wrote: I've updated the class in line with commons standards/documentation etc. It will probably end up in the decorators subpackage, as it decorates other collections. A few style questions about this... You have changed the array

Re: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Brian McCallister
On Wednesday, November 5, 2003, at 09:26 AM, __matthewHawthorne wrote: I, for one, like the idea of commons projects depending on each other when necessary. There is always a lot of controversy with regards to including another jar that I don't quite understand. I agree that if there are

RE: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Eric Pugh
This backlash against multiple commons jars is happening in a lot of places. However, I think it is a bit shortsighted. If you are in a non server environment, I understand the problem, but in a server environment with lots of harddrive space, I don't. Additionally, since in a server app you are

Re: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Mark R. Diggory
Hehehe, thats a novel idea. Ok to be devils advocate... Your coming at this from one jar perspective. Which leads me to wonder why having math be one jar is important to you? Can you please elaborate on this? And to the rest of the community I postulate: Is this a critical usage case? The

Re: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Mark R. Diggory
Brian McCallister wrote: On Wednesday, November 5, 2003, at 09:26 AM, __matthewHawthorne wrote: Why does a math module depend on a logging module for deployment? Have the unit tests log, not the math functions. =) -Brian Bright Idea...I hadn't really thought about that. :-) -- Mark

RE: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread David Graham
--- Eric Pugh [EMAIL PROTECTED] wrote: This backlash against multiple commons jars is happening in a lot of places. However, I think it is a bit shortsighted. If you are in a non server environment, I understand the problem, but in a server environment with lots of harddrive space, I

Re: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Mark R. Diggory
David Graham wrote: In this case, it looks like commons-lang and commons-logging are only needed because math doesn't use Java 1.4 as the base level. Moving to Java 1.4 has the advantage of providing exception chaining and logging in the Java core and eliminates 2 jars. Obviously, the

RE: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Gary Gregory
The need to support 1.3 is diminishing over time. Java 1.4 is available and runs well on all the major platforms I can think of. We should be careful with 1.3 vs. 1.4. From my POV, sadly, the majority of our customers run on a version WebSphere that only supports 1.3, which means that our

RE: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Gary Gregory
I also like the idea of clearly established dependencies. It would be nice for example, if we could slice and dice [lang] and [collections] such that they could depend on a core set of jars. Gary -Original Message- From: __matthewHawthorne [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: [functor] possible contributions

2003-11-05 Thread Herve Quiroz
I had another look at the current implementation of And/Or last night. As the implementation already uses a collection, why not providing a constructor with a collection as a parameter: public Or(Collection collection) { this.list.addAll(collection); } (Or adding predicate one by one

[Math] Commons Math Contributions

2003-11-05 Thread Matt Cliff
- Original Message - From: Matt Cliff [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 7:08 AM Subject: Commons Math Contributions I recently download the math commons subproject and would like to help out. This is my first open source contribution

Re: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Mark R. Diggory
Gary Gregory wrote: The need to support 1.3 is diminishing over time. Java 1.4 is available and runs well on all the major platforms I can think of. We should be careful with 1.3 vs. 1.4. From my POV, sadly, the majority of our customers run on a version WebSphere that only supports 1.3,

RE: [Math] Commons Math Contributions

2003-11-05 Thread Mainguy, Mike
I'm in the same boat, a good answer would be appreciated (I've gotten a wide variety). Another thing I'm wondering is should we add ourselves as an author when we submit a patch or is that just if you're a commiter? worse is better -Original Message- From: Matt Cliff [mailto:[EMAIL

Re: Company Acknowledgements [was :Re: [HiveMind] 1.0 Beta]

2003-11-05 Thread Rodney Waldhoff
On Tue, 4 Nov 2003, Robert Leland wrote: You've acknowledged that when you commit any code to Apache you give up ownership of that code. That's not quite right. When you commit any code to Apache (under the Contributors License Agreement), you grant the ASF a non-exclusive right to that code.

RE: Company Acknowledgements [was :Re: [HiveMind] 1.0 Beta]

2003-11-05 Thread Noel J. Bergman
Did I have the right to do [develop HiveMind on WebCT's time]? At the time, I was 100% certain I did ... No one is suggesting that you didn't act in good faith, Howard. What is making a mountain out of a molehill is your apparent unwillingness to involve the proper channels in the process. A

Re: [Math] Commons Math Contributions

2003-11-05 Thread Mark R. Diggory
Mike and Matt, To try to answer your questions as best as possible. First and foremost, become familiar with the goals and guiding principles we initially set out to maintain the math project here. http://jakarta.apache.org/commons/math/proposal.html

[commons] Bugzilla and components

2003-11-05 Thread Mark R. Diggory
How do we go about the process of getting math added to the commons components list in bugzilla? -Mark -- Mark Diggory Software Developer Harvard MIT Data Center http://www.hmdc.harvard.edu - To unsubscribe, e-mail: [EMAIL

Commons Math Contributions

2003-11-05 Thread Matt Cliff
I recently download the math commons subproject and would like to help out. This is my first open source contribution effort and am looking forward to extending to other projects. I have a background in Mathematics (MS and thesis work in Stochastic Analysis) and for the past several

RE: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Todd V. Jonker
On Wed, 5 Nov 2003 06:54:14 -0800 (PST), David Graham [EMAIL PROTECTED] said: Agreed, especially because Jakarta's mission is to create *server* side libraries. [...] The need to support 1.3 is diminishing over time. Java 1.4 is available and runs well on all the major platforms I can think

[Math] Commons Math Contributions

2003-11-05 Thread Matt Cliff
I recently download the math commons subproject and would like to help out. This is my first open source contribution effort and am looking forward to extending to other projects. I have a background in Mathematics (MS and thesis work in Stochastic Analysis) and for the past several

Re: [commons] Bugzilla and components

2003-11-05 Thread Stefan Bodewig
On Wed, 05 Nov 2003, Mark R. Diggory [EMAIL PROTECTED] wrote: How do we go about the process of getting math added to the commons components list in bugzilla? Done. In general there are a bunch of people on this list who have karma to do so, so just ask - but don't do so burried deep in a

[results][math] Votes for J. Pietchmann to get karma for math project

2003-11-05 Thread Mark R. Diggory
J. Pietchmann (for karmic rights in math project) +1 = 6 +0 = 0 -0 = 0 -1 = 0 Pietchmann, you need to complete this and send it back to the pmc. Karma request form: To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: CVS karma request userid: ... Requested karma:

[results][math] Votes for Brent Warden and Al Chou as commiters

2003-11-05 Thread Mark R. Diggory
Brent Warden (for new committer) +1 = 6 +0 = 0 -0 = 0 -1 = 0 Al Chou (for new committer) +1 = 6 +0 = 0 -0 = 0 -1 = 0 I'm still not fully versed on the process of setting up the accounts etc. I remember that I had to complete some info concerning my account name and personal info. Al and Brent

Re: [commons] Bugzilla and components

2003-11-05 Thread Mark R. Diggory
Thanks :-) Stefan Bodewig wrote: On Wed, 05 Nov 2003, Mark R. Diggory [EMAIL PROTECTED] wrote: How do we go about the process of getting math added to the commons components list in bugzilla? Done. In general there are a bunch of people on this list who have karma to do so, so just ask - but

Re: [collections] [PATCH] CompositeCollection class for Commons-Collections

2003-11-05 Thread Phil Steitz
Brian McCallister wrote: On Wednesday, November 5, 2003, at 12:10 AM, Phil Steitz wrote: I think that that javadoc for remove is incorrect when it says: This implementation calls coderemove()/code on each collection. It stops when it finds the element to be removed. The contract needs to be

Re: [functor] possible contributions

2003-11-05 Thread Herve Quiroz
On Tue, Nov 04, 2003 at 09:06:37AM -0800, Rodney Waldhoff wrote: There are some others but I need to classify them and decide which ones are generic enough to be part of commons-functor... Obviously, I will provide everything with complete Javadoc support and test cases whenever it is

Re: [functor] possible contributions

2003-11-05 Thread Rodney Waldhoff
I would just do it as an internal class for the time being. On Wed, 5 Nov 2003, Herve Quiroz wrote: On Tue, Nov 04, 2003 at 09:06:37AM -0800, Rodney Waldhoff wrote: There are some others but I need to classify them and decide which ones are generic enough to be part of commons-functor...

Re: [collections] [PATCH] CompositeCollection class for Commons-Collections

2003-11-05 Thread Brian McCallister
On Wednesday, November 5, 2003, at 11:31 AM, Phil Steitz wrote: Note the similarity to the API doc for add: Ensures that this collection contains the specified element (optional operation). Returns true if this collection changed as a result of the call. (Returns false if this collection does

RE: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Danny Angus
FWIW the math proposal actually says: Emphasis on small, easily integrated components rather than large libraries with

RE: [collections] [PATCH] CompositeCollection class for Commons-Collections

2003-11-05 Thread Arun Thomas
The last comment suggests another possibly useful method: toList(), returning an aggregated collection consisting of all of the objects in the composite collections. In this case, will there be a clever way to return an aggregation of this sort that isn't simply a new object with copies of

Adding DbUtils to Bugzilla

2003-11-05 Thread David Graham
Can some karma gifted person add DbUtils to the Commons __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail:

Re: Adding DbUtils to Bugzilla

2003-11-05 Thread David Graham
--- David Graham [EMAIL PROTECTED] wrote: Can some karma gifted person add DbUtils to the Commons. Weird, Yahoo truncated my message. DbUtils is already in the Commons. We just need it added to bugzilla. David __ Do you Yahoo!? Protect your identity with

Dealing with unreleased pool objects

2003-11-05 Thread Charles Hudak
I've been reviewing the source code as I've been contemplating having my existing pool implementations delegate to the commons pool implementations. One issue that I have, however, is that the current pool implementations do not appear to deal with 'abandoned' pool objects. We all agree that

Re: [primitives] Proposed interface changes

2003-11-05 Thread Rodney Waldhoff
Some comments inline. I'll use the voting syntax, in an effort to be concise, not formal. On Sat, 18 Oct 2003, Stephen Colebourne wrote: I would like to propose the following changes for the primitives code as we establish it: New interface Collectable (better names?). Superinterface of

RE: Dealing with unreleased pool objects

2003-11-05 Thread Shapira, Yoav
Howdy, Tomcat 4.x uses DBCP 2.0 and that version of DBCP supports reaping and logging of abandoned connections. DBCP 2.1 marks all these methods as deprecated for reasons that are unknown to me, but I bet you could find out by searching this list's archives. Hopefully DBCP 2.2 and later will

Re: [configuration] thread-safe?

2003-11-05 Thread Oliver Heger
Eric, I haven't thought about the details of accessing properties in a singleton yet. In the first line I was interested in the advantages such an approach would have for initialization of the configuration framework. On its creation the singleton instance could locate the configuration

Re: Dealing with unreleased pool objects

2003-11-05 Thread Dirk Verbeeck
Tomcat uses BasicDataSource in the DBCP component (http://jakarta.apache.org/commons/dbcp/) as its default datasource implementation. Like you said it has support for abandoned connections. See

Re: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Mark R. Diggory
I'm trying organize this thread a little bit more than was accomplished in the discussion. 1.) Argument exists concerning the dependency requirements of Commons Math. To in fact be modular and easily integrated some discrepancy arises concerning interdependency with other commons components.

RE: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Charles Hudak
Mark wrote: Eric Pugh wrote: This backlash against multiple commons jars is happening in a lot of places. However, I think it is a bit shortsighted. If you are in a non server environment, I understand the problem, but in a server environment with lots of harddrive space, I don't.

cvs commit: jakarta-commons/httpclient/src/test/org/apache/commons/httpclient TestHttpConnection.java

2003-11-05 Thread olegk
olegk 2003/11/05 12:45:34 Modified:httpclient/src/java/org/apache/commons/httpclient HttpConnection.java HttpMethodBase.java httpclient/src/test/org/apache/commons/httpclient TestHttpConnection.java Log: Changelog: -

RE: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread David Graham
--- Charles Hudak [EMAIL PROTECTED] wrote: Mark wrote: Eric Pugh wrote: This backlash against multiple commons jars is happening in a lot of places. However, I think it is a bit shortsighted. If you are in a non server environment, I understand the problem, but in a server environment

[OT] Re: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Tomasz Pik
Sorry for a little offtopic post. Charles Hudak wrote: I think that this comment is a little shortsighted. We are still using weblogic 5.1 and constantly have problems with the multitude of third party libraries that we are using. WL 5.1 does not seem to find libraries in the WEB-INF/lib

Re: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Mark R. Diggory
Charles Hudak wrote: Mark wrote: Eric Pugh wrote: This backlash against multiple commons jars is happening in a lot of places. However, I think it is a bit shortsighted. If you are in a non server environment, I understand the problem, but in a server environment with lots of harddrive

Re: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Phil Steitz
David Graham wrote: --- Charles Hudak [EMAIL PROTECTED] wrote: Mark wrote: Eric Pugh wrote: This backlash against multiple commons jars is happening in a lot of places. However, I think it is a bit shortsighted. If you are in a non server environment, I understand the problem, but in a

[OT] Re: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread David Graham
--- Phil Steitz [EMAIL PROTECTED] wrote: David Graham wrote: --- Charles Hudak [EMAIL PROTECTED] wrote: Mark wrote: Eric Pugh wrote: This backlash against multiple commons jars is happening in a lot of places. However, I think it is a bit shortsighted. If you are in a non

Re: [Math] common-math and bloated 3rd party libraries

2003-11-05 Thread Mark R. Diggory
Phil Steitz wrote: I agree with your assessment of that platform; but your comment raises an interesting question: to what extent should commons component design decisions be influenced by characteristics of the user base. My opinion is lots. Lame and broken as it may be, WebLogic 5 on NT

RE: [collections] [PATCH] CompositeCollection class for Commons-Collections

2003-11-05 Thread Arun Thomas
The toCollection(), toList(), etc. stuff would be no different (other than the collection overhead) from toArray(). What would get copied are object references. I understood the proposed methods would work in this way. I guess my questions is why it would be particularly useful to add these

Re: [collections] [PATCH] CompositeCollection class for Commons-Collections

2003-11-05 Thread Phil Steitz
Arun Thomas wrote: The toCollection(), toList(), etc. stuff would be no different (other than the collection overhead) from toArray(). What would get copied are object references. I understood the proposed methods would work in this way. I guess my questions is why it would be particularly

[math] logging and exception handling in distributions

2003-11-05 Thread Mark R. Diggory
There's been a Convergence Exception used in ContinuedFraction and special.Gamma for some time now. I was able to remove the logging references from the util.Transformer implementations by creating a TransformerException and wrapping exceptions and passing them out to the application. This

request sandbox karma

2003-11-05 Thread Brett Porter
Hi, I was wondering if someone could grant me sandbox karma so I can make some contributions to commons-naming. My apache CVS username is brett. Thanks in advance, Brett

Re: [primitives] Object/JDK integration - was Proposed interface changes

2003-11-05 Thread Stephen Colebourne
As people may or may not be aware, the sandbox contains an implementation of primitive collections that works differently from [primitives]. * [primitives] (commons-proper) - IntCollection is a top-level interface in its own right. A wrapper is needed to integrate with JDK Collection. *

cvs commit: jakarta-commons/primitives/xdocs index.xml

2003-11-05 Thread rwaldhoff
rwaldhoff2003/11/05 16:55:23 Modified:primitives/xdocs index.xml Log: add link to 1.0 release Revision ChangesPath 1.6 +4 -4 jakarta-commons/primitives/xdocs/index.xml Index: index.xml ===

Re: [collections] [PATCH] CompositeCollection class for Commons-Collections

2003-11-05 Thread Stephen Colebourne
From: Phil Steitz [EMAIL PROTECTED] Anyone have any objections to committing this to the decorators subpackage? Phil +1. The test needs work as its not a collections-testframework test. Stephen - To unsubscribe, e-mail:

cvs commit: jakarta-commons/primitives project.xml build.xml

2003-11-05 Thread rwaldhoff
rwaldhoff2003/11/05 17:06:58 Modified:primitives project.xml build.xml Log: update version number to 2.0-dev Revision ChangesPath 1.10 +1 -1 jakarta-commons/primitives/project.xml Index: project.xml

cvs commit: jakarta-commons/xdocs components.xml

2003-11-05 Thread rwaldhoff
rwaldhoff2003/11/05 17:07:09 Modified:docs components.html xdocscomponents.xml Log: update for primitives 1.0 release Revision ChangesPath 1.128 +14 -9 jakarta-commons/docs/components.html Index: components.html

Re: [collections] [PATCH] CompositeCollection class for Commons-Collections

2003-11-05 Thread Gareth Andrew
Stephen, Have you any tests to prove there is actually a performance gain? Surely either (or both) the java compiler or the JVM should be responsible for optimizations such as this. Gareth. Stephen Colebourne wrote: From: Brian McCallister [EMAIL PROTECTED] On Monday, November 3, 2003, at

[Chain] ContextToRequestCommand

2003-11-05 Thread Jeff Caddel
Any feedback on this Command implementation? The idea is that as a chain of commands is executing objects get aggregated into a map. The context holds a reference to the map. At the tail end of the execution chain, this command places the objects from the map into the request as request

RE: [hivemind] what exactly is the issue here?

2003-11-05 Thread Noel J. Bergman
Rodney Waldhoff wrote: On Wed, 5 Nov 2003, Noel J. Bergman wrote: We're not the ones whom Howard needs to discuss this with. Yes and no. I'm on the Jakarta PMC, you're an ASF member, we're both jakarta commons committers, so I belive and as I understand it, we are among the ones Howard

[ANN] Jakarta Commons Primitives 1.0 Released

2003-11-05 Thread Rodney Waldhoff
The Jakarta Commons Team is pleased to announce the first release of Jakarta Commons Primitives. Primitives provides a collection of types and utilities optimized for working with Java primitives (boolean, byte, char, double, float, int, long, short). Generally, the Commons-Primitives classes are

Re: Cookie test case failures with Tomcat 4.1.29

2003-11-05 Thread Roland Weber
Hello Eric, From RFC 2965, HTTP State Management, Section 3: value = token | quoted-string [...] cookie = NAME = VALUE *(; set-cookie-av) VALUE = value That is part of the BNF grammar for the set-cookie2 header. All the examples in section 4 use

[Https proxy] Impossible to connect

2003-11-05 Thread Samuel BONNANFANT
Hi, I'm using HttpClient 2.0 rc2. I've got a pbm when trying to connect to a HTTPS server (with a client certificate), using a proxy. I saw the bug #7643 was resolved, but it seems it doesn't work with a client certificate. Can anybody help me ? Thanks. Here are the logs : 2003/11/05

RE: [Https proxy] Impossible to connect

2003-11-05 Thread Samuel BONNANFANT
Thanks for your answer, Indeed, I tried a development version of HttpClient, since HttpClient v2.0 rc2 didn't work as I expected. Here are the logs with 2.0 rc2 : 2003/11/05 11:16:05:140 CET [DEBUG] HttpConnection - -HttpConnection.setSoTimeout(0) 2003/11/05 11:16:05:187 CET [DEBUG]

Re: [Https proxy] Impossible to connect

2003-11-05 Thread Ortwin Glück
isn't that just a timeout? Samuel BONNANFANT wrote: and... 2 mins later : main, SEND SSL v3.1 ALERT: fatal, description = close_notify main, WRITE: SSL v3.1 Alert, length = 2 and the exception : javax.net.ssl.SSLException: error while writing to socket

Re: [Https proxy] Impossible to connect

2003-11-05 Thread Samuel BONNANFANT
It is a timeout, yes. But if I don't use the proxy, I don't get the timeout. --- Ortwin_Glück [EMAIL PROTECTED] a écrit : isn't that just a timeout? Samuel BONNANFANT wrote: and... 2 mins later : main, SEND SSL v3.1 ALERT: fatal, description = close_notify main, WRITE: SSL v3.1

RE: [Https proxy] Impossible to connect

2003-11-05 Thread Kalnichevski, Oleg
OK. That clears things up quite a bit. What proxy are you using? Is it HTTP/1.1 or HTTP/1.0 compliant proxy? If it doubt use HTTP/1.0 Oleg -Original Message- From: Samuel BONNANFANT [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:37 To: Commons HttpClient Project

Re: [Https proxy] Impossible to connect

2003-11-05 Thread Ortwin Glück
Proxies usually close connections after a certain idle time to free up their resources because they can not tell if a connection is just idle or if the client died. You should catch this situation and reopen the connection in your code. I guess HttpClient would actually even be able to handle

RE: PATCH: HttpConnection cleanup

2003-11-05 Thread Kalnichevski, Oleg
I think close and flush should still throw recoverable exceptions, when the connection has been used. This will allow methods to be retried in the event of an error on close/flush. Other than that it looks good. Mike, So be it. I'll leave alone close/flush of the wrapper stream. If there

RE: [Https proxy] Impossible to connect

2003-11-05 Thread Samuel BONNANFANT
I'm using a free proxy : CCProxy 6.0 on win2k. I don't know if it is HTTP/1.1 or HTTP/1.0 compliant, and I don't know if I can choose. Do you know other reliable proxy ? --- Kalnichevski, Oleg [EMAIL PROTECTED] a écrit : OK. That clears things up quite a bit. What proxy are you using? Is it

RE: [Https proxy] Impossible to connect

2003-11-05 Thread Samuel BONNANFANT
Oleg, I tried the following : 1) using classical SSLSocket with the proxy : that's what I do if I don't want to use client certificate. In this case, it works. 2) using SSLSocket from SecureProtocolSocketFactory without proxy (connect directly to the server). In this case, it works, too. 3) But

Re: [Https proxy] Impossible to connect

2003-11-05 Thread Ortwin Glück
Samuel BONNANFANT wrote: Do you know other reliable proxy ? I guess the most widely used one is Squid. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [Https proxy] Impossible to connect

2003-11-05 Thread Kalnichevski, Oleg
I would also recommend Squid http://www.squid-cache.org/ Oleg -Original Message- From: Ortwin Glück [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 15:40 To: Commons HttpClient Project Subject: Re: [Https proxy] Impossible to connect Samuel BONNANFANT wrote: Do you know

RE: [Https proxy] Impossible to connect

2003-11-05 Thread Samuel BONNANFANT
I finally succeed. I found my error when debugging HttpClient code. The only error was in my client part, I wrote : ProtocolSocketFactory protoSocketFact = new StrictSSLProtocolSocketFactory(_stNomFichierCert, _stPassword, _bVerifServerHostName); instead of : StrictSSLProtocolSocketFactory

Redirect from one port to another

2003-11-05 Thread Sam Berlin
Hi All, I'm curious why HttpClient is unable to redirect from one port to another port. Does the HTTP spec disallow this, or does the internals of HttpClient break if the redirect occurs? Thanks, Sam - To unsubscribe, e-mail:

Re: Redirect from one port to another

2003-11-05 Thread Oleg Kalnichevski
Sam, The architecture of HttpClient 2.0 is, let me say, well..., sub-optimal. The problem being that in HttpClient 2.0 redirects are handled by HttpMethodBase class, whereas connections are managed by HttpClient (through a HttpConnectionManager to be exact). As a result HttpMethodBase class has no

Re: Redirect from one port to another

2003-11-05 Thread Sam Berlin
I suppose that'll have to do. ;) Do you happen to notice anything obviously wrong with the following workaround code? It is designed just to work with GetRequests, although it theoretically should work with any request that does not contain output data (such as a Post). Any ideas on when 2.1

Re: Redirect from one port to another

2003-11-05 Thread Oleg Kalnichevski
Sam, I would not bother reusing the method. The whole method recycling concept is kind of silly. It results in quite a bit of ugly code for virtually negligible performance gain. Also, I would always have HttpMethod#releaseConnection in a finally clause. As to the release of HttpClient 2.1, I

Re: Redirect from one port to another

2003-11-05 Thread Sam Berlin
Hi Oleg, Thanks for the tips. Our use of the executeMethodRedirecting would as a substitute for just calling client.executeMethod(method) which we've placed in a class called HttpClientManager. As such, the outer-code looks like: HttpMethod get = new GetMethod(connectTo);

RE: Redirect from one port to another

2003-11-05 Thread Joe Ryburn
I had redirection issues with RC2, I downloaded a copy of the nightly build and it solved the problem I was having. Joe -Original Message- From: Sam Berlin [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:06 PM To: Commons HttpClient Project Subject: Redirect from one

RE: Redirect from one port to another

2003-11-05 Thread Oleg Kalnichevski
Joe, Nightlies are built against CVS HEAD. That means that what you got is unstable (development) version of HttpClient. The 2.1 branch already contains the code that fixes the cross-site redirect problem, as well as other goodies, such as improved exception handling and the new preference

RE: [Https proxy] Impossible to connect

2003-11-05 Thread Roland Weber
Folks, this looks like an API error to me. The protocol security should depend on the actual type of the factory passed to the constructor, not on the type of the variable it is stored in! Looking at the code, the only difference is the assignment of true or false to the attribute secure. I