Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Start workflow in liferay 7.2
Hi
I had a workflow module that was working properly on liferay 7.1
But now I created Workspace and Module in accordance with liferay 7.2
When I start workflow according to the code below
I have encountered the following exception!!!!!
I had a workflow module that was working properly on liferay 7.1
But now I created Workspace and Module in accordance with liferay 7.2
When I start workflow according to the code below
WorkflowHandlerRegistryUtil
.startWorkflowInstance( importation.getCompanyId(), importation.getGroupId(), importation.getUserId(), Importation.class.getName(),
importation.getPrimaryKey(), importation, serviceContext );
I have encountered the following exception!!!!!
2019-11-20 10:23:29.116 ERROR [liferay/kaleo_graph_walker-1][ParallelDestination:55] Unable to process message {destinationName=liferay/kaleo_graph_walker, response=null, responseDestinationName=null, responseId=null, payload=com.liferay.portal.workflow.kaleo.runtime.graph.PathElement@77510b26, values={defaultLocale=en_US, companyId=20101, groupId=0, principalName=35530, permissionChecker=com.liferay.portal.kernel.util.TransientValue@57d305ff, siteDefaultLocale=en_US, themeDisplayLocale=en_US}}
com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.NullPointerException
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:752)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at com.liferay.portal.workflow.kaleo.internal.search.spi.model.index.contributor.KaleoInstanceTokenModelDocumentContributor.getAssetEntry(KaleoInstanceTokenModelDocumentContributor.java:134)
at com.liferay.portal.workflow.kaleo.internal.search.spi.model.index.contributor.KaleoInstanceTokenModelDocumentContributor.contribute(KaleoInstanceTokenModelDocumentContributor.java:96)
at com.liferay.portal.workflow.kaleo.internal.search.spi.model.index.contributor.KaleoInstanceTokenModelDocumentContributor.contribute(KaleoInstanceTokenModelDocumentContributor.java:44)
at com.liferay.portal.search.internal.indexer.IndexerDocumentBuilderImpl.lambda$getDocument$1(IndexerDocumentBuilderImpl.java:57)
at java.lang.Iterable.forEach(Iterable.java:75)
at com.liferay.portal.search.internal.indexer.IndexerDocumentBuilderImpl.getDocument(IndexerDocumentBuilderImpl.java:55)
at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.reindex(IndexerWriterImpl.java:241)
at com.liferay.portal.search.internal.indexer.DefaultIndexer.reindex(DefaultIndexer.java:277)
at com.liferay.portal.search.internal.indexer.DefaultIndexer.reindex(DefaultIndexer.java:52)
at com.liferay.portal.search.IndexableAdvice.afterReturning(IndexableAdvice.java:130)
at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:67)
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
at com.sun.proxy.$Proxy1868.updateKaleoInstanceToken(Unknown Source)
at com.liferay.portal.workflow.kaleo.service.KaleoInstanceTokenLocalServiceUtil.updateKaleoInstanceToken(KaleoInstanceTokenLocalServiceUtil.java:410)
at com.liferay.portal.workflow.kaleo.model.impl.KaleoInstanceTokenImpl.setCurrentKaleoNode(KaleoInstanceTokenImpl.java:98)
at com.liferay.portal.workflow.kaleo.runtime.node.BaseNodeExecutor.enter(BaseNodeExecutor.java:49)
at com.liferay.portal.workflow.kaleo.runtime.internal.graph.DefaultGraphWalker.follow(DefaultGraphWalker.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:64)
at com.liferay.portal.spring.transaction.CounterTransactionExecutor._execute(CounterTransactionExecutor.java:96)
at com.liferay.portal.spring.transaction.CounterTransactionExecutor.execute(CounterTransactionExecutor.java:47)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:62)
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
at com.sun.proxy.$Proxy1884.follow(Unknown Source)
at com.liferay.portal.workflow.kaleo.runtime.internal.graph.messaging.PathElementMessageListener.doReceive(PathElementMessageListener.java:47)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
... 5 more
Hi
According to i downloaded Liferay 7.2 and created Liferay Workspace and modules accordance with liferay 7.2 , do I need a Liferay Upgrade Planner?
According to i downloaded Liferay 7.2 and created Liferay Workspace and modules accordance with liferay 7.2 , do I need a Liferay Upgrade Planner?
Hi Ali,
The upgrade planner will help you to migrate your old Liferay workspace and custom code in 7.1 to 7.2, if you need help on that, use it.
Cheers.
The upgrade planner will help you to migrate your old Liferay workspace and custom code in 7.1 to 7.2, if you need help on that, use it.
Cheers.
Hi Alberto
Can you answer my first question ?
Can you answer my first question ?
Could you try with the recently released Liferay 7.2 GA 2 (or in case of DXP, upgrade to the most recent patch?).
A Nullpointer Exception in KaleoInstanceTokenModelDocumentContributor was fixed after the release of GA1.
A Nullpointer Exception in KaleoInstanceTokenModelDocumentContributor was fixed after the release of GA1.
Hi dear Christoph
My problem was solved
Thank you very much
My problem was solved
Thank you very much
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™