scala.MatchError: io.getquill.context.Context$$anon$2@3581ddb8 (of class io.getquill.context.Context$$anon$2)

GitHub | LMnet | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Option[T] field with custom T encoder produce error with None value

    GitHub | 6 months ago | LMnet
    scala.MatchError: io.getquill.context.Context$$anon$2@3581ddb8 (of class io.getquill.context.Context$$anon$2)

    Root Cause Analysis

    1. scala.MatchError

      io.getquill.context.Context$$anon$2@3581ddb8 (of class io.getquill.context.Context$$anon$2)

      at io.getquill.context.jdbc.JdbcEncoders$$anon$4.apply()
    2. io.getquill.context
      JdbcEncoders$$anon$4.apply
      1. io.getquill.context.jdbc.JdbcEncoders$$anon$4.apply(JdbcEncoders.scala:47)
      2. io.getquill.context.jdbc.JdbcEncoders$$anon$4.apply(JdbcEncoders.scala:40)
      2 frames
    3. test
      QuillTest$$anonfun$2$$anonfun$apply$1$$anonfun$apply$2$$anonfun$apply$3.apply
      1. test.QuillTest$$anonfun$2$$anonfun$4.apply(QuillTest.scala:24)
      2. test.QuillTest$$anonfun$2$$anonfun$4.apply(QuillTest.scala:24)
      3. test.QuillTest$$anonfun$2$$anonfun$apply$1$$anonfun$apply$2$$anonfun$apply$3.apply(QuillTest.scala:24)
      4. test.QuillTest$$anonfun$2$$anonfun$apply$1$$anonfun$apply$2$$anonfun$apply$3.apply(QuillTest.scala:24)
      4 frames
    4. Scala
      List.foldLeft
      1. scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:124)
      2. scala.collection.immutable.List.foldLeft(List.scala:84)
      2 frames
    5. test
      QuillTest$$anonfun$2$$anonfun$apply$1$$anonfun$apply$2.apply
      1. test.QuillTest$$anonfun$2$$anonfun$apply$1$$anonfun$apply$2.apply(QuillTest.scala:24)
      2. test.QuillTest$$anonfun$2$$anonfun$apply$1$$anonfun$apply$2.apply(QuillTest.scala:24)
      2 frames
    6. io.getquill
      JdbcContext$$anonfun$2$$anonfun$apply$3$$anonfun$3.apply
      1. io.getquill.JdbcContext$$anonfun$2$$anonfun$apply$3$$anonfun$3.apply(JdbcContext.scala:99)
      2. io.getquill.JdbcContext$$anonfun$2$$anonfun$apply$3$$anonfun$3.apply(JdbcContext.scala:99)
      2 frames
    7. Scala
      List.map
      1. scala.collection.immutable.List.map(List.scala:273)
      1 frame
    8. io.getquill
      JdbcContext$$anonfun$withConnection$1.apply
      1. io.getquill.JdbcContext$$anonfun$2$$anonfun$apply$3.apply(JdbcContext.scala:99)
      2. io.getquill.JdbcContext$$anonfun$2$$anonfun$apply$3.apply(JdbcContext.scala:98)
      3. io.getquill.JdbcContext$$anonfun$withConnection$1.apply(JdbcContext.scala:46)
      3 frames
    9. Scala
      Option.getOrElse
      1. scala.Option.getOrElse(Option.scala:121)
      1 frame
    10. io.getquill
      JdbcContext$$anonfun$2.apply
      1. io.getquill.JdbcContext.withConnection(JdbcContext.scala:44)
      2. io.getquill.JdbcContext$$anonfun$2.apply(JdbcContext.scala:98)
      3. io.getquill.JdbcContext$$anonfun$2.apply(JdbcContext.scala:97)
      3 frames
    11. io.getquill.context
      ActionApply.apply
      1. io.getquill.context.jdbc.ActionApply.apply(ActionApply.scala:4)
      1 frame
    12. test
      QuillTest$delayedInit$body.apply
      1. test.QuillTest$.delayedEndpoint$test$QuillTest$1(QuillTest.scala:24)
      2. test.QuillTest$delayedInit$body.apply(QuillTest.scala:15)
      2 frames
    13. Scala
      App$class.main
      1. scala.Function0$class.apply$mcV$sp(Function0.scala:34)
      2. scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
      3. scala.App$$anonfun$main$1.apply(App.scala:76)
      4. scala.App$$anonfun$main$1.apply(App.scala:76)
      5. scala.collection.immutable.List.foreach(List.scala:381)
      6. scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
      7. scala.App$class.main(App.scala:76)
      7 frames
    14. test
      QuillTest.main
      1. test.QuillTest$.main(QuillTest.scala:15)
      2. test.QuillTest.main(QuillTest.scala)
      2 frames
    15. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames