Category : intellij-idea

I’m using "generator-jhipster": "7.0.1", I’ve achieved debug my current monolithic app generated by Jhipster with docker. I added this line on appp.yml and run the docker-compose (of course I’d created the docker image following the documentation https://www.jhipster.tech/docker-compose/) environment: JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 After that, I created a Remote JVM Debug on IntelliJ (https://medium.com/@maheshmnair/java-remote-debugging-f1730664ab89) So far, all works well, ..

Read more

I am trying to connect to a Docker PostgreSQL database from IntelliJ. application.properties spring.datasource.url=jdbc:postgresql://localhost:5432/student_application spring.datasource.username=*** spring.datasource.password=*** spring.jpa.hibernate.ddl-auto=create-drop spring.jpa.show-sql=true spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect spring.jpa.properties.hibernate.format_sql=true I am able to connect to docker psql via: docker run -it –rm –network=db postgres:alpine psql -h db -U postgres I have already created the database and can see it with the l command. So ..

Read more

I have the following docker-compose.yaml file: version: ‘3.8’ services: db: image: mysql:5.7 container_name: flutter-academy-mysql environment: MYSQL_ROOT_PASSWORD: HeiL0ier MYSQL_DATABASE: course volumes: – ~/dockerdata/flutter-academy:/var/lib/mysql ports: – 3306:3306 When I run the command docker-compose up I get the following output: Creating network "advanced_default" with the default driver Creating flutter-academy-mysql … done Attaching to flutter-academy-mysql flutter-academy-mysql | 2021-03-28 21:33:07+00:00 ..

Read more

I’m trying to debug my remote application in Docker using Intellij and spring dev tools, but I have this exception: Exception in thread "File Watcher" java.lang.IllegalStateException: Unexpected 500 INTERNAL_SERVER_ERROR response uploading class files at org.springframework.util.Assert.state(Assert.java:94) at org.springframework.boot.devtools.remote.client.ClassPathChangeUploader.performUpload(ClassPathChangeUploader.java:111) at org.springframework.boot.devtools.remote.client.ClassPathChangeUploader.onApplicationEvent(ClassPathChangeUploader.java:93) at org.springframework.boot.devtools.remote.client.ClassPathChangeUploader.onApplicationEvent(ClassPathChangeUploader.java:58) at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359) at org.springframework.boot.devtools.classpath.ClassPathFileChangeListener.publishEvent(ClassPathFileChangeListener.java:67) at org.springframework.boot.devtools.classpath.ClassPathFileChangeListener.onChange(ClassPathFileChangeListener.java:63) ..

Read more

I am working on a application where I am running multiple containers using docker-compose.yml. All the containers are successfully up. One of the container is having a cron file with the following contents: * * * * * sshpass -p root ssh -o StrictHostKeyChecking=no [email protected]"./script.sh" > /proc/1/fd/1 2> /proc/1/fd/2 whenever this cron job is trying ..

Read more