Crop image widget gives errors

0
When using the "image crop" widget I sometimes get strange errors. I have 2 situations that generate errors: 1) When sizing the croparea I sometimes get the error "Dit getal is te groot en kan niet accuraat gerepresenteerd worden". This message is repeated 6 times. De image that I try to crop is a jpg and has a size of 192*103 . The image is created with default values for the imagecrop attributes . 2) When trying to copy an image for use in the widget using the "CopyFileContent" java action I sometimes get a "An error has occurred while handling the request." error. The image i'm trying to copy is a jpg of size 500*500. The stack shows: ============= An error has occurred while handling the request. [User 'testerpp' with session id 'a16606f2-2b8c-45e9-b6df-958991233a0a' and roles 'ContractEigenaar, PublicatieManager, Vormgever, PortalManager'] com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "file.encoding" "read") at PartnerPortal.Afbeelding_InitializeCrop_Owner (JavaAction : 'DuplicateImageDocument') Advanced stacktrace: at com.mendix.modules.microflowengine.MicroflowUtil.processException(SourceFile:158) Caused by: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "file.encoding" "read") at com.mendix.core.component.InternalCore.execute(SourceFile:274) Caused by: com.mendix.core.CoreRuntimeException: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "file.encoding" "read") at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:210) Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "file.encoding" "read") at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372) at java.security.AccessController.checkPermission(AccessController.java:559) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302) at java.lang.System.getProperty(System.java:708) at com.drew.metadata.iptc.IptcReader.processTag(Unknown Source) at com.drew.metadata.iptc.IptcReader.extract(Unknown Source) at com.drew.metadata.photoshop.PhotoshopReader.extract(Unknown Source) at com.drew.imaging.jpeg.JpegMetadataReader.extractMetadataFromJpegSegmentReader(Unknown Source) at com.drew.imaging.jpeg.JpegMetadataReader.readMetadata(Unknown Source) at com.drew.imaging.ImageMetadataReader.readMetadata(Unknown Source) at com.drew.imaging.ImageMetadataReader.readMetadata(Unknown Source) at com.mendix.core.objectmanagement.ImageRotator$.readImageInformation(SourceFile:68) at com.mendix.core.objectmanagement.ImageRotator$.rotate(SourceFile:29) at com.mendix.core.objectmanagement.ImageRotator.rotate(SourceFile) at com.mendix.core.objectmanagement.FileProcessor.storeImage(SourceFile:181) at com.mendix.core.component.InternalCore.storeImageDocumentContent(SourceFile:1891) at com.mendix.core.Core.storeImageDocumentContent(Core.java:1098) at communitycommons.Misc.duplicateImage(Misc.java:171) at communitycommons.actions.DuplicateImageDocument.executeAction(DuplicateImageDocument.java:51) at communitycommons.actions.DuplicateImageDocument.executeAction(DuplicateImageDocument.java:25) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.doCall(SourceFile:291) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:276) at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:199) at com.mendix.core.component.InternalCore.execute(SourceFile:262) at com.mendix.hB.execute(SourceFile:42) at com.mendix.ik.a(SourceFile:47) at com.mendix.ij.a(SourceFile:193) at com.mendix.ij.executeAction(SourceFile:148) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.doCall(SourceFile:291) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:276) at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:199) at com.mendix.core.component.InternalCore.execute(SourceFile:262) at com.mendix.iW.a(SourceFile:135) at com.mendix.pj$g.apply$mcV$sp(SourceFile:294) at com.mendix.pj$g.apply(SourceFile:285) at com.mendix.pj$g.apply(SourceFile:285) at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(SourceFile:158) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(SourceFile:36) at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(SourceFile:160) at scala.util.Try$.apply(Try.scala:191) at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(SourceFile:154) at akka.actor.Actor$class.aroundReceive(Actor.scala:465) at com.mendix.core.session.Worker.aroundReceive(SourceFile:147) 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)* ============================= Does anyone has an idea about what's going wrong?
asked
2 answers
0

The image crop module uses Java. The used library wants to read the file.encoding. This property can not be read due to permissions. (access denied ("java.util.PropertyPermission" "file.encoding" "read"))

File a ticket in the Mendix support portal to allow access to read that property.

answered
0

We put the Image Crop Module on Github. There is already a ticket regarding an issue with the module, at this moment it is uncertain whether your issue is related. Like Chris says, file a ticket to the support portal (or on Github), we will look into it.

answered