Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting exception after code change + page reload #2

Closed
magro opened this issue Oct 4, 2013 · 1 comment
Closed

Getting exception after code change + page reload #2

magro opened this issue Oct 4, 2013 · 1 comment

Comments

@magro
Copy link
Contributor

magro commented Oct 4, 2013

I'm playing again with this example and after any code change (e.g. changing the default pageSize in Computer.list) I'm getting a NoSuchElementException: None.get on the page reload:

--- (RELOAD) ---                                                                                                                                         

[info] play - database [default] connected at jdbc:h2:mem:play                                                                                           
[info] play - Application started (Dev)                                                                                                                  
[error] application -                                                                                                                                    

! Internal server error, for (GET) [/computers] ->

java.lang.ExceptionInInitializerError: null
        at controllers.Application$.<init>(Application.scala:29) ~[na:na]
        at controllers.Application$.<clinit>(Application.scala) ~[na:na]
        at Routes$$anonfun$routes$1$$anonfun$applyOrElse$2$$anonfun$apply$2.apply(routes_routing.scala:81) ~[na:na]
        at Routes$$anonfun$routes$1$$anonfun$applyOrElse$2$$anonfun$apply$2.apply(routes_routing.scala:81) ~[na:na]
        at play.core.Router$HandlerInvoker$$anon$6.call(Router.scala:170) ~[play_2.10.jar:2.2.0]
        at play.core.Router$Routes$class.invokeHandler(Router.scala:375) ~[play_2.10.jar:2.2.0]
Caused by: java.util.NoSuchElementException: None.get
        at scala.None$.get(Option.scala:313) ~[scala-library.jar:na]
        at scala.None$.get(Option.scala:311) ~[scala-library.jar:na]
        at net.fwbrasil.activate.entity.EntityHelper$.getEntityMetadata(EntityHelper.scala:55) ~[activate-core_2.10-1.4.jar:1.4]
        at net.fwbrasil.activate.migration.Migration.createTableForEntity(Migration.scala:240) ~[activate-core_2.10-1.4.jar:1.4]
        at net.fwbrasil.activate.migration.Migration$StorageVersionMigration$1.up(Migration.scala:33) ~[activate-core_2.10-1.4.jar:1.4]
        at net.fwbrasil.activate.migration.Migration.upActions(Migration.scala:198) ~[activate-core_2.10-1.4.jar:1.4]
[error] application - Error while rendering default error page

Should this work or is it a known limitation?

@magro
Copy link
Contributor Author

magro commented Oct 5, 2013

Awesome, thanx for the fast fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant