0

noSuchMethodException

asked 2020-05-21 14:57:00 +0800

AndreyK gravatar image AndreyK
155 3

Hello! Periodically can see this in log. What happens with ZK components? Sometimes wrong creating?

java.lang.NoSuchMethodException: java.io.Serializable.contains(java.lang.Object)

<------>at java.lang.Class.getMethod(Class.java:1786) <------>at org.zkoss.zel.BeanELResolver.getMethod(BeanELResolver.java:435) <------>at org.zkoss.zel.BeanELResolver.invoke(BeanELResolver.java:533) <------>at org.zkoss.zel.CompositeELResolver.invoke(CompositeELResolver.java:154) <------>at org.zkoss.xel.zel.XelELResolver.invoke(XelELResolver.java:176) <------>at org.zkoss.zel.impl.parser.AstValue.getValue(AstValue.java:167) <------>at org.zkoss.zel.impl.parser.AstAnd.getValue(AstAnd.java:37) <------>at org.zkoss.zel.impl.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184) <------>at org.zkoss.xel.zel.ELXelExpression.evaluate(ELXelExpression.java:40) <------>at org.zkoss.bind.impl.BindEvaluatorXImpl.getValue(BindEvaluatorXImpl.java:46) <------>at org.zkoss.bind.impl.LoadPropertyBindingImpl.load(LoadPropertyBindingImpl.java:59) <------>at org.zkoss.bind.impl.PropertyBindingHandler.doLoadBinding(PropertyBindingHandler.java:133) <------>at org.zkoss.bind.impl.PropertyBindingHandler.doLoad(PropertyBindingHandler.java:334) <------>at org.zkoss.bind.impl.BinderImpl.loadComponentProperties0(BinderImpl.java:2456) <------>at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2433) <------>at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2436) <------>at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2436) <------>at org.zkoss.bind.impl.BinderImpl.loadComponent(BinderImpl.java:2424) <------>at org.zkoss.bind.BindComposer$BinderKeeper$Loader.load(BindComposer.java:512) <------>at org.zkoss.bind.BindComposer$BinderKeeper.loadComponentForAllBinders(BindComposer.java:491) <------>at org.zkoss.bind.BindComposer.doAfterCompose(BindComposer.java:182) <------>at org.zkoss.zk.ui.impl.UiEngineImpl.doAfterCompose(UiEngineImpl.java:578) <------>at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:880) <------>at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) <------>at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) <------>at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:797) <------>at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:757) <------>at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) <------>at org.zkoss.zk.ui.impl.UiEngineImpl.createComponents(UiEngineImpl.java:1080) <------>at org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:279) <------>at org.zkoss.zk.ui.impl.AbstractExecution.createComponents(AbstractExecution.java:271) <------>at org.zkoss.zk.ui.Executions.createComponents(Executions.java:176) <------>at ru.hostco.monitoring.models.base.BaseVM.showWindow(BaseVM.java:103) <------>at ru.hostco.monitoring.models.MainVM.reportClicked(MainVM.java:187) <------>at sun.reflect.GeneratedMethodAccessor291.invoke(Unknown Source) <------>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) <------>at java.lang.reflect.Method.invoke(Method.java:498) <------>at org.zkoss.bind.impl.ParamCall.call(ParamCall.java:122) <------>at org.zkoss.bind.impl.BinderImpl.doExecute(BinderImpl.java:2063) <------>at org.zkoss.bind.impl.BinderImpl.doCommand(BinderImpl.java:1808) <------>at org.zkoss.bind.impl.BinderImpl.access$1500(BinderImpl.java:113) <------>at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent0(BinderImpl.java:1666) <------>at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent(BinderImpl.java:1612) <------>at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2773) <------>at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2744) <------>at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2685) <------>at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) <------>at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:536) <------>at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:463)

delete flag offensive retag edit

Comments

Do you have any example reproducing this? or at least the ZK version so I can check what's happening at the line numbers mentioned in your stack trace?

cor3000 ( 2020-05-21 17:58:01 +0800 )edit

this zk version 7.0.8. Hard reproduce, this sometimes happens in prod environment, tomcat server. In method BaseVM.java:103 we create component, that doesnt implement serializable. Can it be reason?

AndreyK ( 2020-05-22 05:26:53 +0800 )edit

with the given error message and code I don't know what might be the cause. If you can set an exception breakpoint (for NoSuchMethodException) you can then inspect the variables and the EL expression involved leading to this - and provide the information here.

cor3000 ( 2020-05-22 15:36:37 +0800 )edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2020-05-21 14:57:00 +0800

Seen: 3 times

Last updated: May 21

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More