Skip to content

JRuby and devise Null pointer exception #3680

@mattclar

Description

@mattclar

I am running jruby 9.0.5.0 in the official docker image and I just upgraded to rails 5 and devise 4.0.0.rc1 and am working through a bunch of issues, one being that I can not start my app without getting an error such as the one below

! Unable to load application: LoadError: load error: /usr/src/app/app/models/user -- java.lang.NullPointerException: null
LoadError: load error: /usr/src/app/app/models/user -- java.lang.NullPointerException: null

As soon as I remove the following line from my User Model

`devise :database_authenticatable, :registerable,:recoverable, :rememberable, :trackable, :validatable

I can start my application but obviously its horribly broken and cant serve the login page as devise isn't initiated properly!

Any help would be much appreciated

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions