起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2814|回复: 3

[结贴] 引入外部jar问题 请帮忙看看

[复制链接]

10

主题

34

帖子

70

积分

初级会员

Rank: 2

积分
70
QQ
发表于 2017-5-10 21:52:28 | 显示全部楼层 |阅读模式
引入了一个移动公司发短信的jar包,调试出错,java不熟悉,请高手给个解决思路 非常感谢
-----------------------------------------------------------------------
2017-05-10 21:50:44 Action[NongjiWx/Sms/Mobile]执行失败,IgnoreNonFieldGetter
java.lang.reflect.InvocationTargetException
        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 com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.service(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchFieldError: IgnoreNonFieldGetter
        at com.umpay.mascloud.sdk.compat.util.JsonUtil.toJsonString(JsonUtil.java:9)
        at com.mascloud.sdkclient.Client.doLogin(Client.java:210)
        at com.mascloud.sdkclient.Client.login(Client.java:71)
        at NongjiWx.Sms.Mobile(Sms.java:21)
        at NongjiWx.Sms__do.Mobile(Sms__do.java:43)
        ... 20 more
com.justep.baas.action.ActionException: Action[NongjiWx/Sms/Mobile]执行失败,IgnoreNonFieldGetter
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.service(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
        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)
        ... 16 more
Caused by: java.lang.NoSuchFieldError: IgnoreNonFieldGetter
        at com.umpay.mascloud.sdk.compat.util.JsonUtil.toJsonString(JsonUtil.java:9)
        at com.mascloud.sdkclient.Client.doLogin(Client.java:210)
        at com.mascloud.sdkclient.Client.login(Client.java:71)
        at NongjiWx.Sms.Mobile(Sms.java:21)
        at NongjiWx.Sms__do.Mobile(Sms__do.java:43)
        ... 20 more
五月 10, 2017 9:50:44 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet WeX5_Baas_Servlet threw exception
java.lang.NoSuchFieldError: IgnoreNonFieldGetter
        at com.umpay.mascloud.sdk.compat.util.JsonUtil.toJsonString(JsonUtil.java:9)
        at com.mascloud.sdkclient.Client.doLogin(Client.java:210)
        at com.mascloud.sdkclient.Client.login(Client.java:71)
        at NongjiWx.Sms.Mobile(Sms.java:21)
        at NongjiWx.Sms__do.Mobile(Sms__do.java:43)
        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 com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.service(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
发表于 2017-5-11 09:49:01 | 显示全部楼层
本帖最后由 liangyongfei 于 2017-5-11 09:50 编辑

上网搜下错误信息吧!
应该是jar包引入问题!
1.你是这样引入的吗?
http://docs.wex5.com/wex5-studio-question-list-2015

2.jar包 编译的jdk版本是多少呢??建议使用低版本版本的jar包!如果比运行版本高也有问题!
java 版本问题原理看下
http://docs.wex5.com/wex5-deploy-question-list-2001
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

10

主题

34

帖子

70

积分

初级会员

Rank: 2

积分
70
QQ
 楼主| 发表于 2017-5-21 12:53:19 | 显示全部楼层
官方使用的 fastjson-1.1.25.jar 升级到 fastjson-1.2.7.jar 以后编译就会报错,
把fastjson-1.2.7.jar 高版本 重命名为 fastjson-1.1.25.jar  就可以了 你们研究一下把,问题暂时解决了,请结
回复 支持 反对

使用道具 举报

发表于 2017-5-22 10:58:38 | 显示全部楼层
changli 发表于 2017-5-21 12:53
官方使用的 fastjson-1.1.25.jar 升级到 fastjson-1.2.7.jar 以后编译就会报错,
把fastjson-1.2.7.jar 高 ...

已作为产品功能建议提交(内部编号:2017052200002),感谢楼主的支持与配合。
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-24 14:02 , Processed in 0.053521 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表