flowable / flowable/flowable-engine
java.io.NotSerializableException: org.activiti.bpmn.model.BpmnModel
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 7h 8m
- Merged PRs (30d)
- 2
Description
hi
I use redis store processDefinitionCache, My flowable.cfg.xml like this
``
**ShareniuDeploymentCache:**
Jedis jedis=new Jedis("127.0.0.1",6379);
public ProcessDefinitionCacheEntry get(String id) {
Object object = cache.get(id);
if (object !=null) {
jedis.set(id.getBytes(), ObjectToArrayUtils.toByteArray(object));
}
System.out.println(id);
return null;
}
``
error message:
java.io.NotSerializableException: org.activiti.bpmn.model.BpmnModel
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
at com.shareniu.shareniu_activiti6.ch2.ObjectToArrayUtils.toByteArray(ObjectToArrayUtils.java:17)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the processDefinitionCache configuration in flowable.cfg.xml and inspect ShareniuDeploymentCache.get(String id), especially the call to ObjectToArrayUtils.toByteArray at ObjectToArrayUtils.java:17. Reproduce the reported NotSerializableException and determine what cache behavior or serialization support is expected for BpmnModel; done means the cache operation no longer fails for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, redis
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100