Are you sure your Form Name is correct? Is it "HPD:HelpDesk" or "HPD:Help Desk"?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 2:13 PM To: arsperl-users@arsperl.org Subject: Arsperl-users Digest, Vol 7, Issue 9 Send Arsperl-users mailing list submissions to arsperl-users@arsperl.org 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 [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> Subject: [Arsperl-users] segfault with ArsPerl 1.85 To: arsperl-users@arsperl.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-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. Here is my script and output: ----------- #!/usr/local/bin/perl5 # use ARS; $server = 'remedy1.andrew.cmu.edu'; $userid = 'blk'; $passwd = 'remedy'; ## get connection my $connection = new ARS ( -server => $server, -username => $userid, -password => $passwd, -catch => undef, -ctrl => undef, -debug => 1 ); die("Unable to connect to server\n") unless ($connection); $connection->print() if $connection; print "got connection\n"; #exit; ## open form my $FormName = "HPD:HelpDesk"; my $form = $connection->openForm( -form => $FormName, -vui => undef ); print "got form\n"; exit; ----------- % ./arsconnect new connection object: (remedy1.andrew.cmu.edu, blk, remedy) connection object details: cacheId = ARControlStructPtr=SCALAR(0x8413bc8) operationTime = Wed Dec 31 19:00:00 1969 user = password = server = lang = got connection [ERROR] Cannot open catalog; Message number = 149 () (ARERR #149) TRACEBACK: exception generated at /usr/local/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi-64int-ld/ARSOOform.pm line 47 ARS::form::new('ARS::form', '-form', 'HPD:HelpDesk', '-vui', 'undef', '-connection', 'ARS=HASH(0x8413b48)') called at /usr/local/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi-64int-ld/ARSOOsup.pm line 138 ARS::openForm('ARS=HASH(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 ------------------------------ Message: 2 Date: Wed, 29 Nov 2006 10:01:18 +0100 From: "Michiel Beijen" <[EMAIL PROTECTED]> Subject: Re: [Arsperl-users] segfault with ArsPerl 1.85 To: "ARSperl User Discussion" <arsperl-users@arsperl.org> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="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 <[EMAIL PROTECTED]> 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 = 'remedy1.andrew.cmu.edu'; > $userid = 'blk'; > $passwd = 'remedy'; > > ## get connection > my $connection = > new ARS ( > -server => $server, > -username => $userid, > -password => $passwd, > -catch => undef, > -ctrl => undef, > -debug => 1 > ); > > die("Unable to connect to server\n") > unless ($connection); > > $connection->print() if $connection; > > print "got connection\n"; > #exit; > > ## open form > my $FormName = "HPD:HelpDesk"; > my $form = $connection->openForm( > -form => $FormName, > -vui => undef > ); > > print "got form\n"; > exit; > > ----------- > > % ./arsconnect > new connection object: (remedy1.andrew.cmu.edu, blk, remedy) > connection object details: > cacheId = ARControlStructPtr=SCALAR(0x8413bc8) > operationTime = Wed Dec 31 19:00:00 1969 > user = > password = > server = > lang = > got connection > [ERROR] Cannot open catalog; Message number = 149 () (ARERR #149) > > TRACEBACK: > > exception generated at > > /usr/local/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi-64int-ld/ARSOOform.pm > line 47 > ARS::form::new('ARS::form', '-form', 'HPD:HelpDesk', '-vui', > 'undef', '-connection', 'ARS=HASH(0x8413b48)') called at > > /usr/local/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi-64int-ld/ARSOOsup.pm > line 138 > ARS::openForm('ARS=HASH(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=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Arsperl-users mailing list > Arsperl-users@arsperl.org > https://lists.sourceforge.net/lists/listinfo/arsperl-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://sourceforge.net/mailarchive/forum.php?forum=arsperl-users/attachments/20061129/e87418ba/attachment.html ------------------------------ ------------------------------------------------------------------------- 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 Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users End of Arsperl-users Digest, Vol 7, Issue 9 ******************************************* ------------------------------------------------------------------------- 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 Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users