Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 74306200CD2 for ; Wed, 12 Jul 2017 16:24:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 72D8F168F2E; Wed, 12 Jul 2017 14:24:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C35FA168F2C for ; Wed, 12 Jul 2017 16:24:21 +0200 (CEST) Received: (qmail 44443 invoked by uid 500); 12 Jul 2017 14:24:21 -0000 Mailing-List: contact notifications-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list notifications@ofbiz.apache.org Received: (qmail 44225 invoked by uid 99); 12 Jul 2017 14:24:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2017 14:24:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AECD6195CBF for ; Wed, 12 Jul 2017 14:24:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id j8Y3Vx3zSG3i for ; Wed, 12 Jul 2017 14:24:18 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id E4AC05FDBF for ; Wed, 12 Jul 2017 14:06:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1268BE0D60 for ; Wed, 12 Jul 2017 14:06:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 38C9624702 for ; Wed, 12 Jul 2017 14:06:00 +0000 (UTC) Date: Wed, 12 Jul 2017 14:06:00 +0000 (UTC) From: "Devanshu Vyas (JIRA)" To: notifications@ofbiz.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (OFBIZ-9259) Uploading images at catalog/control/addImageForProduct does not work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 12 Jul 2017 14:24:22 -0000 [ https://issues.apache.org/jira/browse/OFBIZ-9259?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Devanshu Vyas updated OFBIZ-9259: --------------------------------- Attachment: OFBIZ-9259.patch Uploaded patch containing the fix for the NPE on uploading image(s). Delega= tor was fetched from the context instead of the DispatchContext and thus wa= s throwing NPE while running the EntityUtilProperties.getPropertyValue(). > Uploading images at catalog/control/addImageForProduct does not work > -------------------------------------------------------------------- > > Key: OFBIZ-9259 > URL: https://issues.apache.org/jira/browse/OFBIZ-9259 > Project: OFBiz > Issue Type: Bug > Components: product > Affects Versions: Trunk > Reporter: Jacques Le Roux > Attachments: OFBIZ-9259.patch > > > {code} > java.lang.Exception: Service [addMultipleuploadForProduct] threw an unexp= ected exception/error > at org.apache.ofbiz.entity.transaction.TransactionUtil.setRollbac= kOnly(TransactionUtil.java:361) [ofbiz.jar:?] > at org.apache.ofbiz.entity.transaction.TransactionUtil.rollback(T= ransactionUtil.java:302) [ofbiz.jar:?] > 2017-07-09 15:42:40,189 |sse-nio-8443-exec-11 |CallService = |E| ERROR: Could not complete the Method to upload multiple images for = product [file:/home/devanshu/ofbiz_dev/bug_crush/trunk/applications/product= /minilang/product/imagemanagement/ImageManagementServices.xml#UploadProduct= Images] process [problem invoking the [addMultipleuploadForProduct] service= with the map named [addAdditionalViewForProductMap] containing [{userLogin= =3D[GenericEntity:UserLogin][createdStamp,2017-07-09 02:42:04.614(java.sql.= Timestamp)][createdTxStamp,2017-07-09 02:42:04.609(java.sql.Timestamp)][cur= rentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String= )][disabledBy,null()][disabledDateTime,null()][enabled,null()][externalAuth= Id,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][la= stLocale,null()][lastTimeZone,Asia/Calcutta(java.lang.String)][lastUpdatedS= tamp,2017-07-09 02:43:49.871(java.sql.Timestamp)][lastUpdatedTxStamp,2017-0= 7-09 02:43:49.702(java.sql.Timestamp)][partyId,admin(java.lang.String)][pas= swordHint,null()][requirePasswordChange,null()][successiveFailedLogins,null= ()][userLdapDn,null()][userLoginId,admin(java.lang.String)], productId=3DGZ= -1000, _uploadedFile_contentType=3Dimage/png, timeZone=3Dsun.util.calendar.= ZoneInfo[id=3D"Asia/Calcutta",offset=3D19800000,dstSavings=3D0,useDaylight= =3Dfalse,transitions=3D6,lastRule=3Dnull], locale=3Den_US, productContentTy= peId=3DIMAGE, imageResize=3Dnull, uploadedFile=3Djava.nio.HeapByteBuffer[po= s=3D0 lim=3D204237 cap=3D204237], _uploadedFile_fileName=3D3d Spider Man Ho= mecoming M Movie Tickets Online Booking Showtimes in Indore Paytm.com.pn= g}]: Service [addMultipleuploadForProduct] target threw an unexpected excep= tion (null)] > {code} > Steps followed for regeneration: > - Go to Catalog application. > - Click on the (Image Management) menu item. > - Click on the (Upload) sub-menu item. > - Set a product and upload image(s). > - Click on the (Upload) button. -- This message was sent by Atlassian JIRA (v6.4.14#64029)