Hi All,
 I am using SCMBUG_RELEASE_0-26-15.
 Bugzilla 3.4.1

 when I am trying to commit my postcommit hook is failing.and the error
message is "** Scmbug error 24: The daemon-spawned connection handler exited
abnormally. Please check the daemon error logs."

 In the demon error log I am getting the following error


2009/11/20 18:59:40 Scmbug ERROR> Daemon.pm:634:main:: - Thread 3 terminated
abnormally: invalid bug attribute AppendComment at
C:/wamp/www/bugzilla/Bugzilla/Bug.pm line 3676
    Bugzilla::Bug::AUTOLOAD(5, 9, 'fixed\x{a}\x{a}\x{a}Branch:
trunk\x{a}Affected files:\x{a}---------------\x{a}...') called at C:/Program
Files/Scmbug/share/scmbug/lib/Scmbug/Daemon/Bugzilla.pm line 519

Scmbug::Daemon::Bugzilla::integration_add_comment('Scmbug::Daemon::Bugzilla=HASH(0x80d6b9c)',
5, '[email protected]', 'fixed\x{a}\x{a}\x{a}Branch:
trunk\x{a}Affected files:\x{a}---------------\x{a}...') called at C:/Program
Files/Scmbug/share/scmbug/lib/Scmbug/Daemon/Integration.pm line 428

Scmbug::Daemon::Integration::add_comment_to_all('Scmbug::Daemon::Integration=HASH(0x8528464)',
'[email protected]', 'fixed\x{a}\x{a}\x{a}Branch:
trunk\x{a}Affected files:\x{a}---------------\x{a}...', 'ARRAY(0x8233718)')
called at C:/Program
Files/Scmbug/share/scmbug/lib/Scmbug/Daemon/Integration.pm line 89

Scmbug::Daemon::Integration::process_activity_commit('Scmbug::Daemon::Integration=HASH(0x8528464)')
called at C:/Program Files/Scmbug/share/scmbug/lib/Scmbug/Daemon/Process.pm
line 867

Scmbug::Daemon::Process::process_activity_commit('Scmbug::Daemon::Process=HASH(0x823349c)',
'Scmbug::Daemon::Request=HASH(0x823340c)') called at C:/Program
Files/Scmbug/share/scmbug/lib/Scmbug/Daemon/Process.pm line 784

Scmbug::Daemon::Process::process_activity('Scmbug::Daemon::Process=HASH(0x823349c)',
'Scmbug::Daemon::Request=HASH(0x823340c)') called at C:/Program
Files/Scmbug/share/scmbug/lib/Scmbug/Daemon/Process.pm line 152

Scmbug::Daemon::Process::process_connection('Scmbug::Daemon::Process=HASH(0x823349c)',
'IO::Socket::INET=GLOB(0x559a2c4)', 'IO::Socket::INET=GLOB(0x559a2c4)',
'Scmbug::Daemon::Request=HASH(0x823340c)') called at C:/Program
Files/Scmbug/share/scmbug/lib/Scmbug/Daemon/Daemon.pm line 663

Scmbug::Daemon::Daemon::connection_handler_thread('IO::Socket::INET=GLOB(0x559a2c4)',
'\x{c0}\x{a8}h\x{88}', 192.168.104.136, 1274) called at C:/Program
Files/Scmbug/share/scmbug/lib/Scmbug/Daemon/Daemon.pm line 634
    eval {...} called at C:/Program
Files/Scmbug/share/scmbug/lib/Scmbug/Daemon/Daemon.pm line 634

I got some workaround for this after a bit googling.that is

Bugzilla::Bug::AppendComment function does not exist in version 3.4.1 .

I had to modify Scmbug::Daemon::Bugzilla->integration_add_comment function

replacing AppendComment call with the following code



my $bug = Bugzilla::Bug->check($bugid);

my $user = new Bugzilla::User($username);

Bugzilla->set_user($user);

$bug->add_comment($comment, {isprivate => 0, work_time => 0, type =>
Bugzilla::Constants->CMT_NORMAL, extra_data => "this is extra data"} );
$bug->update();

After doing this I am getting the following error

2009/11/20 19:07:46 Scmbug WARN>
Process.pm:866:Scmbug::Daemon::Process::process_activity_commit -
192.168.104.136:1301 Processing an 'activity_commit' for bug id '5' from SCM
user 'Debasis.mishra'
2009/11/20 19:07:46 Scmbug ERROR> Daemon.pm:634:main:: - Thread 3 terminated
abnormally: Invalid parameter passed to Bugzilla::User::_init. It must be
numeric.

So i don't know how to proceed.

Thanks,
Debasis
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to