还未发布过话题
  • 2016-12-01 18:26:19 INFO [AppCrawler$.main.156] Find Conf D:\appUi\kr.yml
    Exception in thread "main" com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type scala.collection.immutable.Map from String value ('deviceName:"emulator-5554" appPackage:"com.jr36.guquan" appActivity:".ui.activity.MainActivity"'); no single-String constructor/factory method
     at [Source: java.io.StringReader@7857fe2; line: 18, column: 4] (through reference chain: com.xueqiu.qa.appcrawler.CrawlerConf["androidCapability"])
            at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:255)
            at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:993)
            at com.fasterxml.jackson.databind.deser.ValueInstantiator._createFromStringFallbacks(ValueInstantiator.java:316)
            at com.fasterxml.jackson.databind.deser.ValueInstantiator.createFromString(ValueInstantiator.java:207)
            at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:335)
            at com.fasterxml.jackson.module.scala.deser.UnsortedMapDeserializer.deserialize(UnsortedMapDeserializerModule.scala:76)
            at com.fasterxml.jackson.module.scala.deser.UnsortedMapDeserializer.deserialize(UnsortedMapDeserializerModule.scala:39)
            at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:490)
            at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)
            at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:260)
            at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
            at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3807)
            at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2797)
            at com.xueqiu.qa.appcrawler.DataObject$class.fromYaml(DataObject.scala:36)
            at com.xueqiu.qa.appcrawler.DataObject$.fromYaml(DataObject.scala:128)
            at com.xueqiu.qa.appcrawler.CrawlerConf.load(CrawlerConf.scala:184)
            at com.xueqiu.qa.appcrawler.AppCrawler$.main(AppCrawler.scala:157)
            at com.xueqiu.qa.appcrawler.AppCrawler.main(AppCrawler.scala)
    
    加上配置文件报这个错是因为什么啊,求大神解答