Skip to main content
September 2, 2010
Question

java.lang.NullPointerException - Do I need to install on my user account?

  • September 2, 2010
  • 1 reply
  • 889 views

Computer: Mac 10.6.4

CF: 9.1 - multi server instance

MAMP with Apache 2.2

I've recently inherited a computer from a co-worker who already had CF installed and running.  Instead of wiping the computer and starting from scratch I just signed on under my account and so far everything has been running smoothly.  MAMP, JRun Console, starting and stoping JRun instances, and viewing the admin panel on localhost:8000

However it seems that apache is not able to render/recognize coldfusion.  I've gone through all of the CF steps in setting it up with apache, compared it with a working instance on my older computer and confirmed that everything is the same.  JRun is installed in /Application directory so I'm under the impression that everything needed is installed for all users and not just under his account.

Using CF Server Instances already installed and configured by him, my vhost looks like this:

<VirtualHost *>

    DocumentRoot "/Users/{me}/Documents/project/sample"

    ServerName sample

    ServerAlias sample.localhost

    <Directory "/Users/{me}/Documents/project/sample">

        Options Indexes FollowSymLinks

        AllowOverride All

        Order allow,deny

        Allow from all

    </Directory>

    JRunConfig Serverstore "/Applications/JRun4/lib/wsconfig/1/jrunserver.store"

    JRunConfig Bootstrap 127.0.0.1:51000

    JRunConfig Apialloc false

    ErrorLog "/Applications/MAMP/logs/sample_error_log"

</VirtualHost>

Apache is running on port 80 and I've confirmed that 51000 is correct.  sample_error_Log and the apache error log do not report anything wrong.  This is the message I get from apache as I hit http://sample/

500


java.lang.NullPointerException
     at jrun.servlet.JRunRequestDispatcher.invoke(JRunReque
stDispatcher.java:285)
     at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
     at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
     at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
     at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Anyone have suggestions? Or know if I need to install CF 9 on my user account?  Thanks!

    This topic has been closed for replies.

    1 reply

    September 6, 2010

    Might want to run the JRun Web Server Configuration Tool.  I had to do the same once to solve a similar problem after

    switching between accounts.  Also you will want to make sure that the services for ColdFusion, Apache and any DB's are not set up under a user account that perhaps no longer has appropriate rights.

    -Joe

    September 10, 2010

    So the problem was that I either didn't have ownership or R&W permissions. I found that by select 'Get Info' on the Applications folder I added myself.  Then made myself the owner with R&W permissions.  Then I clicked the gear icon and selected the option "Apply to enclosed items...".  After restarting apache and coldfusion services I am now rending coldfusion files. Thanks!