akephalos icon indicating copy to clipboard operation
akephalos copied to clipboard

random but specific crash

Open patrickhno opened this issue 13 years ago • 8 comments

I have no idea even how to begin tracking this down, but we have a cucumber feature that crash randomly on a "I press" step. It crashes most of the time, but every now and then it passes fine.

Here is the stack trace:

And I press "Oppfølging returer"                                                                   # features/step_definitions/web_steps.rb:28
  java.lang.NullPointerException: null (NativeException)
  (druby://127.0.0.1:56032) org/jruby/RubyKernel.java:2059:in `send'
  (druby://127.0.0.1:56032) org/jruby/RubyKernel.java:1419:in `loop'
  (druby://127.0.0.1:56032) org/jruby/RubyProc.java:268:in `call'
  (druby://127.0.0.1:56032) org/jruby/RubyProc.java:232:in `call'
  ./features/step_definitions/web_steps.rb:30:in `block (2 levels) in <top (required)>'
  ./features/step_definitions/web_steps.rb:15:in `with_scope'
  ./features/step_definitions/web_steps.rb:29:in `/^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/'
  features/logisticsweb/mainpage/mainpage.feature:100:in `And I press "Oppfølging returer"'

patrickhno avatar Jul 04 '11 08:07 patrickhno

I'm getting the same error:

And I press "Senden"     # features/step_definitions/web_steps.rb:26
  java.lang.NullPointerException: null (NativeException)
  (druby://127.0.0.1:58357) org/jruby/RubyKernel.java:2092:in `send'
  (druby://127.0.0.1:58357) org/jruby/RubyKernel.java:1419:in `loop'
  (druby://127.0.0.1:58357) org/jruby/RubyProc.java:274:in `call'
  (druby://127.0.0.1:58357) org/jruby/RubyProc.java:233:in `call'
  ./features/step_definitions/web_steps.rb:28
  ./features/step_definitions/web_steps.rb:13:in `with_scope'
  ./features/step_definitions/web_steps.rb:27:in `/^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/'
  features/welcome/configurator.feature:17:in `And I press "Senden"'

on OS X Lion 10.7.1 with Java:

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)

korny avatar Sep 23 '11 09:09 korny

Maybe it is using an old JRuby version?

korny avatar Sep 23 '11 10:09 korny

Have you tried nerian's fork? I have submitted a patch on he's fork that probably resolves this issue.

patrickhno avatar Sep 23 '11 10:09 patrickhno

May work, I'll try it out.

Another solution: Update to Capybara 0.4+ and use capybara-webkit instead.

korny avatar Sep 23 '11 10:09 korny

The solution to all bugs. Uninstall the software.

patrickhno avatar Sep 23 '11 10:09 patrickhno

:D Exactly.

So, akephalos-nerian 0.2.4 (from RubyGems) doesn't include your fix yet, but installing the latest master from the source works!

korny avatar Sep 23 '11 11:09 korny

Nice! I'll leave the case open as a incentive to the maintainer to merge. Nerian's fork is pretty much the unofficial official akephalos by now.

patrickhno avatar Sep 23 '11 12:09 patrickhno

@korny Actually that gem was never mine :) I don't know who made that one.

New development is being made here:

https://github.com/Nerian/akephalos2

Checkout the install section.

Nerian avatar Oct 16 '11 17:10 Nerian