Assuming I prune it down to an example that requires only a few files, which would probably include an SQL script for creating a test database that has the appropriate schema in it, is there a procedure for submitting such a test case? Should I just post source code to this group? Make a jar file with sources and put it somewhere? If someone can point me to a wiki page or some other reference to clue me in as to standard procedure for doing this, that would be nice.
-- Jim On Thu, Nov 12, 2009 at 07:28:24PM -0800, David Pollak wrote: > Date: Thu, 12 Nov 2009 19:28:24 -0800 > From: David Pollak <[email protected]> > To: [email protected] > Subject: [Lift] Re: Empty Box exception in MetaMapper > > 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 -~----------~----~----~----~------~----~------~--~---
