You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by "brad.peters" <br...@petersvision.com> on 2015/11/03 20:12:44 UTC

java.lang.NullPointerException or java.lang.IllegalMonitorStateException

I am working with the basic Put/Get example.  It all works find on my local
machine but when I copy to my server and try to execute I get either a
NullPointer or IllegalMonitorState exception.  I checked that the java
versions are the same.  Do you have any suggestions that might help me? 
Here is the output I get.


Nov 03, 2015 3:08:23 PM java.util.logging.LogManager$RootLogger log
SEVERE: Failed to resolve default logging config file:
config/java.util.logging.properties
[15:08:23]    __________  ________________ 
[15:08:23]   /  _/ ___/ |/ /  _/_  __/ __/ 
[15:08:23]  _/ // (7 7    // /  / / / _/   
[15:08:23] /___/\___/_/|_/___/ /_/ /___/  
[15:08:23] 
[15:08:23] ver. 1.4.0#20150924-sha1:c2def5f6
[15:08:23] 2015 Copyright(C) Apache Software Foundation
[15:08:23] 
[15:08:23] Ignite documentation: http://ignite.apache.org
[15:08:23] 
[15:08:23] Quiet mode.
[15:08:23]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
or "-v" to ignite.{sh|bat}
[15:08:23] 
[15:08:23] Configured plugins:
[15:08:23]   ^-- None
[15:08:23] 
[15:08:24] Security status [authentication=off, communication
encryption=off]
[15:08:24] Performance suggestions for grid  (fix if possible)
[15:08:24] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[15:08:24]   ^-- Disable peer class loading (set 'peerClassLoadingEnabled'
to false)
[15:08:24] 
[15:08:24] To start Console Management & Monitoring run
ignitevisorcmd.{sh|bat}
[15:08:24] 
[15:08:24] Ignite node started OK (id=9febf13f)
[15:08:24] Topology snapshot [ver=1, servers=1, clients=0, CPUs=40,
heap=10.0GB]
Cache name: CachePutGetExample

>>> Cache put-get example started.
Nov 03, 2015 3:08:25 PM org.apache.ignite.logger.java.JavaLogger error
SEVERE: <CachePutGetExample> Unexpected exception during cache update
java.lang.NullPointerException
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.lockEntries(GridDhtAtomicCache.java:2169)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1109)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal(GridDhtAtomicCache.java:1068)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapSingle(GridNearAtomicUpdateFuture.java:462)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.access$1200(GridNearAtomicUpdateFuture.java:73)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.map(GridNearAtomicUpdateFuture.java:880)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapOnTopology(GridNearAtomicUpdateFuture.java:422)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map(GridNearAtomicUpdateFuture.java:291)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:844)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:842)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:648)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsync0(GridDhtAtomicCache.java:842)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.putAsync0(GridDhtAtomicCache.java:381)
	at
org.apache.ignite.internal.processors.cache.GridCacheAdapter.putAsync(GridCacheAdapter.java:2417)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.put(GridDhtAtomicCache.java:357)
	at
org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2123)
	at
org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1011)
	at project.ignite.CachePutGetExample.putGet(CachePutGetExample.java:59)
	at project.ignite.CachePutGetExample.main(CachePutGetExample.java:36)

[15:08:25] Ignite node stopped OK [uptime=00:00:01:36]
Exception in thread "main"
org.apache.ignite.cache.CachePartialUpdateException: Failed to update keys
(retry update if possible).: [8176]
	at
org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1608)
	at
org.apache.ignite.internal.processors.cache.IgniteCacheProxy.cacheException(IgniteCacheProxy.java:1744)
	at
org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1018)
	at project.ignite.CachePutGetExample.putGet(CachePutGetExample.java:59)
	at project.ignite.CachePutGetExample.main(CachePutGetExample.java:36)
Caused by: class
org.apache.ignite.internal.processors.cache.CachePartialUpdateCheckedException:
Failed to update keys (retry update if possible).: [8176]
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.addFailedKeys(GridNearAtomicUpdateFuture.java:1173)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.onResult(GridNearAtomicUpdateFuture.java:652)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.onResult(GridNearAtomicUpdateFuture.java:351)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$2.apply(GridNearAtomicUpdateFuture.java:465)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$2.apply(GridNearAtomicUpdateFuture.java:463)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1256)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal(GridDhtAtomicCache.java:1068)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapSingle(GridNearAtomicUpdateFuture.java:462)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.access$1200(GridNearAtomicUpdateFuture.java:73)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.map(GridNearAtomicUpdateFuture.java:880)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapOnTopology(GridNearAtomicUpdateFuture.java:422)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map(GridNearAtomicUpdateFuture.java:291)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:844)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:842)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:648)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsync0(GridDhtAtomicCache.java:842)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.putAsync0(GridDhtAtomicCache.java:381)
	at
org.apache.ignite.internal.processors.cache.GridCacheAdapter.putAsync(GridCacheAdapter.java:2417)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.put(GridDhtAtomicCache.java:357)
	at
org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2123)
	at
org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1011)
	... 2 more
	Suppressed: class org.apache.ignite.IgniteCheckedException: Failed to
update keys on primary node.
		at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateResponse.addFailedKeys(GridNearAtomicUpdateResponse.java:366)
		at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1254)
		... 17 more
		Suppressed: java.lang.NullPointerException
			at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.lockEntries(GridDhtAtomicCache.java:2169)
			at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1109)
			... 17 more




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/java-lang-NullPointerException-or-java-lang-IllegalMonitorStateException-tp1830.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: java.lang.NullPointerException or java.lang.IllegalMonitorStateException

Posted by Andrey Gura <ag...@gridgain.com>.
Brad,

Unfortunatelly I didn't found any way to create ticket on IBM site. I
created ticket in Ignite JIRA with problem description and suggested work
around (https://issues.apache.org/jira/browse/IGNITE-1938).


On Wed, Nov 11, 2015 at 3:38 PM, Andrey Gura <ag...@gridgain.com> wrote:

> Brad,
>
> Ok. I'll post information about investigation to this thread.
>
> On Tue, Nov 10, 2015 at 11:11 PM, brad.peters <br...@petersvision.com>
> wrote:
>
>> Thanks Andrey.
>>
>> Could you send me the ticket number if they open one so I can follow up.
>>
>> Thanks
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-ignite-users.70518.x6.nabble.com/java-lang-NullPointerException-or-java-lang-IllegalMonitorStateException-tp1830p1915.html
>> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Andrey Gura
> GridGain Systems, Inc.
> www.gridgain.com
>



-- 
Andrey Gura
GridGain Systems, Inc.
www.gridgain.com

Re: java.lang.NullPointerException or java.lang.IllegalMonitorStateException

Posted by Andrey Gura <ag...@gridgain.com>.
Brad,

Ok. I'll post information about investigation to this thread.

On Tue, Nov 10, 2015 at 11:11 PM, brad.peters <br...@petersvision.com> wrote:

> Thanks Andrey.
>
> Could you send me the ticket number if they open one so I can follow up.
>
> Thanks
>
>
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/java-lang-NullPointerException-or-java-lang-IllegalMonitorStateException-tp1830p1915.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Andrey Gura
GridGain Systems, Inc.
www.gridgain.com

Re: java.lang.NullPointerException or java.lang.IllegalMonitorStateException

Posted by "brad.peters" <br...@petersvision.com>.
Thanks Andrey.

Could you send me the ticket number if they open one so I can follow up. 

Thanks





--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/java-lang-NullPointerException-or-java-lang-IllegalMonitorStateException-tp1830p1915.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: java.lang.NullPointerException or java.lang.IllegalMonitorStateException

Posted by Andrey Gura <ag...@gridgain.com>.
Brad,

Thank you for provided information. It is consistent with my experience.

Unfortunatelly we can't fix it. I'll investigate problem deeper and file
ticket to IBM.

You can try to disable JIT for GridDhtAtomicCache.lockEntries method. Use
-Xjit:exclude=<method> option. It should work. See JIT and AOT command-line
options for details (
https://www-01.ibm.com/support/knowledgecenter/SSYKE2_8.0.0/com.ibm.java.lnx.80.doc/diag/appendixes/cmdline/commands_jit.html
).





On Fri, Nov 6, 2015 at 10:59 PM, brad.peters <br...@petersvision.com> wrote:

> This version of Java works:
> java version "1.7.0"
> Java(TM) SE Runtime Environment (build pxa6470sr8fp10ifix-20150313_01(SR8
> FP10+IV70681))
> IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 Compressed References
> 20141216_227497 (JIT enabled, AOT enabled)
> J9VM - R26_Java726_SR8_20141216_0955_B227497
> JIT  - r11.b07_20141003_74578.05
> GC   - R26_Java726_SR8_20141216_0955_B227497_CMPRSS
> J9CL - 20141216_227497)
> JCL - 20141217_01 based on Oracle jdk7u75-b12
>
> This one also does work:
> java version "1.8.0_65"
> Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
> Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
>
> This one does not:
> java version "1.8.0"
> Java(TM) SE Runtime Environment (build pxa6480ifix-20150313_01(IV70681))
> IBM J9 VM (build 2.8, JRE 1.8.0 Linux amd64-64 Compressed References
> 20150116_231420 (JIT enabled, AOT enabled)
> J9VM - R28_Java8_GA_20150116_2030_B231420
> JIT  - tr.r14.java_20150109_82886.02
> GC   - R28_Java8_GA_20150116_2030_B231420_CMPRSS
> J9CL - 20150116_231420)
> JCL - 20150123_01 based on Oracle jdk8u31-b12
>
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/java-lang-NullPointerException-or-java-lang-IllegalMonitorStateException-tp1830p1873.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Andrey Gura
GridGain Systems, Inc.
www.gridgain.com

Re: java.lang.NullPointerException or java.lang.IllegalMonitorStateException

Posted by "brad.peters" <br...@petersvision.com>.
This version of Java works:
java version "1.7.0"
Java(TM) SE Runtime Environment (build pxa6470sr8fp10ifix-20150313_01(SR8
FP10+IV70681))
IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 Compressed References
20141216_227497 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR8_20141216_0955_B227497
JIT  - r11.b07_20141003_74578.05
GC   - R26_Java726_SR8_20141216_0955_B227497_CMPRSS
J9CL - 20141216_227497)
JCL - 20141217_01 based on Oracle jdk7u75-b12

This one also does work:
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

This one does not:
java version "1.8.0"
Java(TM) SE Runtime Environment (build pxa6480ifix-20150313_01(IV70681))
IBM J9 VM (build 2.8, JRE 1.8.0 Linux amd64-64 Compressed References
20150116_231420 (JIT enabled, AOT enabled)
J9VM - R28_Java8_GA_20150116_2030_B231420
JIT  - tr.r14.java_20150109_82886.02
GC   - R28_Java8_GA_20150116_2030_B231420_CMPRSS
J9CL - 20150116_231420)
JCL - 20150123_01 based on Oracle jdk8u31-b12




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/java-lang-NullPointerException-or-java-lang-IllegalMonitorStateException-tp1830p1873.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: java.lang.NullPointerException or java.lang.IllegalMonitorStateException

Posted by Yakov Zhdanov <yz...@apache.org>.
seems to be too trivial to file ticket for. fixed in master.

--Yakov

2015-11-04 11:49 GMT+03:00 Dmitriy Setrakyan <ds...@apache.org>:

> On Wed, Nov 4, 2015 at 12:14 AM, Yakov Zhdanov <yz...@apache.org>
> wrote:
>
> > Guys,
> >
> > We are still facing issues with quiet logging mode. Can anyone
> > add information on java runtime and OS to quiet mode?
> >
>
> Yakov, I completely agree. I think this would be a good newbie ticket. Can
> you please create it?
>
>
> >
> >
> > --Yakov
> >
> > ---------- Forwarded message ----------
> > From: Andrey Gura <ag...@gridgain.com>
> > Date: 2015-11-04 0:10 GMT+03:00
> > Subject: Re: java.lang.NullPointerException or
> > java.lang.IllegalMonitorStateException
> > To: user@ignite.apache.org
> >
> >
> > Brad,
> >
> > It is JIT compiler bug. I have exactly the same behavior under JRE IBM J9
> > 8.0-1.10.
> >
> > If you also have this problem under IBM JRE as work around you can just
> > disable JIT using flag JVM option -Xnojit (not for performance tests or
> > production of course).
> >
> > Also could you please share with me information about your environment
> (OS,
> > JRE version, JRE vendor)?
> >
> > Thanks.
> >
> > On Tue, Nov 3, 2015 at 10:12 PM, brad.peters <br...@petersvision.com>
> > wrote:
> >
> > > I am working with the basic Put/Get example.  It all works find on my
> > local
> > > machine but when I copy to my server and try to execute I get either a
> > > NullPointer or IllegalMonitorState exception.  I checked that the java
> > > versions are the same.  Do you have any suggestions that might help me?
> > > Here is the output I get.
> > >
> > >
> > > Nov 03, 2015 3:08:23 PM java.util.logging.LogManager$RootLogger log
> > > SEVERE: Failed to resolve default logging config file:
> > > config/java.util.logging.properties
> > > [15:08:23]    __________  ________________
> > > [15:08:23]   /  _/ ___/ |/ /  _/_  __/ __/
> > > [15:08:23]  _/ // (7 7    // /  / / / _/
> > > [15:08:23] /___/\___/_/|_/___/ /_/ /___/
> > > [15:08:23]
> > > [15:08:23] ver. 1.4.0#20150924-sha1:c2def5f6
> > > [15:08:23] 2015 Copyright(C) Apache Software Foundation
> > > [15:08:23]
> > > [15:08:23] Ignite documentation: http://ignite.apache.org
> > > [15:08:23]
> > > [15:08:23] Quiet mode.
> > > [15:08:23]   ^-- To see **FULL** console log here add
> > -DIGNITE_QUIET=false
> > > or "-v" to ignite.{sh|bat}
> > > [15:08:23]
> > > [15:08:23] Configured plugins:
> > > [15:08:23]   ^-- None
> > > [15:08:23]
> > > [15:08:24] Security status [authentication=off, communication
> > > encryption=off]
> > > [15:08:24] Performance suggestions for grid  (fix if possible)
> > > [15:08:24] To disable, set
> -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
> > > [15:08:24]   ^-- Disable peer class loading (set
> > 'peerClassLoadingEnabled'
> > > to false)
> > > [15:08:24]
> > > [15:08:24] To start Console Management & Monitoring run
> > > ignitevisorcmd.{sh|bat}
> > > [15:08:24]
> > > [15:08:24] Ignite node started OK (id=9febf13f)
> > > [15:08:24] Topology snapshot [ver=1, servers=1, clients=0, CPUs=40,
> > > heap=10.0GB]
> > > Cache name: CachePutGetExample
> > >
> > > >>> Cache put-get example started.
> > > Nov 03, 2015 3:08:25 PM org.apache.ignite.logger.java.JavaLogger error
> > > SEVERE: <CachePutGetExample> Unexpected exception during cache update
> > > java.lang.NullPointerException
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.lockEntries(GridDhtAtomicCache.java:2169)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1109)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal(GridDhtAtomicCache.java:1068)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapSingle(GridNearAtomicUpdateFuture.java:462)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.access$1200(GridNearAtomicUpdateFuture.java:73)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.map(GridNearAtomicUpdateFuture.java:880)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapOnTopology(GridNearAtomicUpdateFuture.java:422)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map(GridNearAtomicUpdateFuture.java:291)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:844)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:842)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:648)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsync0(GridDhtAtomicCache.java:842)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.putAsync0(GridDhtAtomicCache.java:381)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.putAsync(GridCacheAdapter.java:2417)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.put(GridDhtAtomicCache.java:357)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2123)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1011)
> > >         at
> > > project.ignite.CachePutGetExample.putGet(CachePutGetExample.java:59)
> > >         at
> > > project.ignite.CachePutGetExample.main(CachePutGetExample.java:36)
> > >
> > > [15:08:25] Ignite node stopped OK [uptime=00:00:01:36]
> > > Exception in thread "main"
> > > org.apache.ignite.cache.CachePartialUpdateException: Failed to update
> > keys
> > > (retry update if possible).: [8176]
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1608)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.cacheException(IgniteCacheProxy.java:1744)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1018)
> > >         at
> > > project.ignite.CachePutGetExample.putGet(CachePutGetExample.java:59)
> > >         at
> > > project.ignite.CachePutGetExample.main(CachePutGetExample.java:36)
> > > Caused by: class
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.CachePartialUpdateCheckedException:
> > > Failed to update keys (retry update if possible).: [8176]
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.addFailedKeys(GridNearAtomicUpdateFuture.java:1173)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.onResult(GridNearAtomicUpdateFuture.java:652)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.onResult(GridNearAtomicUpdateFuture.java:351)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$2.apply(GridNearAtomicUpdateFuture.java:465)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$2.apply(GridNearAtomicUpdateFuture.java:463)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1256)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal(GridDhtAtomicCache.java:1068)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapSingle(GridNearAtomicUpdateFuture.java:462)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.access$1200(GridNearAtomicUpdateFuture.java:73)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.map(GridNearAtomicUpdateFuture.java:880)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapOnTopology(GridNearAtomicUpdateFuture.java:422)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map(GridNearAtomicUpdateFuture.java:291)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:844)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:842)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:648)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsync0(GridDhtAtomicCache.java:842)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.putAsync0(GridDhtAtomicCache.java:381)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.putAsync(GridCacheAdapter.java:2417)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.put(GridDhtAtomicCache.java:357)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2123)
> > >         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1011)
> > >         ... 2 more
> > >         Suppressed: class org.apache.ignite.IgniteCheckedException:
> > Failed
> > > to
> > > update keys on primary node.
> > >                 at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateResponse.addFailedKeys(GridNearAtomicUpdateResponse.java:366)
> > >                 at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1254)
> > >                 ... 17 more
> > >                 Suppressed: java.lang.NullPointerException
> > >                         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.lockEntries(GridDhtAtomicCache.java:2169)
> > >                         at
> > >
> > >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1109)
> > >                         ... 17 more
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-ignite-users.70518.x6.nabble.com/java-lang-NullPointerException-or-java-lang-IllegalMonitorStateException-tp1830.html
> > > Sent from the Apache Ignite Users mailing list archive at Nabble.com.
> > >
> >
> >
> >
> > --
> > Andrey Gura
> > GridGain Systems, Inc.
> > www.gridgain.com
> >
>

Re: java.lang.NullPointerException or java.lang.IllegalMonitorStateException

Posted by Dmitriy Setrakyan <ds...@apache.org>.
On Wed, Nov 4, 2015 at 12:14 AM, Yakov Zhdanov <yz...@apache.org> wrote:

> Guys,
>
> We are still facing issues with quiet logging mode. Can anyone
> add information on java runtime and OS to quiet mode?
>

Yakov, I completely agree. I think this would be a good newbie ticket. Can
you please create it?


>
>
> --Yakov
>
> ---------- Forwarded message ----------
> From: Andrey Gura <ag...@gridgain.com>
> Date: 2015-11-04 0:10 GMT+03:00
> Subject: Re: java.lang.NullPointerException or
> java.lang.IllegalMonitorStateException
> To: user@ignite.apache.org
>
>
> Brad,
>
> It is JIT compiler bug. I have exactly the same behavior under JRE IBM J9
> 8.0-1.10.
>
> If you also have this problem under IBM JRE as work around you can just
> disable JIT using flag JVM option -Xnojit (not for performance tests or
> production of course).
>
> Also could you please share with me information about your environment (OS,
> JRE version, JRE vendor)?
>
> Thanks.
>
> On Tue, Nov 3, 2015 at 10:12 PM, brad.peters <br...@petersvision.com>
> wrote:
>
> > I am working with the basic Put/Get example.  It all works find on my
> local
> > machine but when I copy to my server and try to execute I get either a
> > NullPointer or IllegalMonitorState exception.  I checked that the java
> > versions are the same.  Do you have any suggestions that might help me?
> > Here is the output I get.
> >
> >
> > Nov 03, 2015 3:08:23 PM java.util.logging.LogManager$RootLogger log
> > SEVERE: Failed to resolve default logging config file:
> > config/java.util.logging.properties
> > [15:08:23]    __________  ________________
> > [15:08:23]   /  _/ ___/ |/ /  _/_  __/ __/
> > [15:08:23]  _/ // (7 7    // /  / / / _/
> > [15:08:23] /___/\___/_/|_/___/ /_/ /___/
> > [15:08:23]
> > [15:08:23] ver. 1.4.0#20150924-sha1:c2def5f6
> > [15:08:23] 2015 Copyright(C) Apache Software Foundation
> > [15:08:23]
> > [15:08:23] Ignite documentation: http://ignite.apache.org
> > [15:08:23]
> > [15:08:23] Quiet mode.
> > [15:08:23]   ^-- To see **FULL** console log here add
> -DIGNITE_QUIET=false
> > or "-v" to ignite.{sh|bat}
> > [15:08:23]
> > [15:08:23] Configured plugins:
> > [15:08:23]   ^-- None
> > [15:08:23]
> > [15:08:24] Security status [authentication=off, communication
> > encryption=off]
> > [15:08:24] Performance suggestions for grid  (fix if possible)
> > [15:08:24] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
> > [15:08:24]   ^-- Disable peer class loading (set
> 'peerClassLoadingEnabled'
> > to false)
> > [15:08:24]
> > [15:08:24] To start Console Management & Monitoring run
> > ignitevisorcmd.{sh|bat}
> > [15:08:24]
> > [15:08:24] Ignite node started OK (id=9febf13f)
> > [15:08:24] Topology snapshot [ver=1, servers=1, clients=0, CPUs=40,
> > heap=10.0GB]
> > Cache name: CachePutGetExample
> >
> > >>> Cache put-get example started.
> > Nov 03, 2015 3:08:25 PM org.apache.ignite.logger.java.JavaLogger error
> > SEVERE: <CachePutGetExample> Unexpected exception during cache update
> > java.lang.NullPointerException
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.lockEntries(GridDhtAtomicCache.java:2169)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1109)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal(GridDhtAtomicCache.java:1068)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapSingle(GridNearAtomicUpdateFuture.java:462)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.access$1200(GridNearAtomicUpdateFuture.java:73)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.map(GridNearAtomicUpdateFuture.java:880)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapOnTopology(GridNearAtomicUpdateFuture.java:422)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map(GridNearAtomicUpdateFuture.java:291)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:844)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:842)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:648)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsync0(GridDhtAtomicCache.java:842)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.putAsync0(GridDhtAtomicCache.java:381)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.putAsync(GridCacheAdapter.java:2417)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.put(GridDhtAtomicCache.java:357)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2123)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1011)
> >         at
> > project.ignite.CachePutGetExample.putGet(CachePutGetExample.java:59)
> >         at
> > project.ignite.CachePutGetExample.main(CachePutGetExample.java:36)
> >
> > [15:08:25] Ignite node stopped OK [uptime=00:00:01:36]
> > Exception in thread "main"
> > org.apache.ignite.cache.CachePartialUpdateException: Failed to update
> keys
> > (retry update if possible).: [8176]
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1608)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.cacheException(IgniteCacheProxy.java:1744)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1018)
> >         at
> > project.ignite.CachePutGetExample.putGet(CachePutGetExample.java:59)
> >         at
> > project.ignite.CachePutGetExample.main(CachePutGetExample.java:36)
> > Caused by: class
> >
> >
> org.apache.ignite.internal.processors.cache.CachePartialUpdateCheckedException:
> > Failed to update keys (retry update if possible).: [8176]
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.addFailedKeys(GridNearAtomicUpdateFuture.java:1173)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.onResult(GridNearAtomicUpdateFuture.java:652)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.onResult(GridNearAtomicUpdateFuture.java:351)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$2.apply(GridNearAtomicUpdateFuture.java:465)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$2.apply(GridNearAtomicUpdateFuture.java:463)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1256)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal(GridDhtAtomicCache.java:1068)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapSingle(GridNearAtomicUpdateFuture.java:462)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.access$1200(GridNearAtomicUpdateFuture.java:73)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.map(GridNearAtomicUpdateFuture.java:880)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapOnTopology(GridNearAtomicUpdateFuture.java:422)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map(GridNearAtomicUpdateFuture.java:291)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:844)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:842)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:648)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsync0(GridDhtAtomicCache.java:842)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.putAsync0(GridDhtAtomicCache.java:381)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.putAsync(GridCacheAdapter.java:2417)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.put(GridDhtAtomicCache.java:357)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2123)
> >         at
> >
> >
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1011)
> >         ... 2 more
> >         Suppressed: class org.apache.ignite.IgniteCheckedException:
> Failed
> > to
> > update keys on primary node.
> >                 at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateResponse.addFailedKeys(GridNearAtomicUpdateResponse.java:366)
> >                 at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1254)
> >                 ... 17 more
> >                 Suppressed: java.lang.NullPointerException
> >                         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.lockEntries(GridDhtAtomicCache.java:2169)
> >                         at
> >
> >
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1109)
> >                         ... 17 more
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-ignite-users.70518.x6.nabble.com/java-lang-NullPointerException-or-java-lang-IllegalMonitorStateException-tp1830.html
> > Sent from the Apache Ignite Users mailing list archive at Nabble.com.
> >
>
>
>
> --
> Andrey Gura
> GridGain Systems, Inc.
> www.gridgain.com
>

Fwd: java.lang.NullPointerException or java.lang.IllegalMonitorStateException

Posted by Yakov Zhdanov <yz...@apache.org>.
Guys,

We are still facing issues with quiet logging mode. Can anyone add
information on java runtime and OS to quiet mode?


--Yakov

---------- Forwarded message ----------
From: Andrey Gura <ag...@gridgain.com>
Date: 2015-11-04 0:10 GMT+03:00
Subject: Re: java.lang.NullPointerException or
java.lang.IllegalMonitorStateException
To: user@ignite.apache.org


Brad,

It is JIT compiler bug. I have exactly the same behavior under JRE IBM J9
8.0-1.10.

If you also have this problem under IBM JRE as work around you can just
disable JIT using flag JVM option -Xnojit (not for performance tests or
production of course).

Also could you please share with me information about your environment (OS,
JRE version, JRE vendor)?

Thanks.

On Tue, Nov 3, 2015 at 10:12 PM, brad.peters <br...@petersvision.com> wrote:

> I am working with the basic Put/Get example.  It all works find on my local
> machine but when I copy to my server and try to execute I get either a
> NullPointer or IllegalMonitorState exception.  I checked that the java
> versions are the same.  Do you have any suggestions that might help me?
> Here is the output I get.
>
>
> Nov 03, 2015 3:08:23 PM java.util.logging.LogManager$RootLogger log
> SEVERE: Failed to resolve default logging config file:
> config/java.util.logging.properties
> [15:08:23]    __________  ________________
> [15:08:23]   /  _/ ___/ |/ /  _/_  __/ __/
> [15:08:23]  _/ // (7 7    // /  / / / _/
> [15:08:23] /___/\___/_/|_/___/ /_/ /___/
> [15:08:23]
> [15:08:23] ver. 1.4.0#20150924-sha1:c2def5f6
> [15:08:23] 2015 Copyright(C) Apache Software Foundation
> [15:08:23]
> [15:08:23] Ignite documentation: http://ignite.apache.org
> [15:08:23]
> [15:08:23] Quiet mode.
> [15:08:23]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
> or "-v" to ignite.{sh|bat}
> [15:08:23]
> [15:08:23] Configured plugins:
> [15:08:23]   ^-- None
> [15:08:23]
> [15:08:24] Security status [authentication=off, communication
> encryption=off]
> [15:08:24] Performance suggestions for grid  (fix if possible)
> [15:08:24] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
> [15:08:24]   ^-- Disable peer class loading (set 'peerClassLoadingEnabled'
> to false)
> [15:08:24]
> [15:08:24] To start Console Management & Monitoring run
> ignitevisorcmd.{sh|bat}
> [15:08:24]
> [15:08:24] Ignite node started OK (id=9febf13f)
> [15:08:24] Topology snapshot [ver=1, servers=1, clients=0, CPUs=40,
> heap=10.0GB]
> Cache name: CachePutGetExample
>
> >>> Cache put-get example started.
> Nov 03, 2015 3:08:25 PM org.apache.ignite.logger.java.JavaLogger error
> SEVERE: <CachePutGetExample> Unexpected exception during cache update
> java.lang.NullPointerException
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.lockEntries(GridDhtAtomicCache.java:2169)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1109)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal(GridDhtAtomicCache.java:1068)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapSingle(GridNearAtomicUpdateFuture.java:462)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.access$1200(GridNearAtomicUpdateFuture.java:73)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.map(GridNearAtomicUpdateFuture.java:880)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapOnTopology(GridNearAtomicUpdateFuture.java:422)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map(GridNearAtomicUpdateFuture.java:291)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:844)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:842)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:648)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsync0(GridDhtAtomicCache.java:842)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.putAsync0(GridDhtAtomicCache.java:381)
>         at
>
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.putAsync(GridCacheAdapter.java:2417)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.put(GridDhtAtomicCache.java:357)
>         at
>
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2123)
>         at
>
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1011)
>         at
> project.ignite.CachePutGetExample.putGet(CachePutGetExample.java:59)
>         at
> project.ignite.CachePutGetExample.main(CachePutGetExample.java:36)
>
> [15:08:25] Ignite node stopped OK [uptime=00:00:01:36]
> Exception in thread "main"
> org.apache.ignite.cache.CachePartialUpdateException: Failed to update keys
> (retry update if possible).: [8176]
>         at
>
> org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1608)
>         at
>
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.cacheException(IgniteCacheProxy.java:1744)
>         at
>
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1018)
>         at
> project.ignite.CachePutGetExample.putGet(CachePutGetExample.java:59)
>         at
> project.ignite.CachePutGetExample.main(CachePutGetExample.java:36)
> Caused by: class
>
> org.apache.ignite.internal.processors.cache.CachePartialUpdateCheckedException:
> Failed to update keys (retry update if possible).: [8176]
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.addFailedKeys(GridNearAtomicUpdateFuture.java:1173)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.onResult(GridNearAtomicUpdateFuture.java:652)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.onResult(GridNearAtomicUpdateFuture.java:351)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$2.apply(GridNearAtomicUpdateFuture.java:465)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$2.apply(GridNearAtomicUpdateFuture.java:463)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1256)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal(GridDhtAtomicCache.java:1068)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapSingle(GridNearAtomicUpdateFuture.java:462)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.access$1200(GridNearAtomicUpdateFuture.java:73)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.map(GridNearAtomicUpdateFuture.java:880)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapOnTopology(GridNearAtomicUpdateFuture.java:422)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map(GridNearAtomicUpdateFuture.java:291)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:844)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:842)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:648)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsync0(GridDhtAtomicCache.java:842)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.putAsync0(GridDhtAtomicCache.java:381)
>         at
>
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.putAsync(GridCacheAdapter.java:2417)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.put(GridDhtAtomicCache.java:357)
>         at
>
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2123)
>         at
>
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1011)
>         ... 2 more
>         Suppressed: class org.apache.ignite.IgniteCheckedException: Failed
> to
> update keys on primary node.
>                 at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateResponse.addFailedKeys(GridNearAtomicUpdateResponse.java:366)
>                 at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1254)
>                 ... 17 more
>                 Suppressed: java.lang.NullPointerException
>                         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.lockEntries(GridDhtAtomicCache.java:2169)
>                         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1109)
>                         ... 17 more
>
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/java-lang-NullPointerException-or-java-lang-IllegalMonitorStateException-tp1830.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Andrey Gura
GridGain Systems, Inc.
www.gridgain.com

Re: java.lang.NullPointerException or java.lang.IllegalMonitorStateException

Posted by Andrey Gura <ag...@gridgain.com>.
Brad,

It is JIT compiler bug. I have exactly the same behavior under JRE IBM J9
8.0-1.10.

If you also have this problem under IBM JRE as work around you can just
disable JIT using flag JVM option -Xnojit (not for performance tests or
production of course).

Also could you please share with me information about your environment (OS,
JRE version, JRE vendor)?

Thanks.

On Tue, Nov 3, 2015 at 10:12 PM, brad.peters <br...@petersvision.com> wrote:

> I am working with the basic Put/Get example.  It all works find on my local
> machine but when I copy to my server and try to execute I get either a
> NullPointer or IllegalMonitorState exception.  I checked that the java
> versions are the same.  Do you have any suggestions that might help me?
> Here is the output I get.
>
>
> Nov 03, 2015 3:08:23 PM java.util.logging.LogManager$RootLogger log
> SEVERE: Failed to resolve default logging config file:
> config/java.util.logging.properties
> [15:08:23]    __________  ________________
> [15:08:23]   /  _/ ___/ |/ /  _/_  __/ __/
> [15:08:23]  _/ // (7 7    // /  / / / _/
> [15:08:23] /___/\___/_/|_/___/ /_/ /___/
> [15:08:23]
> [15:08:23] ver. 1.4.0#20150924-sha1:c2def5f6
> [15:08:23] 2015 Copyright(C) Apache Software Foundation
> [15:08:23]
> [15:08:23] Ignite documentation: http://ignite.apache.org
> [15:08:23]
> [15:08:23] Quiet mode.
> [15:08:23]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
> or "-v" to ignite.{sh|bat}
> [15:08:23]
> [15:08:23] Configured plugins:
> [15:08:23]   ^-- None
> [15:08:23]
> [15:08:24] Security status [authentication=off, communication
> encryption=off]
> [15:08:24] Performance suggestions for grid  (fix if possible)
> [15:08:24] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
> [15:08:24]   ^-- Disable peer class loading (set 'peerClassLoadingEnabled'
> to false)
> [15:08:24]
> [15:08:24] To start Console Management & Monitoring run
> ignitevisorcmd.{sh|bat}
> [15:08:24]
> [15:08:24] Ignite node started OK (id=9febf13f)
> [15:08:24] Topology snapshot [ver=1, servers=1, clients=0, CPUs=40,
> heap=10.0GB]
> Cache name: CachePutGetExample
>
> >>> Cache put-get example started.
> Nov 03, 2015 3:08:25 PM org.apache.ignite.logger.java.JavaLogger error
> SEVERE: <CachePutGetExample> Unexpected exception during cache update
> java.lang.NullPointerException
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.lockEntries(GridDhtAtomicCache.java:2169)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1109)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal(GridDhtAtomicCache.java:1068)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapSingle(GridNearAtomicUpdateFuture.java:462)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.access$1200(GridNearAtomicUpdateFuture.java:73)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.map(GridNearAtomicUpdateFuture.java:880)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapOnTopology(GridNearAtomicUpdateFuture.java:422)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map(GridNearAtomicUpdateFuture.java:291)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:844)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:842)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:648)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsync0(GridDhtAtomicCache.java:842)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.putAsync0(GridDhtAtomicCache.java:381)
>         at
>
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.putAsync(GridCacheAdapter.java:2417)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.put(GridDhtAtomicCache.java:357)
>         at
>
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2123)
>         at
>
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1011)
>         at
> project.ignite.CachePutGetExample.putGet(CachePutGetExample.java:59)
>         at
> project.ignite.CachePutGetExample.main(CachePutGetExample.java:36)
>
> [15:08:25] Ignite node stopped OK [uptime=00:00:01:36]
> Exception in thread "main"
> org.apache.ignite.cache.CachePartialUpdateException: Failed to update keys
> (retry update if possible).: [8176]
>         at
>
> org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1608)
>         at
>
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.cacheException(IgniteCacheProxy.java:1744)
>         at
>
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1018)
>         at
> project.ignite.CachePutGetExample.putGet(CachePutGetExample.java:59)
>         at
> project.ignite.CachePutGetExample.main(CachePutGetExample.java:36)
> Caused by: class
>
> org.apache.ignite.internal.processors.cache.CachePartialUpdateCheckedException:
> Failed to update keys (retry update if possible).: [8176]
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.addFailedKeys(GridNearAtomicUpdateFuture.java:1173)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.onResult(GridNearAtomicUpdateFuture.java:652)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.onResult(GridNearAtomicUpdateFuture.java:351)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$2.apply(GridNearAtomicUpdateFuture.java:465)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$2.apply(GridNearAtomicUpdateFuture.java:463)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1256)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal(GridDhtAtomicCache.java:1068)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapSingle(GridNearAtomicUpdateFuture.java:462)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.access$1200(GridNearAtomicUpdateFuture.java:73)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture$UpdateState.map(GridNearAtomicUpdateFuture.java:880)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapOnTopology(GridNearAtomicUpdateFuture.java:422)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map(GridNearAtomicUpdateFuture.java:291)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:844)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:842)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:648)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsync0(GridDhtAtomicCache.java:842)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.putAsync0(GridDhtAtomicCache.java:381)
>         at
>
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.putAsync(GridCacheAdapter.java:2417)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.put(GridDhtAtomicCache.java:357)
>         at
>
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2123)
>         at
>
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1011)
>         ... 2 more
>         Suppressed: class org.apache.ignite.IgniteCheckedException: Failed
> to
> update keys on primary node.
>                 at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateResponse.addFailedKeys(GridNearAtomicUpdateResponse.java:366)
>                 at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1254)
>                 ... 17 more
>                 Suppressed: java.lang.NullPointerException
>                         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.lockEntries(GridDhtAtomicCache.java:2169)
>                         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1109)
>                         ... 17 more
>
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/java-lang-NullPointerException-or-java-lang-IllegalMonitorStateException-tp1830.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Andrey Gura
GridGain Systems, Inc.
www.gridgain.com