If you can create a reproducible case, we're look into it.
On Thu, Nov 12, 2009 at 5:43 PM, Jim McBeath <[email protected]> wrote:
>
> When I try to save a record in my table from the Create form built by
> CRUDify, I am getting a "Trying to open an empty Box" exception from
> within MetaMapper.scala, line 617 (in 1.1M7), which is this line:
>
> findApplier(indexMap.open_!, rs.getObject(1)) match {
>
> It appears that indexMap is initialized to Empty at line 888
> and is set to Full at line 985, but the latter happens only if
> dbPrimaryKey_? and dbAutogenerated? are both true. In my case I
> have set dbAutogenerated_? = false for my primary key, so indexMap
> will always be Empty, and the code at line 617 will always throw
> an exception.
>
> Is this a bug, or am I misunderstanding or misusing something?
>
> My primary field in my KeyedMapper class looks essentially like this:
>
> object pk extends MappedStringIndex(this,1) {
> override def dbColumnName = "TABLENAME_PK"
> override def dbDisplay_? = true
> override def writePermission_? = true
> override def dbAutogenerated_? = false
> override lazy val defaultValue = ""
> }
>
> --
> Jim
>
> P.S. Thanks for the OracleDriver fix, Dave.
>
> >
>
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---