Forum Discussion

srinijadatla's avatar
srinijadatla
New Member
2 years ago

Swagger and Jackson compatability issue

Hi,

 

I have updated the jackson libraries to 2.13.3 versions in my Java ANT project. 

I am using swagger jars with version 1.6.11 

With the above , I am getting the below issue.

java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.introspect.AnnotatedMember.getType(Lcom/fasterxml/jackson/databind/type/TypeBindings;)Lcom/fasterxml/jackson/databind/JavaType;
at io.swagger.jackson.ModelResolver.resolve(ModelResolver.java:280) ~[?:?]
at io.swagger.jackson.ModelResolver.resolve(ModelResolver.java:127) ~[?:?]
at io.swagger.converter.ModelConverterContextImpl.resolve(ModelConverterContextImpl.java:99) ~[?:?]
at io.swagger.jackson.ModelResolver.resolveProperty(ModelResolver.java:106) ~[?:?]
at io.swagger.jackson.ModelResolver.resolveProperty(ModelResolver.java:71) ~[?:?]
at io.swagger.converter.ModelConverterContextImpl.resolveProperty(ModelConverterContextImpl.java:79) ~[?:?]
at io.swagger.converter.ModelConverters.readAsProperty(ModelConverters.java:58) ~[?:?]
at io.swagger.util.ParameterProcessor.applyAnnotations(ParameterProcessor.java:175) ~[?:?]
at io.swagger.jaxrs.Reader.getParameters(Reader.java:971) ~[?:?]
at io.swagger.jaxrs.Reader.parseMethod(Reader.java:897) ~[?:?]
at io.swagger.jaxrs.Reader.read(Reader.java:298) ~[?:?]
at io.swagger.jaxrs.Reader.read(Reader.java:150) ~[?:?]
at io.swagger.jaxrs.config.BeanConfig.scanAndRead(BeanConfig.java:235) ~[?:?]
at io.swagger.jaxrs.config.BeanConfig.setScan(BeanConfig.java:214) ~[?:?]
at com.comitfs.cas.rest.service.SwaggerInitialization.init(SwaggerInitialization.java:22) ~[?:?]
at org.eclipse.jetty.servlet.ServletHolder$WrapperServlet.init(ServletHolder.java:1289) ~[jetty-servlet-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:602) ~[jetty-servlet-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:413) ~[jetty-servlet-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:749) ~[jetty-servlet-9.4.28.v20200408.jar:9.4.28.v20200408]
at java.util.stream.SortedOps$SizedRefSortingSink.end(Unknown Source) ~[?:1.8.0_311]
at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_311]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_311]
at java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_311]
at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_311]
at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) ~[?:1.8.0_311]
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:773) ~[jetty-servlet-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:360) ~[jetty-servlet-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1445) ~[jetty-webapp-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1409) ~[jetty-webapp-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:838) ~[jetty-server-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:275) ~[jetty-servlet-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524) [jetty-webapp-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72) [jetty-util-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) [jetty-util-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) [jetty-util-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) [jetty-server-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72) [jetty-util-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) [jetty-util-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) [jetty-util-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) [jetty-server-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72) [jetty-util-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) [jetty-util-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.server.Server.start(Server.java:407) [jetty-server-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) [jetty-util-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) [jetty-server-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.server.Server.doStart(Server.java:371) [jetty-server-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72) [jetty-util-9.4.28.v20200408.jar:9.4.28.v20200408]
at org.jivesoftware.openfire.http.HttpBindManager.start(HttpBindManager.java:241) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.startListeners(ConnectionManagerImpl.java:327) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.access$100(ConnectionManagerImpl.java:46) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.spi.ConnectionManagerImpl$1.pluginsMonitored(ConnectionManagerImpl.java:304) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.container.PluginManager.firePluginsMonitored(PluginManager.java:1376) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.container.PluginManager.firePluginsMonitored(PluginManager.java:1369) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask.run(PluginMonitor.java:422) [xmppserver-4.5.4.jar:4.5.4]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_311]
at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:1.8.0_311]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [?:1.8.0_311]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_311]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_311]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_311]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_311]

No RepliesBe the first to reply