DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > ColdFusion Startup Issue with Homepage

ColdFusion Startup Issue with Homepage

Raymond Camden user avatar by
Raymond Camden
·
Nov. 24, 14 · Java Zone · Interview
Like (0)
Save
Tweet
3.53K Views

Join the DZone community and get the full member experience.

Join For Free

So - this is kind of crazy. Yesterday I fired up ColdFusion 11 to test something and discovered that every request for a CFM returned an error. The error was a Null Pointer Exception so not terribly helpful. (Or so I thought.) I checked the logs and saw this:

Could not determine local hostname.
java.lang.NullPointerException
    at coldfusion.runtime.RuntimeServiceImpl.getQueueLimit(RuntimeServiceImpl.java:2145)
    at coldfusion.runtime.RuntimeServiceImpl.load(RuntimeServiceImpl.java:487)


So I googled some more and came across this post on the forums: ColdFusion 10 install on RHEL 6.1. I looked closely at the exception reported by the user there and noticed it matched what I was seeing on my server, specifically this part: org.apache.catalina.authenticator.AuthenticatorBase.invoke.

If you read that post, you will see that Rupesh (part of the ColdFusion team) says this:

The license service makes use of InetAddress.getLocalHost() API and therefore your /etc/hosts file should have an entry for both localhost as well as for your host name.

Well, my hosts file definitely had an entry for localhost, but on a whim, I added my hostname. In terminal I typed hostname (total guess, I had no idea that was a valid function) and it reported Raymonds-MBP-8. I added that to my hosts file, restarted ColdFusion, and everything was gravy.

I have absolutely no idea why this happened yesterday, but hopefully it will help others if they run into the same problem. I am having issues with my router where DNS lookups and other things will fail from time to time. So maybe something on my machine got hosed network-wise enough to confuse ColdFusion. Of course, I don't even have a license for my local ColdFusion 11 server so why in the heck did it need to check a license server?


Host (Unix) POST (HTTP) Pointer (computer programming) teams Testing Requests terminal Domain Name System

Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • This Is How You Give Good Feedback at Work
  • A First Look at CSS When and Else Statements
  • Building a Login Screen With React and Bootstrap
  • How to Upload/Download a File To and From the Server

Comments

Java Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo