Skip to content

added dependency #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

namakamru-git
Copy link

No description provided.

@swathisprasad
Copy link
Owner

Hi,
Why do we need this dependency?

@namakamru-git
Copy link
Author

namakamru-git commented Sep 18, 2019 via email

@swathisprasad
Copy link
Owner

swathisprasad commented Sep 18, 2019

@Kamruddin-git,

What is the Java version do you have? Even if it is Java 8, it should not give this problem.

P.S: I ran this project with Java 12.

Regards,
Swathi

@namakamru-git
Copy link
Author

I have worked with Java 8.

@swathisprasad
Copy link
Owner

I have worked with Java 8.

Can you provide the error log?

We don't need to add this dependency in POM.

@namakamru-git
Copy link
Author

please refer the exception details

java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: antlr/RecognitionException at org.springframework.aop.interceptor.AsyncExecutionAspectSupport.lambda$doSubmit$3(AsyncExecutionAspectSupport.java:279) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590) ~[na:1.8.0_73]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_73]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_73]
at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_73]
Caused by: java.lang.NoClassDefFoundError: antlr/RecognitionException

@swathisprasad
Copy link
Owner

@Kamruddin-git,
Do you have this dependency in your POM? If you have this, it should automatically download antlr dependency as well. Antlr is a transitive dependency, so it is not necessary to include it explicitly.

spring-boot-starter-data-jpa

Are you using Spring Boot and what version is it?
Do you use eclipse?

Regards,
Swathi

@namakamru-git
Copy link
Author

@swathisprasad

Please refer the below dependency for your reference. Am working with eclipse and STS

  	<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>2.1.8.RELEASE</version>
	<relativePath />
</parent>

<dependencies>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-web</artifactId>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-data-jpa</artifactId>
	</dependency>
	<dependency>
		<groupId>com.h2database</groupId>
		<artifactId>h2</artifactId>
		<scope>runtime</scope>
	</dependency>
	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-api</artifactId>
	</dependency>
	<dependency>
		<groupId>org.projectlombok</groupId>
		<artifactId>lombok</artifactId>
		<version>1.18.10</version>
		<optional>true</optional>
	</dependency>
	
</dependencies>

@swathisprasad , do you have any sping security examples then please share it.

Thanks
Kamruddin

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

Successfully merging this pull request may close these issues.

2 participants