Skip to main content
Inspiring
March 11, 2009
Question

MissingResource, NoSuchMethod in coldfusion-out.log

  • March 11, 2009
  • 4 replies
  • 3010 views
Can anyone shed some light on these errors that occur *only* when sandbox security is enabled?

My users are not seeing these errors, but the errors are being written to C:\ColdFusion8\runtime\logs\coldfusion-out.log on a single-server installation of CF8.01 Enterprise on Windows Server 2003.

Any information or ideas would be appreciated. Thanks.

Shortly after starting ColdFusion, I get one of these, where where Line 6
of Application.cfm is a CFApplication tag:

IOException upon attempt to marshall 0 argument of type jrun.servlet.session.SessionHolder.
03/10 19:39:14 error SchedulerService not found
jrunx.kernel.ServiceException: SchedulerService not found

at jrunx.kernel.ServiceAdapter.findObjectInstance(ServiceAdapter.java:638)
at jrunx.kernel.ServiceAdapter.unscheduleRunnable(ServiceAdapter.java:764)
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:582)
at coldfusion.runtime.AppHelper.setupSessionScope(AppHelper.java:653)
at coldfusion.tagext.lang.ApplicationTag.doStartTag(ApplicationTag.java:278)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)
at cfApplication2ecfm292423214.runPage(E:\path\to\Application.cfm:6)
[etc] ...

followed by many of these, maybe even one per page request, referencing CFApplication statements in various application.cfm files:

03/10 19:39:14 error Can't find resource for base name jrunx/rmi/resource.properties
java.util.MissingResourceException: Can't find resource for base name jrunx/rmi/resource.properties

at jrunx.util.RB.loadProperties(RB.java:275)
at jrunx.util.RB.<init>(RB.java:134)
at jrunx.util.RB.getMessage(RB.java:680)
at jrunx.util.RB.getString(RB.java:435)
at jrunx.rmi.Invocation.setArgs(Invocation.java:223)
at jrunx.rmi.RemoteInvocationHandler.getInvocation(RemoteInvocationHandler.java:220)
at jrunx.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:160)
at $Proxy1.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:582)
at coldfusion.runtime.AppHelper.setupSessionScope(AppHelper.java:653)
at coldfusion.tagext.lang.ApplicationTag.doStartTag(ApplicationTag.java:278)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)
at cfApplication2ecfm292423214.runPage(E:\path\to\Application.cfm:6)
[etc] ...

and also this sequence of four errors that recurs every few seconds:

03/10 20:20:34 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.GeneratedMethodAccessor29.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:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)

03/10 20:20:34 error
java.lang.reflect.UndeclaredThrowableException

at $Proxy1.cancel(Unknown Source)
[snipped, since it is caused by the previous error]

IOException upon attempt to marshall 0 argument of type jrun.servlet.session.SessionHolder.
03/10 20:20:34 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.GeneratedMethodAccessor29.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:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)

03/10 20:20:34 error
java.lang.reflect.UndeclaredThrowableException

at $Proxy1.scheduleFromNow(Unknown Source)
[snipped, since it is caused by the previous error]
    This topic has been closed for replies.

    4 replies

    Inspiring
    June 11, 2009

    My log files were spilling over with notifications like the following even though no scheduled jobs were being called (nor even set up):

    04/20 09:58:57 error SchedulerService not found

    jrunx.kernel.ServiceException: SchedulerService not found

    at jrunx.kernel.ServiceAdapter.findObjectInstance(ServiceAdapter.java:638)

    at jrunx.kernel.ServiceAdapter.unscheduleRunnable(ServiceAdapter.java:764)

    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:582)

    at coldfusion.runtime.AppHelper.setupSessionScope(AppHelper.java:653)

    ....

    04/21 16:52:03 error SchedulerService not found

    jrunx.kernel.ServiceException: SchedulerService not found

    at jrunx.kernel.ServiceAdapter.findObjectInstance(ServiceAdapter.java:638)

    at jrunx.kernel.ServiceAdapter.unscheduleRunnable(ServiceAdapter.java:764)

    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:582)

    at coldfusion.runtime.AppHelper.setupSessionScope(AppHelper.java:653)

    at coldfusion.tagext.lang.ApplicationTag.doStartTag(ApplicationTag.java:278)

    at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)

    at cfApplication2ecfm1253482620._factor1(E:\cf8_updates\cfusion\wwwroot\CFIDE\administrator\Application.cfm:62)

    at cfApplication2ecfm1253482620._factor7(E:\cf8_updates\cfusion\wwwroot\CFIDE\administrator\Application.cfm:4)

    at cfApplication2ecfm1253482620.runPage(E:\cf8_updates\cfusion\wwwroot\CFIDE\administrator\Application.cfm:1)

    ....

    The most consistent answer I received was to reinstall from scratch and try again.  That's not really an option in my environment, so I only partially took their advice.  On a test machine I started reinstalling CF8, in my case, in multi-server config.  Once installed and ready to begin configuring, I stopped.  On my server I snapped CF Archives (.car) backups of that JVM, stopped the JVM, deleted the existing \servers\cfusion1\cfusion.ear directory, replacing it with a 'fresh' copy of the cfusion.ear directory from my test machine.  I restored my config from the .car file and restarted the JVM.

    Not really for the faint of heart, and was hitting it with a pretty big hammer, but the errors have stopped and the server has settled down.

    October 30, 2009

    anyone ever figure this out? I am seeing the same issue.

    Participant
    June 11, 2009

    I just wanted to add that I'm currently running the CF 8.0.1 Enterprise with Hotfix 2 applied, and have updated the JVM to JRE 1.6.0_14 (known classloader bug with the default 1.6.0_4 jre). Additionally, I'm running this on a Parallels Virtuozzo 3.51 container VM.

    BG650 - Is there anything in common that my setup has with yours?

    BG650Author
    Inspiring
    March 13, 2009
    Hi Jochem,

    Thank you for the suggestion. I have tried disabling the "world wide web publishing service" during CF startup, and I think it helps some (maybe better server performance), but the errors keep on coming. Oh well, I'll do some more testing and try to see if I can further isolate the cause of these errors.
    Participant
    June 11, 2009

    I'm getting these same errors in my coldfusion-out.log after enabling Sandbox Security. In addition, I've noticed that database queries run after enabling the security feature are significantly slower. Using the Server Monitor, I tested a single query which now took over 7 seconds to execute, whereas when the Sandbox Security is turned off, it only takes 0.03 seconds. The time required to start the CF 8.0.1 service also goes from 9 seconds (when Sandbox Security is OFF) to 138 seconds (when Sandbox security is ON). I have been unable to find any information other than this thread (and a few others like it) that provide any helpful information.

    BG650 - Did you ever find a resolution to this problem?

    Inspiring
    March 11, 2009
    BG650 wrote:
    > Can anyone shed some light on these errors that occur *only* when sandbox
    > security is enabled?
    >
    > My users are not seeing these errors, but the errors are being written to
    > C:\ColdFusion8\runtime\logs\coldfusion-out.log on a single-server installation
    > of CF8.01 Enterprise.

    I have no idea why these errors occur, but the workaround is to restart
    CF without load. Stop the website in the webserver, restart CF, when CF
    has fully restarted enable the website again.

    You probably want to report this issue at http://adobe.com/go/wish/ or
    even open an incident for this.

    Jochem

    --
    Jochem van Dieten
    Adobe Community Expert for ColdFusion