CAST Console - Application Onboarding/Delivery - Add Version - Import Configuration - Fatal error - java.lang.IllegalArgumentException: The given id must not be null

This page will help you solve problems related to the error  java.lang.IllegalArgumentException: The given id must not be null  which may occur during Set as current version step.

 

 

AIP Platform

Yes/No

CAST AIP 8.3 (tick) 

 

AIP Console Version Yes/No
AIP Console 1.8.x  or greater (tick)

 

Scenario

  1. Add New version from AIP Console
  2. Select the source zip
  3. Add necessary exclusions. 
  4. Run the Add version task.
  5. Fails with error during the Set as current version Step.

           

02:19:14.152 [getMultipleThreadsTaskExecutor-1] INFO  com.castsoftware.aip.node.jobs.steps.analysis.SetAsCurrentVersionStep - Updating the analysis report
02:19:14.171 [getMultipleThreadsTaskExecutor-1] ERROR com.castsoftware.aip.node.jobs.ApplicationJob - Encountered fatal error executing job
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) ~[spring-orm-5.3.9.jar!/:5.3.9]
	at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:235) ~[spring-orm-5.3.9.jar!/:5.3.9]
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:551) ~[spring-orm-5.3.9.jar!/:5.3.9]
	at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61) ~[spring-tx-5.3.9.jar!/:5.3.9]
	at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242) ~[spring-tx-5.3.9.jar!/:5.3.9]
	at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:152) ~[spring-tx-5.3.9.jar!/:5.3.9]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.9.jar!/:5.3.9]
	at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:174) ~[spring-data-jpa-2.4.12.jar!/:2.4.12]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.9.jar!/:5.3.9]
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) ~[spring-aop-5.3.9.jar!/:5.3.9]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.9.jar!/:5.3.9]
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215) ~[spring-aop-5.3.9.jar!/:5.3.9]
	at com.sun.proxy.$Proxy201.findById(Unknown Source) ~[?:?]
	at com.castsoftware.aip.node.services.overview.VersionOverviewServiceImpl.getVersion(VersionOverviewServiceImpl.java:51) ~[aip-node-services-1.28.5.jar!/:1.28.5]
	at com.castsoftware.aip.node.services.reports.AnalysisReportServiceImpl.getPreviousPath(AnalysisReportServiceImpl.java:299) ~[aip-node-services-1.28.5.jar!/:1.28.5]
	at com.castsoftware.aip.node.services.reports.AnalysisReportServiceImpl.getDeployPaths(AnalysisReportServiceImpl.java:257) ~[aip-node-services-1.28.5.jar!/:1.28.5]
	at com.castsoftware.aip.node.services.reports.AnalysisReportServiceImpl.updateAnalysisReportWithProcessed(AnalysisReportServiceImpl.java:204) ~[aip-node-services-1.28.5.jar!/:1.28.5]
	at com.castsoftware.aip.node.jobs.steps.analysis.SetAsCurrentVersionStep.execute(SetAsCurrentVersionStep.java:162) ~[aip-node-services-1.28.5.jar!/:1.28.5]
	at com.castsoftware.aip.node.jobs.ApplicationJob.doExecute(ApplicationJob.java:182) ~[aip-node-services-1.28.5.jar!/:1.28.5]
	at com.castsoftware.aip.node.jobs.ApplicationJob.execute(ApplicationJob.java:116) [aip-node-services-1.28.5.jar!/:1.28.5]
	at com.castsoftware.aip.node.jobs.JobThread.run(JobThread.java:41) [aip-node-services-1.28.5.jar!/:1.28.5]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_321]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_321]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_321]
Caused by: java.lang.IllegalArgumentException: The given id must not be null!
	at org.springframework.util.Assert.notNull(Assert.java:201) ~[spring-core-5.3.9.jar!/:5.3.9]
	at org.springframework.data.jpa.repository.support.SimpleJpaRepository.findById(SimpleJpaRepository.java:269) ~[spring-data-jpa-2.4.12.jar!/:2.4.12]
	at sun.reflect.GeneratedMethodAccessor295.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_321]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_321]
	at org.springframework.data.repository.core.support.RepositoryMethodInvoker$RepositoryFragmentMethodInvoker.lambda$new$0(RepositoryMethodInvoker.java:289) ~[spring-data-commons-2.4.12.jar!/:2.4.12]
	at org.springframework.data.repository.core.support.RepositoryMethodInvoker.doInvoke(RepositoryMethodInvoker.java:137) ~[spring-data-commons-2.4.12.jar!/:2.4.12]
	at org.springframework.data.repository.core.support.RepositoryMethodInvoker.invoke(RepositoryMethodInvoker.java:121) ~[spring-data-commons-2.4.12.jar!/:2.4.12]
	at org.springframework.data.repository.core.support.RepositoryComposition$RepositoryFragments.invoke(RepositoryComposition.java:524) ~[spring-data-commons-2.4.12.jar!/:2.4.12]
	at org.springframework.data.repository.core.support.RepositoryComposition.invoke(RepositoryComposition.java:285) ~[spring-data-commons-2.4.12.jar!/:2.4.12]
	at org.springframework.data.repository.core.support.RepositoryFactorySupport$ImplementationMethodExecutionInterceptor.invoke(RepositoryFactorySupport.java:531) ~[spring-data-commons-2.4.12.jar!/:2.4.12]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.9.jar!/:5.3.9]
	at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.doInvoke(QueryExecutorMethodInterceptor.java:156) ~[spring-data-commons-2.4.12.jar!/:2.4.12]
	at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.invoke(QueryExecutorMethodInterceptor.java:131) ~[spring-data-commons-2.4.12.jar!/:2.4.12]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.9.jar!/:5.3.9]
	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) ~[spring-tx-5.3.9.jar!/:5.3.9]
	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388) ~[spring-tx-5.3.9.jar!/:5.3.9]
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) ~[spring-tx-5.3.9.jar!/:5.3.9]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.9.jar!/:5.3.9]
	at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:137) ~[spring-tx-5.3.9.jar!/:5.3.9]
	... 18 more

 

Action Plan

  1. Check if there is a discrepancy in the application name in the deploy folder and the AIP Console GUI. The root cause of the issue is that there was a discrepancy in the application name in the deploy folder and the AIP Console GUI. You need to make sure the application name is consistent in the deploy path and the AIP Console GUI. 
  2. If the problem you are facing does not match any case listed on this page, report your problem to CAST Technical Support and provide the below Relevant input for CAST Technical Support to reproduce the issue. 

 

 

Have more questions? Submit a request

Comments

Powered by Zendesk