-
Notifications
You must be signed in to change notification settings - Fork 88
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
EvoMaster crashed when reading em.yaml file #1159
Comments
Hi @Tenpoless thanks for reporting this issue. the read thx |
Sorry for the late reply. Yes, I modified the em.yaml file manually, but I still followed the template you provided.
Thanks |
@Tenpoless thanks for providing this example |
@Tenpoless is that example the one that led to that error message? I tried to reproduce it, and a get a different error:
which tells you the problem, you have an unknown field called |
Thank you, the previous problem has been resolved and black box testing is running. The OpenAPI I tested uses JWT tokens and I had trouble adjusting the evomaster. I am looking for a solution using ChatGPT and I have to install MVN and JDK, but an error occurs.
Thanks |
look at you are importing the wrong dependency |
btw, for using black-box testing, there is no need of EM Java libraries to generate tests. those are only needed for white-box testing. |
#1159: better error message if issues in em.yaml
C:\Users\Administrator>evomaster
*
| | | / | | |
| |_ _____ | . . | __ _ | | ___ _ __
| __\ \ / / _ | |/| |/ ` / | / _ \ '|
| |\ V / () | | | | (| __ \ || / |
_/ _/ _/_| |/_,|/____|_|
java.lang.IllegalArgumentException: Failed to parse config file at: C:\Users\Administrator\em.yaml
at org.evomaster.core.config.ConfigUtil.readFromFile(ConfigUtil.kt:36)
at org.evomaster.core.EMConfig.loadConfigFile(EMConfig.kt:355)
at org.evomaster.core.EMConfig.updateProperties(EMConfig.kt:290)
at org.evomaster.core.EMConfig$Companion.validateOptions(EMConfig.kt:101)
at org.evomaster.core.Main$Companion.main(Main.kt:74)
at org.evomaster.core.Main.main(Main.kt)
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Parameter specified as non-null is null: method org.evomaster.core.config.ConfigsFromFile.setConfigs, parameter <set-?>
at [Source: (File); line: 8, column: 9] (through reference chain: org.evomaster.core.config.ConfigsFromFile["configs"]) at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:276)
at com.fasterxml.jackson.databind.deser.SettableBeanProperty._throwAsIOE(SettableBeanProperty.java:627)
at com.fasterxml.jackson.databind.deser.SettableBeanProperty._throwAsIOE(SettableBeanProperty.java:615)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:143)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:314)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:177)
at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4730)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3542)
at org.evomaster.core.config.ConfigUtil.readFromFile(ConfigUtil.kt:34)
... 5 common frames omitted
Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method org.evomaster.core.config.ConfigsFromFile.setConfigs, parameter <set-?>
at org.evomaster.core.config.ConfigsFromFile.setConfigs(ConfigsFromFile.kt)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:141)
... 11 common frames omitted
EvoMaster Version: 3.4.0
The text was updated successfully, but these errors were encountered: