JRE problem

2004-04-06 Thread Thiago Kleinubing
Hi,

i'm trying to use HttpClient 2.0 Library to communicate one applet to one webserver, 
but i'm having some troubles.
Every time when the applet is loaded the exception is shown:

java.lang.VerifyError: (class: AppTeste, method: init signature: ()V) Incompatible 
object argument for function call
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Unknown Source)
 at sun.applet.AppletPanel.createApplet(Unknown Source)
 at sun.plugin.AppletViewer.createApplet(Unknown Source)
 at sun.applet.AppletPanel.runLoader(Unknown Source)
 at sun.applet.AppletPanel.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)

I' ve already tried to run the same code in command line and the same problem happened 
again. When i changed de JRE from 1.3.1_06 to 1.4 the problem DIDN'T occur. It seems 
to me a class loader problem, PLEASE can anyone help me??????

Thank's 
Thiago

RE: MultiThread

2003-03-27 Thread Thiago
Hi Oleg,

First, thanks for your response. I´m actualy using with 
MultiThreadedConnectionManager, but when i change to MultiThreadedConnectionManager 
the connections timeout has decreased a lot. With MultiThreadedConnectionManager 
appears greater than SimpleHttpConnectionManager. It´s correct or i´m wrong?

I want to understand the MultiThreadedConnectionManager. Can 
MultiThreadedConnectionManager do what i want ? Can it manage a set of connections ? 
If yes, where can i find an example ?

Thanks very much. 

Waiting for response,

Thiago Costa



Citando "Kalnichevski, Oleg" <[EMAIL PROTECTED]>:

> Hi Thiago
> 
> I regret that your message has been ignored for so long.
> 
> 1. connection timeouts are perfectly legitimate from the HTTP spec standpoint. HTTP
> servers are not supposed to keep connection alive for too long. Probably HttpClient
> should be a bit smarter when encountering a stale connection. At the moment 
> HttpClient
> simply raises a HttpRecoverableException and let the caller deal with it
> 
> 2. Since you appear to be handling the multithread synchronization by yourself, 
> anyway,
> it may make sense to use SimpleHttpConnectionManager instead of
> MultiThreadedConnectionManager
> 
> Again, Mike Becke is the man to comment of connection pooling related stuff. I hope
> he'll correct me if I err on any of these accounts.
> 
> Apparently since the way MultiThreadedConnectionManager handles stale connections 
> seems
> to irritate quite a few folks out there, something needs to be done about it
> 
> Cheers
> 
> Oleg
> 
> -Original Message-
> From: Thiago Costa [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 00:03
> To: [EMAIL PROTECTED]
> Subject: MultiThread
> 
> 
> Dear Friends,
> 
> I'm using the HTTP Client in a pool of connection. I have created a
> class that manage a list of URL. For example: i have a list of 100 URLs
> of diferent hosts. I want to retrieve all this urls but i don't want
> to do this in a sequencial mode. I want to put  some connections in a
> paralel mode. Like for example... I want 10 connection in paralel...
> Then, when a connection finish an other starts. I want to use this in a
> meta engine to retrive documents in Web.
> 
> My problem is that httpclient is raising many exeptions of connection
> timeout. I'm running my application in  super fast internet provider
> and it's not normal these time outs.
> 
> Does the httpclient manage a pool of connection like that ?
> Does httpclient works well in a multithead mode ? How can i manage a
> list of url with a great performance ?
> 
> Can you help-me?
> 
> Thanks very much
> 
> Thiago Costa



MultiThread

2003-03-20 Thread Thiago Costa
Dear Friends,

I'm using the HTTP Client in a pool of connection. I have created a 
class that manage a list of URL. For example: i have a list of 100 URLs 
of diferent hosts. I want to retrieve all this urls but i don't want 
to do this in a sequencial mode. I want to put  some connections in a 
paralel mode. Like for example... I want 10 connection in paralel... 
Then, when a connection finish an other starts. I want to use this in a 
meta engine to retrive documents in Web.

My problem is that httpclient is raising many exeptions of connection 
timeout. I'm running my application in  super fast internet provider 
and it's not normal these time outs.

Does the httpclient manage a pool of connection like that ?
Does httpclient works well in a multithead mode ? How can i manage a 
list of url with a great performance ?

Can you help-me?

Thanks very much

Thiago Costa