java.lang.NoSuchMethodError: cz/valvera/zk/zktest1/BeansViewModel.clicked()V

ZK-Tracker | id9848949 | 5 years ago
  1. 0

    JRebel (http://zeroturnaround.com/jrebel/) is a tool that adds support for hot class reloading to JVM. It can give quite a boost to productivy, as it can eliminite most reasons for redeploying. I tried it with ZK6 and simple MVVM project and it worked to some extent, but e.g. command method signature change failed: III 30, 2012 1:33:43 ODP. org.zkoss.zk.ui.impl.UiEngineImpl handleError:1348 SEVERE: >>java.lang.NoSuchMethodError: cz/valvera/zk/zktest1/BeansViewModel.clicked()V >> at cz.valvera.zk.zktest1.BeansViewModel.clicked(BeansViewModel.java) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:601) >> at org.zkoss.bind.impl.ParamCall.call(ParamCall.java:108) >> at org.zkoss.bind.impl.BinderImpl.doExecute(BinderImpl.java:1476) >> at org.zkoss.bind.impl.BinderImpl.doCommand(BinderImpl.java:1249) >> at org.zkoss.bind.impl.BinderImpl.access$1300(BinderImpl.java:92) >> at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent(BinderImpl.java:1141) (I attached simple project that demonstrates it.) I discussed it with JRebel team member on JRebel's support forum and he suggested that ZK6 can be holding some class metadata cache and is trying to invoke method with old cached signature, is this true?

    ZK-Tracker | 5 years ago | id9848949
    java.lang.NoSuchMethodError: cz/valvera/zk/zktest1/BeansViewModel.clicked()V
  2. 0

    JRebel (http://zeroturnaround.com/jrebel/) is a tool that adds support for hot class reloading to JVM. It can give quite a boost to productivy, as it can eliminite most reasons for redeploying. I tried it with ZK6 and simple MVVM project and it worked to some extent, but e.g. command method signature change failed: III 30, 2012 1:33:43 ODP. org.zkoss.zk.ui.impl.UiEngineImpl handleError:1348 SEVERE: >>java.lang.NoSuchMethodError: cz/valvera/zk/zktest1/BeansViewModel.clicked()V >> at cz.valvera.zk.zktest1.BeansViewModel.clicked(BeansViewModel.java) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:601) >> at org.zkoss.bind.impl.ParamCall.call(ParamCall.java:108) >> at org.zkoss.bind.impl.BinderImpl.doExecute(BinderImpl.java:1476) >> at org.zkoss.bind.impl.BinderImpl.doCommand(BinderImpl.java:1249) >> at org.zkoss.bind.impl.BinderImpl.access$1300(BinderImpl.java:92) >> at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent(BinderImpl.java:1141) (I attached simple project that demonstrates it.) I discussed it with JRebel team member on JRebel's support forum and he suggested that ZK6 can be holding some class metadata cache and is trying to invoke method with old cached signature, is this true?

    ZK-Tracker | 5 years ago | id9848949
    java.lang.NoSuchMethodError: cz/valvera/zk/zktest1/BeansViewModel.clicked()V
  3. 0

    adding methods to existing java class and recompile with my project

    Stack Overflow | 4 years ago | Gal Mazor
    java.lang.NoSuchMethodError: java.lang.String.<init>([CZ)V
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    I was using the library hibernate-entitymanager:4.3.5.Final with java persistence API 2.0 instead of using it with hibernate-entitymanager:4.2.8.Final.

    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.NoSuchMethodError

      cz/valvera/zk/zktest1/BeansViewModel.clicked()V

      at cz.valvera.zk.zktest1.BeansViewModel.clicked()
    2. cz.valvera.zk
      BeansViewModel.clicked
      1. cz.valvera.zk.zktest1.BeansViewModel.clicked(BeansViewModel.java)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      4 frames
    4. ZK Bind
      BinderImpl$CommandEventListener.onEvent
      1. org.zkoss.bind.impl.ParamCall.call(ParamCall.java:108)
      2. org.zkoss.bind.impl.BinderImpl.doExecute(BinderImpl.java:1476)
      3. org.zkoss.bind.impl.BinderImpl.doCommand(BinderImpl.java:1249)
      4. org.zkoss.bind.impl.BinderImpl.access$1300(BinderImpl.java:92)
      5. org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent(BinderImpl.java:1141)
      5 frames