尝试下载文档可能会失败,并显示 NullPointerException
您可能会看到类似于以下示例的堆栈:
[1/21/20 14:33:39:505 CST] 0000066c wle E CWLLG2229E: An exception occurred in an EJB
call. Error: nulljava.lang.NullPointerException at
com.lombardisoftware.server.ejb.api.BPDInstanceDocumentAPICore$6.setValues(BPDInstanceDocumentAPICore.java:966)
at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:914) at
org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:909) at
org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:644) at
org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:909) at
org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:970) at
com.lombardisoftware.utility.db.spring.BPMJdbcTemplate.update(BPMJdbcTemplate.java:851) at
com.lombardisoftware.server.ejb.api.BPDInstanceDocumentAPICore.insertDocument(BPDInstanceDocumentAPICore.java:947)
at
com.lombardisoftware.server.ejb.api.BPDInstanceDocumentAPICore.createDocumentInDB(BPDInstanceDocumentAPICore.java:365)
at
com.lombardisoftware.server.ejb.api.BPDInstanceDocumentAPICore.createDocument(BPDInstanceDocumentAPICore.java:343)
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
原因
您收到此错误,因为文档当前存储在较旧的表中,因此 Business Automation Workflow 会尝试将文档存储在这些较旧的表中。
解决问题
运行 startDocumentStoreMigration 命令。 有关详细信息,请参阅 startDocumentStoreMigration 命令。 迁移文档附件后,将不再发生此错误。
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-01-20 10:38