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

Exception in thread #261

Closed
MaxYang1991 opened this issue Aug 4, 2017 · 11 comments
Closed

Exception in thread #261

MaxYang1991 opened this issue Aug 4, 2017 · 11 comments
Assignees
Labels

Comments

@MaxYang1991
Copy link

instrument web application in --local-storage file mode,throw "Exception in thread" when i execute jscover-filesystem.sh. Below is the response stacktrace


Exception in thread "pool-2-thread-220" java.lang.IllegalStateException
	at com.google.common.base.Preconditions.checkState(Preconditions.java:429)
	at com.google.javascript.jscomp.CodeGenerator.add(CodeGenerator.java:583)
	at com.google.javascript.jscomp.CodeGenerator.add(CodeGenerator.java:106)
	at com.google.javascript.jscomp.CodeGenerator.add(CodeGenerator.java:992)
	at com.google.javascript.jscomp.CodeGenerator.addExpr(CodeGenerator.java:1561)
	at com.google.javascript.jscomp.CodeGenerator.addStringKey(CodeGenerator.java:1636)
	at com.google.javascript.jscomp.CodeGenerator.add(CodeGenerator.java:960)
	at com.google.javascript.jscomp.CodeGenerator.add(CodeGenerator.java:106)
	at com.google.javascript.jscomp.CodeGenerator.add(CodeGenerator.java:992)
	at com.google.javascript.jscomp.CodeGenerator.addExpr(CodeGenerator.java:1561)
	at com.google.javascript.jscomp.CodeGenerator.addList(CodeGenerator.java:1605)
	at com.google.javascript.jscomp.CodeGenerator.addList(CodeGenerator.java:1593)
	at com.google.javascript.jscomp.CodeGenerator.add(CodeGenerator.java:821)
	at com.google.javascript.jscomp.CodeGenerator.addExpr(CodeGenerator.java:1561)
	at com.google.javascript.jscomp.CodeGenerator.add(CodeGenerator.java:149)
	at com.google.javascript.jscomp.CodeGenerator.add(CodeGenerator.java:934)
	at com.google.javascript.jscomp.CodeGenerator.add(CodeGenerator.java:638)
	at com.google.javascript.jscomp.CodeGenerator.add(CodeGenerator.java:106)
	at com.google.javascript.jscomp.CodePrinter.toSource(CodePrinter.java:875)
	at com.google.javascript.jscomp.CodePrinter.access$300(CodePrinter.java:42)
	at com.google.javascript.jscomp.CodePrinter$Builder.build(CodePrinter.java:821)
	at jscover.instrument.SourceProcessor.instrumentSource(SourceProcessor.java:475)
	at jscover.instrument.SourceProcessor.processSourceWithoutHeader(SourceProcessor.java:435)
	at jscover.instrument.SourceProcessor.processSource(SourceProcessor.java:423)
	at jscover.instrument.SourceProcessor.processSourceForFileSystem(SourceProcessor.java:415)
	at jscover.instrument.InstrumenterService.instrumentJSForFileSystem(InstrumenterService.java:381)
	at jscover.filesystem.FileSystemInstrumenter$3.run(FileSystemInstrumenter.java:425)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

I look forward to your early reply

@tntim96 tntim96 self-assigned this Aug 4, 2017
@tntim96 tntim96 added the bug label Aug 4, 2017
@tntim96
Copy link
Owner

tntim96 commented Aug 4, 2017

Can you provide the JavaScript snippet that causes this?

@MaxYang1991
Copy link
Author

just one js file,throw exception,and create fail in taget file
test.zip

@tntim96
Copy link
Owner

tntim96 commented Aug 4, 2017

Thanks for the report - looking into it now.

@tntim96
Copy link
Owner

tntim96 commented Aug 4, 2017

This doesn't look like valid JavaScript:

    mounted () {
        this.onReady();
    },

@MaxYang1991
Copy link
Author

this is vue.js component, writen with JavaScript es6 ,

@tntim96
Copy link
Owner

tntim96 commented Aug 4, 2017

Yep. Think that's fixed now. Can you build from source to test or use the latest 2.0.2-SNAPSHOT?

@MaxYang1991
Copy link
Author

Thanks a lot,but sorry for that i do not konw how to build from source to test =. =

@tntim96
Copy link
Owner

tntim96 commented Aug 4, 2017

I've uploaded to http://jscover.sourceforge.net/latest/JSCover-all.jar. Let me know how that goes.

@tntim96
Copy link
Owner

tntim96 commented Aug 5, 2017

I've released a fix. Let me know if there are any problems.

@tntim96 tntim96 closed this as completed Aug 5, 2017
@MaxYang1991
Copy link
Author

Next monday i'll test it,thanks,have a good weekend

@MaxYang1991
Copy link
Author

Test OK ,Thanks

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