[Celerity-users] memory leaks and serialize blockage
Jari Bakken
jari.bakken at gmail.com
Fri Dec 11 08:06:10 EST 2009
Den 11. des. 2009 kl. 09.23 skrev jason franklin-stokes <jasoninclass at googlemail.com
>:
>
>
> the question of the day i suppose is, what on earth is causing
> serialize to bombout when the listeners have been set.
As I've mentioned several times, JRuby interface implementations are
not serializable. That's why. You'll have to remove the listener
before you serialize.
>
>
> jason.
>
>
>
> On Dec 11, 2009, at 4:34 AM, doridori Jo wrote:
>
>> are you using the latest celerity ? 1.4.0 ?
>>
>> On 12/10/09, Jari Bakken <jari.bakken at gmail.com> wrote:
>>> On Thu, Dec 10, 2009 at 11:28 PM, jason franklin-stokes
>>> <jasoninclass at googlemail.com> wrote:
>>>> Jari,
>>>>
>>>> so serialize works when i take @web_client out of the initialize in
>>>> Listener
>>>
>>> I'd be very surprised if that was the case. Are you sure you didn't
>>> change anything else?
>>> I tried making the same change and I still get:
>>>
>>> org/apache/commons/lang/SerializationUtils.java:111:in `serialize':
>>> org.apache.commons.lang.SerializationException:
>>> java.io.NotSerializableException:
>>> org.jruby.gen.InterfaceImpl874503039
>>> (NativeException)
>>> from org/apache/commons/lang/SerializationUtils.java:133:in
>>> `serialize'
>>> from test.rb:7
>>>
>>> Since the JRuby interface implementation is still being added to the
>>> WebClient, that makes total sense.
>>> _______________________________________________
>>> Celerity-users mailing list
>>> Celerity-users at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/celerity-users
>>>
>> _______________________________________________
>> Celerity-users mailing list
>> Celerity-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/celerity-users
>
> _______________________________________________
> Celerity-users mailing list
> Celerity-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/celerity-users
More information about the Celerity-users
mailing list