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

Adding swagger-springmvc cause NPE in PostInitializerRunner.java:42 #214

Closed
aHenryJard opened this issue Sep 16, 2013 · 1 comment
Closed
Milestone

Comments

@aHenryJard
Copy link

When I add https://github.com/martypitt/swagger-springmvc to my resthub projet (version 2.1.2), I have at tomcat startup this error:

java.lang.NullPointerException
at org.resthub.common.util.PostInitializerRunner.onApplicationEvent(PostInitializerRunner.java:42)

I tried it on the TODO example application, and I get the same error at the test phase. To reproduce it with the todo example:

Add this dependency to the pom.xml

com.mangofactory swagger-springmvc 0.6.2

Add some lines to the application context:

<context:property-placeholder location="classpath:swagger.properties" />

And finnaly add swagger.properties to the project:

documentation.services.basePath=http://localhost:8080/
documentation.services.version=1.0

Then it crashes with a simple "mvn clean install".

sdeleuze added a commit that referenced this issue Oct 15, 2013
Upgrade various dependencies and fix issue #214 with swagger-springmvc
@sdeleuze
Copy link
Member

Fixed in 2.1.3-SNAPSHOT, and Todo example is now provided with Swagger by default, enjoy ;-)

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

2 participants