-
Notifications
You must be signed in to change notification settings - Fork 179
Play 2.6 error upon construction due to NullPointerException caused by routes #185
Comments
I'm facing exactly the same problem. Any progress?
My conf/routes:
I renamed the Swagger 'dist' folder to 'docs' and put it into my project 'public' folder. Added Added |
We have this same error sometimes (I guess when we change the routes file..). |
@romeromfm @gaeljw Can you publish a complete project with this error on github. I will look into it and try to prepare new version of swagger-play. |
@mgosk I have created an example project with this error here https://github.com/mpgirro/play2.6-swagger-issue The project structure builds on the official playframework/play-scala-rest-api-example (2.6.x branch) and applies the steps to add Thanks for looking into it! |
I am experiencing a NullPointerException upon startup in Play 2.6 with
swagger-play2
1.6.0. The complete error message and strack trace is:The cause seems to be related to the
routes
file. After studyingSwaggerPlugin.scala
, it appears to me that swagger-play2 does not read the content of the defaultconfig/routes
file, and therefore experiences this Nullpointer.I'm merely using the standard setup for this library:
build.sbt
:"io.swagger" %% "swagger-play2" % "1.6.0"
application.conf
:play.modules.enabled += "play.modules.swagger.SwaggerModule"
swagger-ui-dist
resources placed under/public/swagger/
conf/routes
:It this a bug or does anybody have an explication why this happens?
The text was updated successfully, but these errors were encountered: