Showing posts with label Issues. Show all posts
Showing posts with label Issues. Show all posts

Wednesday, 14 March 2018

git: cannot open git-receive-pack

I was trying to import git repo in eclipse. it was imported successfully but when I tried to push changes to upstream, I found 'git: cannot open git-receive-pack' in eclipse. Then I realized, before few days, I had configured SSL cert private key in my eclipse, So to get rid off from this error, below steps I have followed.

If your git configured with SSL cert or it is outdated, We are getting such an error.
Solution:
Solution1 - From terminal - > git config http.sslVerify false
Solution2 - If you are using eclipse, then
  1. open preferences via application menu Window => Preferences (or on OSX Eclipse => Settings).
  2. Navigate to Team => Git => Configuration
  3. click Add entry..., then put http.sslVerify in the key box and false in the value box.


Its done!!!



Thursday, 28 December 2017

Eureka Dashboard seen as XML instead of expected UI

I had created eureka server springboot module. When I run it with Eclipse or gradle bootRun, eureka server was able to start. But, when I was hitting server and port of eureka server,i was getting response as XML as shown below:



SOLUTION:

I run the eureka server spring boot module by creating jar and running that jar. Now, I am able to see expected UI eureka dashboard.

Steps to run as jar:

sachin@sachin-E470:~/Microservices/Test/eureka-server-module$ gradlew assemble
No command 'gradlew' found, did you mean:
 Command 'gradle' from package 'gradle' (universe)
gradlew: command not found
sachin@sachin-E470:~/Microservices/Test/eureka-server-module$ gradle assemble
Starting a Gradle Daemon, 5 busy Daemons could not be reused, use --status for details
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:findMainClass
:jar
:bootRepackage
:assemble

BUILD SUCCESSFUL

Total time: 6.304 secs
sachin@sachin-E470:~/Microservices/Test/eureka-server-module$ cd build/libs/
sachin@sachin-E470:~/Microservices/Test/eureka-server-module/build/libs$ java -jar ./eureka-server-module-0.0.1-SNAPSHOT.jar 



Extract error records while inserting into db table using JDBCIO apache beam in java

 I was inserting data into postgres db using apache beam pipeline. it works perfectly with JdbcIO write of apache beam library. But, now, i ...