ClassCastException: LetInNode cannot be cast to class OpApplNode

513 views
Skip to first unread message

Hengfeng Wei

unread,
Jan 26, 2020, 4:25:04 AM1/26/20
to tlaplus
Dear All,

When I run the "CM" model (not TypeOK; see the attached files; [online]: https://github.com/hengxin/cure-kvstore-tla),
I got the following error:
 
TLC threw an unexpected exception.
This was probably caused by an error in the spec or model.
See the User Output or TLC Console for clues to what happened.
The exception was a java.lang.ClassCastException
: class tla2sany.semantic.LetInNode cannot be cast to class tla2sany.semantic.OpApplNode
(tla2sany.semantic.LetInNode and tla2sany.semantic.OpApplNode are in unnamed module of loader 'app')

By trial and error, I have figured out that it fails at Line 221 "Valid(sc)".
However, what does the error mean and how should I fix it?

Best regards,
Hengxin
cure-kvstore-tla.zip

Markus Kuppe

unread,
Jan 26, 2020, 1:54:07 PM1/26/20
to tla...@googlegroups.com
On 26.01.20 01:25, Hengfeng Wei wrote:
> When I run the "CM" model (not TypeOK; see the attached files; [online]:
> https://github.com/hengxin/cure-kvstore-tla),
> I got the following error:
>  
>
> TLC threw an unexpected exception.
> This was probably caused by an error in the spec or model.
> See the User Output or TLC Console for clues to what happened.
> The exception was a *java.lang.ClassCastException*
> *: class tla2sany.semantic.LetInNode cannot be cast to class
> tla2sany.semantic.OpApplNode*
>
> (tla2sany.semantic.LetInNode and tla2sany.semantic.OpApplNode are in
> unnamed module of loader 'app')
>
>
> By trial and error, I have figured out that it fails at Line 221
> "Valid(sc)".
> However, what does the error mean and how should I fix it?


Hi Hengxin,

thanks for reporting the issue. The bug has already been fixed in the
nightly build [1]. A workaround for the released version of TLC is
outlined at [2].

Markus

[1] https://nightly.tlapl.us/
[2] https://github.com/tlaplus/tlaplus/issues/422

Reply all
Reply to author
Forward
0 new messages