Helpful error messages

I thought I would start a page (which I expect to update) that records the error messages that have taken me the longest time to figure out and what they turned out to mean.  Obviously if someone else gets the same message it may be for a different reason, but knowledge is never a bad thing.  Anyway, this is mostly for my own benefit as my memory seems to have taken its leave of me sometime in the last decade.

Running a cucumber scenario that depended on javascript I saw the following output:

NoMethodError: undefined method `node_name' for nil:NilClass
./features/step_definitions/web_steps.rb:53:in `/^(?:|I )press "([^"]*)"$/'

Which as any fule no means “You have forgotten the @javascript tag”

The really scary looking

NativeException: org.apache.http.NoHttpResponseException: The target server failed to respond
(druby:// org/jruby/ `send'
(druby:// org/jruby/ `loop'
(druby:// org/jruby/ `call'
(druby:// org/jruby/ `call'
./features/step_definitions/web_steps.rb:53:in `/^(?:|I )press "([^"]*)"$/'

while running a test turns out to mean “When you press that button you get an exception, but I thought I would confuse you with this instead”.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s