Thread: Re: [Arsperl-users] Arsperl-users Digest, Vol 7, Issue 9
Brought to you by:
jeffmurphy
|
From: <Tra...@ca...> - 2006-11-30 12:27:38
|
Are you sure your Form Name is correct? Is it "HPD:HelpDesk" or = "HPD:Help Desk"? -----Original Message----- From: ars...@ar... [mailto:ars...@ar...]On Behalf Of ars...@ar... Sent: Wednesday, November 29, 2006 2:13 PM To: ars...@ar... Subject: Arsperl-users Digest, Vol 7, Issue 9 Send Arsperl-users mailing list submissions to ars...@ar... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/arsperl-users or, via email, send a message with subject or body 'help' to ars...@ar... You can reach the person managing the list at ars...@ar... When replying, please edit your Subject line so it is more specific than "Re: Contents of Arsperl-users digest..." Today's Topics: 1. segfault with ArsPerl 1.85 (Barbara Jensen) 2. Re: segfault with ArsPerl 1.85 (Michiel Beijen) ---------------------------------------------------------------------- Message: 1 Date: Tue, 28 Nov 2006 15:25:47 -0500 From: Barbara Jensen <bl...@cm...> Subject: [Arsperl-users] segfault with ArsPerl 1.85 To: ars...@ar... Message-ID: <642...@ny...> Content-Type: text/plain; charset=3DUS-ASCII I'm running ArsPerl 1.85, compiled against 5.1.2 Remedy lib. I can build a connection object, but if I try to open a form, I get ARERR #149. If I just connect and exit, it segfaults on exit. =20 Here is my script and output: ----------- #!/usr/local/bin/perl5 =20 #=20 =20 use ARS;=20 $server =3D 'remedy1.andrew.cmu.edu';=20 $userid =3D 'blk';=20 $passwd =3D 'remedy';=20 =20 ## get connection=20 my $connection =3D =20 new ARS (=20 -server =3D> $server,=20 -username =3D> $userid,=20 -password =3D> $passwd,=20 -catch =3D> undef,=20 -ctrl =3D> undef,=20 -debug =3D> 1=20 );=20 =20 die("Unable to connect to server\n")=20 unless ($connection);=20 =20 $connection->print() if $connection;=20 =20 print "got connection\n";=20 #exit;=20 =20 ## open form=20 my $FormName =3D "HPD:HelpDesk";=20 my $form =3D $connection->openForm(=20 -form =3D> $FormName,=20 -vui =3D> undef=20 );=20 =20 print "got form\n";=20 exit;=20 ----------- % ./arsconnect new connection object: (remedy1.andrew.cmu.edu, blk, remedy) connection object details: cacheId =3D ARControlStructPtr=3DSCALAR(0x8413bc8) operationTime =3D Wed Dec 31 19:00:00 1969 user =3D=20 password =3D=20 server =3D=20 lang =3D=20 got connection [ERROR] Cannot open catalog; Message number =3D 149 () (ARERR #149) TRACEBACK: exception generated at /usr/local/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi-64int-ld/ARS= OOform.pm line 47 ARS::form::new('ARS::form', '-form', 'HPD:HelpDesk', '-vui', 'undef', '-connection', 'ARS=3DHASH(0x8413b48)') called at /usr/local/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi-64int-ld/ARS= OOsup.pm line 138 ARS::openForm('ARS=3DHASH(0x8413b48)', '-form', 'HPD:HelpDesk', '-vui', 'undef') called at ./arsconnect line 30 destroying connection object: ars_Logoff called. Segmentation fault %=20 Any ideas on how to debug this? =20 Thanks, barbara ------------------------------ Message: 2 Date: Wed, 29 Nov 2006 10:01:18 +0100 From: "Michiel Beijen" <mic...@gm...> Subject: Re: [Arsperl-users] segfault with ArsPerl 1.85 To: "ARSperl User Discussion" <ars...@ar...> Message-ID: <60b...@ma...> Content-Type: text/plain; charset=3D"iso-8859-1" Hi Barbara, I guess the problem is in the fact that you should compile ARSPerl = against the Remedy 6.3 libs. You can use ARSPerl to connect to pre-6.3 servers without any problems, but you should use the 6.3 libs to compile it = with. You can find these in the API directory of the server. You do not need = to install the 6.3 server, just unzip the file and copy the api directory. Kind regards, Michiel On 11/28/06, Barbara Jensen <bl...@cm...> wrote: > > I'm running ArsPerl 1.85, compiled against 5.1.2 Remedy lib. > > I can build a connection object, but if I try to open a form, I get > ARERR #149. If I just connect and exit, it segfaults on exit. > > Here is my script and output: > > ----------- > #!/usr/local/bin/perl5 > # > > use ARS; > $server =3D 'remedy1.andrew.cmu.edu'; > $userid =3D 'blk'; > $passwd =3D 'remedy'; > > ## get connection > my $connection =3D > new ARS ( > -server =3D> $server, > -username =3D> $userid, > -password =3D> $passwd, > -catch =3D> undef, > -ctrl =3D> undef, > -debug =3D> 1 > ); > > die("Unable to connect to server\n") > unless ($connection); > > $connection->print() if $connection; > > print "got connection\n"; > #exit; > > ## open form > my $FormName =3D "HPD:HelpDesk"; > my $form =3D $connection->openForm( > -form =3D> $FormName, > -vui =3D> undef > ); > > print "got form\n"; > exit; > > ----------- > > % ./arsconnect > new connection object: (remedy1.andrew.cmu.edu, blk, remedy) > connection object details: > cacheId =3D ARControlStructPtr=3DSCALAR(0x8413bc8) > operationTime =3D Wed Dec 31 19:00:00 1969 > user =3D > password =3D > server =3D > lang =3D > got connection > [ERROR] Cannot open catalog; Message number =3D 149 () (ARERR #149) > > TRACEBACK: > > exception generated at > > = /usr/local/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi-64int-ld/ARS= OOform.pm > line 47 > ARS::form::new('ARS::form', '-form', 'HPD:HelpDesk', '-vui', > 'undef', '-connection', 'ARS=3DHASH(0x8413b48)') called at > > = /usr/local/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi-64int-ld/ARS= OOsup.pm > line 138 > ARS::openForm('ARS=3DHASH(0x8413b48)', '-form', = 'HPD:HelpDesk', > '-vui', 'undef') called at ./arsconnect line 30 > > destroying connection object: ars_Logoff called. > Segmentation fault > % > > Any ideas on how to debug this? > > Thanks, > barbara > > = -------------------------------------------------------------------------= > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to = share > your > opinions on IT & business topics through brief surveys - and earn cash > = http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: = http://sourceforge.net/mailarchive/forum.php?forum=3Darsperl-users/attach= ments/20061129/e87418ba/attachment.html=20 ------------------------------ -------------------------------------------------------------------------= Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share = your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV ------------------------------ _______________________________________________ Arsperl-users mailing list Ars...@ar... https://lists.sourceforge.net/lists/listinfo/arsperl-users End of Arsperl-users Digest, Vol 7, Issue 9 ******************************************* |
|
From: Barbara J. <bl...@cm...> - 2006-11-30 15:40:51
|
> From: <Tra...@ca...> > Are you sure your Form Name is correct? Is it "HPD:HelpDesk" or "HPD:Help Desk"? Yep, the Form Name is correct. Even if I don't try to open the form, it still segfaults on exit. I'm running on FC3. We built it against the 6.3 libs and the same thing happens. barbara |
|
From: Michael A. <mic...@gm...> - 2006-11-30 19:43:33
|
On 30/11/06, Barbara Jensen <bl...@cm...> wrote: > I'm running on FC3. We built it against the 6.3 libs and the same > thing happens. I assume FC here means "Fedora Core"? That's not exactly a supported platform for Remedy, if I remember. I used to play around at the time with the 4.5 API which was available for download from the remedy web site to use with ARSperl, and I have seen some weird things at the time. But no segfaults. -- Michael "Microwave oven? Whaddya mean, it's a microwave oven? I've been watching Channel 4 on the thing for two weeks." |
|
From: Thilo S. <thi...@ap...> - 2006-11-30 17:13:04
|
I'd advise rather against using the object orientated interface which
hasn't really been maintained with recent versions.
Does the same problem occur if you use the API functions directly, e.g.
like the following?
#-----------------------
my $ctrl = ars_Login( $server, $userid, $passwd );
die $ars_errstr if ! $ctrl;
my $form = 'HPD:HelpDesk';
my %fieldTable = ars_GetFieldTable( $ctrl, $form );
die $ars_errstr if ! %fieldTable;
while( my($key,$val) = each %fieldTable ){
print "$key => $val\n";
}
ars_Logoff( $ctrl );
#-----------------------
This should do essentially the same as your script. I'd also guess that
the segfault doesn't occurs if the "ars_Logoff" is omitted.
Regards,
Thilo Stapff
Barbara Jensen schrieb:
>> From: <Tra...@ca...>
>> Are you sure your Form Name is correct? Is it "HPD:HelpDesk" or "HPD:Help Desk"?
>
> Yep, the Form Name is correct. Even if I don't try to open the form,
> it still segfaults on exit.
>
> I'm running on FC3. We built it against the 6.3 libs and the same
> thing happens.
>
> barbara
>
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
|