tototoshi / slick-joda-mapper

Slick with JodaTime
BSD 2-Clause "Simplified" License
245 stars 47 forks source link

slick-joda-mapper version 1.2.0 doesn't work with Slick 2.0.3 #19

Open ulejon opened 10 years ago

ulejon commented 10 years ago

I am unable to use version 1.2.0 in my 2.3.x Play framework project, using slick 2.0.3.

Trying to insert Some(new org.joda.time.DateTime()) in a table with the column def createDate = columnOption[DateTime] gives me the following error: java.lang.AbstractMethodError.

However, using slick-joda-mapper version 1.1.0 works

jirihelmich commented 10 years ago

Same for me.

Exception in thread "slick.db.execution.context-1" java.lang.AbstractMethodError
    at scala.slick.driver.JdbcTypesComponent$JdbcType$$anon$2.setValue(JdbcTypesComponent.scala:55)
    at scala.slick.driver.JdbcTypesComponent$JdbcType$$anon$2.setValue(JdbcTypesComponent.scala:50)
    at scala.slick.jdbc.JdbcMappingCompilerComponent$MappingCompiler$$anon$1.set(JdbcMappingCompilerComponent.scala:30)
    at scala.slick.jdbc.JdbcMappingCompilerComponent$MappingCompiler$$anon$1.set(JdbcMappingCompilerComponent.scala:20)
    at scala.slick.profile.RelationalMappingCompilerComponent$ProductResultConverter$$anonfun$set$1.apply(RelationalProfile.scala:251)
    at scala.slick.profile.RelationalMappingCompilerComponent$ProductResultConverter$$anonfun$set$1.apply(RelationalProfile.scala:250)
    at scala.collection.Iterator$class.foreach(Iterator.scala:727)
    at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
    at scala.slick.profile.RelationalMappingCompilerComponent$ProductResultConverter.set(RelationalProfile.scala:250)
    at scala.slick.profile.RelationalMappingCompilerComponent$TypeMappingResultConverter.set(RelationalProfile.scala:264)
    at scala.slick.driver.JdbcInvokerComponent$BaseInsertInvoker$$anonfun$internalInsert$1.apply(JdbcInvokerComponent.scala:114)
    at scala.slick.driver.JdbcInvokerComponent$BaseInsertInvoker$$anonfun$internalInsert$1.apply(JdbcInvokerComponent.scala:112)
    at scala.slick.jdbc.JdbcBackend$SessionDef$class.withPreparedInsertStatement(JdbcBackend.scala:169)
    at scala.slick.jdbc.JdbcBackend$BaseSession.withPreparedInsertStatement(JdbcBackend.scala:305)
    at scala.slick.driver.JdbcInvokerComponent$AbstractKeysInsertInvoker.prepared(JdbcInvokerComponent.scala:217)
    at scala.slick.driver.JdbcInvokerComponent$BaseInsertInvoker.internalInsert(JdbcInvokerComponent.scala:112)
    at scala.slick.driver.JdbcInvokerComponent$BaseInsertInvoker.insert(JdbcInvokerComponent.scala:104)
    at scala.slick.driver.JdbcInvokerComponent$BaseInsertInvoker.$plus$eq(JdbcInvokerComponent.scala:151)
    at services.data.CRUDService$class.insertAndGetId(CRUDService.scala:40)

downgrade to 1.1.0 helped.

ferrlin commented 10 years ago

Encountered this bug as well but with play 2.2.x

jatcwang commented 8 years ago

I am hitting this issue as well. Downgraded to 1.1.0 fixed it for me.