Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » PlannerField - Error when navigating(The following exception is thrown when navigating or reloading the PlannerField)
PlannerField - Error when navigating [message #1847273] Thu, 21 October 2021 14:58 Go to next message
Seydou Zakou is currently offline Seydou ZakouFriend
Messages: 43
Registered: May 2020
Member
When trying to reload or navigating the PlannerField, the following exception is thrown. Navigation and reloading of the form are done through
execViewRangeChanged
calling
loadResources()


Seems that the error occurs because i have the same activities visibles on the old view range and the new one.

Does anyone has an idea how to get rid of it ?

2021-10-21 14:48:05,362 WARN  [scout-model-thread-16 Transforming response to JSON] org.eclipse.scout.rt.ui.html.UiSession.lambda$6(UiSession.java:848) - Error while transforming response to JSON: JsonResponse [#43, adapters: 0, events: 4, buffered events adapters: 1] - MDC[principal=szakou, uiSession=1:f1tp4i94k8d4dtqqqqeb7ir7647kvq715tj7c0m1mdoqt5pnlfg, scoutSession=1ar4q4d1nbie6er90hlmnk9ovi9rmbcq6tr6a0fta1v42jmtce4p, jobName=Transforming response to JSON, cid=YF3Zh3Yn9SB/45]
java.lang.IllegalStateException: Cell already has an id. Activity[Idrissa Kara]
	at org.eclipse.scout.rt.ui.html.json.basic.planner.JsonPlanner.createCellId(JsonPlanner.java:244)
	at org.eclipse.scout.rt.ui.html.json.basic.planner.JsonPlanner$P_NewCellIdProvider.getId(JsonPlanner.java:580)
	at org.eclipse.scout.rt.ui.html.json.basic.planner.JsonPlanner$P_NewCellIdProvider.getId(JsonPlanner.java:1)
	at org.eclipse.scout.rt.ui.html.json.basic.planner.JsonActivity.toJson(JsonActivity.java:40)
	at org.eclipse.scout.rt.ui.html.json.basic.planner.JsonResource.cellsToJson(JsonResource.java:50)
	at org.eclipse.scout.rt.ui.html.json.basic.planner.JsonResource.toJson(JsonResource.java:41)
	at org.eclipse.scout.rt.ui.html.json.basic.planner.JsonPlanner.handleModelResourcesInserted(JsonPlanner.java:359)
	at org.eclipse.scout.rt.ui.html.json.basic.planner.JsonPlanner.processEvent(JsonPlanner.java:331)
	at org.eclipse.scout.rt.ui.html.json.basic.planner.JsonPlanner.processBufferedEvents(JsonPlanner.java:324)
	at org.eclipse.scout.rt.ui.html.json.JsonResponse.fireProcessBufferedEvents(JsonResponse.java:353)
	at org.eclipse.scout.rt.ui.html.json.JsonResponse.toJson(JsonResponse.java:286)
	at org.eclipse.scout.rt.ui.html.UiSession.responseToJsonInternal(UiSession.java:827)
	at org.eclipse.scout.rt.ui.html.UiSession.lambda$6(UiSession.java:845)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxMandatory(TransactionProcessor.java:156)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxRequired(TransactionProcessor.java:139)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.intercept(TransactionProcessor.java:78)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/javax.security.auth.Subject.doAs(Subject.java:423)
	at org.eclipse.scout.rt.platform.security.SubjectProcessor.intercept(SubjectProcessor.java:43)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
	at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:158)
	at org.eclipse.scout.rt.platform.context.RunContextRunner.intercept(RunContextRunner.java:38)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at org.eclipse.scout.rt.platform.job.internal.CallableChainExceptionHandler.intercept(CallableChainExceptionHandler.java:33)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
	at org.eclipse.scout.rt.platform.job.internal.JobFutureTask.lambda$0(JobFutureTask.java:106)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at org.eclipse.scout.rt.platform.job.internal.JobFutureTask.run(JobFutureTask.java:175)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
	at org.eclipse.scout.rt.platform.job.internal.NamedThreadFactory$1.run(NamedThreadFactory.java:63)
Re: PlannerField - Error when navigating [message #1847296 is a reply to message #1847273] Fri, 22 October 2021 06:01 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 255
Registered: March 2010
Senior Member
Hi,

please check your implementation of execLoadResources. You are probably inserting the same activity multiple times.
Re: PlannerField - Error when navigating [message #1847331 is a reply to message #1847296] Fri, 22 October 2021 16:46 Go to previous message
Seydou Zakou is currently offline Seydou ZakouFriend
Messages: 43
Registered: May 2020
Member
Thanks for your reply.

You are right, I reviewed the implementation of execLoadResources, and things works well now.
Previous Topic:DND in Scout 11 ( and next Release )
Next Topic:File Drop on a table row no more working ?
Goto Forum:
  


Current Time: Sat Mar 02 03:39:32 GMT 2024

Powered by FUDForum. Page generated in 0.01901 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top