java.lang.IllegalArgumentException

ZK-Tracker | yaminglin1977 | 4 years ago
  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 | 4 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 | 4 years ago | yaminglin1977
    java.lang.IllegalArgumentException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    IronGolem crash

    GitHub | 5 months ago | InventivetalentDev
    java.lang.RuntimeException: Failed to invoke @Watch method void damageArmor(float) with args: [3.0, SuperSwitch(state=PASS)]
  5. 0

    FinancingMonthlyPayment no return currencyID

    GitHub | 2 months ago | felipegirotti
    java.lang.IllegalArgumentException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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