Skip to content
Advertisement

javax.net.ssl.SSLHandshakeException:PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:

My spring boot application communicate to a remote https url and it gives the above mentioned error while hitting a POST request. I went through multiple stackoverflow posts for the same topic. Installed/imported required certificates using keytool and restarted JVM. But that didn’t resolve my issue. The error message is the same, however the root cause is different here apart

Why in Android documentation Activity classes have static modifier

If we open android documentation we will see that Activity classes have static modifier: I’m used to declaring Activities without static modifier: What is the reason behind using static modifier in Activity class declaration? UPDATE: The static modifiers have been removed from the documentation. Answer It’s Documentation bug. Sadly, they are not rare. You’d normally only use the static modifier

Create schema if does not exist by using spring Jpa with hibernate

I’m working on spring boot 2 application and trying to establish connection with postgresql database with configuring hikari datasource and spring Jpa. I’m succeed in that and i’m using hibernate.hbm2ddl.auto as update so it is creating table if not exists, but only the problem is it is throwing an exception when schema does not exist Error I configured everything manually

How do I force a Spring Boot JVM into UTC time zone?

I saw Force Java timezone as GMT/UTC I tried mvn spring-boot:run -Dexec.args=”-Duser.timezone=GMT” mvn spring-boot:run -Dexec.args=”-Duser.timezone=UTC” user.timezone=UTC in config/application.properties user.timezone=GMT In the pom.xml: mvn spring-boot:run -Dspring-boot.run.jvmArguments=”-Duser.timezone=UTC” But it prints out sun.util.calendar.ZoneInfo[id=”America/New_York”,offset=-18000000,dstSavings=3600000,useDaylight=true,transitions=235,lastRule=java.util.SimpleTimeZone[id=America/New_York,offset=-18000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]] Spring Boot 1.5.19, Java 8 Answer Use spring-boot.run.jvmArguments property if you want to pass JVM options from Maven Spring Boot Plugin to forked Spring Boot application: This is be equivalent

Advertisement