Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

收集报错信息,优化报错日志 #1

Open
quhongwei opened this issue Aug 23, 2018 · 4 comments
Open

收集报错信息,优化报错日志 #1

quhongwei opened this issue Aug 23, 2018 · 4 comments
Labels

Comments

@quhongwei
Copy link
Member

No description provided.

@quhongwei
Copy link
Member Author

Caused by: com.alipay.rdf.file.exception.RdfFileException: 文件头字段校验:文件模板定义的第27个column为保留字段1, 实际文件中为保留字段1
at com.alipay.rdf.file.codec.BodyColumnHorizontalCodec.deserialize(BodyColumnHorizontalCodec.java:87)
at com.alipay.rdf.file.function.BodyColumnFunction.horizontal(BodyColumnFunction.java:42)
... 34 more

“保留字段1 ” 文件内容中带空格,但是从报错信息没法直观判定

@yangfjiahl
Copy link

Caused by: com.alipay.rdf.file.exception.RdfFileException: Extension name == null
at com.alipay.rdf.file.util.RdfFileUtil.assertTrimNotBlank(RdfFileUtil.java:120) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.loader.ExtensionLoader.getExtension(ExtensionLoader.java:59) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.meta.FileColumnTypeMeta.tryValueOf(FileColumnTypeMeta.java:50) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.loader.TemplateLoader.parseFileColumn(TemplateLoader.java:237) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.loader.TemplateLoader.load(TemplateLoader.java:130) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.loader.TemplateLoader.load(TemplateLoader.java:78) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.common.ProtocolFileValidator.init(ProtocolFileValidator.java:36) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.common.ProtocolFileValidator.init(ProtocolFileValidator.java:30) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.loader.FileToolLoader.loader(FileToolLoader.java:30) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.interfaces.FileFactory.createValidator(FileFactory.java:79) ~[rdf-file-core-2.1.20180727.jar:?]

报错原因看不出来,最终排查下来是因为模板错误,有一个column里面有2个||

@quhongwei
Copy link
Member Author

Caused by: com.alipay.rdf.file.exception.RdfFileException: 文件头字段校验:文件模板定义的第27个column为保留字段1, 实际文件中为保留字段1
at com.alipay.rdf.file.codec.BodyColumnHorizontalCodec.deserialize(BodyColumnHorizontalCodec.java:87)
at com.alipay.rdf.file.function.BodyColumnFunction.horizontal(BodyColumnFunction.java:42)
... 34 more

“保留字段1 ” 文件内容中带空格,但是从报错信息没法直观判定

2.1.2 版本已优化

@quhongwei
Copy link
Member Author

Caused by: com.alipay.rdf.file.exception.RdfFileException: Extension name == null
at com.alipay.rdf.file.util.RdfFileUtil.assertTrimNotBlank(RdfFileUtil.java:120) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.loader.ExtensionLoader.getExtension(ExtensionLoader.java:59) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.meta.FileColumnTypeMeta.tryValueOf(FileColumnTypeMeta.java:50) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.loader.TemplateLoader.parseFileColumn(TemplateLoader.java:237) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.loader.TemplateLoader.load(TemplateLoader.java:130) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.loader.TemplateLoader.load(TemplateLoader.java:78) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.common.ProtocolFileValidator.init(ProtocolFileValidator.java:36) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.common.ProtocolFileValidator.init(ProtocolFileValidator.java:30) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.loader.FileToolLoader.loader(FileToolLoader.java:30) ~[rdf-file-core-2.1.20180727.jar:?]
at com.alipay.rdf.file.interfaces.FileFactory.createValidator(FileFactory.java:79) ~[rdf-file-core-2.1.20180727.jar:?]

报错原因看不出来,最终排查下来是因为模板错误,有一个column里面有2个||

2.1.2 版本已优化

@quhongwei quhongwei added the bug Something isn't working label Sep 27, 2018
@quhongwei quhongwei added 优化 and removed bug Something isn't working labels Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants