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 ******************************************* |