serenity-bdd / serenity-cucumber-starter

A skeleton project for Serenity BDD and Cucumber JVM
Apache License 2.0
179 stars 292 forks source link

Getting RecursiveOrCyclicStepLibraryReferenceException even after using @Steps(shared=true) #29

Open push2212 opened 4 years ago

push2212 commented 4 years ago

Hello I am suddenly getting this exception for the code which was working 10 minutes ago. .Please help. Please find the attached related files. java.zip net.thucydides.core.steps.RecursiveOrCyclicStepLibraryReferenceException: A recursive or cyclic reference was detected for the @Steps-annotated field report in class utilities.ReportMessege. You may need to use @Steps(shared=true) to ensure that the same step library instance is used everywhere.

I have used shared=true .

Please help me.

wakaleo commented 4 years ago

It means you have a step library that includes (directly or indirectly) another instance of that step library.

push2212 commented 4 years ago

As far as I know , I don't have such step library. If there is , how do I find it ? And where do I use shared =true , will that resolve my issue ?

push2212 commented 4 years ago

I have used @Steps(shared=true) for every usage of the Step , however still the same issue , Please help