Return-Path: X-Original-To: apmail-roller-commits-archive@www.apache.org Delivered-To: apmail-roller-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DB24611349 for ; Sat, 28 Jun 2014 11:24:24 +0000 (UTC) Received: (qmail 68018 invoked by uid 500); 28 Jun 2014 11:24:24 -0000 Delivered-To: apmail-roller-commits-archive@roller.apache.org Received: (qmail 67984 invoked by uid 500); 28 Jun 2014 11:24:24 -0000 Mailing-List: contact commits-help@roller.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@roller.apache.org Delivered-To: mailing list commits@roller.apache.org Received: (qmail 67964 invoked by uid 99); 28 Jun 2014 11:24:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Jun 2014 11:24:24 +0000 Date: Sat, 28 Jun 2014 11:24:24 +0000 (UTC) From: "Matthias Wimmer (JIRA)" To: commits@roller.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ROL-1958) Roller does not create its directory in /tmp automatically MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ROL-1958?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D140468= 23#comment-14046823 ]=20 Matthias Wimmer commented on ROL-1958: -------------------------------------- Sure I do have the folder /tmp on my system. The folder that did not exist = by default was the folder tomcat7-tomcat7-tmp (which is probably build from= the username and main group of the tomcat user) within it. If Roller does just uses the directory specified in the system property "ja= va.io.tmpdir", I probably have to check if this is some redefinition made b= y the maintainer of Debian's tomcat7 package. I thought Roller itself defin= es to use a subdirectory of the /tmp directory. > Roller does not create its directory in /tmp automatically > ---------------------------------------------------------- > > Key: ROL-1958 > URL: https://issues.apache.org/jira/browse/ROL-1958 > Project: Apache Roller > Issue Type: Bug > Components: Installation & Configuration, Website and Documentat= ion > Affects Versions: 5.1, 5.0.1 > Environment: Tomcat 7 (packaged) on Debian Wheezy > Reporter: Matthias Wimmer > Assignee: Roller Unassigned > Priority: Minor > > I had a problem with my roller installation. When I uploaded files (e.g. = images), Roller did neither generate a thumbnail nor did detect the image s= ize (-1 x -1 Pixel was shown). > Debugging the problem I found out, that roller did try to handle the imag= e in /tmp/tomcat7-tomcat7-tmp/ which did not exist. > JPAMediaFileManagerImpl:updateThumbnail - ERROR creating thumbnail > javax.imageio.IIOException: Can't create cache file! > at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:361) > at javax.imageio.ImageIO.read(ImageIO.java:1351) > at org.apache.roller.weblogger.business.jpa.JPAMediaFileManagerIm= pl.updateThumbnail(JPAMediaFileManagerImpl.java:286) > at org.apache.roller.weblogger.business.jpa.JPAMediaFileManagerIm= pl.createMediaFile(JPAMediaFileManagerImpl.java:276) > at org.apache.roller.weblogger.ui.struts2.editor.MediaFileAdd.sav= e(MediaFileAdd.java:177) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [=E2=80=A6] > Caused by: java.nio.file.NoSuchFileException: /tmp/tomcat7-tomcat7-tmp/im= ageio4250185645999491066.tmp > at sun.nio.fs.UnixException.translateToIOException(UnixException.= java:86) > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.ja= va:102) > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.ja= va:107) > at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSyste= mProvider.java:213) > at java.nio.file.Files.newByteChannel(Files.java:315) > at java.nio.file.Files.createFile(Files.java:580) > at java.nio.file.TempFileHelper.create(TempFileHelper.java:138) > at java.nio.file.TempFileHelper.createTempFile(TempFileHelper.jav= a:161) > at java.nio.file.Files.createTempFile(Files.java:842) > at javax.imageio.stream.FileCacheImageInputStream.(FileCach= eImageInputStream.java:102) > at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInput= StreamInstance(InputStreamImageInputStreamSpi.java:69) > at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:357) > ... 129 more > WARN 2013-02-04 14:29:49,158 JPAMediaFileManagerImpl:getMediaFile - Cann= ot load thumbnail for image 1404f16e-eb17-4ead-ab42-b8de0fbfbfa9 > Creating the directory manually fixed the problem for me. > I think it would be best if the directory would get created automatically= (which should be possible). Else it should get documented in the installat= ion guide, that a temporary directory has to be created -- This message was sent by Atlassian JIRA (v6.2#6252)