ImageUploader: Unable to read original image

0
This problem is asked before, but a real solution wasn't given. The file-uploader works fine, but the image-uploader gives the following error: ( on W2008r2 server with Mendix Server Console 4.1 ) Localy everything works fine FileDataStore::writeThumbnail: Unable to read original image 'bril.jpg' javax.imageio.IIOException: Can't create cache file! at javax.imageio.ImageIO.createImageInputStream(Unknown Source) at javax.imageio.ImageIO.read(Unknown Source) at id.a(SourceFile:215) at id.a(SourceFile:172) at com.mendix.core.Core.storeImageDocumentContent(SourceFile:1688) at je.a(SourceFile:184) at je.a(SourceFile:111) at je.a(SourceFile:84) at je.processRequest(SourceFile:77) at jg.a(SourceFile:74) at com.mendix.core.MxRuntime.processRequest(SourceFile:910) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:45) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:351) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:857) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Access is denied at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(Unknown Source) at java.io.File.createTempFile0(Unknown Source) at java.io.File.access$100(Unknown Source) at java.io.File$1.createTempFile(Unknown Source) at sun.misc.IOUtils.createTempFile(Unknown Source) at javax.imageio.stream.FileCacheImageInputStream.<init>(Unknown Source) at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(Unknown Source) at javax.imageio.ImageIO.createImageInputStream(Unknown Source) at javax.imageio.ImageIO.read(Unknown Source) at id.a(SourceFile:215) at id.a(SourceFile:172) at com.mendix.core.Core.storeImageDocumentContent(SourceFile:1688) at je.a(SourceFile:184) at je.a(SourceFile:111) at je.a(SourceFile:84) at je.processRequest(SourceFile:77) at jg.a(SourceFile:74) at com.mendix.core.MxRuntime.processRequest(SourceFile:910) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:45) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:351) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:857) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534) at java.lang.Thread.run(Unknown Source)
asked
2 answers
2

Check the tmp directory setting and check whether the IIS user account (IIS_USR?) has read-write access to this directory

Edit 1: Are you sure that your IIS website is running with this account? Can you see error messages in the IIS log? May give a clue.

answered
0

Chris,

IUSR has read-write rights in folder D:\APP\Project\data\tmp and there were added the image files correctly. But the D:\APP\Project\data\files\thumbs\00 is still empty. In my development environment on my laptop the thumbnail were added in that folder.

IUSR has also read-write rights in the D:\APP\Project\data\thumbs

answered