Exception of props provider
Sergo101010100 opened this issue · 0 comments
Sergo101010100 commented
props provider 5.0.2
На что ругается - не понятно. Есть подозрение на целочисленное значение в props
ru.sbtqa.tag.datajack.exceptions.DataException: Could not initialize data provider PROPERTIES_DATA_PROVIDER
at ru.sbtqa.tag.pagefactory.data.DataFactory.initProvider(DataFactory.java:114)
at ru.sbtqa.tag.pagefactory.data.DataFactory.getDataProvider(DataFactory.java:64)
at fp.tests.is.ift.Smoke.Check_Transaction_In_RSA_UKO_EXT_FACT(Smoke.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at ru.sberbank.qa.fmaas.tfm.utils.rules.CommonRule$1.evaluate(CommonRule.java:74)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org.apache.commons.lang3.reflect.ConstructorUtils.invokeConstructor(ConstructorUtils.java:118)
at org.apache.commons.lang3.reflect.ConstructorUtils.invokeConstructor(ConstructorUtils.java:85)
at ru.sbtqa.tag.pagefactory.data.DataFactory.initProvider(DataFactory.java:109)
... 26 more
Caused by: java.lang.ClassCastException: pl.jalokim.propertiestojson.object.IntegerJsonType cannot be cast to pl.jalokim.propertiestojson.object.ObjectJsonType
at pl.jalokim.propertiestojson.resolvers.ObjectJsonTypeResolver.fetchJsonObjectWhenIsNotPrimitive(ObjectJsonTypeResolver.java:33)
at pl.jalokim.propertiestojson.resolvers.ObjectJsonTypeResolver.fetchJsonObjectOrCreate(ObjectJsonTypeResolver.java:18)
at pl.jalokim.propertiestojson.resolvers.ObjectJsonTypeResolver.traverse(ObjectJsonTypeResolver.java:12)
at pl.jalokim.propertiestojson.resolvers.JsonTypeResolver.traverseOnObjectAndInitByField(JsonTypeResolver.java:31)
at pl.jalokim.propertiestojson.JsonObjectsTraverseResolver.initializeFieldsInJson(JsonObjectsTraverseResolver.java:35)
at pl.jalokim.propertiestojson.util.PropertiesToJsonConverter.addFieldsToJsonObject(PropertiesToJsonConverter.java:285)
at pl.jalokim.propertiestojson.util.PropertiesToJsonConverter.parseToJson(PropertiesToJsonConverter.java:202)
at pl.jalokim.propertiestojson.util.PropertiesToJsonConverter.parseToJson(PropertiesToJsonConverter.java:188)
at ru.sbtqa.tag.datajack.providers.properties.PropertiesDataProvider.readFile(PropertiesDataProvider.java:158)
at ru.sbtqa.tag.datajack.providers.properties.PropertiesDataProvider.<init>(PropertiesDataProvider.java:59)
... 33 more