Giter VIP home page Giter VIP logo

extractor-java's People

Contributors

waderwu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

extractor-java's Issues

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

报错, 应该是在 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

执行 ["codeql", "database", "finalize", self.dbpath] 报错无 build commands

[root@192 extractor-java]# codeql database finalize databaseapth
CodeQL detected code written in Java but could not process any of it. 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.
    [

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.