You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by yangjiajun <13...@qq.com> on 2018/12/28 06:04:45 UTC
Ouch! Argument is invalid: Cache name must not be null or empty.
Hello.
I use ignite 2.6 as a database and try to tune data rebalancing according to
following doc:
https://apacheignite.readme.io/docs/rebalancing#section-rebalance-message-throttling
But I get an exception when I set those settings.
class org.apache.ignite.IgniteException: Ouch! Argument is invalid: Cache
name must not be null or empty.
at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:990)
at org.apache.ignite.Ignition.start(Ignition.java:355)
at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:301)
Caused by: class org.apache.ignite.IgniteCheckedException: Ouch! Argument is
invalid: Cache name must not be null or empty.
at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1133)
at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2014)
at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1723)
at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1151)
at
org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1069)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:955)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:854)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:724)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:693)
at org.apache.ignite.Ignition.start(Ignition.java:352)
... 1 more
Caused by: java.lang.IllegalArgumentException: Ouch! Argument is invalid:
Cache name must not be null or empty.
at
org.apache.ignite.internal.util.GridArgumentCheck.ensure(GridArgumentCheck.java:109)
at
org.apache.ignite.internal.processors.cache.GridCacheUtils.validateCacheName(GridCacheUtils.java:1590)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.addCacheOnJoin(GridCacheProcessor.java:738)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.addCacheOnJoinFromConfig(GridCacheProcessor.java:808)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:707)
at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1739)
at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:980)
... 10 more
Failed to start grid: Ouch! Argument is invalid: Cache name must not be null
or empty.
Here is my config file:
example-default2.xml
<http://apache-ignite-users.70518.x6.nabble.com/file/t2059/example-default2.xml>
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
RE: Ouch! Argument is invalid: Cache name must not be null or
empty.
Posted by Stanislav Lukyanov <st...@gmail.com>.
As I’ve said in a thread nearby, there is no such thing as “global cache settings”.
Usually you’ll need to repeat the configuration paratemers for all caches.
You can avoid code/config duplication in multiple ways though.
If you explain your use case in detail, I can suggest a way to do that.
Stan
From: yangjiajun
Sent: 28 декабря 2018 г. 11:11
To: user@ignite.apache.org
Subject: Re: Ouch! Argument is invalid: Cache name must not be null or empty.
Hello.Thanks for your reply.
I want to make such settings global.Do this settings only affect specific
caches?
ezhuravlev wrote
> As you see, the example in config has
> , which means that it's
> just a part of the configuration. Exceptions message says "Cache name must
> not be null" and that really the problem that you faced, just define cache
> name property to resolve this issue.
>
> Evgenii
>
>
> чт, 27 дек. 2018 г. в 22:28, yangjiajun <
> 1371549332@
>>:
>
>> Hello.
>>
>> I use ignite 2.6 as a database and try to tune data rebalancing according
>> to
>> following doc:
>>
>> https://apacheignite.readme.io/docs/rebalancing#section-rebalance-message-throttling
>> But I get an exception when I set those settings.
>>
>> class org.apache.ignite.IgniteException: Ouch! Argument is invalid: Cache
>> name must not be null or empty.
>> at
>>
>> org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:990)
>> at org.apache.ignite.Ignition.start(Ignition.java:355)
>> at
>>
>> org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:301)
>> Caused by: class org.apache.ignite.IgniteCheckedException: Ouch! Argument
>> is
>> invalid: Cache name must not be null or empty.
>> at
>> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1133)
>> at
>>
>> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2014)
>> at
>>
>> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1723)
>> at
>> org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1151)
>> at
>>
>> org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1069)
>> at
>> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:955)
>> at
>> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:854)
>> at
>> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:724)
>> at
>> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:693)
>> at org.apache.ignite.Ignition.start(Ignition.java:352)
>> ... 1 more
>> Caused by: java.lang.IllegalArgumentException: Ouch! Argument is invalid:
>> Cache name must not be null or empty.
>> at
>>
>> org.apache.ignite.internal.util.GridArgumentCheck.ensure(GridArgumentCheck.java:109)
>> at
>>
>> org.apache.ignite.internal.processors.cache.GridCacheUtils.validateCacheName(GridCacheUtils.java:1590)
>> at
>>
>> org.apache.ignite.internal.processors.cache.GridCacheProcessor.addCacheOnJoin(GridCacheProcessor.java:738)
>> at
>>
>> org.apache.ignite.internal.processors.cache.GridCacheProcessor.addCacheOnJoinFromConfig(GridCacheProcessor.java:808)
>> at
>>
>> org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:707)
>> at
>>
>> org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1739)
>> at
>> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:980)
>> ... 10 more
>> Failed to start grid: Ouch! Argument is invalid: Cache name must not be
>> null
>> or empty.
>>
>>
>> Here is my config file:
>> example-default2.xml
>> <
>> http://apache-ignite-users.70518.x6.nabble.com/file/t2059/example-default2.xml>
>>
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Ouch! Argument is invalid: Cache name must not be null or
empty.
Posted by yangjiajun <13...@qq.com>.
Hello.Thanks for your reply.
I want to make such settings global.Do this settings only affect specific
caches?
ezhuravlev wrote
> As you see, the example in config has
> , which means that it's
> just a part of the configuration. Exceptions message says "Cache name must
> not be null" and that really the problem that you faced, just define cache
> name property to resolve this issue.
>
> Evgenii
>
>
> чт, 27 дек. 2018 г. в 22:28, yangjiajun <
> 1371549332@
>>:
>
>> Hello.
>>
>> I use ignite 2.6 as a database and try to tune data rebalancing according
>> to
>> following doc:
>>
>> https://apacheignite.readme.io/docs/rebalancing#section-rebalance-message-throttling
>> But I get an exception when I set those settings.
>>
>> class org.apache.ignite.IgniteException: Ouch! Argument is invalid: Cache
>> name must not be null or empty.
>> at
>>
>> org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:990)
>> at org.apache.ignite.Ignition.start(Ignition.java:355)
>> at
>>
>> org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:301)
>> Caused by: class org.apache.ignite.IgniteCheckedException: Ouch! Argument
>> is
>> invalid: Cache name must not be null or empty.
>> at
>> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1133)
>> at
>>
>> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2014)
>> at
>>
>> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1723)
>> at
>> org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1151)
>> at
>>
>> org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1069)
>> at
>> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:955)
>> at
>> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:854)
>> at
>> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:724)
>> at
>> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:693)
>> at org.apache.ignite.Ignition.start(Ignition.java:352)
>> ... 1 more
>> Caused by: java.lang.IllegalArgumentException: Ouch! Argument is invalid:
>> Cache name must not be null or empty.
>> at
>>
>> org.apache.ignite.internal.util.GridArgumentCheck.ensure(GridArgumentCheck.java:109)
>> at
>>
>> org.apache.ignite.internal.processors.cache.GridCacheUtils.validateCacheName(GridCacheUtils.java:1590)
>> at
>>
>> org.apache.ignite.internal.processors.cache.GridCacheProcessor.addCacheOnJoin(GridCacheProcessor.java:738)
>> at
>>
>> org.apache.ignite.internal.processors.cache.GridCacheProcessor.addCacheOnJoinFromConfig(GridCacheProcessor.java:808)
>> at
>>
>> org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:707)
>> at
>>
>> org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1739)
>> at
>> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:980)
>> ... 10 more
>> Failed to start grid: Ouch! Argument is invalid: Cache name must not be
>> null
>> or empty.
>>
>>
>> Here is my config file:
>> example-default2.xml
>> <
>> http://apache-ignite-users.70518.x6.nabble.com/file/t2059/example-default2.xml>
>>
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Ouch! Argument is invalid: Cache name must not be null or empty.
Posted by Evgenii Zhuravlev <e....@gmail.com>.
As you see, the example in config has <!-- ... -->, which means that it's
just a part of the configuration. Exceptions message says "Cache name must
not be null" and that really the problem that you faced, just define cache
name property to resolve this issue.
Evgenii
чт, 27 дек. 2018 г. в 22:28, yangjiajun <13...@qq.com>:
> Hello.
>
> I use ignite 2.6 as a database and try to tune data rebalancing according
> to
> following doc:
>
> https://apacheignite.readme.io/docs/rebalancing#section-rebalance-message-throttling
> But I get an exception when I set those settings.
>
> class org.apache.ignite.IgniteException: Ouch! Argument is invalid: Cache
> name must not be null or empty.
> at
>
> org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:990)
> at org.apache.ignite.Ignition.start(Ignition.java:355)
> at
>
> org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:301)
> Caused by: class org.apache.ignite.IgniteCheckedException: Ouch! Argument
> is
> invalid: Cache name must not be null or empty.
> at
> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1133)
> at
>
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2014)
> at
>
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1723)
> at
> org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1151)
> at
>
> org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1069)
> at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:955)
> at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:854)
> at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:724)
> at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:693)
> at org.apache.ignite.Ignition.start(Ignition.java:352)
> ... 1 more
> Caused by: java.lang.IllegalArgumentException: Ouch! Argument is invalid:
> Cache name must not be null or empty.
> at
>
> org.apache.ignite.internal.util.GridArgumentCheck.ensure(GridArgumentCheck.java:109)
> at
>
> org.apache.ignite.internal.processors.cache.GridCacheUtils.validateCacheName(GridCacheUtils.java:1590)
> at
>
> org.apache.ignite.internal.processors.cache.GridCacheProcessor.addCacheOnJoin(GridCacheProcessor.java:738)
> at
>
> org.apache.ignite.internal.processors.cache.GridCacheProcessor.addCacheOnJoinFromConfig(GridCacheProcessor.java:808)
> at
>
> org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:707)
> at
>
> org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1739)
> at
> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:980)
> ... 10 more
> Failed to start grid: Ouch! Argument is invalid: Cache name must not be
> null
> or empty.
>
>
> Here is my config file:
> example-default2.xml
> <
> http://apache-ignite-users.70518.x6.nabble.com/file/t2059/example-default2.xml>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>