代码之家  ›  专栏  ›  技术社区  ›  Jason

为什么我会得到“nosuchmethodexception”和“ioexception on attempt to marshall”,错误?

  •  8
  • Jason  · 技术社区  · 14 年前

    我在我的日志文件中看到了下面的大量错误。没有什么 似乎 以我们的用户看不到任何错误的方式导致这些错误。是什么导致了他们?我们正在运行CF 8。

    仅供参考:它们每秒发生很多次。

    12/11 12:30:13 error jrunx.scheduler.SchedulerService.cancel()
    java.lang.NoSuchMethodException: jrunx.scheduler.SchedulerService.cancel()
        at java.lang.Class.getMethod(Class.java:1605)
        at jrunx.rmi.RMIBroker.invokeService(RMIBroker.java:280)
        at jrunx.rmi.RMIBroker.invoke(RMIBroker.java:137)
        at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
    
    IOException upon attempt to marshall 0 argument of type jrun.servlet.session.SessionHolder.
    12/11 12:30:13 error 
    java.lang.reflect.UndeclaredThrowableException
        at $Proxy2.cancel(Unknown Source)
        at jrunx.kernel.ServiceAdapter.unscheduleRunnable(ServiceAdapter.java:760)
        at jrun.servlet.session.SessionService.unscheduleRunnable(SessionService.java:1019)
        at jrun.servlet.session.SessionHolder.reschedule(SessionHolder.java:148)
        at jrun.servlet.session.JRunSession.setMaxInactiveInterval(JRunSession.java:135)
        at jrun.servlet.session.SessionService.createSession(SessionService.java:1250)
        at jrun.servlet.ForwardRequest.getSession(ForwardRequest.java:384)
        at coldfusion.runtime.AppHelper.setupJ2eeSessionScope(AppHelper.java:521)
        at coldfusion.runtime.AppHelper.setupSessionScope(AppHelper.java:592)
        at coldfusion.tagext.lang.ApplicationTag.doStartTag(ApplicationTag.java:279)
        at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)
        at cfApplication2ecfm428394136.runPage(D:\WEB\ROOT\wwwdev4\bs\worklife\Application.cfm:3)
        at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
        at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:388)
        at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
        at coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)
        at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:221)
        at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
        at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
        at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
        at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
        at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)
        at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
        at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
        at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
        at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
        at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
        at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126)
        at coldfusion.CfmServlet.service(CfmServlet.java:198)
        at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
        at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
        at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
        at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
        at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
        at jrun.servlet.FilterChain.service(FilterChain.java:101)
        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
        at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
        at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
        at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    Caused by: java.lang.NoSuchMethodException: jrunx.scheduler.SchedulerService.cancel()
        at jrunx.cluster.ClusterAlgorithm.invokeService(ClusterAlgorithm.java:127)
        at jrunx.cluster.ClusterAlgorithm.invokeService(ClusterAlgorithm.java:80)
        at jrunx.rmi.Invocation.invoke(Invocation.java:304)
        at jrunx.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:183)
        at jrunx.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:160)
        ... 42 more
    
    12/11 12:30:13 error jrunx.scheduler.SchedulerService.scheduleFromNow()
    java.lang.NoSuchMethodException: jrunx.scheduler.SchedulerService.scheduleFromNow()
        at java.lang.Class.getMethod(Class.java:1605)
        at jrunx.rmi.RMIBroker.invokeService(RMIBroker.java:280)
        at jrunx.rmi.RMIBroker.invoke(RMIBroker.java:137)
        at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
    
    IOException upon attempt to marshall 0 argument of type jrun.servlet.session.SessionHolder.
    12/11 12:30:13 error 
    java.lang.reflect.UndeclaredThrowableException
        at $Proxy2.scheduleFromNow(Unknown Source)
        at jrunx.kernel.ServiceAdapter.scheduleRunnable(ServiceAdapter.java:739)
        at jrun.servlet.session.SessionService.scheduleRunnable(SessionService.java:1007)
        at jrun.servlet.session.SessionHolder.reschedule(SessionHolder.java:167)
        at jrun.servlet.session.JRunSession.setMaxInactiveInterval(JRunSession.java:135)
        at jrun.servlet.session.SessionService.createSession(SessionService.java:1250)
        at jrun.servlet.ForwardRequest.getSession(ForwardRequest.java:384)
        at coldfusion.runtime.AppHelper.setupJ2eeSessionScope(AppHelper.java:521)
        at coldfusion.runtime.AppHelper.setupSessionScope(AppHelper.java:592)
        at coldfusion.tagext.lang.ApplicationTag.doStartTag(ApplicationTag.java:279)
        at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)
        at cfApplication2ecfm428394136.runPage(D:\WEB\ROOT\wwwdev4\bs\worklife\Application.cfm:3)
        at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
        at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:388)
        at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
        at coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)
        at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:221)
        at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
        at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
        at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
        at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
        at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)
        at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
        at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
        at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
        at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
        at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
        at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126)
        at coldfusion.CfmServlet.service(CfmServlet.java:198)
        at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
        at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
        at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
        at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
        at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
        at jrun.servlet.FilterChain.service(FilterChain.java:101)
        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
        at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
        at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
        at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    Caused by: java.lang.NoSuchMethodException: jrunx.scheduler.SchedulerService.scheduleFromNow()
        at jrunx.cluster.ClusterAlgorithm.invokeService(ClusterAlgorithm.java:127)
        at jrunx.cluster.ClusterAlgorithm.invokeService(ClusterAlgorithm.java:80)
        at jrunx.rmi.Invocation.invoke(Invocation.java:304)
        at jrunx.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:183)
        at jrunx.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:160)
        ... 42 more
    
    2 回复  |  直到 12 年前
        1
  •  2
  •   monojohnny    14 年前

    升级后是否开始出现错误?

    也许吧 zipscan “jrunx.scheduler.schedulerservice”类的组成jars、wars和ears在您的系统上,并查看您是否有它的多个副本。[特别是像一个“隐藏”在战争中的罐子之类的东西,或者是用早期版本的类构建的东西]。

    Java堆栈建议方法“取消()”是调用类所期望的,但该方法不存在——暗示它可能用于旧版本。

    java.lang.NoSuchMethodException: jrunx.scheduler.SchedulerService.cancel()
    
        2
  •  0
  •   Jason    13 年前

    结果发现这是由启用J2EE会话变量引起的。