You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import spray.http.Uri
import spray.http.Uri.Path.{Empty, Segment, Slash}
import spray.json.DefaultJsonProtocol._
sealed trait TopUri {
def uuid: UUID
def string: String
override def toString: String = string
}
case class TestUri(uuid: UUID) extends TopUri {
lazy val uri = Uri("testing", Uri.Authority.Empty, Uri.Path("/test/" + uuid), Uri.Query(), None)
lazy val string: String = uri.toString()
}
I did debug it and error comes from spray.http.Uri. Any thoughts?
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.rest.RestApp.main(RestApp.scala)
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:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: java.lang.IndexOutOfBoundsException: 0
at scala.collection.LinearSeqOptimized$class.apply(LinearSeqOptimized.scala:51)
at scala.collection.immutable.List.apply(List.scala:83)
at org.mashupbots.socko.rest.SwaggerReflector$.containerContentType(SwaggerReflector.scala:153)
at org.mashupbots.socko.rest.SwaggerModelRegistry.org$mashupbots$socko$rest$SwaggerModelRegistry$$parsePropertyType(SwaggerApiDocs.scala:484)
at org.mashupbots.socko.rest.SwaggerModelRegistry$$anonfun$13.apply(SwaggerApiDocs.scala:439)
at org.mashupbots.socko.rest.SwaggerModelRegistry$$anonfun$13.apply(SwaggerApiDocs.scala:434)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.reflect.internal.Scopes$Scope.foreach(Scopes.scala:373)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
at scala.reflect.internal.Scopes$Scope.map(Scopes.scala:51)
at org.mashupbots.socko.rest.SwaggerModelRegistry.registerComplexType(SwaggerApiDocs.scala:434)
at org.mashupbots.socko.rest.SwaggerModelRegistry.register(SwaggerApiDocs.scala:530)
at org.mashupbots.socko.rest.SwaggerModelRegistry$$anonfun$registerComplexType$1.apply(SwaggerApiDocs.scala:458)
at org.mashupbots.socko.rest.SwaggerModelRegistry$$anonfun$registerComplexType$1.apply(SwaggerApiDocs.scala:458)
at scala.collection.mutable.HashSet.foreach(HashSet.scala:78)
at org.mashupbots.socko.rest.SwaggerModelRegistry.registerComplexType(SwaggerApiDocs.scala:458)
at org.mashupbots.socko.rest.SwaggerModelRegistry.register(SwaggerApiDocs.scala:530)
at org.mashupbots.socko.rest.SwaggerModelRegistry$$anonfun$registerComplexType$1.apply(SwaggerApiDocs.scala:458)
at org.mashupbots.socko.rest.SwaggerModelRegistry$$anonfun$registerComplexType$1.apply(SwaggerApiDocs.scala:458)
at scala.collection.mutable.HashSet.foreach(HashSet.scala:78)
at org.mashupbots.socko.rest.SwaggerModelRegistry.registerComplexType(SwaggerApiDocs.scala:458)
at org.mashupbots.socko.rest.SwaggerModelRegistry.register(SwaggerApiDocs.scala:530)
at org.mashupbots.socko.rest.SwaggerApiOperation$.apply(SwaggerApiDocs.scala:286)
at org.mashupbots.socko.rest.SwaggerApiPath$$anonfun$9.apply(SwaggerApiDocs.scala:246)
at org.mashupbots.socko.rest.SwaggerApiPath$$anonfun$9.apply(SwaggerApiDocs.scala:246)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
at scala.collection.immutable.List.map(List.scala:284)
at org.mashupbots.socko.rest.SwaggerApiPath$.apply(SwaggerApiDocs.scala:246)
at org.mashupbots.socko.rest.SwaggerApiDeclaration$$anonfun$7.apply(SwaggerApiDocs.scala:200)
at org.mashupbots.socko.rest.SwaggerApiDeclaration$$anonfun$7.apply(SwaggerApiDocs.scala:198)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.collection.immutable.Map$Map1.foreach(Map.scala:116)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
at scala.collection.AbstractTraversable.map(Traversable.scala:104)
at org.mashupbots.socko.rest.SwaggerApiDeclaration$.apply(SwaggerApiDocs.scala:198)
at org.mashupbots.socko.rest.SwaggerApiDocs$$anonfun$3.apply(SwaggerApiDocs.scala:85)
at org.mashupbots.socko.rest.SwaggerApiDocs$$anonfun$3.apply(SwaggerApiDocs.scala:83)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.collection.immutable.Map$Map1.foreach(Map.scala:116)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
at scala.collection.AbstractTraversable.map(Traversable.scala:104)
at org.mashupbots.socko.rest.SwaggerApiDocs$.apply(SwaggerApiDocs.scala:83)
at org.mashupbots.socko.rest.RestRegistry$.apply(RestRegistry.scala:149)
at org.mashupbots.socko.rest.RestRegistry$.apply(RestRegistry.scala:102)
Is there any way to disable SwaggerApiDoc generation?
The text was updated successfully, but these errors were encountered:
I am trying to start the
WebServer
usingand
TestResponse
would look likeand
TestUri
would look likeI did debug it and error comes from
spray.http.Uri
. Any thoughts?Is there any way to disable
SwaggerApiDoc
generation?The text was updated successfully, but these errors were encountered: