User Control Panel
Advertisements

HELP US, HELP YOU!

Undefined Value

 
Post new topic   Reply to topic    Bot Depot Forum Index -> AIM Protocol & questions
View unanswered posts
Author Message
Tony_shu
God Like
God Like


Joined: 12 Nov 2003
Posts: 624

Reputation: 42.9Reputation: 42.9Reputation: 42.9Reputation: 42.9

PostPosted: Wed Apr 14, 2004 8:46 pm    Post subject: Reply with quote

Recently I've been having a lot of instances of this crashing my bot
Code:
Can't use an undefined value as a symbol reference at D:/Perl/site/lib/Net/AIM/Connection.pm line 809.


Here is Connection.pm region around line 809
Code:
sub sflap_recv {<br />   my ($self) = shift;<br />   my ($marker, $type, $seq, $len, $header, $data);<br /><br />   print "Entering sflap_recv\n" if ($self->{_debug});<br /><br />   if (defined recv($self->socket, $header, 6, 0) && length($header) > 0)  {  #line 809<br />      ($marker, $type, $seq, $len) = unpack "aCnn", $header;<br />   } else {   <br />#      print time . "WE WERE DISCONNETED!!!!\n";<br />#      print STDERR time . "WE WERE DISCONNETED!!!!\n";<br />#      $self->disconnect('error', 'Connection reset by peer');<br />      $self->{_connected} = 0;<br />      $self->socket( undef );<br />      return (0, 'DISCONNECT:');<br />   }<br />#   my $inseq = ($self->{"_inseq"} + 1) & 0x0000ffff;<br />#   $seq &= 0x0000ffff;<br />   $self->{"_inseq"} = $seq;<br /><br />   unless (defined (recv($self->socket, $data, $len, 0))) {<br />      return undef;<br />   }<br /><br />   $data = unpack("a*", $data);<br />   if ($self->{_debug}) {<br />      print STDERR "<<< [$seq] $type $data\n";<br />   }<br />   return  ($type, $data);<br /><br />}


I'm also attaching my Connection.pm which I have modified to try and resolve the issue with "Cannot connect to port 9898". It worked for a few days, and now I keep getting the error at the top of this post. (I alos received that error on several occassions before editing connection.pm, but now it has become more frequent).

EDITED: Yes'm...I'm askin for help. Does anyone know why I keep getting that error?

_________________
Anthony Arslan
@-Squared Enterprises
MacroHard Corporation
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Wed Apr 14, 2004 8:52 pm    Post subject: Reply with quote

Tony are you asking for help
Back to top
danoman2001
Newbie
Newbie


Joined: 12 Apr 2004
Posts: 22

Reputation: 25.6Reputation: 25.6Reputation: 25.6

PostPosted: Wed Apr 14, 2004 9:28 pm    Post subject: Reply with quote

I used to get the same error too! Only mine was around line 781...
I edited my code, and don't recieve it anymore...

I don't really know what I changed though...

I think it might involve some of the $aim-> or $self-> etc. commands in your scripts. There is nothing wrong with the Connection.pm (at least not in my case).
Back to top
jeep
Newbie
Newbie


Joined: 04 May 2004
Posts: 2

Reputation: 24.5Reputation: 24.5

PostPosted: Tue May 04, 2004 5:29 am    Post subject: Reply with quote

I am having this problem 100% of the time. If you have not problems, can you send me the Connection.pm that you are using?

I receive the message, but it cannot send back.

-JEEP
Back to top
jeep
Newbie
Newbie


Joined: 04 May 2004
Posts: 2

Reputation: 24.5Reputation: 24.5

PostPosted: Tue May 04, 2004 9:08 am    Post subject: Reply with quote

I found that my problem was that I was trying to use bot.pl from http://www.wiredbots.com/tutorial.html and it has a problem in the thought.pl piece... probably just can't connect to the correct location.

-JEEP
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Tue May 04, 2004 12:41 pm    Post subject: Reply with quote

QUOTE(jeep @ May 4 2004, 04:08 AM)
I found that my problem was that I was trying to use bot.pl from http://www.wiredbots.com/tutorial.html and it has a problem in the thought.pl piece... probably just can't connect to the correct location.

-JEEP

Yeah, the WiredBots AIM template is programmed to get a random thought from an online database which no longer exists. Wink

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> AIM Protocol & questions All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group