Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Module Parameter "record of" - Execution error

Module Parameter "record of" - Execution error 12 Apr 2010 09:41 #7644

  • Carlos C
  • Carlos C's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Hello TTCN-3 list members,



We are getting one strange issue when using a module parameter "record of" type.



TTCN-3 code analyses correctly but gives execution error when reading that parameter.



Maybe, this is TTCN-3 toll specific error, even so, is there any special syntax to define module parameter "record of type"?



More info below about the scenario.



We will really appreciate, if somebody knows which way the wind is blowing.



Thanks in advance,

Carlos Cárdenas







TTCN-3 Types definition:

type integer Field_1;
type integer Field_2;



type record TestModulePar {
Field_1 field1,
Field_2 filed2
}



type record length(1..2) of TestModulePar TestModuleParList;



Module parameter TTCN-3 value (default) in TTCN-3 project:

# TestExecution.ttcn (Line 79):

modulepar { TestModuleParList v_testRecordOf := { [0] := { 1, 2 }, [1] := { 2, 3 }} };



Module parameter TTCN-3 value (default) in external file:

MyModule.TestModuleParList v_testRecordOf := { [0] := { 4, 5 }, [1] := { 3, 7 }};





Error:

....

TestExecution.ttcn (79): [TCI] error_message: ERROR VAL0016: Expected symbol '[', found '{', when parsing value definition for 'value'

....
The administrator has disabled public write access.

Module Parameter "record of" - Execution error 12 Apr 2010 10:48 #7645

  • György Réthy
  • György Réthy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 189
  • Thank you received: 1
  • Karma: 1
Hi Carlos,

you should contact your tool provider, it seems to be a parsing error in the tool.

PS: the multi-typed style module parameter definition is a deprecated language feature, you should remove it as may cause problems later.

BR, Gyorgy

________________________________
From: active_ttcn3 : mts stf133 ttcn version 3 - active members only [This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of Carlos Cardenas Angelat
Sent: 2010-április-12 11:41
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Module Parameter "record of" - Execution error

Hello TTCN-3 list members,

We are getting one strange issue when using a module parameter "record of" type.

TTCN-3 code analyses correctly but gives execution error when reading that parameter.

Maybe, this is TTCN-3 toll specific error, even so, is there any special syntax to define module parameter "record of type"?

More info below about the scenario.

We will really appreciate, if somebody knows which way the wind is blowing.

Thanks in advance,
Carlos Cárdenas



TTCN-3 Types definition:
type integer Field_1;
type integer Field_2;

type record TestModulePar {
Field_1 field1,
Field_2 filed2
}

type record length(1..2) of TestModulePar TestModuleParList;

Module parameter TTCN-3 value (default) in TTCN-3 project:
# TestExecution.ttcn (Line 79):
modulepar { TestModuleParList v_testRecordOf := { [0] := { 1, 2 }, [1] := { 2, 3 }} };

Module parameter TTCN-3 value (default) in external file:
MyModule.TestModuleParList v_testRecordOf := { [0] := { 4, 5 }, [1] := { 3, 7 }};


Error:
....
TestExecution.ttcn (79): [TCI] error_message: ERROR VAL0016: Expected symbol '[', found '{', when parsing value definition for 'value'
....
The administrator has disabled public write access.

Module Parameter "record of" - Execution error 13 Apr 2010 06:50 #7646

Hi Carlos,

I guess Instead of using index number you need to directly use Field name
to assign the value. Please chk out the below syntax.

# TestExecution.ttcn (Line 79):
modulepar { TestModuleParList v_testRecordOf := { field1 := { 1, 2 },
field2 := { 2, 3 }} };

Thanks
Rahul






Carlos Cardenas Angelat <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Sent by: "active_ttcn3 : mts stf133 ttcn version 3 - active members only"
<This email address is being protected from spambots. You need JavaScript enabled to view it.>
12/04/2010 12:41
Please respond to
"active_ttcn3 : mts stf133 ttcn version 3 - active members only"
<This email address is being protected from spambots. You need JavaScript enabled to view it.>


To
This email address is being protected from spambots. You need JavaScript enabled to view it.
cc

Subject
Module Parameter "record of" - Execution error






Hello TTCN-3 list members,

We are getting one strange issue when using a module parameter “record of”
type.

TTCN-3 code analyses correctly but gives execution error when reading that
parameter.

Maybe, this is TTCN-3 toll specific error, even so, is there any special
syntax to define module parameter “record of type”?

More info below about the scenario.

We will really appreciate, if somebody knows which way the wind is
blowing.

Thanks in advance,
Carlos Cárdenas



TTCN-3 Types definition:
type integer Field_1;
type integer Field_2;

type record TestModulePar {
Field_1 field1,
Field_2 filed2
}

type record length(1..2) of TestModulePar TestModuleParList;

Module parameter TTCN-3 value (default) in TTCN-3 project:
# TestExecution.ttcn (Line 79):
modulepar { TestModuleParList v_testRecordOf := { [0] := { 1, 2 }, [1] :=
{ 2, 3 }} };

Module parameter TTCN-3 value (default) in external file:
MyModule.TestModuleParList v_testRecordOf := { [0] := { 4, 5 }, [1] := {
3, 7 }};


Error:
….
TestExecution.ttcn (79): [TCI] error_message: ERROR VAL0016: Expected
symbol '[', found '{', when parsing value definition for 'value'
….
The administrator has disabled public write access.

Module Parameter "record of" - Execution error 13 Apr 2010 07:35 #7647

  • György Réthy
  • György Réthy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 189
  • Thank you received: 1
  • Karma: 1
Hi,

this is wrong for sure. the external pair of {} of the value notation belongs to the record of and { 1, 2 } and { 2, 3 } are value list notations for the record.

BR, Gyorgy

________________________________
From: active_ttcn3 : mts stf133 ttcn version 3 - active members only [This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of Rahul Joshi1
Sent: 2010-április-13 8:50
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Module Parameter "record of" - Execution error


Hi Carlos,

I guess Instead of using index number you need to directly use Field name to assign the value. Please chk out the below syntax.

# TestExecution.ttcn (Line 79):
modulepar { TestModuleParList v_testRecordOf := { field1 := { 1, 2 }, field2 := { 2, 3 }} };

Thanks
Rahul





Carlos Cardenas Angelat <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Sent by: "active_ttcn3 : mts stf133 ttcn version 3 - active members only" <This email address is being protected from spambots. You need JavaScript enabled to view it.>

12/04/2010 12:41
Please respond to
"active_ttcn3 : mts stf133 ttcn version 3 - active members only" <This email address is being protected from spambots. You need JavaScript enabled to view it.>


To
This email address is being protected from spambots. You need JavaScript enabled to view it.
cc
Subject
Module Parameter "record of" - Execution error





Hello TTCN-3 list members,

We are getting one strange issue when using a module parameter "record of" type.

TTCN-3 code analyses correctly but gives execution error when reading that parameter.

Maybe, this is TTCN-3 toll specific error, even so, is there any special syntax to define module parameter "record of type"?

More info below about the scenario.

We will really appreciate, if somebody knows which way the wind is blowing.

Thanks in advance,
Carlos Cárdenas



TTCN-3 Types definition:
type integer Field_1;
type integer Field_2;

type record TestModulePar {
Field_1 field1,
Field_2 filed2
}

type record length(1..2) of TestModulePar TestModuleParList;

Module parameter TTCN-3 value (default) in TTCN-3 project:
# TestExecution.ttcn (Line 79):
modulepar { TestModuleParList v_testRecordOf := { [0] := { 1, 2 }, [1] := { 2, 3 }} };

Module parameter TTCN-3 value (default) in external file:
MyModule.TestModuleParList v_testRecordOf := { [0] := { 4, 5 }, [1] := { 3, 7 }};


Error:
....
TestExecution.ttcn (79): [TCI] error_message: ERROR VAL0016: Expected symbol '[', found '{', when parsing value definition for 'value'
....
The administrator has disabled public write access.

Module Parameter "record of" - Execution error 13 Apr 2010 08:01 #7648

  • Carlos C
  • Carlos C's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Hello,



We have used { { 1, 2 }, { 2, 3 }} instead of { [0] := { 1, 2 }, [1] := { 2, 3 }} }; and it works.



Thanks,

Carlos Cárdenas.



________________________________

From: active_ttcn3 : mts stf133 ttcn version 3 - active members only [This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of György Réthy
Sent: Tuesday, April 13, 2010 9:35 AM
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Module Parameter "record of" - Execution error



Hi,



this is wrong for sure. the external pair of {} of the value notation belongs to the record of and { 1, 2 } and { 2, 3 } are value list notations for the record.



BR, Gyorgy




________________________________


From: active_ttcn3 : mts stf133 ttcn version 3 - active members only [This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of Rahul Joshi1
Sent: 2010-április-13 8:50
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Module Parameter "record of" - Execution error


Hi Carlos,

I guess Instead of using index number you need to directly use Field name to assign the value. Please chk out the below syntax.

# TestExecution.ttcn (Line 79):
modulepar { TestModuleParList v_testRecordOf := { field1 := { 1, 2 }, field2 := { 2, 3 }} };

Thanks
Rahul






Carlos Cardenas Angelat <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Sent by: "active_ttcn3 : mts stf133 ttcn version 3 - active members only" <This email address is being protected from spambots. You need JavaScript enabled to view it.>

12/04/2010 12:41

Please respond to
"active_ttcn3 : mts stf133 ttcn version 3 - active members only" <This email address is being protected from spambots. You need JavaScript enabled to view it.>

To

This email address is being protected from spambots. You need JavaScript enabled to view it.

cc



Subject

Module Parameter "record of" - Execution error










Hello TTCN-3 list members,

We are getting one strange issue when using a module parameter "record of" type.

TTCN-3 code analyses correctly but gives execution error when reading that parameter.

Maybe, this is TTCN-3 toll specific error, even so, is there any special syntax to define module parameter "record of type"?

More info below about the scenario.

We will really appreciate, if somebody knows which way the wind is blowing.

Thanks in advance,
Carlos Cárdenas



TTCN-3 Types definition:
type integer Field_1;
type integer Field_2;

type record TestModulePar {
Field_1 field1,
Field_2 filed2
}

type record length(1..2) of TestModulePar TestModuleParList;

Module parameter TTCN-3 value (default) in TTCN-3 project:
# TestExecution.ttcn (Line 79):
modulepar { TestModuleParList v_testRecordOf := { [0] := { 1, 2 }, [1] := { 2, 3 }} };

Module parameter TTCN-3 value (default) in external file:
MyModule.TestModuleParList v_testRecordOf := { [0] := { 4, 5 }, [1] := { 3, 7 }};


Error:
....
TestExecution.ttcn (79): [TCI] error_message: ERROR VAL0016: Expected symbol '[', found '{', when parsing value definition for 'value'
....
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin