Unrecognized Type

1,434 views
Skip to first unread message

Swag

unread,
Jul 9, 2015, 7:47:27 AM7/9/15
to swagger-sw...@googlegroups.com
Hi!

I have finally managed to get swagger to work but all methods that return my own model objects fails(See stacktrace below)


Have followed the examples in the link below and my model object is much alike with annotation and public getters and setters.


Is there something else I'm missing?


java.lang.IllegalArgumentException: Unrecognized Type: [simple type, class xxx.xxx.xxxx.api.v1.config.XXXtXX]
at com.fasterxml.jackson.databind.type.TypeFactory._constructType(TypeFactory.java:358)
at com.fasterxml.jackson.databind.type.TypeFactory.constructType(TypeFactory.java:309)
at com.fasterxml.jackson.databind.ObjectMapper.constructType(ObjectMapper.java:1065)
at com.wordnik.swagger.jackson.ModelResolver.resolve(ModelResolver.java:183)
at com.wordnik.swagger.converter.ModelConverterContextImpl.resolve(ModelConverterContextImpl.java:79)
at com.wordnik.swagger.jackson.ModelResolver.resolveProperty(ModelResolver.java:165)
at com.wordnik.swagger.jackson.ModelResolver.resolveProperty(ModelResolver.java:62)
at com.wordnik.swagger.converter.ModelConverterContextImpl.resolveProperty(ModelConverterContextImpl.java:59)
at com.wordnik.swagger.converter.ModelConverters.readAsProperty(ModelConverters.java:71)
at com.wordnik.swagger.jaxrs.Reader.isPrimitive(Reader.java:603)
at com.wordnik.swagger.jaxrs.Reader.parseMethod(Reader.java:408)
at com.wordnik.swagger.jaxrs.Reader.read(Reader.java:155)
at com.wordnik.swagger.jaxrs.Reader.read(Reader.java:64)
at com.wordnik.swagger.jaxrs.Reader.read(Reader.java:55)
at com.wordnik.swagger.jaxrs.listing.ApiListingResource.scan(ApiListingResource.java:50)
at com.wordnik.swagger.jaxrs.listing.ApiListingResource.getListingJson(ApiListingResource.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:308)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:291)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1140)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:403)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:334)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Ron Ratovsky

unread,
Jul 9, 2015, 8:56:48 AM7/9/15
to swagger-sw...@googlegroups.com
Can't help much here without seeing the class in question.

--
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
-----------------------------------------

Swag

unread,
Aug 17, 2015, 9:02:01 AM8/17/15
to Swagger
Had to drop this over the summer but now I've tried again..

Even with a simple class like:

package com.xxxx.xxxx.api.v1.config;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

@ApiModel( value = "Test", description = "Test bla bla bla" )
public class Test {
@ApiModelProperty( value = "Test var", required = true )
private String test;

public String getTest() {
return test;
}

public void setTest(String test) {
this.test = test;
}
}

I'm getting 

java.lang.IllegalArgumentException: Unrecognized Type: [simple type, class com.axiell.arena.api.v1.config.Test]
at com.fasterxml.jackson.databind.type.TypeFactory._constructType(TypeFactory.java:358)
at com.fasterxml.jackson.databind.type.TypeFactory.constructType(TypeFactory.java:309)
at com.fasterxml.jackson.databind.ObjectMapper.constructType(ObjectMapper.java:1065)


To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ron Ratovsky

unread,
Aug 17, 2015, 10:19:19 AM8/17/15
to Swagger
Try upgrading to the latest version first.

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
-----------------------------------------

--
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.

Swag

unread,
Aug 18, 2015, 9:31:22 AM8/18/15
to Swagger
Ok, after update it can't even handle strings.. :-(

2015-08-18 15:27:57,579 [               catalina-exec-2] ERROR atalina.core.ContainerBase.[Catalina].[localhost].[/arena-rest].[jersey-servlet]:258 - Servlet.service() for servlet [jersey-servlet] in context with path [/arena-rest] threw exception [java.lang.IllegalArgumentException: Unrecognized Type: [simple type, class java.lang.String]] with root cause
java.lang.IllegalArgumentException: Unrecognized Type: [simple type, class java.lang.String]
at com.fasterxml.jackson.databind.type.TypeFactory._constructType(TypeFactory.java:358)
at com.fasterxml.jackson.databind.type.TypeFactory.constructType(TypeFactory.java:309)
at io.swagger.jaxrs.Reader.isVoid(Reader.java:944)
at io.swagger.jaxrs.Reader.isValidResponse(Reader.java:963)
at io.swagger.jaxrs.Reader.parseMethod(Reader.java:764)
at io.swagger.jaxrs.Reader.read(Reader.java:263)
at io.swagger.jaxrs.Reader.read(Reader.java:167)
at io.swagger.jaxrs.Reader.read(Reader.java:144)
at io.swagger.jaxrs.listing.ApiListingResource.scan(ApiListingResource.java:64)
at io.swagger.jaxrs.listing.ApiListingResource.process(ApiListingResource.java:90)
at io.swagger.jaxrs.listing.ApiListingResource.getListingJson(ApiListingResource.java:129)
at io.swagger.jaxrs.listing.ApiListingResource.getListing(ApiListingResource.java:116)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:309)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:292)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1139)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:460)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:334)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)


I'm adding these dependencies:

<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-jersey2-jaxrs</artifactId>
<scope>compile</scope>
<version>1.5.3</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.6.1</version>
<scope>runtime</scope>
</dependency> 

Is it something to do with jackson-core, I have added it because otherwise I'm getting:

2015-08-18 15:22:17,950 [         localhost-startStop-1] ERROR      org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/arena-rest]:762 - StandardWrapper.Throwable
java.util.ServiceConfigurationError: io.swagger.jaxrs.ext.SwaggerExtension: Provider io.swagger.jersey.SwaggerJersey2Jaxrs could not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:224)
at java.util.ServiceLoader.access$100(ServiceLoader.java:181)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:377)
at java.util.ServiceLoader$1.next(ServiceLoader.java:445)
at io.swagger.jaxrs.ext.SwaggerExtensions.<clinit>(SwaggerExtensions.java:34)
at io.swagger.jaxrs.utils.ReaderUtils.collectParameters(ReaderUtils.java:98)
at io.swagger.jaxrs.utils.ReaderUtils.collectFieldParameters(ReaderUtils.java:88)
at io.swagger.jaxrs.Reader.read(Reader.java:239)
at io.swagger.jaxrs.Reader.read(Reader.java:167)
at io.swagger.jaxrs.Reader.read(Reader.java:144)
at io.swagger.jaxrs.config.BeanConfig.setScan(BeanConfig.java:172)
at com.axiell.arena.SwaggerBootstrap.init(SwaggerBootstrap.java:20)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/PrettyPrinter
at io.swagger.jersey.SwaggerJersey2Jaxrs.<init>(SwaggerJersey2Jaxrs.java:29)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:379)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:373)
... 25 more
Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.PrettyPrinter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
... 32 more
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
-----------------------------------------
http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------

--
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-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ron Ratovsky

unread,
Aug 18, 2015, 9:43:59 AM8/18/15
to Swagger
Can you share your full dependencies list?

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
-----------------------------------------

--
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
-----------------------------------------

--
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.

Swag

unread,
Aug 18, 2015, 9:52:21 AM8/18/15
to Swagger
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.xxxx.arena</groupId>
        <artifactId>arena-palma</artifactId>
        <version>3.1-SNAPSHOT</version>
    </parent>
    <groupId>com.xxxx.arena</groupId>
    <artifactId>arena-rest</artifactId>
    <packaging>war</packaging>
    <name>arena-rest Maven Webapp</name>
    <url>http://maven.apache.org</url>
    <properties>
        <arena.version>${project.version}</arena.version>
        <interface.version>1.0</interface.version>
        <jersey.version>2.21</jersey.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.glassfish.jersey.containers</groupId>
            <artifactId>jersey-container-servlet</artifactId>
            <version>${jersey.version}</version>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.media</groupId>
            <artifactId>jersey-media-moxy</artifactId>
            <version>${jersey.version}</version>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.ext</groupId>
            <artifactId>jersey-spring3</artifactId>
            <version>${jersey.version}</version>
        </dependency>
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-client</artifactId>
            <version>1.19</version>
        </dependency>
        <dependency>
            <groupId>org.json</groupId>
            <artifactId>json</artifactId>
            <version>20140107</version>
        </dependency>          
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
        </dependency>
        <dependency>
            <groupId>io.swagger</groupId>
            <artifactId>swagger-jersey2-jaxrs</artifactId>
            <scope>compile</scope>
            <version>1.5.3</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>2.6.1</version>
            <scope>runtime</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifest>
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                        </manifest>
                        <manifestEntries>
                            <Arena-Version>${arena.version}</Arena-Version>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
-----------------------------------------
http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------

--
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-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
-----------------------------------------
http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------

--
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-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ron Ratovsky

unread,
Aug 18, 2015, 9:56:02 AM8/18/15
to Swagger
I assume you run on Tomcat?

Just to test it, can you change the jackson-core version to 2.4.5?

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
-----------------------------------------

--
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
-----------------------------------------

--
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
-----------------------------------------

--
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.

Swag

unread,
Aug 18, 2015, 10:06:53 AM8/18/15
to Swagger
Yes I'm running tomcat and unfortunately getting the same error with 2.4.5..
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
-----------------------------------------
http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------

--
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-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
-----------------------------------------
http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------

--
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-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
-----------------------------------------
http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------

--
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-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Swag

unread,
Aug 18, 2015, 10:08:41 AM8/18/15
to Swagger
The strange thing is that this worked when using:

<dependency>
            <groupId>com.wordnik</groupId>
            <artifactId>swagger-jersey2-jaxrs</artifactId>
            <scope>compile</scope>
            <version>1.5.3-M1</version>
            <exclusions>
                <exclusion>
                    <groupId>javax.ws.rs</groupId>
                    <artifactId>jsr311-api</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>2.5.4</version>
            <scope>runtime</scope>
        </dependency>
...

Ron Ratovsky

unread,
Aug 18, 2015, 10:09:27 AM8/18/15
to Swagger
Since you described a few errors, which one did you get with 2.4.5?

--
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.

Swag

unread,
Aug 18, 2015, 10:14:21 AM8/18/15
to Swagger
The same:

java.lang.IllegalArgumentException: Unrecognized Type: [simple type, class java.lang.String]
	com.fasterxml.jackson.databind.type.TypeFactory._constructType(TypeFactory.java:358)
	com.fasterxml.jackson.databind.type.TypeFactory.constructType(TypeFactory.java:309)
	io.swagger.jaxrs.Reader.isVoid(Reader.java:944)
	io.swagger.jaxrs.Reader.isValidResponse(Reader.java:963)
	io.swagger.jaxrs.Reader.parseMethod(Reader.java:764)
	io.swagger.jaxrs.Reader.read(Reader.java:263)
	io.swagger.jaxrs.Reader.read(Reader.java:167)
	io.swagger.jaxrs.Reader.read(Reader.java:144)
	io.swagger.jaxrs.listing.ApiListingResource.scan(ApiListingResource.java:64)
	io.swagger.jaxrs.listing.ApiListingResource.process(ApiListingResource.java:90)
	io.swagger.jaxrs.listing.ApiListingResource.getListingJson(ApiListingResource.java:129)
	io.swagger.jaxrs.listing.ApiListingResource.getListing(ApiListingResource.java:116)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:606)
	org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
	org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
	org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
	org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
	org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
	org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
	org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
	org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
	org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:309)
	org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
	org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
	org.glassfish.jersey.internal.Errors.process(Errors.java:315)
	org.glassfish.jersey.internal.Errors.process(Errors.java:297)
	org.glassfish.jersey.internal.Errors.process(Errors.java:267)
	org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
	org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:292)
	org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1139)
	org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:460)
	org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)
	org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:334)
	org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ron Ratovsky

unread,
Aug 18, 2015, 10:16:46 AM8/18/15
to Swagger
Okay, great. Can you also share the method that uses the Test class in it?

The same:

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
-----------------------------------------

--
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.

Swag

unread,
Aug 18, 2015, 10:26:01 AM8/18/15
to Swagger
Ok, this is getting a bit confusing to clearify I had two scenarios:

1. On method which returned a string that worked with the "old config" but not the new.
2. On method with returned the "Test class" which didn't work with the "old config".

The method are:

@GET
@Path("/portal")
@ApiOperation(value = "Shows which version of the portal that is running",
notes = "Only returns a plain text string at the moment")
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK"),
@ApiResponse(code = 500, message = "Something wrong in Server")})
@Produces({MediaType.TEXT_PLAIN})
public String getPortalInfo() {
Manifest manifest = getPalmaManifest();
if (manifest == null)
return "Can't find manifest";
Attributes attributes = manifest.getMainAttributes();
String arenaVersion = attributes.getValue("Arena-Version");
return arenaVersion;
}

 @GET
    @Path("/central")
    @ApiOperation(value = "Shows which version of the central that is running",
            notes = "sdfsfsf", response = Test.class
    )
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "OK"),
            @ApiResponse(code = 500, message = "Something wrong in Server")})
    @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Test getCentralInfo() {
        Test test = new Test();
        test.setTest("sdfsdfdsf");
        return test;
    }

Ron Ratovsky

unread,
Aug 18, 2015, 10:36:43 AM8/18/15
to Swagger

Thought I had an idea there, but no. I pretty much copied your /portal method to the pet store sample, ran it with 1.5.3 and it works fine, so the issue is coming from somewhere else.

Can you show the output of mvn dependency:tree and mvn dependency:list?


--
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.

Swag

unread,
Aug 18, 2015, 10:42:39 AM8/18/15
to Swagger
C:\work\arena-parent\palma\arena-rest>mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building arena-rest Maven Webapp 3.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ arena-rest ---
[INFO] com.axiell.arena:arena-rest:war:3.1-SNAPSHOT
[INFO] +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.21:compile
[INFO] |  +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.21:compile
[INFO] |  |  \- org.glassfish.hk2.external:javax.inject:jar:2.4.0-b31:compile
[INFO] |  +- org.glassfish.jersey.core:jersey-common:jar:2.21:compile
[INFO] |  |  +- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] |  |  +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.21:compile
[INFO] |  |  +- org.glassfish.hk2:hk2-api:jar:2.4.0-b31:compile
[INFO] |  |  |  \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b31:compile
[INFO] |  |  +- org.glassfish.hk2:hk2-locator:jar:2.4.0-b31:compile
[INFO] |  |  |  \- org.javassist:javassist:jar:3.18.1-GA:compile
[INFO] |  |  \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] |  +- org.glassfish.jersey.core:jersey-server:jar:2.21:compile
[INFO] |  |  +- org.glassfish.jersey.core:jersey-client:jar:2.21:compile
[INFO] |  |  +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.21:compile
[INFO] |  |  \- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] |  \- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
[INFO] +- org.glassfish.jersey.media:jersey-media-moxy:jar:2.21:compile
[INFO] |  +- org.glassfish.jersey.ext:jersey-entity-filtering:jar:2.21:compile
[INFO] |  \- org.eclipse.persistence:org.eclipse.persistence.moxy:jar:2.6.0:compile
[INFO] |     +- org.eclipse.persistence:org.eclipse.persistence.core:jar:2.6.0:compile
[INFO] |     |  \- org.eclipse.persistence:org.eclipse.persistence.asm:jar:2.6.0:compile
[INFO] |     \- org.glassfish:javax.json:jar:1.0.4:compile
[INFO] +- org.glassfish.jersey.ext:jersey-spring3:jar:2.21:compile
[INFO] |  +- org.glassfish.hk2:hk2:jar:2.4.0-b31:compile
[INFO] |  |  +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b31:compile
[INFO] |  |  |  \- javax.inject:javax.inject:jar:1:compile
[INFO] |  |  +- org.glassfish.hk2:config-types:jar:2.4.0-b31:compile
[INFO] |  |  +- org.glassfish.hk2:hk2-core:jar:2.4.0-b31:compile
[INFO] |  |  +- org.glassfish.hk2:hk2-config:jar:2.4.0-b31:compile
[INFO] |  |  |  +- org.jvnet:tiger-types:jar:1.4:compile
[INFO] |  |  |  \- org.glassfish.hk2.external:bean-validator:jar:2.4.0-b31:compile
[INFO] |  |  +- org.glassfish.hk2:hk2-runlevel:jar:2.4.0-b31:compile
[INFO] |  |  \- org.glassfish.hk2:class-model:jar:2.4.0-b31:compile
[INFO] |  |     \- org.glassfish.hk2.external:asm-all-repackaged:jar:2.4.0-b31:compile
[INFO] |  +- org.glassfish.hk2:spring-bridge:jar:2.4.0-b31:compile
[INFO] |  |  \- org.springframework:spring-context:jar:4.1.4.RELEASE:compile
[INFO] |  +- org.springframework:spring-beans:jar:3.2.3.RELEASE:compile
[INFO] |  +- org.springframework:spring-core:jar:4.1.4.RELEASE:compile
[INFO] |  \- org.springframework:spring-web:jar:4.1.4.RELEASE:compile
[INFO] |     \- org.springframework:spring-aop:jar:4.1.4.RELEASE:compile
[INFO] |        \- aopalliance:aopalliance:jar:1.0:compile
[INFO] +- com.sun.jersey:jersey-client:jar:1.19:compile
[INFO] |  \- com.sun.jersey:jersey-core:jar:1.19:compile
[INFO] +- org.json:json:jar:20140107:compile
[INFO] +- com.axiell.arena:arena-about-service-interfaces:jar:3.1-SNAPSHOT:compile
[INFO] +- com.axiell.arena:arena-about-service-config:jar:3.1-SNAPSHOT:compile
[INFO] +- com.axiell.arena:arena-about-service-connectors:jar:3.1-SNAPSHOT:compile
[INFO] |  +- com.axiell.arena:arena-connector-tools:jar:3.1-SNAPSHOT:compile
[INFO] |  |  +- com.axiell.arena:arena-exception-tools:jar:3.1-SNAPSHOT:compile
[INFO] |  |  +- cglib:cglib-nodep:jar:2.1_3:runtime
[INFO] |  |  \- org.aspectj:aspectjweaver:jar:1.6.12:compile
[INFO] |  \- net.sf.dozer:dozer:jar:5.3.2:compile
[INFO] |     \- commons-beanutils:commons-beanutils:jar:1.8.3:provided
[INFO] +- com.axiell.arena:arena-domain-binding:jar:3.1-SNAPSHOT:compile
[INFO] |  +- com.axiell.arena:arena-core:jar:3.1-SNAPSHOT:compile
[INFO] |  |  +- org.restlet:org.restlet:jar:1.0.11:compile
[INFO] |  |  +- org.restlet:org.restlet.ext.spring:jar:1.0.11:compile
[INFO] |  |  +- org.springframework:spring-webmvc:jar:4.1.4.RELEASE:compile
[INFO] |  |  +- org.freemarker:freemarker:jar:2.3.10:compile
[INFO] |  |  +- net.sf.saxon:saxon:jar:9.1.0.8:compile
[INFO] |  |  \- net.sf.saxon:saxon-dom:jar:9.1.0.8:compile
[INFO] |  +- javax.xml.bind:jaxb-api:jar:2.2.4:compile
[INFO] |  |  +- javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO] |  |  \- javax.activation:activation:jar:1.1:compile
[INFO] |  \- com.sun.xml.bind:jaxb-impl:jar:2.2.4-1:compile
[INFO] +- com.axiell.arena:arena-central-common:jar:3.1-SNAPSHOT:compile
[INFO] |  +- javax.ws.rs:jsr311-api:jar:1.1.1:compile
[INFO] |  \- org.springframework:spring-context-support:jar:4.1.4.RELEASE:compile
[INFO] +- com.axiell.arena:arena-central-remote:jar:3.1-SNAPSHOT:compile
[INFO] |  +- org.springframework:spring-expression:jar:4.1.4.RELEASE:compile
[INFO] |  +- org.jboss.resteasy:resteasy-jaxrs:jar:3.0.10.Final:compile
[INFO] |  |  +- org.jboss.resteasy:jaxrs-api:jar:3.0.10.Final:compile
[INFO] |  |  +- org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar:1.0.1.Final:compile
[INFO] |  |  +- org.apache.httpcomponents:httpclient:jar:4.2.6:compile
[INFO] |  |  |  \- org.apache.httpcomponents:httpcore:jar:4.2.5:compile
[INFO] |  |  \- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] |  +- org.jboss.resteasy:resteasy-jaxb-provider:jar:3.0.10.Final:compile
[INFO] |  \- javax.mail:mail:jar:1.4.7:compile
[INFO] +- javax.servlet:servlet-api:jar:2.5:compile
[INFO] +- io.swagger:swagger-jersey2-jaxrs:jar:1.5.3:compile
[INFO] |  +- io.swagger:swagger-jaxrs:jar:1.5.3:compile
[INFO] |  |  +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.4.5:compile
[INFO] |  |  |  \- org.yaml:snakeyaml:jar:1.12:compile
[INFO] |  |  +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.4.5:compile
[INFO] |  |  |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.1.2:compile
[INFO] |  |  |  +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.4.5:compile
[INFO] |  |  |  \- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] |  |  +- io.swagger:swagger-core:jar:1.5.3:compile
[INFO] |  |  |  +- org.apache.commons:commons-lang3:jar:3.3.2:compile
[INFO] |  |  |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.1.2:compile
[INFO] |  |  |  +- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.5:compile
[INFO] |  |  |  \- io.swagger:swagger-models:jar:1.5.3:compile
[INFO] |  |  |     \- io.swagger:swagger-annotations:jar:1.5.3:compile
[INFO] |  |  +- org.reflections:reflections:jar:0.9.9:compile
[INFO] |  |  |  \- com.google.code.findbugs:annotations:jar:2.0.1:compile
[INFO] |  |  \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.4.5:compile
[INFO] |  |     \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.4.5:compile
[INFO] |  \- org.glassfish.jersey.media:jersey-media-multipart:jar:2.1:compile
[INFO] |     \- org.jvnet.mimepull:mimepull:jar:1.8:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.4.5:runtime
[INFO] +- joda-time:joda-time:jar:2.7:provided
[INFO] +- com.axiell.arena:arena-domain:jar:3.1-SNAPSHOT:provided
[INFO] +- com.axiell.arena:multithreaded-http-client:jar:3.1-SNAPSHOT:provided
[INFO] +- commons-httpclient:commons-httpclient:jar:3.1:provided
[INFO] +- commons-lang:commons-lang:jar:2.5:provided
[INFO] +- commons-io:commons-io:jar:1.4:provided
[INFO] +- commons-codec:commons-codec:jar:1.7:provided
[INFO] +- commons-logging:commons-logging:jar:1.1.1:provided
[INFO] +- com.google.guava:guava:jar:13.0.1:provided
[INFO] +- org.slf4j:slf4j-api:jar:1.6.1:provided
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.1:provided
[INFO] +- net.sf.ehcache:ehcache-core:jar:2.5.1:provided
[INFO] +- org.mockito:mockito-core:jar:1.10.19:test
[INFO] |  \- org.objenesis:objenesis:jar:2.1:test
[INFO] +- log4j:log4j:jar:1.2.17:provided
[INFO] +- junit:junit:jar:4.12:test
[INFO] \- org.hamcrest:hamcrest-all:jar:1.3:test
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.499 s
[INFO] Finished at: 2015-08-18T16:40:26+02:00
[INFO] Final Memory: 35M/1963M
[INFO] ------------------------------------------------------------------------


C:\work\arena-parent\palma\arena-rest>mvn dependency:list
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building arena-rest Maven Webapp 3.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.10:list (default-cli) @ arena-rest ---
[INFO]
[INFO] The following files have been resolved:
[INFO]    org.objenesis:objenesis:jar:2.1:test
[INFO]    org.javassist:javassist:jar:3.18.1-GA:compile
[INFO]    commons-beanutils:commons-beanutils:jar:1.8.3:provided
[INFO]    net.jcip:jcip-annotations:jar:1.0:compile
[INFO]    org.yaml:snakeyaml:jar:1.12:compile
[INFO]    org.eclipse.persistence:org.eclipse.persistence.moxy:jar:2.6.0:compile
[INFO]    org.jvnet.mimepull:mimepull:jar:1.8:compile
[INFO]    org.springframework:spring-web:jar:4.1.4.RELEASE:compile
[INFO]    org.springframework:spring-webmvc:jar:4.1.4.RELEASE:compile
[INFO]    org.jboss.resteasy:resteasy-jaxb-provider:jar:3.0.10.Final:compile
[INFO]    com.axiell.arena:arena-domain-binding:jar:3.1-SNAPSHOT:compile
[INFO]    org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO]    com.axiell.arena:arena-connector-tools:jar:3.1-SNAPSHOT:compile
[INFO]    org.glassfish.jersey.core:jersey-client:jar:2.21:compile
[INFO]    com.axiell.arena:arena-exception-tools:jar:3.1-SNAPSHOT:compile
[INFO]    org.mockito:mockito-core:jar:1.10.19:test
[INFO]    com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.5:compile
[INFO]    commons-httpclient:commons-httpclient:jar:3.1:provided
[INFO]    org.restlet:org.restlet:jar:1.0.11:compile
[INFO]    javax.xml.bind:jaxb-api:jar:2.2.4:compile
[INFO]    org.glassfish.hk2.external:bean-validator:jar:2.4.0-b31:compile
[INFO]    io.swagger:swagger-jaxrs:jar:1.5.3:compile
[INFO]    org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.21:compile
[INFO]    org.glassfish.jersey.media:jersey-media-jaxb:jar:2.21:compile
[INFO]    org.jboss.resteasy:resteasy-jaxrs:jar:3.0.10.Final:compile
[INFO]    javax.ws.rs:jsr311-api:jar:1.1.1:compile
[INFO]    org.eclipse.persistence:org.eclipse.persistence.core:jar:2.6.0:compile
[INFO]    net.sf.dozer:dozer:jar:5.3.2:compile
[INFO]    javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO]    net.sf.ehcache:ehcache-core:jar:2.5.1:provided
[INFO]    commons-io:commons-io:jar:1.4:provided
[INFO]    javax.mail:mail:jar:1.4.7:compile
[INFO]    net.sf.saxon:saxon-dom:jar:9.1.0.8:compile
[INFO]    io.swagger:swagger-jersey2-jaxrs:jar:1.5.3:compile
[INFO]    com.axiell.arena:arena-about-service-config:jar:3.1-SNAPSHOT:compile
[INFO]    org.glassfish.hk2:hk2:jar:2.4.0-b31:compile
[INFO]    javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO]    org.springframework:spring-context-support:jar:4.1.4.RELEASE:compile
[INFO]    javax.servlet:servlet-api:jar:2.5:compile
[INFO]    org.glassfish.hk2:hk2-locator:jar:2.4.0-b31:compile
[INFO]    joda-time:joda-time:jar:2.7:provided
[INFO]    com.sun.xml.bind:jaxb-impl:jar:2.2.4-1:compile
[INFO]    com.fasterxml.jackson.core:jackson-annotations:jar:2.1.2:compile
[INFO]    org.springframework:spring-context:jar:4.1.4.RELEASE:compile
[INFO]    org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.21:compile
[INFO]    org.glassfish.jersey.media:jersey-media-moxy:jar:2.21:compile
[INFO]    com.axiell.arena:arena-core:jar:3.1-SNAPSHOT:compile
[INFO]    org.slf4j:slf4j-api:jar:1.6.1:provided
[INFO]    com.sun.jersey:jersey-client:jar:1.19:compile
[INFO]    com.google.guava:guava:jar:13.0.1:provided
[INFO]    com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.4.5:compile
[INFO]    org.aspectj:aspectjweaver:jar:1.6.12:compile
[INFO]    org.springframework:spring-beans:jar:3.2.3.RELEASE:compile
[INFO]    io.swagger:swagger-models:jar:1.5.3:compile
[INFO]    junit:junit:jar:4.12:test
[INFO]    javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO]    com.fasterxml.jackson.core:jackson-databind:jar:2.1.2:compile
[INFO]    org.glassfish.hk2:hk2-api:jar:2.4.0-b31:compile
[INFO]    org.springframework:spring-aop:jar:4.1.4.RELEASE:compile
[INFO]    com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.4.5:compile
[INFO]    org.glassfish.jersey.ext:jersey-spring3:jar:2.21:compile
[INFO]    commons-logging:commons-logging:jar:1.1.1:provided
[INFO]    org.glassfish.jersey.core:jersey-server:jar:2.21:compile
[INFO]    commons-codec:commons-codec:jar:1.7:provided
[INFO]    org.glassfish.hk2:hk2-config:jar:2.4.0-b31:compile
[INFO]    org.restlet:org.restlet.ext.spring:jar:1.0.11:compile
[INFO]    org.glassfish.hk2:hk2-core:jar:2.4.0-b31:compile
[INFO]    org.springframework:spring-expression:jar:4.1.4.RELEASE:compile
[INFO]    org.jboss.resteasy:jaxrs-api:jar:3.0.10.Final:compile
[INFO]    org.hamcrest:hamcrest-all:jar:1.3:test
[INFO]    org.jvnet:tiger-types:jar:1.4:compile
[INFO]    com.google.code.findbugs:annotations:jar:2.0.1:compile
[INFO]    org.springframework:spring-core:jar:4.1.4.RELEASE:compile
[INFO]    log4j:log4j:jar:1.2.17:provided
[INFO]    org.glassfish.hk2:config-types:jar:2.4.0-b31:compile
[INFO]    javax.activation:activation:jar:1.1:compile
[INFO]    commons-lang:commons-lang:jar:2.5:provided
[INFO]    org.reflections:reflections:jar:0.9.9:compile
[INFO]    io.swagger:swagger-core:jar:1.5.3:compile
[INFO]    org.glassfish.hk2.external:javax.inject:jar:2.4.0-b31:compile
[INFO]    aopalliance:aopalliance:jar:1.0:compile
[INFO]    com.axiell.arena:arena-about-service-interfaces:jar:3.1-SNAPSHOT:compile
[INFO]    org.json:json:jar:20140107:compile
[INFO]    org.glassfish.jersey.ext:jersey-entity-filtering:jar:2.21:compile
[INFO]    net.sf.saxon:saxon:jar:9.1.0.8:compile
[INFO]    org.eclipse.persistence:org.eclipse.persistence.asm:jar:2.6.0:compile
[INFO]    org.freemarker:freemarker:jar:2.3.10:compile
[INFO]    org.glassfish:javax.json:jar:1.0.4:compile
[INFO]    org.glassfish.jersey.core:jersey-common:jar:2.21:compile
[INFO]    org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO]    com.fasterxml.jackson.core:jackson-core:jar:2.4.5:runtime
[INFO]    com.sun.jersey:jersey-core:jar:1.19:compile
[INFO]    io.swagger:swagger-annotations:jar:1.5.3:compile
[INFO]    org.apache.httpcomponents:httpcore:jar:4.2.5:compile
[INFO]    org.apache.commons:commons-lang3:jar:3.3.2:compile
[INFO]    com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.4.5:compile
[INFO]    org.glassfish.jersey.media:jersey-media-multipart:jar:2.1:compile
[INFO]    org.glassfish.hk2:hk2-utils:jar:2.4.0-b31:compile
[INFO]    org.glassfish.hk2.external:asm-all-repackaged:jar:2.4.0-b31:compile
[INFO]    org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b31:compile
[INFO]    com.axiell.arena:arena-central-remote:jar:3.1-SNAPSHOT:compile
[INFO]    com.axiell.arena:arena-about-service-connectors:jar:3.1-SNAPSHOT:compile
[INFO]    com.axiell.arena:arena-central-common:jar:3.1-SNAPSHOT:compile
[INFO]    cglib:cglib-nodep:jar:2.1_3:runtime
[INFO]    javax.inject:javax.inject:jar:1:compile
[INFO]    com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.4.5:compile
[INFO]    org.slf4j:slf4j-log4j12:jar:1.6.1:provided
[INFO]    org.glassfish.hk2:class-model:jar:2.4.0-b31:compile
[INFO]    org.glassfish.hk2:hk2-runlevel:jar:2.4.0-b31:compile
[INFO]    org.apache.httpcomponents:httpclient:jar:4.2.6:compile
[INFO]    com.axiell.arena:multithreaded-http-client:jar:3.1-SNAPSHOT:provided
[INFO]    org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar:1.0.1.Final:compile
[INFO]    com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.4.5:compile
[INFO]    org.glassfish.hk2:spring-bridge:jar:2.4.0-b31:compile
[INFO]    org.glassfish.jersey.containers:jersey-container-servlet:jar:2.21:compile
[INFO]    com.axiell.arena:arena-domain:jar:3.1-SNAPSHOT:provided
[INFO]    javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.605 s
[INFO] Finished at: 2015-08-18T16:42:01+02:00
[INFO] Final Memory: 35M/1963M
[INFO] ------------------------------------------------------------------------
...

Ron Ratovsky

unread,
Aug 18, 2015, 10:46:52 AM8/18/15
to Swagger
This is just odd :) Any chance you can share your project or a SSCCE? Otherwise maybe be open for a screenshare?

--
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.

Swag

unread,
Aug 18, 2015, 11:10:21 AM8/18/15
to Swagger
I'm not sure have to discuss it with the people here..

I should say that the project resides in a tomcat that runs other modules and the maven dependencies are very complex so maybe that's why it doesn't work.
...

Swag

unread,
Aug 18, 2015, 11:31:24 AM8/18/15
to Swagger
...

Ron Ratovsky

unread,
Aug 18, 2015, 11:40:00 AM8/18/15
to Swagger
Yup, it's likely that there's a conflict on the Jackson versions loaded. However, based on the mvn output you provided, the conflict is not from this specific project but probably from another one shard on the same Tomcat instance.
Can you check somehow which other versions are used in the other projects shared on the Tomcat instance?

--
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.

Swag

unread,
Aug 19, 2015, 4:18:37 AM8/19/15
to Swagger
There was a dependency to an older version high up in the parent pom, really sorry Ron for taking up your time.. 
At least it's working now! :-)
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ron Ratovsky

unread,
Aug 19, 2015, 5:14:19 AM8/19/15
to Swagger
No worries, glad it got sorted out. Thanks for the update.

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
-----------------------------------------

--
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.

raghwani sohil

unread,
Aug 21, 2015, 10:42:53 AM8/21/15
to Swagger
Hai Swag,

I am also facing the same issue.
Can you please let me know which dependency you have upgraded?

Thanks,
Sohil
...

Swag

unread,
Aug 28, 2015, 8:10:09 AM8/28/15
to Swagger
Hi Sohil!

My problem was that there was an older version of Jackson defined higher up in the pom structure..
Make sure you only have one version of Jackson, at the moment I'm using 2.6.1
Reply all
Reply to author
Forward
0 new messages