Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Driver throws exception when writing response #88

Open
smola opened this issue Oct 5, 2018 · 0 comments
Open

Driver throws exception when writing response #88

smola opened this issue Oct 5, 2018 · 0 comments
Assignees
Labels

Comments

@smola
Copy link
Member

smola commented Oct 5, 2018

on token \"<\", delete this token\nSyntax error on token \"<\", delete this token\nSyntax error on token(s), misplaced construct(s)\nSyntax error on tokens, delete these tokens\nSyntax error on token \"/\", delete this token\nSyntax error on token \"<\", @ expected\nSyntax error on token \"=\", ( expected\nSyntax error on tokens, Expression expected instead\nSyntax error on token \"/\", delete this token\nSyntax error on token \"<\", invalid Expression\nSyntax error on token \"<\", invalid Expression\nSyntax error on token \"<\", delete this token\nSyntax error on token \"<\", delete this token\nSyntax error on token(s), misplaced construct(s)\nSyntax error on tokens, delete these tokens\nSyntax error on token \"/\", delete this token\nSyntax error on token \"<\", @ expected\nSyntax error on token \"=\", <= expected\nSyntax error on token \"/\", delete this token\nSyntax error on token \"<\", invalid Expression\nSyntax error on token \"<\", invalid Expression\nSyntax error on token \"<\", invalid Expression\nSyntax error on token \"<\", invalid Expression\nSyntax error on token \"<\", delete this token\nSyntax error on token(s), misplaced construct(s)\nSyntax error on token(s), misplaced construct(s)\nSyntax error on tokens, delete these tokens\nSyntax error on token \"/\", delete this token\nSyntax error on token \"<\", @ expected\nSyntax error on token \"=\", <= expected\nSyntax error on token \"/\", delete this token\nSyntax error on token \"<\", invalid Expression\nSyntax error on token \"<\", delete this token\nSyntax error on token \"<\", delete this token\nSyntax error on token \"<\", delete this token\nSyntax error on token(s), misplaced construct(s)\nSyntax error on tokens, delete these tokens\nSyntax error on token \"/\", delete this token\nSyntax error on token \"<\", @ expected\nSyntax error on token \"=\", <= expected\nSyntax error on token \"/\", delete this token\nSyntax error on token \"<\", invalid Expression\nSyntax error on token \"<\", invalid Expression\nSyntax error on token \"<\", delete this token\nSyntax error on token \"<\", delete this token\nSyntax error on token(s), misplaced construct(s)\nSyntax error on token \"/\", delete this token\nSyntax error on token \"<\", @ expected\nSyntax error on token \"=\", <= expected\nSyntax error on token \"/\", delete this token\nSyntax error on token \"<\", invalid Expression\n"
bblfsh_1       | bblfsh.DriverException: exception writing response
bblfsh_1       |        at bblfsh.Driver.processOne(Driver.java:54)
bblfsh_1       |        at bblfsh.Driver.run(Driver.java:28)
bblfsh_1       |        at bblfsh.Main.main(Main.java:11)
bblfsh_1       | Caused by: com.fasterxml.jackson.databind.JsonMappingException: String index out of range: -17 (through reference chain: bblfsh.Response["ast"])
bblfsh_1       |        at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:388)
bblfsh_1       |        at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:348)
bblfsh_1       |        at com.fasterxml.jackson.databind.ser.std.StdSerializer.wrapAndThrow(StdSerializer.java:343)
bblfsh_1       |        at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:698)
bblfsh_1       |        at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:155)
bblfsh_1       |        at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:292)
bblfsh_1       |        at com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3681)
bblfsh_1       |        at com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:3014)
bblfsh_1       |        at bblfsh.ResponseWriter.write(ResponseWriter.java:43)
bblfsh_1       |        at bblfsh.Driver.processOne(Driver.java:52)
bblfsh_1       |        ... 2 more
bblfsh_1       | Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -17
bblfsh_1       |        at java.lang.String.substring(String.java:1931)
bblfsh_1       |        at bblfsh.CommentVisitor.visit(CommentVisitor.java:33)
bblfsh_1       |        at org.eclipse.jdt.core.dom.LineComment.accept0(LineComment.java:111)
bblfsh_1       |        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
bblfsh_1       |        at bblfsh.CompilationUnitSerializer.serializeAll(CompilationUnitSerializer.java:80)
bblfsh_1       |        at bblfsh.CompilationUnitSerializer.serialize(CompilationUnitSerializer.java:38)
bblfsh_1       |        at bblfsh.CompilationUnitSerializer.serialize(CompilationUnitSerializer.java:17)
bblfsh_1       |        at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:704)
bblfsh_1       |        at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:690)
bblfsh_1       |        ... 8 more

It's quite hard to detect the offending code, since this was from a big gitbase query run.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants