[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xmlblaster] NPE when cloning Global
On 13 Sep, Marcel Ruff wrote:
> Peter Antman wrote:
>
>>Hi,
>>I am back, trying to update the k2 adapter to the latest JBoss stuff,
>>but I have som problems with the current version in cvs:
>>
>>When doing like this:
>>
>>Global g = Global.instance();
>>Global myGlobal = g.getClone(null);
>>
>>I get an NPE in intialization of Property (this is verrifyable by
>>running the SubscribeXPathTest:
>>
>> at org.jutils.init.Property.clone(Property.java:356)
>> at org.xmlBlaster.util.Global.clone(Global.java:610)
>> at org.xmlBlaster.util.Global.getClone(Global.java:592)
>> at clustertest.ServerHelper.initHeron(ServerHelper.java:86)
>> at clustertest.ServerHelper.setUp(ServerHelper.java:191)
>> at clustertest.ServerHelper.<init>(ServerHelper.java:45)
>> at clustertest.SubscribeXPathTest.setUp(SubscribeXPathTest.java:62)
>>
>>Its the tree map in property that us not set yet when the clone is done:
>>
>>p.jutilsMap = (TreeMap)((TreeMap)this.jutilsMap).clone();
>>
>>Should I fix this. Or do you do it, or is it an incorrect way of using
>>Global?
>>
>> p.jutilsMap = this.jutilsMap != null ? (TreeMap)((TreeMap)this.jutilsMap).clone():null;
>>
>>
>>//Peter
>>
>>
> Peter, nice you came back.
> Please fix it yourself.
> When do you plan to work/finish on it?
> We could wait with release 0.80 until you are ready.
> Note that we have session support now in xmlBlaster.
>
> regards,
>
> Marcel
>
>
>
Next week, I will ad XmlBlaster as a service (MBean) to be possible to
deploy in a JMX container. I am also working on the session based stuff
now but are having some problems. When I login with just name/pwd as
before (but with only one user) it works fine, but if I try to login
with a ConnectionQos the client is refused to connect to the server.
//Peter
--
------------------------------------------------------------
Peter Antman Chief Systems Architect, Business Development
Technology in Media, Box 34105 100 26 Stockholm
WWW: http://www.tim.se WWW: http://www.backsource.org
Email: pra at tim.se
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942
------------------------------------------------------------