Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 86577 invoked from network); 6 Mar 2007 12:24:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2007 12:24:05 -0000 Received: (qmail 36516 invoked by uid 500); 6 Mar 2007 12:24:13 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 36496 invoked by uid 500); 6 Mar 2007 12:24:13 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 36487 invoked by uid 99); 6 Mar 2007 12:24:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2007 04:24:13 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jukka.zitting@gmail.com designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2007 04:24:03 -0800 Received: by nf-out-0910.google.com with SMTP id x4so2476227nfb for ; Tue, 06 Mar 2007 04:23:41 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s7/AIswAFkeXYGS//6nlVZjNXED5Go4J+mDhSyZvFlCZidsR9p6ZY/E5XVFV23B5JnOgp8xw9/Uc2uKZTqETHzhxdEQcM7PuYwP2u0DoE/cCv4pYUYcfzG/0mWeDdhbrDiS9vdJBiqZuG/J23wkhIourURwl2vFmdwSzJyEEWI8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tb7eauGACRuLK0PC1oe1sNAlflk3rdLKWjwIT/zgi3RChnL1b430V7Rx05Q+V8HLCDItW9XwhQyhQQQhOPvSXyJj/TtSsDmfESS+MDQodDOSxkHA2b7XQhpIRu7XSGk3/fLWGzNyYY7cfsuMU8sa9pcnxXfii2wcJMIlMyRGrV0= Received: by 10.78.170.17 with SMTP id s17mr549968hue.1173183820412; Tue, 06 Mar 2007 04:23:40 -0800 (PST) Received: by 10.78.177.10 with HTTP; Tue, 6 Mar 2007 04:23:40 -0800 (PST) Message-ID: <510143ac0703060423j4bb904camfee59a81ae4332b0@mail.gmail.com> Date: Tue, 6 Mar 2007 14:23:40 +0200 From: "Jukka Zitting" To: users@jackrabbit.apache.org Subject: Re: no such object in table In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Hi, On 3/5/07, Marcel Dullaart wrote: > I am trying to access the jack rabbit repository as shipped with JBoss > Portal remotely. > [...] > RemoteRepository remoteRepository = > adapterFactory.getRemoteRepository(localRepository); > context.bind(JNDI_NAME, remoteRepository); > [...] > RemoteRepository remoteRepository = (RemoteRepository) object; > repository = factory.getRepository(remoteRepository); > > Still no problem. The problem occur when I try to login: > Session session = repository.login(); > > Now I get the following stack: > Exception in thread "main" > org.apache.jackrabbit.rmi.client.RemoteRepositoryException: no such > object in table: no such object in table > at org.apache.jackrabbit.rmi.client.ClientRepository.login(ClientRepository.java:79) > [...] > Can someone tell what I am doing wrong here? I'm not too familiar with JBoss, but one potential issue is that you are binding the server repository itself in JNDI instead of the serializable RMI stub for that object. Try using: context.bind(JNDI_NAME, RemoteObject.toStub(remoteRepository)); Note also that you need to keep a reference to the remoteRepository instance to avoid it from being garbage collected, as the stub doesn't contain a direct reference to it. BR, Jukka Zitting