Wednesday, November 2, 2016

Kernel panic after ubuntu update

I recently did ubuntu update and then after reboot i got following screen related to kernel panic. The problem for me was that my /boot ran out of space.



Solution:

Restart your machine and go to grub loader
Select "Advanced options for Ubuntu"

Then you will be listed with list of kernels, select one of them and press enter [at least one of them should allow to you boot and login  into your ubuntu machine]

Then go to terminal and run:
 aptitude search ~ilinux-image
this should list all the kernel images u have in /boot

run
uname -a

to get ur current running kernel

run
sudo apt-get <image name>
for example: sudo apt-get autoremove linux-image-4.4.0-45-generic
to remove the image that you dont need

Saturday, June 11, 2016

Ambigious mapping

Scenario:  

Need to add a spring mvc project as dependency (scope test) to other spring mvc project.

Problem: 

Ambiguous mapping. Cannot map 'xyzController' method 

Reason: 

Both projects had web controller with request mapping annotation only at method level. As the rest of it when spring tries to map / , we have ambibious maping scenario where both the controllers quality for the mapping and this result in the exception.

Solution: 

Add Requestmapping annotation at the both controller (or one of them) so that spring can map urls distinctly