java.lang.IllegalArgumentException

ZK-Tracker | yaminglin1977 | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    as showed in http://www.zkoss.org/forum/listComment/5322-ZK-and-JavaRebel I'm trying using JavaRebel with ZK and context is reloaded always.but when i try setting system property 'org.zkoss.zel.BeanELResolver.CACHE_SIZE' to '0' ,as is blow in zk.xml: <system-property> <name>org.zkoss.zel.BeanELResolver.CACHE_SIZE</name> <value>0</value> </system-property> ,it has no effect ,i look into the source code of BeanELResolver,find the following code: public ConcurrentCache(int size) { this.size = size; this.eden = new ConcurrentHashMap<K,V>(size); this.longterm = new WeakHashMap<K,V>(size); } ,it seem no use to set size to 0 for disabling the cache,when i set 'org.zkoss.zel.BeanELResolver.CACHE_SIZE' to -1, the cosole show following exception when i visit the zul page: java.lang.IllegalArgumentException at java.util.concurrent.ConcurrentHashMap.<init>(Unknown Source) at java.util.concurrent.ConcurrentHashMap.<init>(Unknown Source) at org.zkoss.zel.BeanELResolver$ConcurrentCache.<init>(BeanELResolver.java:411) at org.zkoss.zel.BeanELResolver.<init>(BeanELResolver.java:63) at org.zkoss.xel.zel.XelELResolver.<clinit>(XelELResolver.java:49) at org.zkoss.bind.xel.zel.BindELContext.newELResolver(BindELContext.java:58) at org.zkoss.xel.zel.XelELContext.<init>(XelELContext.java:47) at org.zkoss.bind.xel.zel.BindELContext.<init>(BindELContext.java:54) at org.zkoss.bind.xel.BindXelFactory.newELContext(BindXelFactory.java:36) at org.zkoss.bind.xel.BindXelFactory.parseExpression(BindXelFactory.java:30) at org.zkoss.bind.impl.BindEvaluatorXImpl.parseExpressionX(BindEvaluatorXImpl.java:69) at org.zkoss.bind.impl.BindEvaluatorXUtil.eval(BindEvaluatorXUtil.java:54) at org.zkoss.bind.BindComposer.initViewModel(BindComposer.java:146) at org.zkoss.bind.BindComposer.doAfterCompose(BindComposer.java:116) at org.zkoss.zk.ui.impl.UiEngineImpl.doAfterCompose(UiEngineImpl.java:526) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:821) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:767) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:676) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:738) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:698) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:640) at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:391) i post a request for disabling mvvm composer class method cache.

    ZK-Tracker | 5 years ago | yaminglin1977
    java.lang.IllegalArgumentException
  2. 0

    as showed in http://www.zkoss.org/forum/listComment/5322-ZK-and-JavaRebel I'm trying using JavaRebel with ZK and context is reloaded always.but when i try setting system property 'org.zkoss.zel.BeanELResolver.CACHE_SIZE' to '0' ,as is blow in zk.xml: <system-property> <name>org.zkoss.zel.BeanELResolver.CACHE_SIZE</name> <value>0</value> </system-property> ,it has no effect ,i look into the source code of BeanELResolver,find the following code: public ConcurrentCache(int size) { this.size = size; this.eden = new ConcurrentHashMap<K,V>(size); this.longterm = new WeakHashMap<K,V>(size); } ,it seem no use to set size to 0 for disabling the cache,when i set 'org.zkoss.zel.BeanELResolver.CACHE_SIZE' to -1, the cosole show following exception when i visit the zul page: java.lang.IllegalArgumentException at java.util.concurrent.ConcurrentHashMap.<init>(Unknown Source) at java.util.concurrent.ConcurrentHashMap.<init>(Unknown Source) at org.zkoss.zel.BeanELResolver$ConcurrentCache.<init>(BeanELResolver.java:411) at org.zkoss.zel.BeanELResolver.<init>(BeanELResolver.java:63) at org.zkoss.xel.zel.XelELResolver.<clinit>(XelELResolver.java:49) at org.zkoss.bind.xel.zel.BindELContext.newELResolver(BindELContext.java:58) at org.zkoss.xel.zel.XelELContext.<init>(XelELContext.java:47) at org.zkoss.bind.xel.zel.BindELContext.<init>(BindELContext.java:54) at org.zkoss.bind.xel.BindXelFactory.newELContext(BindXelFactory.java:36) at org.zkoss.bind.xel.BindXelFactory.parseExpression(BindXelFactory.java:30) at org.zkoss.bind.impl.BindEvaluatorXImpl.parseExpressionX(BindEvaluatorXImpl.java:69) at org.zkoss.bind.impl.BindEvaluatorXUtil.eval(BindEvaluatorXUtil.java:54) at org.zkoss.bind.BindComposer.initViewModel(BindComposer.java:146) at org.zkoss.bind.BindComposer.doAfterCompose(BindComposer.java:116) at org.zkoss.zk.ui.impl.UiEngineImpl.doAfterCompose(UiEngineImpl.java:526) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:821) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:767) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:676) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:738) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:698) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:640) at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:391) i post a request for disabling mvvm composer class method cache.

    ZK-Tracker | 5 years ago | yaminglin1977
    java.lang.IllegalArgumentException

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      No message provided

      at java.util.concurrent.ConcurrentHashMap.<init>()
    2. Java RT
      ConcurrentHashMap.<init>
      1. java.util.concurrent.ConcurrentHashMap.<init>(Unknown Source)
      2. java.util.concurrent.ConcurrentHashMap.<init>(Unknown Source)
      2 frames
    3. The ZK EL Library
      BeanELResolver.<init>
      1. org.zkoss.zel.BeanELResolver$ConcurrentCache.<init>(BeanELResolver.java:411)
      2. org.zkoss.zel.BeanELResolver.<init>(BeanELResolver.java:63)
      2 frames
    4. The ZKoss Common Library
      XelELResolver.<clinit>
      1. org.zkoss.xel.zel.XelELResolver.<clinit>(XelELResolver.java:49)
      1 frame
    5. ZK Bind
      BindELContext.newELResolver
      1. org.zkoss.bind.xel.zel.BindELContext.newELResolver(BindELContext.java:58)
      1 frame
    6. The ZKoss Common Library
      XelELContext.<init>
      1. org.zkoss.xel.zel.XelELContext.<init>(XelELContext.java:47)
      1 frame
    7. ZK Bind
      BindComposer.doAfterCompose
      1. org.zkoss.bind.xel.zel.BindELContext.<init>(BindELContext.java:54)
      2. org.zkoss.bind.xel.BindXelFactory.newELContext(BindXelFactory.java:36)
      3. org.zkoss.bind.xel.BindXelFactory.parseExpression(BindXelFactory.java:30)
      4. org.zkoss.bind.impl.BindEvaluatorXImpl.parseExpressionX(BindEvaluatorXImpl.java:69)
      5. org.zkoss.bind.impl.BindEvaluatorXUtil.eval(BindEvaluatorXUtil.java:54)
      6. org.zkoss.bind.BindComposer.initViewModel(BindComposer.java:146)
      7. org.zkoss.bind.BindComposer.doAfterCompose(BindComposer.java:116)
      7 frames
    8. ZK Kernel
      UiEngineImpl.execNewPage0
      1. org.zkoss.zk.ui.impl.UiEngineImpl.doAfterCompose(UiEngineImpl.java:526)
      2. org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:821)
      3. org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:767)
      4. org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:676)
      5. org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:738)
      6. org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:698)
      7. org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:640)
      8. org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:391)
      8 frames