Re: Restlet and Java 6

2008-12-02 Thread Rob Heittman
More details on the problem would help ... but since I'm seeing Athlon SMP in your uname, I'd suspect you may be getting JVM crashes when the JVM recompiles certain classes? If so, it's a JDK bug that you can work around by blocking certain classes from recompilation. Or is it something else?

Re: java.lang.AbstractMethodError: org.restlet.util.Engine.fireContextChanged

2008-12-02 Thread Ian Clarke
Doh!! Ok, so I've done that, now I'm getting an NPE here, this code worked fine in 1.0.x: client.getContext().getParameters().add(converter, com.noelios.restlet.http.HttpClientConverter); client.getContext().getParameters().add(connectionManagerTimeout, 100);

Code hanging doing a HTTP get

2008-12-02 Thread Ian Clarke
My code is hanging here (while trying to do a HTTP get) - any ideas? Thread [main] (Suspended) Object.wait(long) line: not available [native method] MultiThreadedHttpConnectionManager.doGetConnection(HostConfiguration, long) line: 518

Re: Code hanging doing a HTTP get

2008-12-02 Thread Ian Clarke
That seems to have cracked it - thanks! Ian. On Tue, Dec 2, 2008 at 11:10 AM, Jerome Louvel [EMAIL PROTECTED] wrote: Hi Ian, Are you consuming your response entities fully? If not, you can use the release() method if necessary. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead

Should Restlet ever hold on to a TCP port after calling Component.stop()

2008-12-02 Thread Ian Clarke
I'm creating a HTTP listener and calling Component.stop() after every method in a unit test, and I keep getting exceptions complaining that the listen port is already in use. This even happened after I introduced a 1/2 second delay. When I switch this to only create the listener before the

Re: Restlet and Java 6

2008-12-02 Thread Stephan Koops
Hi Raif, if you use the JAXB extension of Restlet, you could get some problems, because Java 6 contains JAXB in a different version, I think. If you need it and will have a good solution, Jerome and Thierry will be happy, if you could contribute. best regards Stephan Raif S. Naffah

Re: Restlet and Java 6

2008-12-02 Thread Mark Derricutt
We used to get LOTS of JVM crashes with Restlet under JDK 6 update 10, the solution (aka work around) was to add: -XX:CompileCommand=exclude,com/noelios/restlet/http/HeaderReader,readValue to our JVM init script, having hotspot recompile that method all the time seemed to trigger very ungraceful

Re: Restlet and Java 6

2008-12-02 Thread Raif S. Naffah
hello Rob, On Wednesday 03 December 2008 01:11:39 am Rob Heittman wrote: More details on the problem would help ... but since I'm seeing Athlon SMP in your uname, I'd suspect you may be getting JVM crashes when the JVM recompiles certain classes? If so, it's a JDK bug that you can work

Re: Restlet and Java 6

2008-12-02 Thread Raif S. Naffah
hello Stephan, On Wednesday 03 December 2008 08:32:21 am Stephan Koops wrote: Hi Raif, if you use the JAXB extension of Restlet, you could get some problems, because Java 6 contains JAXB in a different version, I think. no i'm not using it. If you need it and will have a good solution,

Re: Restlet and Java 6

2008-12-02 Thread Raif S. Naffah
hello Mark, On Wednesday 03 December 2008 09:50:38 am Mark Derricutt wrote: We used to get LOTS of JVM crashes with Restlet under JDK 6 update 10, the solution (aka work around) was to add: -XX:CompileCommand=exclude,com/noelios/restlet/http/HeaderReader,readValu e to our JVM init script,