Skip to main content
Participating Frequently
February 7, 2014
Question

Cold Fusion 500 Error

  • February 7, 2014
  • 3 replies
  • 3657 views

This is critical.

Our server is giving the folloowing 500 error:

java.lang.NullPointerException

at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:285)

at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)

at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)

at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)

at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)

at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)

at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

I have restarted the entire server a few times, but this error keeps coming up.

This is business critical, and I am not an expert at Cold Fusion.  Please help!

This topic has been closed for replies.

3 replies

Participating Frequently
February 11, 2014

Hi All.

Another thing I wanted to post here for Linux users:

Apache MUST be stopped before Cold Fusion is started.  This might seem a bit counterintuitive to *nix users as we are used to Apache routing all the http calls to the server.  WHat it looks like happens is that jRun is intercepting the calls processing them, and then sending what needs to be sent to Apache.

Anyway, when starting services on Linux, here is a good approach:

1.  Stop Apache

2.  Restart ColdFusion

3.  Start Apache.

I realize that probably seems pretty basic to most of you that have used CF for a longtime, but I think it is helpful information for a *nix admin that is newer to Cold Fusion.

I do thank everyine for their input.

Take care,

JB

Fernis
Inspiring
February 11, 2014

In CF Administrator, have you disabled the checkbox for Enable HTTP status codes?

If it is enabled, you will see Error 500 for all ColdFusion errors. If you disable it, you will see the actual ColdFusion error.

(This applies at least to CF10 on certain environments (depending on the http server?)

-Fernis

Participating Frequently
February 11, 2014

Thanks Fernis.  I will make sure this is unchecked in the future.  That being said, the weird thing is that CF thought it was running!  I suppose because the errors were eminating from jRun and not CF.

Anyway, thank you for the input.

JB

Inspiring
February 7, 2014

We'd need to see the code that is throwing the error; sadly, this error does not indicate where the error is occuring from.  You don't need to be a CF expert to fix this, but I feel what you meant is that you may not know anything about CF (hope that's not true)

Do you have access to getting into the CF server's Admin Control Panel?  There should be log files there which might give more in-depth information as to where the error occurred.

What is the OS the server is running on?

What is the version of CF?

Is this error happening on every page upon visit, or only a particular area?

The basis of the error is that something is passing a variable to be processed that is currently containing NULL data, but the code is enacting on it as if it contains a value.  It would be as if I had a function that said "Hey, I tell you what a number you provide me is, but negative! (so that you pass in '5' and it returns '-5'), but your code is passing nothing to the function, and the function is trying to perform its work (converting the value provided to negative) on nothing at all.

Participating Frequently
February 7, 2014

Hi Aegis.

Thank you for the response.  I suppose I mean that I am not skilled at Coldfusion administration, as I am fairly new to it.  I will try to find the log files you are wanting.  Is there any specific file you needed to see?

As to your specific questions:

1.  It is running on a 64 bit GNU/Linux server.

2.  This is ColdFusion 9

3.  It happens on every page served by cold fusion, and the error is always the same.  Any static pages I write that are just PHP or HTML work fine.

I will try to find the log files you want as well.

Take care,

JB

Inspiring
February 7, 2014

Well, I really don't recommend doing the following (not too safe for a Production environment), but it will help find the erroring line quickly.

If you log into the CF ACP and enable Robust Exception Information, quickly re-request a page, and then turn off REI.  With REI on, and the page requested, you should get a different error page.  This one will note the error page and line where the error occurred.