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

Threw error when run on spring-boot #1

Open
thisrabbit opened this issue Apr 16, 2022 · 3 comments
Open

Threw error when run on spring-boot #1

thisrabbit opened this issue Apr 16, 2022 · 3 comments

Comments

@thisrabbit
Copy link
Contributor

Exception in thread "main" java.lang.NullPointerException
        at visitor.ProcessEntity.processType(ProcessEntity.java:192)
        at visitor.EntityVisitor.visit(EntityVisitor.java:142)
        at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:482)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3129)
        at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:3200)
        at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:258)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3129)
        at client.IdentifyEntities.run(IdentifyEntities.java:101)
        at client.TemplateWork.workflow(TemplateWork.java:48)
        at client.Main.main(Main.java:24)
@thisrabbit thisrabbit changed the title Thrww error when run on spring-boot Threw error when run on spring-boot Apr 16, 2022
@Lynn-Dai
Copy link
Collaborator

Please provide the source file or the source GitHub project.

@Lynn-Dai
Copy link
Collaborator

@thisrabbit

@thisrabbit
Copy link
Contributor Author

The project is spring-boot@21eab01.

The exact file cannot be determined, but the last succeed file is

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-r2dbc-flyway/src/main/java/smoketest/data/r2dbc/CityRepository.java

and based on alphabetic order, I assume it's

spring-boot-tests\spring-boot-smoke-tests\spring-boot-smoke-test-data-r2dbc-flyway\src\main\java\smoketest\data\r2dbc\SampleR2dbcFlywayApplication.java

that raised this error.

The whole error message is:

Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.eclipse.jdt.core.dom.ITypeBinding.getQualifiedName()" because the return value of "org.eclipse.jdt.core.dom.Type.resolveBinding()" is null
        at visitor.ProcessEntity.processType(ProcessEntity.java:192)
        at visitor.EntityVisitor.visit(EntityVisitor.java:142)
        at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:482)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3129)
        at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:3200)
        at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:258)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3129)
        at client.IdentifyEntities.run(IdentifyEntities.java:101)
        at client.TemplateWork.workflow(TemplateWork.java:48)
        at client.Main.main(Main.java:24)

Hope there infos may help.

thisrabbit added a commit that referenced this issue May 5, 2022
thisrabbit added a commit that referenced this issue May 5, 2022
Merge pull request #1 from xjtucoderesearch/main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants