Squeryl无法仅在调试模式下反映出来

时间:2014-09-04 13:13:43

标签: debugging intellij-idea squeryl

我无法调试(简单运行正常)我的单元测试。 Squeryl失败,但有以下异常:

error while reflecting on metadata for (Some(private scala.Option
com.company.play.model.db.mapping.Position.orgUnit2id),Some(public scala.Option
com.company.play.model.db.mapping.Position.orgUnit2id()),None,Set(@org.squeryl.annotations.ColumnBase(optionType=class java.lang.Object, name=, length=-1, scale=-1, value=ORG_UNIT2ID))) of class com.company.play.model.db.mapping.Position

java.lang.RuntimeException: error while reflecting on metadata for (Some(private scala.Option com.company.play.model.db.mapping.Position.orgUnit2id),Some(public scala.Option com.company.play.model.db.mapping.Position.orgUnit2id()),None,Set(@org.squeryl.annotations.ColumnBase(optionType=class java.lang.Object, name=, length=-1, scale=-1, value=ORG_UNIT2ID))) of class com.company.play.model.db.mapping.Position
    at org.squeryl.internals.PosoMetaData$$anonfun$4.apply(PosoMetaData.scala:115)
    at org.squeryl.internals.PosoMetaData$$anonfun$4.apply(PosoMetaData.scala:80)
    at org.squeryl.internals.PosoMetaData.<init>(PosoMetaData.scala:80)
    at org.squeryl.View.<init>(View.scala:66)
    at org.squeryl.Table.<init>(Table.scala:29)
    at org.squeryl.Schema$class.table(Schema.scala:340)
    at com.******.play.model.db.mapping.DBLibrary$.table(DBLibrary.scala:5)
    ...
Caused by: scala.MatchError: null
    at org.squeryl.internals.FieldMetaData$$anon$1.build(FieldMetaData.scala:466)
    at org.squeryl.internals.PosoMetaData$$anonfun$4.apply(PosoMetaData.scala:112)
    ... 22 more

我使用IntelliJ IDEA最新版本(13.1.4)进行调试。在IDEA和&amp ;;在控制台(sbt clean编译测试)工作正常。

1 个答案:

答案 0 :(得分:0)

从jdk 1.8切换到jdk 1.7解决了这个问题。