'Caused by: org.postgresql.util.PSQLException: ERROR: could not form projection (LWPROJ) from 'srid=3857' to 'srid=3857'

I have Geo-Django application where data is stored in srid=3857, Here is my django model

class floodexp(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    image = models.ImageField(upload_to='flood_experience')
    exp_date = models.DateField(auto_now=False, auto_now_add=False)
    geometry = models.PointField(srid=3857)
    desc = models.TextField(null=True,blank=True)
    county = models.CharField( max_length=50)

when I published layer on geoserver, it is giving following error in WMS enter image description here

Although I'm able to output the data as geojson properly



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source