waderwu/extractor-java

运行报错 No source code was seen and extracted to

Opened this issue · 0 comments

报错, 应该是在 finalize 阶段触发的,没有 src 目录

No source code was seen and extracted to E:\codeql\extractor-java\springmvcdemo.
This can occur if the specified build commands failed to compile or process any code.
 - Confirm that there is some source code for the specified language in the project.
 - For codebases written in Go, JavaScript, TypeScript, and Python, do not specify 
   an explicit --command.
 - For other languages, the --command must specify a "clean" build which compiles 
   all the source code files without reusing existing build artefacts.

完整运行日志输出

"C:\Program Files\Python310\python.exe" E:/codeql/extractor-java/run.py springmvcdemo E:/codeql/CodeQLpy/out/decode/classes -ld E:\codeql\StudyCodeQLpy\springmvc_demo 
Namespace(db='springmvcdemo', srcroot='E:/codeql/CodeQLpy/out/decode/classes', lib=None, libdir=['E:\\codeql\\StudyCodeQLpy\\springmvc_demo'])
springmvcdemo
E:/codeql/CodeQLpy/out/decode/classes
None
['E:\\codeql\\StudyCodeQLpy\\springmvc_demo']
['E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\commons-codec-1.11.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\commons-logging-1.2.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\fastjson-1.2.80.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\httpclient-4.5.13.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\httpcore-4.3.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\jstl-1.2.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\log4j-api-2.13.1.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\log4j-core-2.13.1.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\spring-aop-5.1.12.RELEASE.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\spring-beans-5.1.12.RELEASE.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\spring-context-5.1.12.RELEASE.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\spring-core-5.1.12.RELEASE.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\spring-expression-5.1.12.RELEASE.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\spring-jcl-5.1.12.RELEASE.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\spring-web-5.1.12.RELEASE.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\spring-webmvc-5.1.12.RELEASE.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\standard-1.1.2.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\xmlpull-1.1.3.1.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\xpp3_min-1.1.4c.jar', 'E:\\codeql\\StudyCodeQLpy\\springmvc_demo\\WEB-INF\\lib\\xstream-1.4.5.jar']
[*extract_log*] has start init_database
Calculating baseline information in E:\codeql\CodeQLpy\out\decode\classes
Resolving extractor java.
Successfully loaded extractor Java (java) from E:\codeql\codeql-win64-2.11.5\java.
Created skeleton CodeQL database at E:\codeql\extractor-java\springmvcdemo. This in-progress database is ready to be populated by an extractor.
[*extract_log*] dbpath : E:\codeql\extractor-java\springmvcdemo
[*extract_log*] has start generate_javacargs
17
[*extract_log*] has start generate_trap
[*extract_log*] has start finalize
No source code was seen and extracted to E:\codeql\extractor-java\springmvcdemo.
This can occur if the specified build commands failed to compile or process any code.
 - Confirm that there is some source code for the specified language in the project.
 - For codebases written in Go, JavaScript, TypeScript, and Python, do not specify 
   an explicit --command.
 - For other languages, the --command must specify a "clean" build which compiles 
   all the source code files without reusing existing build artefacts.

附件

E:/codeql/CodeQLpy/out/decode/classes 的反编译源码
classes.zip

项目目录
springmvc_demo.zip

运行命令 "C:\Program Files\Python310\python.exe" E:/codeql/extractor-java/run.py springmvcdemo E:/codeql/CodeQLpy/out/decode/classes -ld E:\codeql\StudyCodeQLpy\springmvc_demo