Showing posts with label issues. Show all posts
Showing posts with label issues. Show all posts

How to solve getter setter not generating problem of Lombok in Spring Tool Suite

We use Lombok to avoid general coding as it already provides the boilercode for us at compile time like:
  • Getters
  • Setters
  • Equals Method
  • Hashcode Method etc.



However for every new installation of spring tool suite or sts, it doesn't generate code. This happens because we need to install Lombok in sts. To do that please follow below steps:

  • Open your maven repository
  • Locate the Lombok jar inside org
  • Run the jar available there.
  • A window will appear
  • Browse sts installation location folder
  • Click on install
  • Restart sts 
  • Update your project
Now you will be able to get the geeter or setter methods that you want to use with the object.


Solve Maven configuration Problem on the pom.xml file in eclipse

When we import an existing Maven project we see Eclipse error on pom.xml file with Maven Configuration Problem.


This is the issue of ide, to see the details of the bug, see:


Now this bug has been fixed by eclipse developers.

To solve this issue: 

Install the latest m2e connector in your eclipse.

Below is the link:


On eclise, go to help

Try check for updates. If it doesn't work then,

Go to help,
Then, Install new software
Enter url :

Click next as prompted

Accept agreement

That's it you will no longer see error.








How to solve refusing to merge unrelated histories



When we try to connect our local repo to existing remote repository we get this error

"refusing to merge unrelated histories"

To solve this issue run below command

git pull --allow-unrelated-histories


Now this issue will get fixed and you can continue working on git.


Solve "The link you followed has expired" Problem in Wordpress

We love wordpress, as it makes our live easier. But sometimes we face issues while setting up website. In this post I am going to talk about such error installing a new theme.

How problem generates:


When we try to install our theme via appearance -> themes -> add new, we get following message:
The link you followed has expired.



Cause of the problem:


Upload max size or maximum memory on our server are not well configured.


Solution of the problem:


We have to set Upload max size or maximum memory on our server as below:

memory_limit = 256
upload_max_size = 64M
post_max_size = 64M
upload_max_filesize = 64M
max_execution_time = 300
max_input_time = 1000

You can do that via contacting host company or you can do it yourselves by editing .htaccess file. Follow below steps to do that:


  • Access your WordPress installation.
  • In root directory, you will find your .htaccess file.
  • Edit it to add below lines at the end:


php_value memory_limit 256M
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 1000