EAS与SHR数据同步报错
金蝶云社区-ag_jiajunlei
ag_jiajunlei
0人赞赏了该文章 1,188次浏览 未经作者许可,禁止转载编辑于2020年02月13日 08:41:06


按照步骤配置好后,启动后台事务,在后台事务监控里报错如下:
SHR里只有组织数据,我现在只是把组织架构数据同步过去。这样可以吗,还是说必须要组织、岗位、人员都有的情况下才能同步。

Error message:null
Caused exception message is: A JSONObject text must begin with '{' at character 1
Stack trace:
com.kingdee.bos.BOSException: null
Caused exception message is: A JSONObject text must begin with '{' at character 1
at com.kingdee.eas.hr.base.app.synch.SynchronManager.init(SynchronManager.java:56)
at com.kingdee.eas.hr.base.app.EASIntegratedSHRFacadeControllerBean._initData(EASIntegratedSHRFacadeControllerBean.java:140)
at com.kingdee.eas.hr.base.app.AbstractEASIntegratedSHRFacadeControllerBean.initData(AbstractEASIntegratedSHRFacadeControllerBean.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:619)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:125)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.INVOKE_SUPPORTS(TxInvokerBean.java:64)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean_LocalObjectImpl_2.INVOKE_SUPPORTS(Unknown Source)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:179)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:324)
at com.sun.proxy.$Proxy255.initData(Unknown Source)
at com.kingdee.eas.hr.base.EASIntegratedSHRFacade.initData(EASIntegratedSHRFacade.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:619)
at com.kingdee.bos.ResponseInvocationHandler.invoke(ResponseInvocationHandler.java:194)
at com.sun.proxy.$Proxy277.initData(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:619)
at com.kingdee.bos.service.job.wrapper.FacadeInvoke.innerLocalInvoke(FacadeInvoke.java:215)
at com.kingdee.bos.service.job.wrapper.FacadeInvoke.localInvoke(FacadeInvoke.java:92)
at com.kingdee.bos.service.job.wrapper.FacadeInvoke.localInvoke(FacadeInvoke.java:74)
at com.kingdee.bos.service.job.wrapper.FunctionWrapper.call(FunctionWrapper.java:200)
at com.kingdee.bos.service.job.wrapper.FunctionWrapper.invoke(FunctionWrapper.java:185)
at com.kingdee.bos.service.job.wrapper.FunctionWrapper.execute(FunctionWrapper.java:116)
at com.kingdee.bos.service.job.core.ThreadWorker.execute(ThreadWorker.java:161)
at com.kingdee.bos.service.job.core.ThreadWorker.run(ThreadWorker.java:106)
at java.lang.Thread.run(Thread.java:853)
Caused by: com.kingdee.bos.json.JSONException: A JSONObject text must begin with '{' at character 1
at com.kingdee.bos.json.JSONTokener.syntaxError(JSONTokener.java:382)
at com.kingdee.bos.json.JSONObject.(JSONObject.java:105)
at com.kingdee.bos.json.JSONObject.(JSONObject.java:345)
at com.kingdee.eas.hr.base.app.synch.DataTool.getHRData(DataTool.java:252)
at com.kingdee.eas.hr.base.app.synch.DataTool.getInitDataFromSHR(DataTool.java:178)
at com.kingdee.eas.hr.base.app.synch.SynchronManager.init(SynchronManager.java:44)
... 32 more
Caused by: com.kingdee.bos.json.JSONException
com.kingdee.bos.json.JSONException: A JSONObject text must begin with '{' at character 1
at com.kingdee.bos.json.JSONTokener.syntaxError(JSONTokener.java:382)
at com.kingdee.bos.json.JSONObject.(JSONObject.java:105)
at com.kingdee.bos.json.JSONObject.(JSONObject.java:345)
at com.kingdee.eas.hr.base.app.synch.DataTool.getHRData(DataTool.java:252)
at com.kingdee.eas.hr.base.app.synch.DataTool.getInitDataFromSHR(DataTool.java:178)
at com.kingdee.eas.hr.base.app.synch.SynchronManager.init(SynchronManager.java:44)
at com.kingdee.eas.hr.base.app.EASIntegratedSHRFacadeControllerBean._initData(EASIntegratedSHRFacadeControllerBean.java:140)
at com.kingdee.eas.hr.base.app.AbstractEASIntegratedSHRFacadeControllerBean.initData(AbstractEASIntegratedSHRFacadeControllerBean.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:619)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:125)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.INVOKE_SUPPORTS(TxInvokerBean.java:64)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean_LocalObjectImpl_2.INVOKE_SUPPORTS(Unknown Source)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:179)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:324)
at com.sun.proxy.$Proxy255.initData(Unknown Source)
at com.kingdee.eas.hr.base.EASIntegratedSHRFacade.initData(EASIntegratedSHRFacade.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:619)
at com.kingdee.bos.ResponseInvocationHandler.invoke(ResponseInvocationHandler.java:194)
at com.sun.proxy.$Proxy277.initData(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:619)
at com.kingdee.bos.service.job.wrapper.FacadeInvoke.innerLocalInvoke(FacadeInvoke.java:215)
at com.kingdee.bos.service.job.wrapper.FacadeInvoke.localInvoke(FacadeInvoke.java:92)
at com.kingdee.bos.service.job.wrapper.FacadeInvoke.localInvoke(FacadeInvoke.java:74)
at com.kingdee.bos.service.job.wrapper.FunctionWrapper.call(FunctionWrapper.java:200)
at com.kingdee.bos.service.job.wrapper.FunctionWrapper.invoke(FunctionWrapper.java:185)
at com.kingdee.bos.service.job.wrapper.FunctionWrapper.execute(FunctionWrapper.java:116)
at com.kingdee.bos.service.job.core.ThreadWorker.execute(ThreadWorker.java:161)
at com.kingdee.bos.service.job.core.ThreadWorker.run(ThreadWorker.java:106)
at java.lang.Thread.run(Thread.java:853)