java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via JIRA by Dwain Elson, 1 year ago
java.lang.Integer cannot be cast to java.lang.Long
via JIRA by Dwain Elson, 1 year ago
java.lang.Integer cannot be cast to java.lang.Long
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
at org.obiba.onyx.jade.core.domain.run.InstrumentRunValue.setData(InstrumentRunValue.java:118)
at org.obiba.onyx.jade.core.service.impl.DefaultActiveInstrumentRunServiceImpl.updateReadOnlyInputParameterRunValue(DefaultActiveInstrumentRunServiceImpl.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416)
at org.obiba.onyx.jade.core.wicket.instrument.InstrumentLaunchPanel.(InstrumentLaunchPanel.java:75)
at org.obiba.onyx.jade.core.wicket.wizard.InstrumentLaunchStep$1.(InstrumentLaunchStep.java:75)
at org.obiba.onyx.jade.core.wicket.wizard.InstrumentLaunchStep.onStepInNext(InstrumentLaunchStep.java:75)
at org.obiba.onyx.jade.core.wicket.wizard.InstrumentWizardForm.(InstrumentWizardForm.java:88)
at org.obiba.onyx.jade.core.wicket.JadePanel$1$1.(JadePanel.java:67)
at org.obiba.onyx.jade.core.wicket.JadePanel$1.createForm(JadePanel.java:67)
at org.obiba.onyx.wicket.wizard.WizardPanel.(WizardPanel.java:30)
at org.obiba.onyx.jade.core.wicket.JadePanel$1.(JadePanel.java:63)
at org.obiba.onyx.jade.core.wicket.JadePanel.(JadePanel.java:63)
at org.obiba.onyx.jade.engine.state.JadeInProgressState.getWidget(JadeInProgressState.java:42)
at org.obiba.onyx.engine.state.StageExecutionContext.getWidget(StageExecutionContext.java:177)
at org.obiba.onyx.webapp.stage.page.StagePage.(StagePage.java:114)
at org.obiba.onyx.webapp.stage.panel.StageSelectionPanel$1.onActionPerformed(StageSelectionPanel.java:93)
at org.obiba.onyx.wicket.action.ActionWindow$2.onClose(ActionWindow.java:60)
at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:297)
at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:100)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.