logo       
Google Custom Search
    AddThis Social Bookmark Button

RE: use XML::Simple breaks my PoCo::IKC::Server: msg#00011

Subject: RE: use XML::Simple breaks my PoCo::IKC::Server
On 06-Nov-2004 Rhesa Rozendaal wrote:
> Today I added some stuff to have my skeleton do some actual work
> (instead of just printing "hello" from various event handlers ;)
> I had added "use XML::Simple" to my server, and it dies on the first
> received call with a complaint about Storable not having store or freeze
> methods.
> 
> The server starts fine, but as soon as I fire up the client that calls
> the server, the server dies: 
> 
> Storable doesn't have a freeze or nfreeze method at
> /usr/local/share/perl/5.6.1/POE/Component/IKC/Channel.pm line 357
> Storable doesn't have a thaw method at
> /usr/local/share/perl/5.6.1/POE/Component/IKC/Channel.pm line 357
> Can't use string ("") as a subroutine ref while "strict refs" in use at
> /usr/local/share/perl/5.6.1/POE/Filter/Reference.pm line 175.
> 
> That can't be right.
> 
> As soon as I "use Storable" before "use"ing XML::Simple, the error goes
> away and everything works like a charm. 

Hmmm.... This occurs when the client tells the server "I want to use
Storable to serialize the requests" but the server wasn't loaded the
Storable module yet.

POE::Filter::Reference looks through the symbol table to see if Storable
is loaded.  If it isn't, it does a require "Storable.pm" .  

Rocco : why is POE::Filter::Reference looking in the symbol table, not in
%INC ?

-Philip





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>