Uploaded image for project: 'YesCart'
  1. YesCart
  2. YC-319

Multilevel category import fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: manager server
    • Labels:
      None

      Description

      additional info Failed to process property name parentId type long object is org.yes.cart.domain.entity.impl.CategoryEntity0 caused by column parentId with value long
      object is org.yes.cart.domain.entity.impl.CategoryEntity0
      master object is null
      java.lang.Exception: Failed to process property name parentId type long object is org.yes.cart.domain.entity.impl.CategoryEntity0 caused by column parentId with value long
      at org.yes.cart.bulkimport.csv.impl.CsvBulkImportServiceImpl.fillEntityForeignKeys(CsvBulkImportServiceImpl.java:449)
      at org.yes.cart.bulkimport.csv.impl.CsvBulkImportServiceImpl.doImport(CsvBulkImportServiceImpl.java:269)
      at org.yes.cart.bulkimport.csv.impl.CsvBulkImportServiceImpl.doImport(CsvBulkImportServiceImpl.java:203)
      at org.yes.cart.bulkimport.csv.impl.CsvBulkImportServiceImpl.doImport(CsvBulkImportServiceImpl.java:165)
      at org.yes.cart.bulkimport.csv.impl.CsvBulkImportServiceImpl.doImport(CsvBulkImportServiceImpl.java:134)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy117.doImport(Unknown Source)
      at org.yes.cart.bulkimport.service.impl.ImportDirectorImplService.doDataImport(ImportDirectorImplService.java:235)
      at org.yes.cart.bulkimport.service.impl.ImportDirectorImplService.doImportInternal(ImportDirectorImplService.java:125)
      at org.yes.cart.bulkimport.service.impl.ImportDirectorImplService$2.run(ImportDirectorImplService.java:195)
      at org.yes.cart.service.async.SingletonJobRunner$1.run(SingletonJobRunner.java:82)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.IllegalArgumentException: Cannot get PK from object: 0
      at org.yes.cart.dao.impl.GenericDAOHibernateImpl.getEntityIdentifier(GenericDAOHibernateImpl.java:141)
      at org.yes.cart.bulkimport.csv.impl.CsvBulkImportServiceImpl.fillEntityForeignKeys(CsvBulkImportServiceImpl.java:435)
      ... 24 more

        Attachments

          Activity

            People

            • Assignee:
              denis.lozenko Denis Lozenko (Inactive)
              Reporter:
              denis.lozenko Denis Lozenko (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: