class scala.ScalaReflectionException: Scala field x of class A isn't represented as a Java field, nor does it have a Java accessor method. One common reason for this is that it may be a private class parameter not used outside the primary constructor.