3.com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactoryAdapter.read(ReflectiveTypeAdapterFactory.java:226)atcom.google.gson.Gson.fromJson(Gson.java:932)atcom.google.gson.Gson.fromJson(Gson.java:897)atcom.google.gson.Gson.fromJson(Gson.java:846)atcom.google.gson.Gson.fromJson(Gson.java:817)atfuckyou.al.lambdaAdapter.read(ReflectiveTypeAdapterFactory.java:226)
at com.google.gson.Gson.fromJson(Gson.java:932)
at com.google.gson.Gson.fromJson(Gson.java:897)
at com.google.gson.Gson.fromJson(Gson.java:846)
at com.google.gson.Gson.fromJson(Gson.java:817)
at fuck_you.al.lambdaAdapter.read(ReflectiveTypeAdapterFactory.java:226)atcom.google.gson.Gson.fromJson(Gson.java:932)atcom.google.gson.Gson.fromJson(Gson.java:897)atcom.google.gson.Gson.fromJson(Gson.java:846)atcom.google.gson.Gson.fromJson(Gson.java:817)atfuckyou.al.lambdaprojectOpened$0(Unknown Source)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:386)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215)
… 6 more
4.快速导出文件名CMD: dir *.pdf /B > name.txt
5.Description Resource Path Location Type
Project ‘CnBatchMainB’ is missing required Java project: ‘CND1566B’ CnBatchMainB Build path Build Path Problem
项目“CnBatchMainB”缺少必需的 Java 项目:“CND1566B”;把这个引用暂时删除
6.The project cannot be built until build path errors are resolved CnBatchMainB
在解决构建路径错误之前无法构建项目 CnBatchMainB
Cannot nest ‘CnBatchMainB/src/main/java’ inside ‘CnBatchMainB’. To enable the nesting exclude ‘src/’ from ‘CnBatchMainB’
不能在“CnBatchMainB”中嵌套“CnBatchMainB/src/main/java”。启用嵌套从 ‘CnBatchMainB’ 中排除 ‘src/’
解决方法:项目右键-Properties-Source-Source folders on build path:下,删除’CnBatchMainB/src/main/java’这个夹
7.Google Chorme切换显示语言:设置-高级(详细设置)-语言-语言(箭头展开)-选中"以这种语言显示"
启用Chrome翻译:设置-高级(详细设置)-语言-语言(箭头展开)-选中"询问是否翻译非你所用语言的网页"
Excel中插入JCL代码到一列单元格的对齐方式:拷贝的文本内容设置字体为"MS ゴシック"字体 “MSコンデンス”
8.Commit failed with error
0 file committed, 1 file failed to commit: update mll
svn: E170013: Commit failed (details follow):
svn: E170013: Unable to connect to a repository at URL ‘https://XXX’
svn: E230001: Server SSL certificate verification failed: certificate issued for a different hostname, issuer is not trusted
解决方法:(IDEA)File->Settings->Version Control->Subversion->
去掉它前面的对勾,Use custom configuration directory C:\Users\maoll\AppData\Roaming\Subversion
使用C盘默认的这个路径而不是D盘的程序安装路径
9.org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): itt.common.dao.mapper.K39_recMapper.truncateTable
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): itt.common.dao.mapper.K39_recMapper.insertBatch
无效的绑定语句,找不到K39_recMapper.truncateTable
引起原因:找不到这个方法!这个方法在Mapper中没有被实现
10.nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: ‘@P0’
引起原因:mapper.xml里入参的插值器#{}改成${}
11.; uncategorized SQLException; SQL state [S0001]; error code [102]; ‘,’ 付近に不適切な構文があります。; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: ‘,’ 付近に不適切な構文があります
, 附近有不正确的语法
12.org.springframework.jdbc.BadSqlGrammarException:
Error updating database. Cause: com.microsoft.sqlserver.jdbc.SQLServerException: 列名 ‘centerName45’ が無効です。
The error may exist in k39_recMapper
The error may involve itt.common.dao.mapper.K39_recMapper.insertBatch-Inline
The error occurred while setting parameters
SQL: INSERT INTO ITOCHU.dbo.K39_REC (K39_KEY, CENTER_NAME, K39_PGM, VOLUM_NO, SEQ_NO, INSERT_SYS_DATE, INSERT_USER_ID, INSERT_JOB_ID, INSERT_PRO_ID, UPD_SYS_DATE, UPD_USER_ID, UPD_JOB_ID, UPD_PRO_ID) VALUES (5,centerName45,k39_pgm5,000005,5,getdate(),Batch,CNE0002039,JxkrelodTasklet,getdate(),Batch5,CNE0002039,JxkrelodTasklet5) , (6,centerName46,k39_pgm6,000006,6,getdate(),Batch,CNE0002039,JxkrelodTasklet,getdate(),Batch6,CNE0002039,JxkrelodTasklet6) , (7,centerName47,k39_pgm7,000007,7,getdate(),Batch,CNE0002039,JxkrelodTasklet,getdate(),Batch7,CNE0002039,JxkrelodTasklet7)
Cause: com.microsoft.sqlserver.jdbc.SQLServerException: 列名 ‘centerName45’ が無効です
不能使用${},属性中用#{}
13.### Error updating database. Cause: com.microsoft.sqlserver.jdbc.SQLServerException: テーブル ‘ITOCHU.dbo.K39_REC’ の列 ‘INSERT_SET_NO’ に値 NULL を挿入できません。この列では NULL 値が許可されていません。INSERT は失敗します。
引起原因:INSERT_SET_NO这个字段没写入
14.’@P0’ 付近に不適切な構文があります
引起原因:表名用${}而不是#{}
15.java: メソッド setRootVarBytes(byte[])はすでにクラス itt.common.dao.entity.K39_recで定義されています
引起原因:方法重写,但是没有重新Build,点击"Rebuild Project"下
16.org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘insertSetNo’ in ‘class itt.common.dao.entity.K39_rec’
insertSetNo无法获得这个属性的getter
17.Class ‘K39_rec’ must either be declared abstract or implement abstract method ‘getRootVarBytes()’ in ‘BaseEntity’
类“K39_rec”必须实现“BaseEntity”类的抽象方法“getRootVarBytes()”
引起原因:子类必须重写父类的抽象方法,必须;但JRC项目特殊,它是同意实现;
SoftRoad项目里加上01层就OK:@Vad(level = 1)
18.Project build error: Non-readable POM D:\Program Files\mavenRepository\org\jboss\jboss-parent\36\jboss-parent-36.pom: no more data available - expected end tags to close start tag from line 1143 and start tag from line 1138 and start tag from line 1136 and start tag from line 771 and start tag from line 19, parser stopped on START_TAG seen …\n \n … @1144:2 pom.xml /itoutyuu-batch line 1 Maven pom Loading Problem
maven配置指定不对,更改成指定C:\下的后报错消失
19.org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [file:D:\ItoutyuuBatch/exe/xml/CNE/SBDA0100.xml]
Offending resource: class path resource [MainJob.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: The element [SBDA0100.00400] is unreachable
Bean定义解析异常:配置问题:无法从 URL 位置导入 bean 定义
违规资源:类路径资源 [MainJob.xml]; 嵌套异常是
配置问题:元素[SBDA0100.00400]无法访问
原因:
20.Cause: com.microsoft.sqlserver.jdbc.SQLServerException: ‘-’ 付近に不適切な構文があります。
; uncategorized SQLException; SQL state [S0001]; error code [102]; ‘-’ 付近に不適切な構文があります。; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: ‘-’ 付近に不適切な構文があります。
原因:数据库表明不可以使用’-'中杠,
21.java.nio.file.AccessDeniedException: E:\App\Data\DA\100013\AUTBK.VOL00
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:116)
at itt.common.file.writer.AbsWriter.initFileWriter(AbsWriter.java:180)
at itt.common.file.writer.AbsWriter.initFileWriter(AbsWriter.java:154)
at itt.common.file.writer.NormalFileWriter.(NormalFileWriter.java:27)
文件系统操作被拒绝时,[这是一个]已检查的异常[抛出],通常是由于文件权限或其他访问检查
在使用FileChannel之前,必须先打开它。但是,我们无法直接打开一个FileChannel,需要通过使用一个InputStream、OutputStream或RandomAccessFile来获取一个FileChannel实例。下面是通过RandomAccessFile打开FileChannel的示例
RandomAccessFile aFile = new RandomAccessFile(“data/nio-data.txt”, “rw”);
FileChannel inChannel = aFile.getChannel();
引起原因:我遇到的是fileName写在了dirName里,造成创建的是文件夹(肯定不行),然后程序往文件夹写入数据抛出这个异常
通过try/resource方式自动关闭了流,本创建文件写成创建文件夹也报这个错误!
22.FujitsuJCLParser.AreaContext cannot be resolved to a type FujitsuJCLParserBaseVisitor.java
富士通 JCL 解析器区域上下文无法解析为 FujitsuJCLParserBaseVisitor.java 类型
引起原因:没有装ANTLR插件,通过eclipse-help-Eclipse Marketplace…搜索ANTLR IDE
②ImportStepData cannot be resolved 引起原因:SVN更新到的jar包和maven里的jar包不是一个版本,包结构都不一样
MAVEN update后仍然有引用依赖包问题的情况
一种可能是JDK不匹配,二种可能:Project-Clean… 下;三种可能当找不到“XX”所在的jar包时,会报这个错。解决只需要找到(ctrl+点击,可能能看到jar包名称)对应jar包导入项目即可
23.ANTLR Tool version 4.4 used for code generation does not match the current runtime version 4.8
用于代码生成的 ANTLR 工具版本 4.4 与当前运行时版本 4.8 不匹配
antlr-4.4-complete.jar jia包不匹配引起的
打开:http://www.antlr.org/download/ 下载对应版本的"Tool and Java runtime lib"
24.修改CSV文件的分隔符,默认事",“改为”;"
Windows下1、点开“开始菜单”,找到并打开“控制面板”2、在“控制面板”中找到并打开“区域和语言”
3、在打开“区域和语言“窗体中选择”格式“选项,然后点击“其他设置(D)…"按钮打开“自定义格式”窗体。
4、列表分隔符默认是逗号(,)修改列表分隔符为分号(;)
コントロール パネル\時計と地域\地域\日付、时刻、数值型式の変更
25.java.lang.ClassNotFoundException: jp.co.itotyu.cn.gpa.gpa8825a.service.impl.Gpa8825aServiceImpl
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:377)
at itt.batch.base.registry.BatchRegistry.getDepObj(BatchRegistry.java:238)
引起原因:中不到这个"jp.co.itotyu.cn.gpa.gpa8825a.service.impl.Gpa8825aServiceImpl"包路径下的类,要么是调用方配置了错误的路径,要么就是类没有被编译class文件没找到
\itoutyuu-batch\src\main\java\itt\batch\base
egistry\BatchRegistry.java更新此类就OK
26.エラー: メイン・クラスitt.batch.BatchApplicationを検出およびロードできませんでした
原因: java.lang.ClassNotFoundException: itt.batch.BatchApplication
引起原因
cleanup failed to process the following paths:
failed to run the WC DB work queue associated with
fujitsucobolg4.jarアクセスが拒否されました[拒绝访问]
原因:某一次的修改没有提交就更新了,SVN内本地数据库被锁住了,放上的方案需要下载sqllite,最后把项目带SNV夹(隐藏的)全部删除重新下载新版本解决了.
Drop To Frame的作用:可以点击当前调用栈中的任何一个frame跳到方法开始位置
CALL USING VAR1,VAR2 引用调用
CALL USING BY VAR1,VAR2 值调用
27.条件断点:Ctrl+双击断点位置,选中"Conditional"下面添加自定义条件
28.删除空行的正则表达式:\n[\s| ]*\r
\n:在Windows 中表示换行且回到下一行的最开始位置
\r\n 一般一起用,用来表示键盘上的回车键,也可只用\n
提取部分PDF使用"PDF-XChange Editor":文档-提取页面-输入参数
29.java.util.regex.PatternSyntaxException: Unexpected internal error near index 6
\n|/|
java util regex模式语法异常:索引3附近出现意外内部错误,意思是第6为符号异常,因为没有转义
引起原因:在Java中\代表一个,但你要转义Java中1个,你需要写4个,\\,前两个算一个\去转义后面那一个\
30.Missing state for [StateTransition: [state=DZW013B.00300, pattern=, next=DZW013B.00400]]
缺少的状态next=DZW013B.00400
引起原因:第3步多配置了<batch:next on="" to=“DZW013B.00300” /><batch:end on=“FAILED” />,删除即可
31.PowerSORT报missing matching record-length
引起原因:数据长度和指定长度不匹配,数据文件的换行符是占位置的!
32.No value present(现在无值)
引起原因:可能是XML里cond条件等配置错误问题
在AbsTasklet.checkCond()[190]中:COND>=0时,COND < endCode时返回true(true就跳过(不执行)下一步了);
COND<0时,COND > endCode时返回true;
endCode是前一步完成码
COND是后一步进入条件
33.java.lang.NullPointerException: Cannot invoke “String.toLowerCase()” because “this.pgmName” is null
at itt.batch.macro.StepTasklet.loadService(StepTasklet.java:77)
at itt.batch.macro.StepTasklet.execute(StepTasklet.java:91)
at itt.batch.base.AbsTasklet.execute(AbsTasklet.java:140)
at org.springframework.batch.core.step.tasklet.TaskletStepChunkTransactionCallback.doInTransaction(TaskletStep.java:407)atorg.springframework.batch.core.step.tasklet.TaskletStepChunkTransactionCallback.doInTransaction(TaskletStep.java:407)
at org.springframework.batch.core.step.tasklet.TaskletStepChunkTransactionCallback.doInTransaction(TaskletStep.java:407)atorg.springframework.batch.core.step.tasklet.TaskletStepChunkTransactionCallback.doInTransaction(TaskletStep.java:331)
at
引起原因:XML里是空的造成的
34.org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘k22d3899ServiceImpl’: Unsatisfied dependency expressed through field ‘k22d3899Dto’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘k22d3899Dto’ defined in file [D:\work\itoutyuu-batch\target\classes\itt\batch\k22d3899\dto\K22d3899Dto.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [itt.batch.k22d3899.dto.K22d3899Dto]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The method setBytesByLong(long, byte[], int, int, int, int, Type) in the type SrmToolUtil is not applicable for the arguments (long, byte[], int, int, Usage, Sign, Justified, Type)
The method setBytesByLong(long, byte[], int, int, int, Usage, Sign, Justified, Type) in the type SrmToolUtil is not applicable for the arguments (long, byte[], int, int, int, int, Usage, Sign, Justified, Type)
he method setBytesByStr(String, byte[], int, int, String, Type, boolean) in the type SrmToolUtil is not applicable for the arguments (String, byte[], int, int, int, int, String, Type)
The method setBytesByStr(String, byte[], int, int, String, Type, boolean) in the type SrmToolUtil is not applicable for the arguments (String, byte[], int, int, String, Type)
通过字段“k22d3899Dto”表示的未满足的依赖关系;嵌套异常为org.springframework.beans.factory.BeanCreationException:创建文件中定义的名为“k22d3899Dto”的bean时出错,未解决的编译问题
引起原因:当前Dto调的方法和Srcom的jar方法参数类型不一致,就是jar不一致引起的,
lombok.jar有更新的话,更新两个地方分别是/srlib/和Eclipse安装目录下的lombok.jar包,然后更新Maven
类XXDto没加@component注解
35.Duplicate field I123Rec.filler I123Rec.java /itoutyuu-common/src/main/java/itt/common/dao/entity line 33 Java Problem
更新project和maven后消失
36.PowerSORT実行コマンド:cmd /c cd /d C:\Program Files (x86)\Fujitsu\PowerSORT\x86\V08.00.00\PROGRAM&&bsortex -sort key=0.17asca,167.28asca -record recform=fix -input reclen=200 file=E:\App\Data\DA\WORK\E13M43B8.S01OT.M43B8.B90 include="(0.2asc.eq.x’0000’.or.36.6asc.eq.‘303097’)" -output file=E:\App\Data\DA\WORK\E13M43B8.S.B90 -option msgfile=E:\App\Temp\sortLog_11683724172602028905 msglevel=I
[ERROR] 2021/08/04 14:03:27.030 DESKTOP-JF35SHF 0000000000000002426 SortTasklet E13M43B8 1 PSORT: ERROR : 2021-08-04 14:03:27: 0010 選択フィールド(0)の指定に誤りがあります.指定选择字段(0)有误。
引起原因:(0.2asc.eq.x’0000’.or.36.6asc.eq.‘303097’)单引号引起的,应该为(0.2asc.eq.x0000.or.36.6asc.eq.‘303097’)'303097’是字符串C
37.org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘GDT200’: Cannot create inner bean ‘(inner bean)#1faf386c’ of type [org.springframework.batch.core.configuration.xml.SimpleFlowFactoryBean] while setting bean property ‘flow’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘(inner bean)#1faf386c’: FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Missing state for [StateTransition: [state=GDT200.decision, pattern=GDT200.00300, next=GDT200.00300]]
创建名为“GDT200”的bean时出错:无法创建内部bean,嵌套异常为java.lang.IllegalArgumentException:[StateTransfition:[state=GDT200.decision,pattern=GDT200.00300,next=GDT200.00300]缺少状态
引起原因:STEPID写错了GDT200.03000写成了GDT200.00300,造成程序找不到它引起的
38.overlappingfilelockexception
java.nio.channels.OverlappingFileLockException: null
at java.base/sun.nio.ch.FileLockTable.checkList(FileLockTable.java:229)
at java.base/sun.nio.ch.FileLockTable.add(FileLockTable.java:123)
at java.base/sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1154)
at itt.common.file.utils.FileUtil.getFileLock(FileUtil.java:177)
at itt.common.base.BaseDto.lambda$assignFile1(BaseDto.java:341)atjp.co.srm.file.AbstractFileOperation.fileOpen(AbstractFileOperation.java:179)atjp.co.srm.file.AbstractFileOperation.open(AbstractFileOperation.java:78)atitt.batch.knr00031.service.impl.Knr00031ServiceImpl.init(Knr00031ServiceImpl.java:227)atitt.batch.knr00031.service.impl.Knr00031ServiceImpl.lambda1(BaseDto.java:341)
at jp.co.srm.file.AbstractFileOperation.fileOpen(AbstractFileOperation.java:179)
at jp.co.srm.file.AbstractFileOperation.open(AbstractFileOperation.java:78)
at itt.batch.knr00031.service.impl.Knr00031ServiceImpl.init(Knr00031ServiceImpl.java:227)
at itt.batch.knr00031.service.impl.Knr00031ServiceImpl.lambda1(BaseDto.java:341)atjp.co.srm.file.AbstractFileOperation.fileOpen(AbstractFileOperation.java:179)atjp.co.srm.file.AbstractFileOperation.open(AbstractFileOperation.java:78)atitt.batch.knr00031.service.impl.Knr00031ServiceImpl.init(Knr00031ServiceImpl.java:227)atitt.batch.knr00031.service.impl.Knr00031ServiceImpl.lambdarun$2(Knr00031ServiceImpl.java:61)
引起原因:lock = channel.tryLock();在程序执行时,一个线程获得了这个锁,正在执行后面操作时,另一个线程进入,也来获取文件锁,这时第二个线程发现文件被锁,抛出异常
解决办法:1处理好多线程获取锁的时间,tryLock()方法,如果成功获取锁,会返回锁的对象,如果获取锁失败,会返回null;
2文件锁不要锁太久,及时释放所 fileLock.release();
39.itt.common.file.exception.SystemException: [EM014]カタログ登録したいファイルのボリューム番号が指定されません。(ファイル:GDT200.K22D3901.U50)
at itt.common.file.utils.CatalogUtil.catlog(CatalogUtil.java:87)
at itt.batch.base.AbsTasklet.setDispProperty(AbsTasklet.java:366)
at itt.batch.base.AbsTasklet.execute(AbsTasklet.java:148)
引起原因:在CatalogUtil.catlog()里有个vol空判断,如果空就抛出SystemException异常,但是登录CATLOG的出力文件必须得有vol号,或者默认值’WORK’
40.org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 334; columnNumber: 5; 要素タイプ"if"は、対応する終了タグ""で終了する必要があります。
mybatis的xml有问题,需要debug找到对那个的xxxMapper.xml
41.he content of element type “resultMap” must match
“(constructor?,id*,result*,association*,collection*,discriminator?)”.
造成的原因是标签中,需要按照顺序来排列
BaseDto.assignFile()里fileInfo是null问题
42.cleanup failed to process the following paths
sqlite[S13]:database or disk is full
清理无法处理以下路径,sqlite[S13]:数据库或磁盘已满
查看你的所在磁盘是不是满了
43.’sqlcmd’是内部命令或外部命令
原因:没有装SQLserver_utility 里的3个.msi程序
sqlncli.msi msodbcsql(1).msi MsSqlCmdLnUtils.msi
44.java.nio.file.InvalidPathException: Trailing char < > at index 20: E:\App\Data\DA\WORK \GDT200.S36IN.TAPACK1.SUHA
java nio文件无效路径异常:索引20处的尾随字符<>
45.### SQL: insert into CATALOGFILE ( FILE_ID, VOLUM_NO, INSERT_SYS_DATE, INSERT_USER_ID, INSERT_JOB_ID, INSERT_PRO_ID, UPD_SYS_DATE, UPD_USER_ID, UPD_JOB_ID, UPD_PRO_ID) values (?, ?, GETDATE(), ‘Batch’, ‘GDT200’, ‘SortTasklet’, GETDATE(), ‘Batch’, ‘GDT200’, ‘SortTasklet’)
Cause: com.microsoft.sqlserver.jdbc.SQLServerException: テーブル ‘ITOCHU.dbo.CATALOGFILE’、列 ‘INSERT_PRO_ID’ で文字列またはバイナリ データが切り捨てられます。切り捨てられた値: ‘SortTask’。
; uncategorized SQLException; SQL state [S0001]; error code [2628]; テーブル ‘ITOCHU.dbo.CATALOGFILE’、列 ‘INSERT_PRO_ID’ で文字列またはバイナリ データが切り捨てられます。切り捨てられた値: ‘SortTask’。; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: テーブル ‘ITOCHU.dbo.CATALOGFILE’、列 ‘INSERT_PRO_ID’ で文字列またはバイナリ データが切り捨てられます。切り捨てられた値: ‘SortTask’。
引起原因:‘INSERT_PRO_ID’ 截断字符串或二进制数据。 截断值:‘SortTask’。意思是插入的值’SortTasklet’超过了数据库设定的长度,数据库Length是8,但是这个字符串是11,所以报错.
46.java.lang.RuntimeException: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property ‘msmNTnk1’ of ‘class itt.common.dao.entity.MsmRec’ with value ‘135.00’ Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named ‘msmNTnk1’ in ‘class itt.common.dao.entity.MsmRec’
意思是:找不到MsmRec类的msmNTnk1属性,所以不能给这个’msmNTnk1’属性赋值
47.XML转义字符:<(<) >(>)
Offending resource: class path resource [MainJob.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 38 in XML document from URL [file:H:/ItoutyuuBatch//exe/xml/AUTO.VM3/KAM001CV.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 38; columnNumber: 45; 要素のコンテンツは、整形式の文字データまたはマークアップで構成されている必要があります。
引起原因:XML文件里有<>造成的不识别
48.Index 35 out of bounds for length 35
i<=arrayList.size()中的 = 删除即可,get(35)是第36个元素,但是长度只有35个
49.java.nio.file.FileSystemException: /test/test02/linux/App/Data/VTL/GDT200.K22D3899.U50: ディレクトリです
java.nio.file.AccessDeniedException: E:\App\Data\VTL\GDT200.K22D3899.U50ディレクトリです(它是一个目录[文件夹])
引起原因:少了VOL;\VTL\VOL\FILENAME
50.java.lang.IllegalStateException: Failed to execute ApplicationRunner [无法执行应用程序运行程序]
NoSuchBeanDefinitionException: No bean named ‘FCHK’ available [没有名为“FCHK”的bean可用]
51.java.nio.charset.MalformedInputException: Input length = 1
输入错误格式的异常
引起原因:因为文件内的编码不统一
52.bash: bsortex: コマンドが見つかりませんでした…bsortex:找不到命令。。。
引起原因:SORT软件安装了,但是环境变量没有永久挂载
cp /opt/FJSVXbsrt/config/psort.sh /etc/profile.d/psort.sh
[复制环境变量文件至/etc/profile.d目录下,再次启动时系统会自动执行]
53.java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.base/java.lang.String.substring(String.java:1837)
at itt.common.file.sort.Sort.outSortInfoLog(Sort.java:110)
at itt.common.file.utils.SortUtil.mergeFiles(SortUtil.java:169)
at itt.common.file.impl.NormalFile.sortFile(NormalFile.java:139)
at itt.batch.macro.SortTasklet.execute(SortTasklet.java:87)
at itt.batch.base.AbsTasklet.execute(AbsTasklet.java:149)
引起原因:这是越界了,应是str.indexOf("+")出错,字符串中没有这个字符会返回-1
54.表格’ITCHU.dbo.VTL在VOL’、列’AD1501.DUMY’中,字符串或二进制数据被截断。被截断的值:‘A’。
引起原因:导入CSV文件的第一行是列明,但是这次文件里没有,错把数据导入到列明里,列只有1位,但是数据长,造成的此异常
55.SQL 错误 [207] [S0001]: 列名 ‘DATASET_NAME’ が無効です。
引起原因:'DATASET_NAME’写错了,造成找不到’DATASET_NAME’这个字段

5299

被折叠的 条评论
为什么被折叠?



