java - Class could not be loaded or is not persistent: scala.collection.immutable.List in Berkeley DB JE -


when use berkeley db je in scala project, define entity list member. when run project, throws exception telling class not loaded or not persistent: scala.collection.immutable.list. how can solve problem? or convert scala list java.util.list?

i found answer myself. berkeley db je not support list of scala, , supports java.util.list. using following statement change scala list java list works.

import scala.collection.javaconverters._ val sl = list(...) val jl = new java.util.arraylist(sl.asjava) 

passing jl berkeley db je using dpl solves problem. thanks.


Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -