oops, strange....
there is an additional getter on a variable, that causes this error:

        private java.util.Date gebdat;

        public java.util.Date getGebdat() {
                return gebdat;
        }

        public String getGebdatStr() {
                // don't work: return gebdat.toString();        
                return "Hello World!";  // this ist Ok!  ????
        }

regards
 klaus

-----Ursprüngliche Nachricht-----
Von: Thiele, Klaus [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 30. November 2006 14:07
An: Jess-Users (E-Mail)
Betreff: JESS: something wrong with my JavaBean?


Hello,

i'm testing some things from the manual. i have a normal java-bean -
getter/setter, PropertyChangeSupport - works well
in my other testcase. now i try to create new facts directly from jess
(chapter 5.3.2) :

(import com.PIAG.jess.Person)
(deftemplate Person (declare (from-class Person)))

(bind ?p1 (new com.PIAG.jess.Person))

(?p1 setNaname "Duck")
(?p1 setVorname "Donald")  

(printout t "Hello" (?p1 getVorname) (?p1 getNaname) crlf)

(add ?p1)

following exception:
Jess reported an error in routine DefinstanceList.updateMultipleSlots
        while executing (add ?p1).
  Message: Called method threw an exception.
  Program text: ( add ?p1 )  at line 23.

what happens?

regards
 klaus


--
Klaus Thiele - Personal & Informatik AG
mailto:[EMAIL PROTECTED]

  "Ein wichtiger Charakterzug groÃYartiger Programmierer ist konstruktive
Faulheit..."
   Eric S. Raymond


--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to