数据填报。cpt和tamcat兼容性问题。

数据在本机可以插入,上传服务器后,不能插入了

我们初步判断是服务器上没有相关的ja包造成。

求确认,以及相关的解决方法

报错日志

Data submit error

null

at com.fr.report.write.SubmitHelper.submit(Unknown Source)

at com.fr.web.core.A.RB.actionCMD(Unknown Source)

at com.fr.web.core.WebActionsDispatcher.dealForActionCMD(Unknown Source)

at com.fr.web.core.WebActionsDispatcher.dealForActionDefaultCmd(Unknown Source)

at com.fr.web.core.WebActionsDispatcher.dealForActionCMD(Unknown Source)

at com.fr.web.core.A.vC.process(Unknown Source)

at com.fr.web.core.ReportDispatcher.dealWithOp(Unknown Source)

at com.fr.web.core.ReportDispatcher.dealWeblet(Unknown Source)

at com.fr.web.core.ReportDispatcher.dealWithRequest(Unknown Source)

at com.fr.web.BaseServlet.doGet(Unknown Source)

at com.fr.web.BaseServlet.doPost(Unknown Source)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

at org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:419)

at org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:169)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1437)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:748)

Caused by: com.fr.write.WriteSubmitException: Data submit error

null

at com.fr.report.write.ReportWriteAttr.submit(Unknown Source)

at com.fr.report.write.SubmitHelper.submit(Unknown Source)

... 39 more

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:498)

at com.fr.data.SubmitJobProxyHandler.invoke(Unknown Source)

at com.sun.proxy.$Proxy16.doJob(Unknown Source)

at com.fr.report.write.WClassSubmiter.execute(Unknown Source)

... 41 more

Caused by: java.lang.NoSuchFieldError: PROPERTY_VALUE

at com.fr.data.DemoSubmitJob2.doJob(DemoSubmitJob2.java:20)

at com.fr.data.ClassSubmitJob.doJobByColumn(Unknown Source)

at com.fr.data.ClassSubmitJob$1.run(Unknown Source)

at com.fr.write.cal.WB.classJobRun(Unknown Source)

at com.fr.write.cal.WB.runEachAction(Unknown Source)

at com.fr.write.cal.WB.setCurrentColumnRow(Unknown Source)

at com.fr.data.AbstractClassJob.doJob(Unknown Source)

... 48 more

image.png

com.fr.datajava.util.Iteratorjava.util.Mapjava.util.Map.Entryjava.util.Setjava.sql.Connectionjava.sql.DriverManagerjava.sql.PreparedStatementjava.util.HashMapjava.util.Arrayscom.fr.script.CalculatorDemoSubmitJob2 DefinedSubmitJob {     JobValue taskIdJobValue subTaskIdString getJobType(){         }     doJob(Calculator calculator) Exception {         Map map = (Map)calculator.getAttribute(PROPERTY_VALUE)(map == ) Map mapInfo = HashMap()Set set = map.entrySet()Iterator it = set.iterator()StringBuilder sb = StringBuilder()Entry entry(it.hasNext()) {             entry = (Entry)it.next()System.out.print(+ entry.getKey() + )(entry.getKey().equals()||entry.getKey().equals()){                 }             (entry.getValue() JobValue) {                 JobValue ce = (JobValue)entry.getValue()(ce.getValueState() == JobValue.VALUE_STATE_CHANGED) {                     } (ce.getValueState() == JobValue.VALUE_STATE_INSERT) {                     } (ce.getValueState() == JobValue.VALUE_STATE_DELETED) {                     } (ce.getValueState() == JobValue.VALUE_STATE_DEFAULT) {                     }                 mapInfo.put(entry.getKey()ce.getValue())System.out.print(ce.getValue())} {                 System.out.print(entry.getValue())}         }         .SaveReport(getMapToString(mapInfo))System.out.println()}     SaveReport(String info) {         {             String driver = String url = String user = String pass = Class.forName(driver)Connection conn = DriverManager.getConnection(urluserpass)PreparedStatement presmt = conn.prepareStatement()presmt.setString(taskId.getValue().toString())presmt.setString(subTaskId.getValue().toString())presmt.setString(info)presmt.setString()presmt.setString()presmt.execute()presmt.close()conn.close()} (Exception e) {             e.printStackTrace()}     }     String getMapToString(Map<StringObject> map){         Set<String> keySet = map.keySet()String[] keyArray = keySet.toArray(String[keySet.size()])Arrays.sort(keyArray)StringBuilder sb = StringBuilder()(i = i < keyArray.lengthi++) {             ((String.valueOf(map.get(keyArray[i]))).trim().length() > ) {                 sb.append(keyArray[i]).append().append(String.valueOf(map.get(keyArray[i])).trim())}             (i != keyArray.length-){                 sb.append()}         }         sb.toString()} }

FineReport 用户3GEsc5418 发布于 2021-8-27 10:51 (编辑于 2021-8-27 12:41)
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
Z4u3z1Lv6专家互助
发布于2021-8-27 11:23

请保存设计器的版本以及JAR包和服务器上是否一致

  • 用户3GEsc5418 用户3GEsc5418(提问者) 是的找到,在本地的JAR包没上传到服务器。现在不报错了。但是,虽然提示成功,数据更新不能更新
    2021-08-27 11:52 
  • Z4u3z1 Z4u3z1 回复 用户3GEsc5418(提问者) 填报属性是怎么设置的 截个图
    2021-08-27 11:57 
  • 用户3GEsc5418 用户3GEsc5418(提问者) 回复 Z4u3z1 现在是在本机可以,服务器上不能插入
    2021-08-27 12:40 
  • 用户3GEsc5418 用户3GEsc5418(提问者) 回复 Z4u3z1 设置截图,我放到上面 了。后面跟的是java代码,
    2021-08-27 12:43 
  • Z4u3z1 Z4u3z1 回复 用户3GEsc5418(提问者) ........... 又超纲了,看不懂Java。
    2021-08-27 14:03 
  • 1关注人数
  • 358浏览人数
  • 最后回答于:2021-8-27 12:41
    请选择关闭问题的原因
    确定 取消
    返回顶部