error when adding contact

Bug #179187 reported by sander on 2007-12-29
2
Affects Status Importance Assigned to Milestone
Coccinella
Critical
Mats

Bug Description

iqhook ::namespace inscope ::jlib::roster set_handler failed: 1
can't read "items": no such variable
    while executing
"llength $items"
    (procedure "SetItem" line 50)
    invoked from within
"SetItem $jid -subscription none"
    ("eval" body line 1)
    invoked from within
"eval {SetItem $jid} $args"
    ("set" arm line 2)
    invoked from within
"switch -- $what {
 remove {

     # Must remove all resources, and jid2 if no resources.
         set resL [$jlib roster getresources $jid]
     ..."
    (procedure "::Roster::PushProc" line 13)
    invoked from within
"::Roster::PushProc ::jlib::jlib1 set <email address hidden> -subscription none"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 $options(cmd) [list $jlibname set $jid] $args"
    (procedure "setitem" line 34)
    invoked from within
"setitem $jlibname $jid -subscription none"
    ("eval" body line 1)
    invoked from within
"eval {setitem $jlibname $jid} $opts"
    (procedure "handle_roster" line 38)
    invoked from within
"handle_roster $jlibname $queryE"
    (procedure "set_handler" line 3)
    invoked from within
"set_handler ::jlib::jlib1 <email address hidden>/Coccinella@sdevrieze-laptop {query {xmlns jabber:iq:roster} 0 {} {{item {subscription none jid s.devrieze@..."
    (in namespace inscope "::jlib::roster" script line 1)
    invoked from within
"::namespace inscope ::jlib::roster set_handler ::jlib::jlib1 <email address hidden>/Coccinella@sdevrieze-laptop {query {xmlns jabber:iq:roster} 0 {} {{item..."
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 $func [list $jlibname $from $subiq] $args"
can't read "items": no such variable
    while executing
"llength $items"
    (procedure "SetItem" line 50)
    invoked from within
"SetItem $jid -subscription none"
    ("eval" body line 1)
    invoked from within
"eval {SetItem $jid} $args"
    ("set" arm line 2)
    invoked from within
"switch -- $what {
 remove {

     # Must remove all resources, and jid2 if no resources.
         set resL [$jlib roster getresources $jid]
     ..."
    (procedure "::Roster::PushProc" line 13)
    invoked from within
"::Roster::PushProc ::jlib::jlib1 set <email address hidden> -subscription none"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 $options(cmd) [list $jlibname set $jid] $args"
    (procedure "setitem" line 34)
    invoked from within
"setitem $jlibname $jid -subscription none"
    ("eval" body line 1)
    invoked from within
"eval {setitem $jlibname $jid} $opts"
    (procedure "handle_roster" line 38)
    invoked from within
"handle_roster $jlibname $queryE"
    (procedure "set_handler" line 3)
    invoked from within
"set_handler ::jlib::jlib1 <email address hidden>/Coccinella@sdevrieze-laptop {query {xmlns jabber:iq:roster} 0 {} {{item {subscription none jid s.devrieze@..."
    (in namespace inscope "::jlib::roster" script line 1)
    invoked from within
"::namespace inscope ::jlib::roster set_handler ::jlib::jlib1 <email address hidden>/Coccinella@sdevrieze-laptop {query {xmlns jabber:iq:roster} 0 {} {{item..."
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 $func [list $jlibname $from $subiq] $args"

sander (s-devrieze) on 2007-12-29
Changed in coccinella:
assignee: nobody → matsben
importance: Undecided → Critical
Mats (matsben) wrote :

It was that multiple resource code I added where I had screwed up things. Please verify that it is fixed.

Changed in coccinella:
status: New → Fix Committed
sander (s-devrieze) wrote :
Download full text (7.0 KiB)

It does not seems to be fixed (or maybe this is another bug):

preshook ::namespace inscope ::Roster PresenceEvent failed: 1
can't read "jid": no such variable
    while executing
"::RosterTree::StyleCreateItem $jid "available" -ask subscribe -subscription from -resource {} -type available"
    ("eval" body line 1)
    invoked from within
"eval {
  ::RosterTree::StyleCreateItem $jid "available"
     } $itemAttr [array get presA]"
    ("highest-prio" arm line 13)
    invoked from within
"switch -- $config(roster,multi-resources) {

 "highest-prio" {

     # Add only the one with highest priority.
     set res [$jlib roster gethighestr..."
    (procedure "NewAvailableItem" line 10)
    invoked from within
"NewAvailableItem $rjid"
    (procedure "Presence" line 67)
    invoked from within
"Presence $jid3 $type -from msn.jabber.cd.chalmers.se -type available -resource {} -xmldata {presence {from msn.jabber.cd.chalmers.se to ladybug@jabber..."
    ("eval" body line 1)
    invoked from within
"eval {Presence $jid3 $type} $opts"
    (procedure "PresenceEvent" line 64)
    invoked from within
"PresenceEvent ::jlib::jlib1 {presence {from msn.jabber.cd.chalmers.se to <email address hidden>/Coccinella@sdevrieze-laptop} 0 {} {{x {xmlns vcard-temp:x:u..."
    (in namespace inscope "::Roster" script line 1)
    invoked from within
"::namespace inscope ::Roster PresenceEvent ::jlib::jlib1 {presence {from msn.jabber.cd.chalmers.se to <email address hidden>/Coccinella@sdevrieze-laptop} 0..."
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 $func [list $jlibname $xmldata]"
can't read "jid": no such variable
    while executing
"::RosterTree::StyleCreateItem $jid "available" -ask subscribe -subscription from -resource {} -type available"
    ("eval" body line 1)
    invoked from within
"eval {
  ::RosterTree::StyleCreateItem $jid "available"
     } $itemAttr [array get presA]"
    ("highest-prio" arm line 13)
    invoked from within
"switch -- $config(roster,multi-resources) {

 "highest-prio" {

     # Add only the one with highest priority.
     set res [$jlib roster gethighestr..."
    (procedure "NewAvailableItem" line 10)
    invoked from within
"NewAvailableItem $rjid"
    (procedure "Presence" line 67)
    invoked from within
"Presence $jid3 $type -from msn.jabber.cd.chalmers.se -type available -resource {} -xmldata {presence {from msn.jabber.cd.chalmers.se to ladybug@jabber..."
    ("eval" body line 1)
    invoked from within
"eval {Presence $jid3 $type} $opts"
    (procedure "PresenceEvent" line 64)
    invoked from within
"PresenceEvent ::jlib::jlib1 {presence {from msn.jabber.cd.chalmers.se to <email address hidden>/Coccinella@sdevrieze-laptop} 0 {} {{x {xmlns vcard-temp:x:u..."
    (in namespace inscope "::Roster" script line 1)
    invoked from within
"::namespace inscope ::Roster PresenceEvent ::jlib::jlib1 {presence {from msn.jabber.cd.chalmers.se to <email address hidden>/Coccinella@sdevrieze-laptop} 0..."
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 $func [list $jlibname $xmldata]"

And this:

preshook ::namespace inscope ::Roster PresenceEvent failed: 1
can't read "jid": no such variable
    while executing
"::RosterTree::Style...

Read more...

Changed in coccinella:
milestone: none → 0.96.4.1

I knew this was tricky code. One more try...

sander (s-devrieze) on 2008-01-09
Changed in coccinella:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers