Unable to integrate new verison of swagger

297 views
Skip to first unread message

bhaskar...@excelindia.com

unread,
Jun 29, 2015, 9:00:36 AM6/29/15
to swagger-sw...@googlegroups.com
Hi,
I am integrating swagger version 1.0.2, with my current spring-mvc (version 3.0)  project. At the time of server up. It shows an error of bean with some PATCH error logs are as follows

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.util.Map com.mangofactory.swagger.configuration.SpringSwaggerConfig.defaultResponseMessages()] threw exception; nested exception is java.lang.NoSuchFieldError: PATCH
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570)
    ... 35 more
Caused by: java.lang.NoSuchFieldError: PATCH
    at com.mangofactory.swagger.configuration.SpringSwaggerConfig.defaultResponseMessages(SpringSwaggerConfig.java:202)
    at com.mangofactory.swagger.configuration.SpringSwaggerConfig$$EnhancerByCGLIB$$be415fd9.CGLIB$defaultResponseMessages$3(<generated>)
    at com.mangofactory.swagger.configuration.SpringSwaggerConfig$$EnhancerByCGLIB$$be415fd9$$FastClassByCGLIB$$5f8d58e2.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
    at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:280)
    at com.mangofactory.swagger.configuration.SpringSwaggerConfig$$EnhancerByCGLIB$$be415fd9.defaultResponseMessages(<generated>)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:149)
    ... 36 more

Jun 29, 2015 6:20:01 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet appServlet


Can anyone has a clue for it  ?

Ron Ratovsky

unread,
Jul 5, 2015, 3:27:01 PM7/5/15
to swagger-sw...@googlegroups.com
Will you be able to integrate the latest version which is now known as springfox?

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-----------------------------------------
http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
Reply all
Reply to author
Forward
0 new messages