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 0570317C6B for ; Tue, 29 Sep 2015 14:20:14 +0000 (UTC) Received: (qmail 16361 invoked by uid 500); 29 Sep 2015 14:20:06 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 16284 invoked by uid 500); 29 Sep 2015 14:20:06 -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 15864 invoked by uid 99); 29 Sep 2015 14:20:05 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2015 14:20:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 54BE6C08AC for ; Tue, 29 Sep 2015 14:20:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.314 X-Spam-Level: * X-Spam-Status: No, score=1.314 tagged_above=-999 required=6.31 tests=[URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id pWzhnbyXURoR for ; Tue, 29 Sep 2015 14:19:56 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id 4A86F206AF for ; Tue, 29 Sep 2015 14:19:56 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 1246D29EA983 for ; Tue, 29 Sep 2015 07:20:38 -0700 (PDT) Date: Tue, 29 Sep 2015 07:10:59 -0700 (PDT) From: Stefan Badenhorst To: user@ofbiz.apache.org Message-ID: <1443535859593-4672851.post@n4.nabble.com> In-Reply-To: References: Subject: Re: Multi Tenant MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have created The issue as you requested OFBIZ-6658 with the log files attached. https://issues.apache.org/jira/browse/OFBIZ-6658 I have noticed in the log file that there are 2 errors that come up: |OFBiz-config-3 |DatabaseUtil |E| Error adding foreign key: ModelEntity was null for related entity name Tenant and |main |GenericDelegator |E| Failure in create operation for entity [JobSandbox]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:JobSandbox][createdStamp,2015-09-29 13:47:16.145(java.sql.Timestamp)][createdTxStamp,2015-09-29 13:47:16.145(java.sql.Timestamp)][jobId,8200(java.lang.String)][jobName,Clear EntitySyncRemove Info(java.lang.String)][lastUpdatedStamp,2015-09-29 13:47:16.145(java.sql.Timestamp)][lastUpdatedTxStamp,2015-09-29 13:47:16.145(java.sql.Timestamp)][maxRecurrenceCount,-1(java.lang.Long)][poolId,pool(java.lang.String)][runAsUser,system(java.lang.String)][runTime,2000-01-01 00:00:00.0(java.sql.Timestamp)][serviceName,cleanSyncRemoveInfo(java.lang.String)][tempExprId,MIDNIGHT_DAILY(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.JOB_SANDBOX (JOB_ID, JOB_NAME, RUN_TIME, POOL_ID, STATUS_ID, PARENT_JOB_ID, PREVIOUS_JOB_ID, SERVICE_NAME, LOADER_NAME, MAX_RETRY, CURRENT_RETRY_COUNT, AUTH_USER_LOGIN_ID, RUN_AS_USER, RUNTIME_DATA_ID, RECURRENCE_INFO_ID, TEMP_EXPR_ID, CURRENT_RECURRENCE_COUNT, MAX_RECURRENCE_COUNT, RUN_BY_INSTANCE_ID, START_DATE_TIME, FINISH_DATE_TIME, CANCEL_DATE_TIME, JOB_RESULT, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table "job_sandbox" violates foreign key constraint "job_sndbx_usrlgn" Detail: Key (run_as_user)=(system) is not present in table "user_login".)). Rolling back transaction. -- View this message in context: http://ofbiz.135035.n4.nabble.com/Multi-Tenant-tp4672725p4672851.html Sent from the OFBiz - User mailing list archive at Nabble.com.