-
Notifications
You must be signed in to change notification settings - Fork 94
Issue: IllegalStateException: only support Map with String key in EvoMaster #1171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hi @naveensabavath , thanks. this is a bug in EM. Fortunately, it should be a rather easy fix. I ll prioritize it |
hi @arcuri82 How can we Integrate Evomaster with Kafka Using Java |
hi, currently there is no native or special handling / optimization for Kafka. |
#1171 support for enums as keys for maps
Hi @arcuri82 , Thank you for acknowledging the bug related to "Only Support Map with String Key" when using Map<Enum, String> with MongoDB in EvoMaster. I wanted to check if the fix is currently being worked on and if there’s an expected timeline for when it will be available. Also, will this fix ensure that Map<Enum, String> is correctly serialized and deserialized in MongoDB without requiring a workaround? Looking forward to your update. Thanks again for your help! |
hi @naveensabavath |
hey @arcuri82 , Thank you so much .. I did try with SnapShot Version and the error "only support Map with String key in EvoMaster" has gone. <---------------------------------------------------------------------> I wanted some clarification on the coverage metrics. After running EvoMaster, I see the following: Covered targets: 579 I have a few questions: How does EvoMaster determine coverage (lines, branches, faults)? Is it based on **only successful executions (2xx responses), or does it also count failures? <---------------------------------------------------------------------> <---------------------------------------------------------------------> ERROR : i have encoutered a new Error and I dont Know what exactly it is please look at it because i dont know why it is Coming error : java.lang.IllegalArgumentException: different template class org.evomaster.core.search.gene.collection.PairGene Command am running java -jar target/evomaster.jar --maxTime 120s --outputFolder "src/test/java/Evomaster" 17:25:13.704 [main] WARN o.evomaster.core.taint.TaintAnalysis - More than 2 genes have the taint 'EM_1165_XYZ'
<---------------------------------------------------------------------> |
hi, this looks like another bug :( can you post it as a new issue? regarding your questions, for how long are you running EvoMaster? is the application you are testing open-source? or is it a commercial / in-house/ industrial API? |
hi, i am running Evomaster for 3 days. can u please answer below Quoestions if Possible How does EvoMaster determine coverage (lines, branches, faults)? Is it based on **only successful executions (2xx responses), or does it also count failures? |
hi, you are saying you are running EM with For your questions:
|
ah, wait, i see in your comment you wrote |
Issue: IllegalStateException: only support Map with String key in EvoMaster
hi @arcuri82 ,
I am encountering the following error while integrating EvoMaster with my Spring Boot application With MongoDb:
Caused by: java.lang.IllegalStateException: only support Map with String key
The exception is coming from EvoMaster, and I couldn't find any relevant solutions online.
When I asked ChatGPT, it suggested that the issue might be due to using Enums as keys in a Map, and recommended changing them to Strings. I tried implementing custom serialization and deserialization using JsonSerializer and JsonDeserializer to convert Enums to Strings, but the issue still persists.
Could you please provide guidance on how to properly handle this in EvoMaster?
The text was updated successfully, but these errors were encountered: