LIBCAS / DL4DH-Kramerius-plus

DL4DH Kramerius +
0 stars 1 forks source link

Neúspěšný export do formátu CSV a TSV #17

Open daliboris opened 2 years ago

daliboris commented 2 years ago

Postup

Výsledek

v obou případech EXPORTING_STEP FAILED

Poznámka

Export do formátu JSON se stejnými parametry includeFields proběhl bez chyb.

Chyba

V obou případech (CSV i TSV) identická.


java.lang.NullPointerException at
cz.inqool.dl4dh.krameriusplus.core.system.export.exporter.SvExporter.lambda$generateCSVPage$1(SvExporter.java:185) at
java.base/java.util.ArrayList.forEach(ArrayList.java:1540) at
cz.inqool.dl4dh.krameriusplus.core.system.export.exporter.SvExporter.generateCSVPage(SvExporter.java:184) at
cz.inqool.dl4dh.krameriusplus.core.system.export.exporter.SvExporter.export(SvExporter.java:63) at
cz.inqool.dl4dh.krameriusplus.core.system.export.ExporterService.export(ExporterService.java:50) at
cz.inqool.dl4dh.krameriusplus.core.system.export.ExporterService$$FastClassBySpringCGLIB$$1489bb8c.invoke(<generated>) at
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783) at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753) at
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) at
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388) at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753) at
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698) at
cz.inqool.dl4dh.krameriusplus.core.system.export.ExporterService$$EnhancerBySpringCGLIB$$60d67f1c.export(<generated>) at
cz.inqool.dl4dh.krameriusplus.core.job.export.ExportingJobConfig.lambda$exportingTasklet$0(ExportingJobConfig.java:59) at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at
java.base/java.lang.reflect.Method.invoke(Method.java:566) at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) at
org.springframework.aop.framework.ReflectiveMet
daliboris commented 1 year ago

Chyba přetrvává, tentokrát se děje v kroku ExportPagesCsvStep

org.springframework.dao.InvalidDataAccessApiUsageException: The given id must not be null!; nested exception is java.lang.IllegalArgumentException: The given id must not be null! at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:374) at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:235) 

Poznámka

Volání REST API s parametry

{
    "config": {
        "params": {
            "filters": [],
            "includeFields": [
                "title",
                "tokens.c"
            ]
        },
        "delimiter": "\t"
    },
    "publicationIds": [
        "uuid:0c94cf70-188a-11e4-8f64-005056827e52"
    ]
}