Closed ptokponnon closed 2 years ago
Here, I read that this is due to protobuf jar conflict, so I added the protobuf 's latest release in the pom.xml like this.
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.19.1</version>
</dependency>
And it works.
Glad you fixed. Not related to jhipster.
Overview of the issue
I am using google CPSat Solver Ortools in my Jhipster project. When I try to run with ./mvnw , I get a compilation error: Exception in thread "main" java.lang.NoSuchMethodError: com.google.protobuf.GeneratedMessageV3.isStringEmpty(Ljava/lang/Object;)Z Please, how to resolve it? Here is the output. $ ./mvnw
Motivation for or Use Case
It works fine in a simple spring boot project. I have already tested it.
Reproduce the error
$jhipster
Related issues
Suggest a Fix
JHipster Version(s)
JHipster configuration
Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
java version "11.0.13" 2021-10-19 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.13+10-LTS-370) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.13+10-LTS-370, mixed mode)
git version 2.17.1
node: v14.18.0
npm: 7.24.1
Docker version 20.10.12, build e91ed57
docker-compose version 1.29.2, build 5becea4c
No change to package.json was detected. No package manager install will be executed.
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
Ubuntu 18.04