Category : java

snippet from pom.xml: <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <image>vasanth0202/microservice-${project.artifactId}:${project.version}</image> <pullPolicy>IF_NOT_PRESENT</pullPolicy> </configuration> </plugin> </plugins> </build> Getting this error while building this in eclipse, Run As-> Maven build -> Goals (spring-boot:build-image -DskipTests) -> Run [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.5.2:build-image (default-cli) on project currency-exchange-service: Unable to parse configuration of mojo org.springframework.boot:spring-boot-maven-plugin:2.5.2:build-image for parameter image: Cannot find ..

Read more

I am using cosmos DB emulator docker on linux. Java Application can access it when cosmos emulator and application is on same machine(localhost), but application can not access the cosmos emulator when it is on different machine(accessing via hostname or IP) because emulator issue a self signed certificate only for CN=localhost, java application fail to ..

Read more

I have simple java application running a RMI registry on port 3456, It is only a registry during the startup it does not exposes any service. Instead I have a client which basically gets the registry and bind the service on the fly. However I am getting error java.rmi.ServerException: RemoteException occurred in server thread; nested ..

Read more

I just can’t find the correct information on the web. I plan to run sqlite with Docker so that the information can be persisted to a local volume. My Dockerfile is FROM alpine:3.14 RUN apk add –update sqlite RUN mkdir /db WORKDIR /db ENTRYPOINT ["sqlite3"] CMD ["mydb.db"] docker run -p 5000:5000 -v ./data:/db my-sqlite mydb.db ..

Read more

It seems that no matter what I try, running java -XshowSettings:vm -version on my container yields the same output VM settings: Max. Heap Size (Estimated): 494.94M Using VM: OpenJDK 64-Bit Server VM openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment 18.9 (build 11.0.11+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.11+9, mixed mode, sharing) I can’t figure ..

Read more

I’m running a spring boot application in the background as an API server, but I cannot access it from localhost:7000. INFO 1 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 7000 (http) with context path ” INFO 1 — [ main] c.e.farmfresh.FarmfreshApplication : Started FarmfreshApplication in 8.281 seconds (JVM running for 9.021) Here is ..

Read more