question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not execute GrokAssembly Premature end of file

See original GitHub issue

Hi,

I’ve downloaded the latest version of Dependecy Check (3.3.1) and already tried also with one previous version (3.0.2) after tested with 3.3.1 and I’m getting the error related with GrokAssembly

Log: https://gist.github.com/razeitona/2b1d4d96d5f68b36756479d3e8aecd35

DEBUG - Initializing Assembly Analyzer
2018-08-28 10:07:55,534 org.owasp.dependencycheck.analyzer.AssemblyAnalyzer:223
DEBUG - Extracted GrokAssembly.exe to C:\Users\RICARD~1\AppData\Local\Temp\dctempaf03cfe4-0d44-4885-9f18-3d5515cb646a\GKA11409347276140118492.exe
2018-08-28 10:07:55,535 org.owasp.dependencycheck.analyzer.AssemblyAnalyzer:226
DEBUG - Extracted GrokAssembly.exe.config to C:\Users\RICARD~1\AppData\Local\Temp\dctempaf03cfe4-0d44-4885-9f18-3d5515cb646a\GKA11409347276140118492.exe.config
2018-08-28 10:07:55,676 org.owasp.dependencycheck.analyzer.AssemblyAnalyzer:273
WARN  - An error occurred with the .NET AssemblyAnalyzer;
this can be ignored unless you are scanning .NET DLLs. Please see the log for more details.
2018-08-28 10:07:55,678 org.owasp.dependencycheck.analyzer.AssemblyAnalyzer:275
DEBUG - Could not execute GrokAssembly Premature end of file.
2018-08-28 10:07:55,678 org.owasp.dependencycheck.Engine:819
ERROR - Exception occurred initializing Assembly Analyzer.
2018-08-28 10:07:55,682 org.owasp.dependencycheck.Engine:820
DEBUG - 
org.owasp.dependencycheck.exception.InitializationException: An error occurred with the .NET AssemblyAnalyzer
	at org.owasp.dependencycheck.analyzer.AssemblyAnalyzer.prepareFileTypeAnalyzer(AssemblyAnalyzer.java:277)
	at org.owasp.dependencycheck.analyzer.AbstractFileTypeAnalyzer.prepareAnalyzer(AbstractFileTypeAnalyzer.java:73)
	at org.owasp.dependencycheck.analyzer.AbstractAnalyzer.prepare(AbstractAnalyzer.java:108)
	at org.owasp.dependencycheck.Engine.initializeAnalyzer(Engine.java:817)
	at org.owasp.dependencycheck.Engine.analyzeDependencies(Engine.java:662)
	at org.owasp.dependencycheck.App.runScan(App.java:253)
	at org.owasp.dependencycheck.App.run(App.java:184)
	at org.owasp.dependencycheck.App.main(App.java:69)
Caused by: org.xml.sax.SAXParseException: Premature end of file.
	at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
	at java.xml/javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
	at org.owasp.dependencycheck.analyzer.AssemblyAnalyzer.prepareFileTypeAnalyzer(AssemblyAnalyzer.java:259)
	... 7 common frames omitted

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
stevehipwellcommented, Nov 5, 2019

It looks like DependencyCheck requires DotNet Core v2. I don’t think this is a bug but I do think that it should be made clearer. If you install the DotNet Core v2 run-time then the scanner should run successfully. I’ve tested this solution works in a DotNet Core v3 Docker image by installing the DotNet Core v2.2.7 run-time.

0reactions
stevehipwellcommented, Apr 2, 2020

Thanks @jeremylong I assume you specifically mean .NET Core v3.1 which is the current LTS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not execute GrokAssembly Premature end of file -
Hi,. I've downloaded the latest version of Dependecy Check (3.3.1) and already tried also with one previous version (3.0.2) after tested ...
Read more >
Why am I getting this error Premature end of file?
Document doc = builder.parse(instream);. The parsing will fail, because you have passed it an empty stream.
Read more >
Premature End Of File - SaxParseException — oracle-tech
Hello everyone, everytime i try to access an XML File i get the following error output: [Fatal Error] :-1: -1: Premature end of...
Read more >
org.owasp.dependencycheck.exception.InitializationException ...
"Unable to delete temporary file '%s'.", tempFileLocation.getAbsolutePath()); throw new InitializationException(msg); "Unable to create directory '%s'.
Read more >
Error: Premature end of file caused by content - JBoss.org
Given that the web services do not need this HTTP header (it's not present in the request most of the time), I am...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found