Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know why I can't run jellybean. This is what I get-

Can't call method "uri" on an undefined value at C:/perl2/site/lib/Jellybean/Server/HTTP.pm

Thanks

janitored by ybiC: Retitle node from one-word "jellybean" to avoid hindering site search, minor format tweaks

Replies are listed 'Best First'.
Re: Problem with jellybean
by chromatic (Archbishop) on Jul 15, 2004 at 16:11 UTC

    It sounds like HTTP::Daemon can't finish reading the request, for some reason. If you can upgrade LWP, I recommend trying that first. If that doesn't work, here's a patch that will improve the debugging output.

    --- lib/Jellybean/Server/HTTP.pm~ 2004-07-15 09:05:29.000000000 -07 +00 +++ lib/Jellybean/Server/HTTP.pm 2004-07-15 09:06:13.000000000 -070 +0 @@ -40,6 +40,9 @@ my $base = $self->{Daemon}->url(); my $peer = $conn->peerhost(); my $req = $conn->get_request( 1 ); + + croak( "Invalid connection: ", $conn->reason() ) unless $req; + my $uri = $req->uri(); my @path = split('/', $uri->path() );
Re: Problem with jellybean
by VSarkiss (Monsignor) on Jul 15, 2004 at 15:11 UTC

    Jellybean's author is brother chromatic. You may wish to visit his home page for hints, or alternatively send him an email at chromatic at wgz dot org.

    But before you write to him

    Make sure you formulate your question such that he can understand it (I sure couldn't). Take a look at On asking for help and How (Not) To Ask A Question.

    Update
    Fixed email address.

Re: Problem with jellybean
by Skeeve (Parson) on Jul 15, 2004 at 12:59 UTC
    I'm pretty sure that you made some mistake so that some variable is undefined. Without more information, I think no one can help you.

    Update *Ouch* :-) Obviously I was wrong... Someone could help with so few information... Okay. Continue downvoting ;-)
      You weren't wrong, you were right, but the question was super poor. chromatic apparently wrote Jellybean, so its lucky for the OP he was around. --OP, ++you