Friday, May 4, 2018

Upgrade to angular 6

How to upgrade/update to angular 6 ? By using the angular cli we can upgrade to angular 6, below are the steps to upgrade Update the NodeJS version to 8.9+ Update Angular cli to latest version npm uninstall -g @angular/cli npm cache verify npm cache clean npm install -g @angular/cli@next npm...

Monday, April 16, 2018

MongoDB – Allow remote access

By default, MongoDB doesn’t allow remote connections. to enable the remote access bind the ip address of the machine in mongod.conf. in linux /etc/mongod.conf # network interfaces net: port: 27017 bindIp: ip-address of the machine // by default it will be 127.0.0.1 ...

Wednesday, February 14, 2018

How to make @requestparam optional in spring

Question: Make spring endpoint with optional request parameters Solution: To make the request parameter optional on the spring controller, user JAVA 8 feature Option type or set required attribute to false. public void count(@RequestParam(name="name") Optional name){ if (name.isPresent()) { ...

Sunday, February 11, 2018

@angular/platform-browser/src/browser/transfer_state.d.ts (34,40): ',' expected.

Error: `ERROR in [at-loader] ./node_modules/@angular/platform-browser/src/browser/transfer_state.d.ts:34:40 TS1005: ',' expected. ERROR in [at-loader] ./node_modules/@angular/platform-browser/src/browser/transfer_state.d.ts:34:42 TS1139: Type parameter declaration expected. ERROR in [at-loader]...

Monday, February 5, 2018

Friday, January 19, 2018

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

Issue: Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain. Bitbucket pipeline or Jenkins console output, the build is failed – “Could not find org.gradle.wrapper.GradleWrapperMain” Solution: This error will be thrown when gradlew build unable to find the gradle folder...

Friday, September 1, 2017

Sunday, August 20, 2017

Wednesday, January 13, 2016

Sunday, December 27, 2015

Monday, May 11, 2015

ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 0 time(s); retry policy is

15/05/08 01:26:12 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) ... Bad connection to FS. command aborted. exception: Call to localhost/127.0.0.1:9000 failed on...

Saturday, May 9, 2015

Install Ubuntu Linux on Virtual Box

It is always good to have virtual box with our required OS installed, If u have windows box and want to learn hadoop, its good to have virtual box with ubuntu to learn. Prerequisites : 1. Download...

Tuesday, April 28, 2015

web service client JAXWS by maven

Generate web service client stub class by using the JAXWS maven plugin. "jaxws-maven-plugin" will generate the web service stub classes by using that we can implement client or test the web service. generated stub classes will stored under src folder and by using this service classes we can communicate...

Tuesday, April 14, 2015

Wednesday, April 8, 2015

get byte or memory size of array,list,collections in java

In java lot of time we will come across the scenerio where in which we need to find the how much memory used by given list. The ArrayList holds a pointer to a single Object array, which grows as the number of elements exceed the size of the array. The ArrayList's underlying Object array grows by about...