[rucksack-devel] Error unbound Slot Transaction-id

Helmut G. Enders helmut at cybernetic-systems.de
Wed Jan 7 16:21:50 UTC 2009


Here is a complete test case with sbcl.

; SLIME 2008-10-30
CL-USER> (require :rucksack)
("SERIALIZE")
CL-USER> (rucksack:with-rucksack (rs "/tmp/db")
	   (rucksack:with-transaction ()
	      (defclass user ()
		((no :initarg :no :accessor :no :index :number-index :unique t))
		(:index t)
		(:metaclass rucksack:persistent-class))))
#<RUCKSACK:PERSISTENT-CLASS USER>
T
CL-USER> (rucksack:with-rucksack (rs "/tmp/db")
	   (rucksack:with-transaction ()
	     (make-instance 'user :no 1)))

-->> ERROR:  Unable to display error condition
              [Condition of type UNBOUND-SLOT]


CL-USER> ;; Now the same call, but with a NIL after the make-instance:
          ;; No Error.
          (rucksack:with-rucksack (rs "/tmp/db")
	   (rucksack:with-transaction ()
	     (make-instance 'user :no 2) nil))
NIL
T
CL-USER>

There is no meaningful backtrace.


debugger invoked on a UNBOUND-SLOT in thread #<THREAD "initial thread" RUNNING {A8345B1}>:
(A UNBOUND-SLOT was caught when trying to print *DEBUG-CONDITION* when entering
the debugger. Printing was aborted and the UNBOUND-SLOT was stored in
SB-DEBUG::*NESTED-DEBUG-CONDITION*.)
(CELL-ERROR-NAME SB-DEBUG::*NESTED-DEBUG-CONDITION*) = RUCKSACK:TRANSACTION-ID

Helmut





More information about the rucksack-devel mailing list