也可能是数据的问题
比如你们程序认为某个字段应该具有某种格式啊
然后用String.substring(1,10)这种写在程序里面去进行格式化
然后偏偏数据不一定是这种格式比如长度小于了10
自然就会出错了
就要看具体是不是这样数据你们就是不接受啦

解决方案 »

  1.   


    解决:在account/component/com/sinosoft/account/blsvr/BLAccFinalAccounts.java中
    if(!accArticleBalTempSchema.getArticleCode().substring(0,2).equals("XJ")){
    499行修改为:
                boolean boolArticleCode;
                if(accArticleBalTempSchema.getArticleCode().length()>1){
                    boolArticleCode=accArticleBalTempSchema.getArticleCode().substring(0,2).equals("XJ");
                }else{
                    boolArticleCode=false;
                }
                if(!boolArticleCode){
    因为数据可能是一位的,所以出错,做了以上修改。调试别人写的程序真郁闷。