Return-Path: X-Original-To: apmail-ofbiz-user-archive@www.apache.org Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 39A0E9811 for ; Tue, 17 Apr 2012 12:55:48 +0000 (UTC) Received: (qmail 83877 invoked by uid 500); 17 Apr 2012 12:55:47 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 83865 invoked by uid 500); 17 Apr 2012 12:55:47 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 83855 invoked by uid 99); 17 Apr 2012 12:55:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 12:55:47 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of krishan.babbar@paxcel.net does not designate 209.85.160.44 as permitted sender) Received: from [209.85.160.44] (HELO mail-pb0-f44.google.com) (209.85.160.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 12:55:37 +0000 Received: by pbbrp16 with SMTP id rp16so5570706pbb.31 for ; Tue, 17 Apr 2012 05:55:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:from:to:references:in-reply-to:subject:date:mime-version :content-type:content-transfer-encoding:x-priority:x-msmail-priority :importance:x-mailer:x-mimeole:x-gm-message-state; bh=PwmYNDDssKiOUNtwK07yf8yht9bNJoMGDyeZ4+ZtPMQ=; b=UBwxFXQk23j53Y1Mdw+pKhWToWeSyw0Duc9VNqne4I0ktna1qEeqAwzwdxqXEhnbOR Ww6cHbWK9b2NbsCCtUbbd3vsawY+mCNwwavthNJaq2rJ4Aiuu8KUPabhwsA8i+ov2GP7 rAJN/d3nRb4utTMFNjfxayE1GunLTQUM8f9ZsI8yQKSIWrkO1pqWFHazdGOYnQvVKcq/ jam00DSjCJ3sXZLRxt3yxPm+wdqNOMtwYJMeqYnYZygxAi1NuYGhBTD0JqltwtXm31H8 AwwHBxQcP8vyhY8McuJr5BzWzN2z8jQVw8QMaZbd2VEzl5IrUtWHsP61cOQb2B3aZA3J 98Eg== Received: by 10.68.220.134 with SMTP id pw6mr35862857pbc.149.1334667315218; Tue, 17 Apr 2012 05:55:15 -0700 (PDT) Received: from krishanPC ([122.173.11.126]) by mx.google.com with ESMTPS id pj1sm20660159pbc.44.2012.04.17.05.55.11 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Apr 2012 05:55:14 -0700 (PDT) Message-ID: From: To: References: <001301cd1c88$35ba6370$a12f2a50$@ilscipio.com> <4F8D57A4.1010304@sandglass-software.com> In-Reply-To: <4F8D57A4.1010304@sandglass-software.com> Subject: Getting multiple order confirmation mails after placing an order Date: Tue, 17 Apr 2012 18:25:06 +0530 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-Gm-Message-State: ALoCoQkgwVziOtkskLy336z5dc/iRu3edqAHkejmpy40e2EG8TPSYfZaL4SJVW4fzjbvwSapW589 Hi All, We are using Ofbiz V-9.04. We are facing an issue with order checkout, not exactly with checkout rather with emails. We can place an order and complete the checkout process. It is expected to get single mail with subject "OFBiz Demo - Order Confirmation #WSOD10290" but we are getting 4 similar mails due to re-scheduling. Following are the logs for email failure. Looking forward for your help to resolve this issue. Thanks in advance. :) 2012-04-17 17:57:16,832 (default-invoker-Thread-19) [ EmailServices.java:571:INFO ] Expanded email subject to: OFBiz Demo - Order Confirmation #WSOD10290 2012-04-17 17:57:16,833 (default-invoker-Thread-19) [ServiceEcaCondition.java:156:WARN ] From Field (communicationEventId) is not found in context for sendMailMultiPart, defaulting to null. 2012-04-17 17:57:16,833 (default-invoker-Thread-19) [ ServiceEcaRule.java:157:INFO ] Running Service ECA Service: createCommEventFromEmail, triggered by rule on Service: sendMailMultiPart 2012-04-17 17:57:16,996 (default-invoker-Thread-19) [ SequenceUtil.java:348:INFO ] Got bank of sequenced IDs for [CommunicationEvent]; curSeqId=10630, maxSeqId=10640, bankSize=10 2012-04-17 17:57:17,040 (default-invoker-Thread-19) [ Log.java:117:INFO ] [CommonPermissionServices.xml#genericBasePermissionCheck line 41] Checking for primary permission PARTYMGR_CREATE 2012-04-17 17:57:17,041 (default-invoker-Thread-19) [ Log.java:117:INFO ] [CommonPermissionServices.xml#genericBasePermissionCheck line 48] Checking for alternate permission PARTYMGR_ROLE_CREATE 2012-04-17 17:57:17,366 (default-invoker-Thread-19) [ ServiceDispatcher.java:604:INFO ] Sync service [default/createPartyRole] finished in [349] milliseconds with response [{responseMessage=success}] 2012-04-17 17:57:17,370 (default-invoker-Thread-19) [ ServiceDispatcher.java:604:INFO ] Sync service [default/createCommunicationEventRoleWithoutPermission] finished in [364] milliseconds with response [{responseMessage=success}] 2012-04-17 17:57:17,373 (default-invoker-Thread-19) [ ServiceEcaRule.java:137:INFO ] For Service ECA [createCommunicationEvent] on [commit] got false for condition: [statusId][equals][COM_ENTERED][true][String] 2012-04-17 17:57:17,373 (default-invoker-Thread-19) [ ServiceEcaRule.java:157:INFO ] Running Service ECA Service: linkToProduct, triggered by rule on Service: createCommunicationEvent 2012-04-17 17:57:17,614 (default-invoker-Thread-19) [ ServiceDispatcher.java:604:INFO ] Sync service [default/linkToProduct] finished in [240] milliseconds with response [{responseMessage=success}] 2012-04-17 17:57:17,615 (default-invoker-Thread-19) [ ServiceDispatcher.java:604:INFO ] Sync service [default/createCommunicationEvent] finished in [761] milliseconds with response [{communicationEventId=10630, responseMessage=success}] 2012-04-17 17:57:17,616 (default-invoker-Thread-19) [ ServiceDispatcher.java:604:INFO ] Sync service [default/createCommEventFromEmail] finished in [781] milliseconds with response [{responseMessage=success, communicationEventId=10630}] 2012-04-17 17:57:17,616 (default-invoker-Thread-19) [ EmailServices.java:105:INFO ] SendMail Running, for communicationEventId : 10630 2012-04-17 17:57:17,635 (default-invoker-Thread-19) [ EmailServices.java:255:INFO ] 2 multiparts found 2012-04-17 17:57:17,635 (default-invoker-Thread-19) [ EmailServices.java:261:INFO ] part of type: text/html and size: 7230 2012-04-17 17:57:17,637 (default-invoker-Thread-19) [ EmailServices.java:265:INFO ] part of type: application/pdf and size: 5892 org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.party.communication.CommunicationEventServices.createAttachmentContent(CommunicationEventServices.java:1023) org.ofbiz.party.communication.CommunicationEventServices.updateCommEventAfterEmail(CommunicationEventServices.java:649) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761) _$gen.file_58$.applications.party.servicedef.services_46$xml_35$updateCommEventAfterEmail.runSync(file:/applications/party/servicedef/services.xml#updateCommEventAfterEmail:900) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138) org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159) org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:500) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.common.email.EmailServices.sendMailFromScreen(EmailServices.java:587) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761) _$gen.file_58$..framework.common.servicedef.services_95$email_46$xml_35$sendMailFromScreen.runSync(file:/framework/common/servicedef/services_email.xml#sendMailFromScreen:83) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.order.order.OrderServices.sendOrderNotificationScreen(OrderServices.java:2704) org.ofbiz.order.order.OrderServices.sendOrderConfirmNotification(OrderServices.java:2551) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761) _$gen.file_58$.applications.order.servicedef.services_46$xml_35$sendOrderConfirmation.runSync(file:/applications/order/servicedef/services.xml#sendOrderConfirmation:50) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:71) org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:242) java.lang.Thread.run(Unknown Source) -------------------------------------------------------------------------------- 2012-04-17 17:57:28,914 (default-invoker-Thread-19) [ TransactionUtil.java:378:WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: Exception: java.lang.Exception Message: Failure in findOne operation for entity [PartyRole]: org.ofbiz.entity.GenericModelException: [GenericDelegator.findOne] Passed primary key is not a valid primary key: [GenericEntity:PartyRole][roleTypeId,OWNER(java.lang.String)]. Rolling back transaction. ---- stack trace --------------------------------------------------------------- java.lang.Exception: Failure in findOne operation for entity [PartyRole]: org.ofbiz.entity.GenericModelException: [GenericDelegator.findOne] Passed primary key is not a valid primary key: [GenericEntity:PartyRole][roleTypeId,OWNER(java.lang.String)]. Rolling back transaction. org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:378) . . . . . . Thanks, Krishan Babbar ---------------------------------------------------------------------------------------------------------------------------- Disclaimer: This email and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended even if addressed incorrectly. If you received this email in error please notify the sender, do not disclose, copy, distribute or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this email is prohibited. Thank you for your compliance.