Skip to content

added dependency - #1

Open
namakamru-git wants to merge 1 commit into
swathisprasad:masterfrom
namakamru-git:patch-2
Open

added dependency#1
namakamru-git wants to merge 1 commit into
swathisprasad:masterfrom
namakamru-git:patch-2

Conversation

@namakamru-git

Copy link
Copy Markdown

No description provided.

@swathisprasad

Copy link
Copy Markdown
Owner

Hi,
Why do we need this dependency?

@namakamru-git

namakamru-git commented Sep 18, 2019 via email

Copy link
Copy Markdown
Author

@swathisprasad

swathisprasad commented Sep 18, 2019

Copy link
Copy Markdown
Owner

@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
Copy Markdown
Author

I have worked with Java 8.

@swathisprasad

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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