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.


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

uname -a

to get ur current running kernel

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


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


Ambiguous mapping. Cannot map 'xyzController' method 


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.


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