title: Play2 Null Pointer Exception with Ebean
body: <p>I'm developping an application using Play2 and Ebean as ORM. I am unable to start my application because of the following error :</p>
  
  <pre><code>[warn] c.a.e.s.c.DefaultServer - JMX beans for Ebean server [default] already registered. Will try unregister/registerEbean:server=default2,function=Logging
  [warn] c.a.ebean.Ebean - Existing EbeanServer [default] is being replaced?
  [error] application - 
  
  ! @6f14elgpb - Internal server error, for (GET) [/] -&gt;
  
  play.api.UnexpectedException: Unexpected exception[NullPointerException: null]
      at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:150) ~[play_2.10.jar:2.1.2]
      at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:114) ~[play_2.10.jar:2.1.2]
      at scala.Option.map(Option.scala:145) ~[scala-library.jar:na]
      at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:114) ~[play_2.10.jar:2.1.2]
      at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:112) ~[play_2.10.jar:2.1.2]
      at scala.util.Either$RightProjection.flatMap(Either.scala:523) ~[scala-library.jar:na]
  Caused by: java.lang.NullPointerException: null
      at com.avaje.ebeaninternal.server.ddl.CreateTableVisitor.isDbColumnWritten(CreateTableVisitor.java:58) ~[avaje-ebeanorm-server.jar:na]
      at com.avaje.ebeaninternal.server.ddl.CreateTableColumnVisitor.visitOneImported(CreateTableColumnVisitor.java:117) ~[avaje-ebeanorm-server.jar:na]
      at com.avaje.ebeaninternal.server.ddl.VisitorUtil.visit(VisitorUtil.java:109) ~[avaje-ebeanorm-server.jar:na]
      at com.avaje.ebeaninternal.server.ddl.VisitorUtil.visit(VisitorUtil.java:73) ~[avaje-ebeanorm-server.jar:na]
      at com.avaje.ebeaninternal.server.ddl.VisitorUtil.visitBean(VisitorUtil.java:62) ~[avaje-ebeanorm-server.jar:na]
      at com.avaje.ebeaninternal.server.ddl.VisitorUtil.visit(VisitorUtil.java:36) ~[avaje-ebeanorm-server.jar:na]
  [trace] play - No handler, got direct result: SimpleResult(500, Map(Content-Type -&gt; text/html; charset=utf-8))
  </code></pre>
  
  <p>I don't understand what's happening, the server is starting well, I tried to restart mysql but nothing changed.
  It seems to be a bug from the Ebean DDL generator but how can I debug it ?</p>
  
  <p>Thanks for your help.</p>
  
  <p><strong>EDIT</strong> : If i disable evolution plugin in application.conf</p>
  
  <pre><code># Evolutions
  # ~~~~~
  # You can disable evolutions if needed
  evolutionplugin=disabled
  </code></pre>
  
  <p>my application starts (but the database is not updated...)</p>
  
  <p><strong>EDIT 2</strong> : I activated TRACE log at application level and updated the stacktrace, what about the following lines :</p>
  
  <pre><code>[warn] c.a.e.s.c.DefaultServer - JMX beans for Ebean server [default] already registered. Will try unregister/registerEbean:server=default2,function=Logging
  [warn] c.a.ebean.Ebean - Existing EbeanServer [default] is being replaced?
  </code></pre>