Error in server when uploading an image and export to excel
3
I'm having problems after the deployment of an application. When uploading an image or when i trying to export a datagrid to excel i'm getting errors in the log on the server. The application is running on a Windows Server 2008 system. The mendix server runs on the localuser and the file security on the web-inf directory is correctly set. == Uploading image == 2010-11-25 15:56:35.806 ERROR EXTERNALINTERFACE: com.mendix.connectionbus.ConnectionBusException: FileDatastore::writeThumbnail Error writing Image Thumbnail: Koala.jpg: Can't create output stream! com.mendix.connectionbus.D.A(ConnectionBus.java:349) com.mendix.core.Core.storeImageDocumentContent(Core.java:1594) com.mendix.externalinterface.servlet.FileServlet.A(FileServlet.java:99) com.mendix.externalinterface.servlet.MxServlet.B(MxServlet.java:71) com.mendix.externalinterface.servlet.MxServlet.doPost(MxServlet.java:54) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) javax.servlet.http.HttpServlet.service(HttpServlet.java:820) org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389) org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49) org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) org.mortbay.jetty.Server.handle(Server.java:326) org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879) org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) Caused by: FileDatastore::writeThumbnail Error writing Image Thumbnail: Koala.jpg: Can't create output stream! com.mendix.connectionbus.connections.A.A.A(FileDataStore.java:215) == Export to Excel == 2010-11-25 10:46:14.197 ERROR - EXTERNALINTERFACE: A server exception occurred: The system cannot find the path specified 2010-11-25 10:46:14.197 ERROR EXTERNALINTERFACE: java.io.IOException: The system cannot find the path specified com.mendix.modules.exportmanager.excel.A.A(ExcelExporter.java:244) com.mendix.modules.exportmanager.excel.A.A(ExcelExporter.java:55) com.mendix.modules.exportmanager.ExportManagerModule.generateXLS(ExportManagerModule.java:68) com.mendix.modules.reporting.clientactions.ReportExcelExportAction.A(ReportExcelExportAction.java:110) com.mendix.modules.reporting.clientactions.ReportExcelExportAction.execute(ReportExcelExportAction.java:71) com.mendix.externalinterface.servlet.B.A(ServletHandler.java:103) com.mendix.externalinterface.servlet.HttpServlet.A(HttpServlet.java:123) com.mendix.externalinterface.servlet.MxServlet.B(MxServlet.java:71) com.mendix.externalinterface.servlet.MxServlet.doPost(MxServlet.java:54) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) javax.servlet.http.HttpServlet.service(HttpServlet.java:820) org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389) org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49) org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) org.mortbay.jetty.Server.handle(Server.java:326) org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879) org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) Caused by: The system cannot find the path specified java.io.WinNTFileSystem.createFileExclusively(Native Method) java.io.File.checkAndCreate(File.java:1704) java.io.File.createTempFile(File.java:1792) java.io.File.createTempFile(File.java:1828) com.mendix.core.B.H.<init>(LowMemoryOutputStream.java:17) com.mendix.core.B.H.<init>(LowMemoryOutputStream.java:13) c om.mendix.modules.exportmanager.excel.A.A(ExcelExporter.java:236) com.mendix.modules.exportmanager.excel.A.A(ExcelExporter.java:55) com.mendix.modules.exportmanager.ExportManagerModule.generateXLS(ExportManagerModule.java:68) com.mendix.modules.reporting.clientactions.ReportExcelExportAction.A(ReportExcelExportAction.java:110) com.mendix.modules.reporting.clientactions.ReportExcelExportAction.execute(ReportExcelExportAction.java:71) com.mendix.externalinterface.servlet.B.A(ServletHandler.java:103) com.mendix.externalinterface.servlet.HttpServlet.A(HttpServlet.java:123) com.mendix.externalinterface.servlet.MxServlet.B(MxServlet.java:71) com.mendix.externalinterface.servlet.MxServlet.doPost(MxServlet.java:54) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) javax.servlet.http.HttpServlet.service(HttpServlet.java:820) org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389) org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49) org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) org.mortbay.jetty.Server.handle(Server.java:326) org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) o rg.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879) org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
asked
Richard Bakker
1 answers
2
Do you have "UploadedFilesPath" configured correctly to a directory where the runtime user can write to? You also need to set the "BasePath" setting.
The uploadedfilespath setting defaults to "the basedir setting" + /data/files .