Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Internal error: Setting the verdict in invalid state.(Internal error: Setting the verdict in invalid state.)
Internal error: Setting the verdict in invalid state. [message #1836822] Thu, 14 January 2021 19:27 Go to next message
David Rupprecht is currently offline David RupprechtFriend
Messages: 5
Registered: November 2020
Junior Member
Dear all,

I'm trying to get the UE conformance testing (TS 36.523) running. At the moment, I'm stuck at the following runtime error :

CommonDefs.ttcn:509(function:f_SetVerdict) Dynamic test case error: Internal error: Setting the verdict in invalid state.


The function f_SetVerdict looks as follows and does not run on a particular System.

  function f_SetVerdict(verdicttype p_Verdict,
                        charstring p_FileName,
                        LineNo_Type p_LineNo,
                        charstring p_Msg)
  {
    var charstring v_OutputLine := fl_FormatLog(p_FileName, p_LineNo, p_Msg);
    setverdict(p_Verdict, v_OutputLine);
  }


According to the titan runtime the error occurs when the verdict is not enabled

void TTCN_Runtime::setverdict(verdicttype new_value, const char* reason)
{
  if (verdict_enabled()) {
  ....
  } else {
    TTCN_error("Internal error: Setting the verdict in invalid state.");
  }

and the executor_state is in the following state.
boolean TTCN_Runtime::verdict_enabled()
{
  return executor_state == SINGLE_TESTCASE ||
    (executor_state >= MTC_TESTCASE && executor_state <= MTC_EXIT) ||
    (executor_state >= PTC_INITIAL && executor_state <= PTC_EXIT);
}


However, the error occurs during the initialization phase (see _titan.log), thus I can not explain why this error occurs. What precondition must be matched to call setverdict in a function? How can I get the executor_state thus it matches the needed states from the runtime.

Thanks and best regards,
David
  • Attachment: _titan.log
    (Size: 31.57KB, Downloaded 82 times)
Re: Internal error: Setting the verdict in invalid state. [message #1836835 is a reply to message #1836822] Fri, 15 January 2021 06:50 Go to previous messageGo to next message
roland gecse is currently offline roland gecseFriend
Messages: 20
Registered: December 2015
Junior Member
Verdicts are associated with component instances. You must invoke verdict operations incl. setverdict() only in such context. In case of functions the function must be executing on a component instance.

The submitted log and description is insufficient to give a definitive answer. You get such error e.g. if you invoke setverdict() from the control part.
Re: Internal error: Setting the verdict in invalid state. [message #1836870 is a reply to message #1836835] Sat, 16 January 2021 10:35 Go to previous messageGo to next message
Olaf Bergengruen is currently offline Olaf BergengruenFriend
Messages: 128
Registered: November 2018
Senior Member
Hi David,
The ETSI ATSs are multi PTCs and I asume you can not compile and run in single model.
Did you compile for parallel mode? If not try that.
Regards,
Olaf
Re: Internal error: Setting the verdict in invalid state. [message #1836912 is a reply to message #1836870] Mon, 18 January 2021 14:28 Go to previous message
David Rupprecht is currently offline David RupprechtFriend
Messages: 5
Registered: November 2020
Junior Member
Hi all,

thanks for your comments. I figured out that the
f_DeriveFeatrGrpCapFromPics
function is responsible for causing the run time error. I will investigate further, call stack to this function is invoked in the control function.

Yes, I use the parallel mode which allows me to compile everything. I only have runtime problems now ;)

Thanks for your help and I will keep you posted on the issue.
Best regards,
David
Previous Topic:TestPort.PIPEasp
Next Topic:TTCN-3 specification version supported
Goto Forum:
  


Current Time: Sun Dec 22 06:16:42 GMT 2024

Powered by FUDForum. Page generated in 0.03509 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top