3

升级到 OLE 1.5.2.1 后,当我尝试通过批处理上传本地 MARC .mrc 文件时,我收到以下错误:

Batch process Failed for profile :: Test_Bib_Import

相同的文件在 OLE 1.5.0-M2 中运行良好

Catalina.out 包含以下错误:

[INFO] org.kuali.ole.batch.impl.OLEBatchProcessAdhocStep - Executing Batch process type :: Bib Import
[ERROR] org.kuali.ole.batch.ingest.BatchProcessBibImport - java.lang.NullPointerException
[ERROR] org.kuali.ole.batch.helper.OLEBatchProcessDataHelper - Error while performing batch process for profile :: Test_Bib_Import
java.lang.RuntimeException: java.lang.NullPointerException
    at org.kuali.ole.batch.ingest.BatchProcessBibImport.processBatch(BatchProcessBibImport.java:90)
    at org.kuali.ole.batch.impl.AbstractBatchProcess.process(AbstractBatchProcess.java:87)
    at org.kuali.ole.batch.impl.OLEBatchProcessAdhocStep.executeBatch(OLEBatchProcessAdhocStep.java:50)
    at org.kuali.ole.batch.impl.OLEBatchProcessAdhocStep.execute(OLEBatchProcessAdhocStep.java:30)
    at org.kuali.ole.sys.batch.Job.runStep(Job.java:175)
    at org.kuali.ole.sys.batch.Job.execute(Job.java:121)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: java.lang.NullPointerException
    at org.kuali.ole.batch.helper.BatchBibImportHelper.processBibMarcRecord(BatchBibImportHelper.java:89)
    at org.kuali.ole.batch.helper.BatchBibImportHelper.processBatch(BatchBibImportHelper.java:70)
    at org.kuali.ole.batch.ingest.BatchProcessBibImport.processBatch(BatchProcessBibImport.java:152)
    at org.kuali.ole.batch.ingest.BatchProcessBibImport.processBatch(BatchProcessBibImport.java:83)
    ... 7 more
[ERROR] org.kuali.ole.batch.impl.OLEBatchProcessAdhocStep - Error while running Batch Process Step::OLEBatchProcessAdhocStep
java.lang.Exception: Batch process Failed
    at org.kuali.ole.batch.impl.AbstractBatchProcess.process(AbstractBatchProcess.java:123)
    at org.kuali.ole.batch.impl.OLEBatchProcessAdhocStep.executeBatch(OLEBatchProcessAdhocStep.java:50)
    at org.kuali.ole.batch.impl.OLEBatchProcessAdhocStep.execute(OLEBatchProcessAdhocStep.java:30)
    at org.kuali.ole.sys.batch.Job.runStep(Job.java:175)
    at org.kuali.ole.sys.batch.Job.execute(Job.java:121)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
    at org.kuali.ole.batch.ingest.BatchProcessBibImport.processBatch(BatchProcessBibImport.java:90)
    at org.kuali.ole.batch.impl.AbstractBatchProcess.process(AbstractBatchProcess.java:87)
    ... 6 more
Caused by: java.lang.NullPointerException
    at org.kuali.ole.batch.helper.BatchBibImportHelper.processBibMarcRecord(BatchBibImportHelper.java:89)
    at org.kuali.ole.batch.helper.BatchBibImportHelper.processBatch(BatchBibImportHelper.java:70)
    at org.kuali.ole.batch.ingest.BatchProcessBibImport.processBatch(BatchProcessBibImport.java:152)
    at org.kuali.ole.batch.ingest.BatchProcessBibImport.processBatch(BatchProcessBibImport.java:83)
    ... 7 more
4

2 回答 2

3

该错误来自的行表明您正在使用的批处理配置文件尚未在数据库中正确设置(具体来说,它找不到匹配的配置文件)。一个明确的指标是catalina.out涉及类中的getMatchingProfileObj方法的堆栈跟踪输出org.kuali.ole.batch.bo.OLEBatchProcessProfileBo

如果您在现有数据库之上迁移应用程序代码而没有正确完全迁移该数据库中的数据,则可能会导致此问题。鉴于您的问题说明您之前使用了 1.5.0-M2,这是一个预发布里程碑,您最好在使用新版本的 OLE 代码库运行批处理之前重新初始化数据库并重新加载数据。

如果您已经这样做了,那么这可能是错误报告的素材。

于 2014-08-28T19:42:32.760 回答
2

请注意,1.5.2 中配置文件的匹配/覆盖部分有很多更改。您可能想查看它的设置方式并确保选择适用。为馆藏和物品添加了匹配和叠加,并且正在测试中,这使得可能的选择更加复杂。您可以尝试将其设置为不匹配,只需添加围兜,看看是否有效。只要您的文件是 utf8,而不是 MARC8 编码,就应该 dload

于 2014-08-28T13:13:44.273 回答