Error in Edge while importing swagger json ~1.4 MB

Not applicable

swagger json is valid as per json online tools ,but may be its not strictly as per swagger 2.0 spec .

So can someone tell me how to disable the strict schema verificaation in edge gateway on importing swagger json in a model . Or please suggest any setting which can be done so that importing swagger of this size does not cause any issues.

2017-02-21 07:34:58,999 org:kronos qtp893523498-39 ERROR REST - CustomJAXRSInvoker.performInvocation() : CustomJAXRSInvoker.performInvocation : Method com.apigee.apimodel.repo.resource.ApiResource.importModelByFile threw an exception.
com.apigee.apimodel.repo.exception.ApiModelException: This is not a valid Swagger. Unable to retrieve details from the swagger provided.

at com.apigee.apimodel.repo.resource.ApiResource.importModelByFile(ApiResource.java:411) ~[apimodel-repo-1.0.0.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_72]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_72]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_72]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_72]
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173) [cxf-rt-core-2.4.7.jar:2.4.7]
at com.apigee.rest.framework.CustomJAXRSInvoker.performInvocation(CustomJAXRSInvoker.java:125) ~[rest-1.0.0.jar:na]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89) [cxf-rt-core-2.4.7.jar:2.4.7]
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:165) [cxf-rt-frontend-jaxrs-2.4.7.jar:2.4.7]
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:241) [cxf-rt-frontend-jaxrs-2.4.7.jar:2.4.7]
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:92) [cxf-rt-frontend-jaxrs-2.4.7.jar:2.4.7]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) [cxf-rt-core-2.4.7.jar:2.4.7]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_72]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_72]
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) [cxf-rt-core-2.4.7.jar:2.4.7]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106) [cxf-rt-core-2.4.7.jar:2.4.7]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) [cxf-api-2.4.7.jar:2.4.7]
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-rt-core-2.4.7.jar:2.4.7]
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:232) [cxf-rt-transports-http-2.4.10.jar:2.4.7]
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:209) [cxf-rt-transports-http-2.4.10.jar:2.4.10]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:152) [cxf-rt-transports-http-2.4.10.jar:2.4.10]
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:114) [cxf-rt-transports-http-2.4.10.jar:2.4.10]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185) [cxf-rt-transports-http-2.4.10.jar:2.4.10]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108) [cxf-rt-transports-http-2.4.10.jar:2.4.10]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [servlet-api-3.0.20100224.jar:na]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:164) [cxf-rt-transports-http-2.4.10.jar:2.4.10]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:558) [jetty-webapp-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1366) [jetty-webapp-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77) [jetty-servlets-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:181) [jetty-servlets-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) [jetty-webapp-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486) [jetty-webapp-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520) [jetty-webapp-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:973) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417) [jetty-webapp-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:907) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.server.Server.handle(Server.java:350) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:442) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:924) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:588) [jetty-http-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) [jetty-http-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586) [jetty-io-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44) [jetty-io-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) [jetty-server-8.0.4.v20111024.jar:8.0.4.v20111024]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_72]
2017-02-21 07:34:59,000 org:kronos qtp893523498-39 ERROR REST - ExceptionMapper.toResponse() : Error occurred : This is not a valid Swagger. Unable to retrieve details from the swagger provided.

com.apigee.apimodel.repo.resource.ApiResource.importModelByFile(ApiResource.java:411)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
com.apigee.rest.framework.CustomJAXRSInvoker.performInvocation(CustomJAXRSInvoker.java:125)

2017-02-21 07:34:59,000 org:kronos qtp893523498-39 ERROR REST - ExceptionMapper.toResponse() : Returning error response : ErrorResponse

{errorCode = apimodel.BadSwaggerReceived, errorMessage = This is not a valid Swagger. Unable to retrieve details from the swagger provided.}

0 0 97
0 REPLIES 0