The error SQL: select * from ACT_GE_PROPERTY where NAME_ = ? Cause: java.lang.NullPointerException

Caused by: org.springframework.beans.factory.BeanCreationException: Could not au
towire field: private com.jeeplus.system.equips.service.lift.LiftAdminAuditServi
ce com.jeeplus.system.equips.service.lift.LiftService.liftAdminAuditService; nes
ted exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'liftAdminAuditService': Injection of autowired dependen
cies failed; nested exception is org.springframework.beans.factory.BeanCreationE
xception: Could not autowire field: org.activiti.engine.TaskService com.jeeplus.
system.equips.service.lift.LiftAdminAuditService.taskService; nested exception i
s org.springframework.beans.factory.BeanCreationException: Error creating bean w
ith name 'processEngine': FactoryBean threw exception on object creation; nested
exception is org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: java.lang.NullPointerException

The error may exist in org/activiti/db/mapping/entity/Property.xml

The error may involve org.activiti.engine.impl.persistence.entity.PropertyEn

tity.selectProperty

The error occurred while handling results

SQL: select * from ACT_GE_PROPERTY where NAME_ = ?

Cause: java.lang.NullPointerException

老是报这个错,怎么办哦?有人遇到过吗,求解。
对应的SQLserver表
图片说明

注意:其他同伴的电脑可以正常运行的

你的activiti版本和同伴的是一样的么?检查一下看看

SQL: select * from ACT_GE_PROPERTY where NAME_ = ?
Cause: java.lang.NullPointerException

这说明NAME_的值是null;
导致SQL执行时:SQL: select * from ACT_GE_PROPERTY where NAME_ =null
我猜测,有两个地方需要验证:
1.前端往后端传数据时,是否有值?
可通过alert(NAME_);验证
2.后端接收值时,有没有正确接收到
可通过System.out.println("NAME_" + NAME_);
看控制台输出的结果是什么

是不是你通过NAME_查询出来的结果是null,并没有找到对应的记录,而你又操作了这个结果。

Could not autowire field: private com.jeeplus.system.equips.service.lift.LiftAdminAuditServi
ce com.jeeplus.system.equips.service.lift.LiftService.liftAdminAuditService;

在liftAdminAuditService 上加个@Autowire

@Param("value") String value
加上这个 试试