java.lang.IllegalArgumentException

Can not set long field Employee.id to null value


Solutions on the web23753

Solution icon of github
Can not set boolean field com.github.dakusui.geophile.FunctionalitySpec.stableRecords to null value

Solution icon of hibernate
via Hibernate JIRA by Cary.Yu, 7 months ago
Can not set boolean field com.xxx.Event.forHubberOnly to null value

Solution icon of stackoverflow
Can not set int field com.example.Bean.page to null value

Solution icon of web
via registradores.org by Unknown author, 5 months ago
Can not set boolean field com.corpme.mercantil.saladefirmas.session.ListadoSalasAction.privado to null value

Solution icon of github
Can not set int field com.jmeter.protocol.soap.control.gui.AttachmentDefinition.type to null value

Solution icon of github
via GitHub by Abyss777
, 1 year ago
Can not set boolean field org.traccar.web.shared.model.User.readOnly to null value

Solution icon of stackoverflow
Can not set int field it.myCompany.myProject.anagrafiche.Twb1012Regione.codIst to null value

Solution icon of github
via GitHub by kdhrubo
, 4 months ago
Can not set double field com.effectiv.crm.domain.Opportunity.forecastAmount to null value

Stack trace

  • java.lang.IllegalArgumentException: Can not set long field Employee.id to null value at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167) at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171) at sun.reflect.UnsafeLongFieldAccessorImpl.set(UnsafeLongFieldAccessorImpl.java:80) at java.lang.reflect.Field.set(Field.java:764) at org.springframework.util.ReflectionUtils.setField(ReflectionUtils.java:122) at org.springframework.data.mapping.model.BeanWrapper.setProperty(BeanWrapper.java:59) at org.springframework.data.mapping.model.ConvertingPropertyAccessor.setProperty(ConvertingPropertyAccessor.java:58) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:265) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:232) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.readValue(MappingMongoConverter.java:1196) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.access$200(MappingMongoConverter.java:79)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

7 times, 7 months ago
Once, 3 weeks ago
6 times, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
5 times, 3 months ago
63 more bugmates