数据在本机可以插入,上传服务器后,不能插入了 我们初步判断是服务器上没有相关的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 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()} } |