Hello, Could you please provide reproduced example?
On Wed, Aug 24, 2016 at 11:04 AM, 胡永亮/Bob <[email protected]> wrote: > hi, everyone: > > When I use EntryProcessor to update value in remote node, the > statement entry.getValue() throwed null exception. The log detail is in > the attachement file log.txt. > I don't know why. > > I first do a check with the statement cache.containsKey(key), if it > is true, then do the EntryProcessor. Why null exception happened? > > if (cache.containsKey(key)) { > // Map<String, maplink> map = cache.get(key); > // map.put(mapLink.seclinkID.linkID + "_" > + mapLink.seclinkID.dir, mapLink); > // cache.put(key, map); > line 122 cache.invoke(key, new > EntryProcessor<MapMeshLinkKey,Map<String,maplink>, Void>() { > @Override > public Void process(MutableEntry<MapMeshLinkKey, > Map<String,maplink>> entry, Object... args) { > line 125 Map<String,maplink> map = > entry.getValue(); > map.put(mapLink.seclinkID. > linkID + "_" + mapLink.seclinkID.dir, mapLink); > entry.setValue(map); > return null; > } > }); > ENTRY_COUNT++; > } > > Can anyone help me, or meet this problem? Thanks your reply. > > ------------------------------ > 胡永亮 > > > > ------------------------------------------------------------ > --------------------------------------- > Confidentiality Notice: The information contained in this e-mail and any > accompanying attachment(s) > is intended only for the use of the intended recipient and may be > confidential and/or privileged of > Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader > of this communication is > not the intended recipient, unauthorized use, forwarding, printing, > storing, disclosure or copying > is strictly prohibited, and may be unlawful.If you have received this > communication in error,please > immediately notify the sender by return e-mail, and delete the original > message and all copies from > your system. Thank you. > ------------------------------------------------------------ > --------------------------------------- > -- Vladislav Pyatkov
