Community Commons - Clone error

0
I've created a process where I want to make an order a "master order" , in doing so I tried to used the clone java action to copy my orderline info into my masterorderline (masterorderline inherits from orderline) (in the stack trace MasterCOR represents masterorderline). It seems to work ok as long as I don't try to commit masterorderline after the clone activity. If I do, I get an error as follows: An error has occurred while handling the request. [User 'MxAdmin' with session id '433108cf-f4fa-4054-a57d-73737e53e8b0' and roles 'Admin'] -------- com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: store Error opening file for key ' 538ba81a-27a1-480a-9eb4-f741d81daa4d '     at ChangeOrderRequest.IVK_MultiProjectCORStep2 (Commit : 'Commit 'NewMasterCOR' ') Advanced stacktrace:     at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: store Error opening file for key ' 538ba81a-27a1-480a-9eb4-f741d81daa4d '     at com.mendix.core.actionmanagement.ActionManager.executeInTransactionSync(ActionManager.java:143) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: store Error opening file for key ' 538ba81a-27a1-480a-9eb4-f741d81daa4d '     at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:176) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: store Error opening file for key ' 538ba81a-27a1-480a-9eb4-f741d81daa4d '     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:40) Caused by: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: store Error opening file for key ' 538ba81a-27a1-480a-9eb4-f741d81daa4d '     at com.mendix.core.actionmanagement.SyncEventExtendedAction.executeAction(SyncEventExtendedAction.java:39) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: store Error opening file for key ' 538ba81a-27a1-480a-9eb4-f741d81daa4d '     at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:176) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.RuntimeException: LocalFileSystemStore:: store Error opening file for key ' 538ba81a-27a1-480a-9eb4-f741d81daa4d '     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:40) Caused by: java.lang.RuntimeException: LocalFileSystemStore:: store Error opening file for key ' 538ba81a-27a1-480a-9eb4-f741d81daa4d '     at com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.storeFile$1(LocalFileSystemStore.scala:89)     at com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.store(LocalFileSystemStore.scala:96)     at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl.writeFile(FileDocumentProcessorImpl.java:197)     at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl.storeFileDocument(FileDocumentProcessorImpl.java:129)     at com.mendix.core.objectmanagement.member.MendixBinary.commitValueAsFileDocument(MendixBinary.java:186)     at com.mendix.core.action.user.CommitAction.com$mendix$core$action$user$CommitAction$$postProcess$1(CommitAction.scala:92)     at com.mendix.core.action.user.CommitAction$$anonfun$commit$1.apply(CommitAction.scala:86)     at com.mendix.core.action.user.CommitAction$$anonfun$commit$1.apply(CommitAction.scala:86)     at scala.collection.immutable.List.foreach(List.scala:381)     at com.mendix.core.action.user.CommitAction.commit(CommitAction.scala:86)     at com.mendix.core.action.user.CommitAction.commitPersistableObjects(CommitAction.scala:73)     at com.mendix.core.action.user.CommitAction.executeAction(CommitAction.scala:55)     at com.mendix.core.action.user.CommitAction.executeAction(CommitAction.scala:38)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)     at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)     at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)     at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)     at com.mendix.core.actionmanagement.SyncEventExtendedAction.executeAction(SyncEventExtendedAction.java:37)     at com.mendix.core.actionmanagement.EventExtendedAction.execute(EventExtendedAction.java:92)     at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)     at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:170)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)     at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)     at com.mendix.core.actionmanagement.ActionManager.executeInTransactionSync(ActionManager.java:136)     at com.mendix.core.component.InternalCore.commit(InternalCore.java:202)     at com.mendix.core.component.InternalCore.commit(InternalCore.java:175)     at com.mendix.core.component.InternalCore.commit(InternalCore.java:144)     at com.mendix.modules.microflowengine.actions.mxobject.CommitAction.execute(CommitAction.scala:34)     at com.mendix.modules.microflowengine.actions.mxobject.CommitAction.execute(CommitAction.scala:19)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)     at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)     at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)     at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)     at com.mendix.core.component.InternalCore.execute(InternalCore.java:414)     at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:144)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:311)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:143)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:145)     at scala.util.Try$.apply(Try.scala:192)     at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:139)     at akka.actor.Actor$class.aroundReceive(Actor.scala:465)     at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:135)     at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)     at akka.actor.ActorCell.invoke(ActorCell.scala:487)     at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)     at akka.dispatch.Mailbox.run(Mailbox.scala:220)     at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)     at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)     at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)     at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)     at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) Caused by: java.lang.NullPointerException: null     at java.io.FilterInputStream.read(FilterInputStream.java:133)     at com.mendix.core.objectmanagement.member.RereadableInputStream.read(RereadableInputStream.scala:16)     at java.io.FilterInputStream.read(FilterInputStream.java:107)     at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1719)     at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1696)     at org.apache.commons.io.IOUtils.copy(IOUtils.java:1671)     at com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.storeFile$1(LocalFileSystemStore.scala:86)     at com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.store(LocalFileSystemStore.scala:96)     at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl.writeFile(FileDocumentProcessorImpl.java:197)     at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl.storeFileDocument(FileDocumentProcessorImpl.java:129)     at com.mendix.core.objectmanagement.member.MendixBinary.commitValueAsFileDocument(MendixBinary.java:186)     at com.mendix.core.action.user.CommitAction.com$mendix$core$action$user$CommitAction$$postProcess$1(CommitAction.scala:92)     at com.mendix.core.action.user.CommitAction$$anonfun$commit$1.apply(CommitAction.scala:86)     at com.mendix.core.action.user.CommitAction$$anonfun$commit$1.apply(CommitAction.scala:86)     at scala.collection.immutable.List.foreach(List.scala:381)     at com.mendix.core.action.user.CommitAction.commit(CommitAction.scala:86)     at com.mendix.core.action.user.CommitAction.commitPersistableObjects(CommitAction.scala:73)     at com.mendix.core.action.user.CommitAction.executeAction(CommitAction.scala:55)     at com.mendix.core.action.user.CommitAction.executeAction(CommitAction.scala:38)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)     at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)     at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)     at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)     at com.mendix.core.actionmanagement.SyncEventExtendedAction.executeAction(SyncEventExtendedAction.java:37)     at com.mendix.core.actionmanagement.EventExtendedAction.execute(EventExtendedAction.java:92)     at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)     at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:170)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)     at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)     at com.mendix.core.actionmanagement.ActionManager.executeInTransactionSync(ActionManager.java:136)     at com.mendix.core.component.InternalCore.commit(InternalCore.java:202)     at com.mendix.core.component.InternalCore.commit(InternalCore.java:175)     at com.mendix.core.component.InternalCore.commit(InternalCore.java:144)     at com.mendix.modules.microflowengine.actions.mxobject.CommitAction.execute(CommitAction.scala:34)     at com.mendix.modules.microflowengine.actions.mxobject.CommitAction.execute(CommitAction.scala:19)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)     at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)     at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)     at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)     at com.mendix.core.component.InternalCore.execute(InternalCore.java:414)     at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:144)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:311)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:143)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:145)     at scala.util.Try$.apply(Try.scala:192)     at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:139)     at akka.actor.Actor$class.aroundReceive(Actor.scala:465)     at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:135)     at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)     at akka.actor.ActorCell.invoke(ActorCell.scala:487)     at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)     at akka.dispatch.Mailbox.run(Mailbox.scala:220)     at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)     at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)     at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)     at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)     at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)    
asked
2 answers
0

Marc

Are these entities inherited from System.FileDocument?  If so, perhaps you need to use DuplicateFileDocument from Community Commons first and then try Clone?  Seems like Mendix is looking for a file associated with a file document and can't locate it....I am not sure how Clone works (or doesn't work) with FileDocuments.

Mike

answered
0

Depending on what kind of associations you have you could try the deepclone function. But you have to be aware of possible associations that are taken away from the old object and being placed on the new object. Most of the time I use the clone action to copy all the attributes and do the association setting in the microflow to avoid making those mistakes.

 

Ronald

answered