The following error occurs when I run this script. The AddPublisher state is declared in POE::Component::Server::TCP->create( InlineStates => { ... } ). What is wrong that I am getting this error and why is it not triggering a fatal assertion?

a 'AddPublisher' state was sent from poe at 13 to session 2, but sessi +on 2 has neither that state nor a _default state to handle it POE::Component::Server::TCP->new( Alias => 'TCPServer', ... InlineStates => { AddPublisher => sub {} } ; $_[KERNEL]->post( TCPServer => AddPublisher => $_[SESSION], 1 ); },

The script at ~diotalevi/poe2

sub POE::Kernel::ASSERT_DEFAULT () { 1 } use POE qw( Session Component::Server::TCP ); POE::Component::Server::TCP->new( Alias => 'TCPServer', Port => 53511, InlineStates => { AddPublisher => sub {} }, ClientInput => sub {} ); POE::Session->create( inline_states => { _start => sub { $_[KERNEL]->post( TCPServer => AddPublisher => $_[SESSION], 1 ); }, _stop => sub {} } ); POE::Kernel->run;

In reply to Missing event from InlineStates in POE::Component::Server::TCP by diotalevi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.