Batch process Test_Bib_Import fails while installing OLE 1.5.2.1

After upgrading to OLE 1.5.2.1, when I try to load the local .mrc file of the MARC file through a batch process, I get the following error:

Batch process Failed for profile :: Test_Bib_Import

The same exact file worked fine in OLE 1.5.0-M2

Catalina.out contains the following error:

[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

      

+3


source to share


2 answers


The line that this error is coming from indicates that the batch profile you are using was not configured correctly in the database (in particular, it cannot find a matching profile). One of the defining indicators will be the output of the stack trace in catalina.out

using a method getMatchingProfileObj

in the class org.kuali.ole.batch.bo.OLEBatchProcessProfileBo

.

If you've migrated your application code over an existing database without completely correctly migrating the data in that database, this issue can occur. Considering that your question shows that you were using 1.5.0-M2 before, which is a preliminary step, you'd better re-initialize your database and reload your data before starting batch processes with the new version of the OLE codebase.



If you've already done this, then it might be forage for a bug report.

+3


source


Note that there have been many changes to the match / overlay part of the profiles in 1.5.2. You might want to see how it is configured and make sure they apply. Match and overlay have been added for holdings and items and are being tested, making the possible options more challenging. You could try setting it to nothing, just add a bib and see if that works. As long as your file is utf8 and not MARC8 encoding it shoul dload



+2


source







All Articles