Monday, January 1, 2018

Problems Occured - With Solutions Used

  •  When :- Creating db connection 
    • Error got :- Mon Jan 01 16:39:51 IST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended.According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set.
      For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'.
      You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.    
    • Solution used :-    Connection myConnection  = DriverManager.getConnection(dbUrl+ "?useSSL=false", userName, password);    used instead  of    Connection myConnection  = DriverManager.getConnection(dbUrl, userName, password);
    • Help got from :- https://stackoverflow.com/questions/34189756/warning-about-ssl-connection-when-connecting-to-mysql-database
  • When :- Error while loading class org.springframework.http.server.reactive.ServletServerHttpRequest$RequestAsyncListener   Caused by: java.lang.NoClassDefFoundError:org/springframework/http/server/reactive/ServletServerHttpRequest$RequestBodyPublisher\
    • Solution used :-  Added following dependency 
    • <dependency>
    •    <groupId>org.reactivestreams</groupId>
         <artifactId>reactive-streams</artifactId>
         <version>1.0.1</version>
      </dependency>
  •   When :- Trying to run a .jar file 
  • Problem : - Unable  to  run  jar file 

No comments:

Post a Comment

The AI Driven Software Developer, Optimize Innovate Transform

  The AI-Driven Software Developer: Optimize, Innovate, Transform": AI Transformation in Software Development : Understand how AI is re...