Item8169: WorkflowPlugin generates BAD STATE message

pencil
Priority: Urgent
Current State: Closed
Released In:
Target Release:
Applies To: Extension
Component: WorkflowPlugin
Branches:
Reported By: Foswiki:Main.ChipTondreau
Waiting For:
Last Change By: CrawfordCurrie
-- ChipTondreau - 30 May 2009

I have just installed the WorkflowPlugin and am testing the demo page DefectOne in the sandbox. Clicking on the button "start" produces the following error message:

Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information. BAD STATE start Preinitial!=Initial

The following errors are in my apache log file:

  • Argument "28 (Sandbox,DefectOne)" isn't numeric in addition (+) at, referer: bin/view/Sandbox/WebChanges
  • \t/opt/iqpedia/lib/Foswiki/Plugins/CounterPlugin.pm line 57 (#1), referer: bin/view/Sandbox/WebChanges
  • (W numeric) The indicated string was fed as an argument to an operator, referer: bin/view/Sandbox/WebChanges
  • that expected a numeric value instead. If you're fortunate the message, referer:bin/view/Sandbox/WebChanges
  • will identify which operator was so unfortunate., referer: bin/view/Sandbox/WebChanges
  • , referer: bin/view/Sandbox/WebChanges
  • view: Argument "28 (Sandbox,DefectOne)" isn't numeric in addition (+) at /opt/iqpedia/lib/Foswiki/Plugins/CounterPlugin.pm lin

Testing the ControlledDocument demo and clicking on "ready for approval" produces:

Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information. BAD STATE ready for approval UNDERREVISION!=WAITINGFORQM

The following errors are in my apache log file:

  • BAD STATE ready for approval UNDERREVISION!=WAITINGFORQM at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 314., referer: /bin/view/Sandbox/ApprovedDocument000
  • at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 314, referer: /bin/view/Sandbox/ApprovedDocument000
  • CGI::Carp::realdie('BAD STATE ready for approval UNDERREVISION!=', 'WAITINGFORQM') called at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 385, referer: /bin/view/Sandbox/ApprovedDocument000
  • CGI::Carp::die('BAD STATE ready for approval UNDERREVISION!=', 'WAITINGFORQM') called at /opt/iqpedia/lib/Foswiki/Plugins/WorkflowPlugin.pm line 330, referer: /bin/view/Sandbox/ApprovedDocument000
  • Foswiki::Plugins::WorkflowPlugin::_changeState('Foswiki=HASH(0x95134bc)', 'WorkflowPlugin', 'changeState', 'Foswiki::Response=HASH(0x9232ff4)') calledat /opt/iqpedia/lib/Foswiki/Func.pm line 2190, referer: /bin/view/Sandbox/ApprovedDocument000
  • Foswiki::Func::__ANON__('Foswiki=HASH(0x95134bc)', 'WorkflowPlugin', 'changeState', 'Foswiki::Response=HASH(0x9232ff4)') called at /opt/iqpedia/lib/Foswiki/UI/Rest.pm line 123, referer: /bin/view/Sandbox/ApprovedDocument000
  • Foswiki::UI::Rest::rest('Foswiki=HASH(0x95134bc)') called at /opt/iqpedia/lib/Foswiki/UI.pm line 287, referer: /bin/view/Sandbox/ApprovedDocument000
  • Foswiki::UI::__ANON__() called at /opt/iqpedia/lib/CPAN/lib//Error.pm line 379, referer: /bin/view/Sandbox/ApprovedDocument000
  • eval {...} called at /opt/iqpedia/lib/CPAN/lib//Error.pm line 371, referer: /bin/view/Sandbox/ApprovedDocument000
  • Error::subs::try('CODE(0x92e49bc)', 'HASH(0xa0303c0)') called at /opt/iqpedia/lib/Foswiki/UI.pm line 355, referer: /bin/view/Sandbox/ApprovedDocument000
  • Foswiki::UI::_execute('Foswiki::Request=HASH(0x9513840)', 'CODE(0x9513564)', 'rest', 1) called at /opt/iqpedia/lib/Foswiki/UI.pm line 258, referer: /bin/view/Sandbox/ApprovedDocument000
  • Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x9513840)') called at /opt/iqpedia/lib/Foswiki/Engine/CGI.pm line 26, referer: /bin/view/Sandbox/ApprovedDocument000
  • Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x93e78bc)') called, referer: /bin/view/Sandbox/ApprovedDocument000


Apologies, it's a broken example; the plugin is fine. I'll fix the example ASAP.

-- CrawfordCurrie - 03 Jun 2009

The first error came from a different plugin (CounterPlugin). The second error turned out to be a problem in the plugin, now fixed.

-- CrawfordCurrie - 02 Sep 2009

 

ItemTemplate edit

Summary WorkflowPlugin generates BAD STATE message
ReportedBy Foswiki:Main.ChipTondreau
Codebase 1.0.5
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component WorkflowPlugin
Priority Urgent
CurrentState Closed
WaitingFor
Checkins WorkflowPlugin:5b0ad98cf888 WorkflowPlugin:d132a8340198
ReleasedIn
Topic revision: r3 - 02 Sep 2009, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy