Return-Path: Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: (qmail 24379 invoked from network); 4 Mar 2009 06:18:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2009 06:18:41 -0000 Received: (qmail 85934 invoked by uid 500); 4 Mar 2009 06:18:40 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 85908 invoked by uid 500); 4 Mar 2009 06:18:40 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 85897 invoked by uid 99); 4 Mar 2009 06:18:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2009 22:18:40 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kristian.koehler@googlemail.com designates 209.85.219.162 as permitted sender) Received: from [209.85.219.162] (HELO mail-ew0-f162.google.com) (209.85.219.162) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 06:18:29 +0000 Received: by ewy6 with SMTP id 6so2465063ewy.22 for ; Tue, 03 Mar 2009 22:18:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=djmTFP9lfqFReR6HI1ZCvL2M1rdAF69wzaqODKD5FFA=; b=qQMyhGQFLSvZvRWXcAYFg4SFlykrt9jxoo0wzkiU2/Gd47ErKyf7tz/agB0l0dOFCc gEW/jiMQopO/r2OkdCqrM1cqe8U2aqwL/EaHZHjfSdpmgYerq7GdId7wUN1uOEmSLw5+ 7KZPvU/1gOjqNcwWmPJBCNWgkMqA6gsAyxSnk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=nKjWCrOqAGeYxhnNDJixWjwRAQzx0fkCSQolR+u8c3GbUaDxct/sjexCFIANmVc39X VEJ5DcjgWkyhojPW+UdB5IoOXNvTmhEMwBo26wnAR/CvYMgMRNsi//0iphNymi1UEGX+ pzAPytoNmdFBVd+WXdlbT7DNpYeNcHRZS1xNQ= MIME-Version: 1.0 Received: by 10.210.128.5 with SMTP id a5mr651818ebd.60.1236147488913; Tue, 03 Mar 2009 22:18:08 -0800 (PST) In-Reply-To: <93636F66-DED8-45F7-A9A4-097EC66C0663@aQute.biz> References: <49AD48B1.8020001@ungoverned.org> <067A8CF6-308C-45ED-BEB0-F18C960F481B@aQute.biz> <49AD5519.8000303@ungoverned.org> <93636F66-DED8-45F7-A9A4-097EC66C0663@aQute.biz> Date: Wed, 4 Mar 2009 07:18:08 +0100 Message-ID: Subject: Re: Exception while using obr repository file generated by the bundleplugin From: =?ISO-8859-1?Q?Kristian_K=F6hler?= To: users@felix.apache.org Content-Type: multipart/alternative; boundary=0015174c13b2f77e9e0464450313 X-Virus-Checked: Checked by ClamAV on apache.org --0015174c13b2f77e9e0464450313 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi if you send me the filter I could try to build the patch... Kristian 2009/3/3 Peter Kriens > Hmm, it often feels more like committeD ... > > Kind regards, > > Peter Kriens > > > On 3 mrt 2009, at 17:04, Richard S. Hall wrote: > > You are a committer. :-) >> >> -> richard >> >> Peter Kriens wrote: >> >>> Implement these operators? I can send you the source code for a filter >>> that implements them ... >>> >>> Kind regards, >>> >>> Peter Kriens >>> >>> On 3 mrt 2009, at 16:11, Richard S. Hall wrote: >>> >>> The issue is that bindex (which generates the repository.xml file) is >>>> using non-standard LDAP operators which are not supported by the OBR >>>> implementation. In this case, the "mandatory" directive on your bundle= is >>>> resulting in a subset operator, I believe, which is not standard LDAP. >>>> >>>> This is a known issue, although we have no solution for it at present. >>>> >>>> -> richard >>>> >>>> Kristian K=F6hler wrote: >>>> >>>>> Hi >>>>> >>>>> I'm trying to add/install some local jar files to my local OBR >>>>> repository >>>>> and then use these jar-files within felix via the bundle repository. >>>>> For >>>>> most of the files this seems to work fine but some files are corrupti= ng >>>>> my >>>>> repository (file). The following 'require' element is generated withi= n >>>>> the >>>>> obr repository file for the spring-core-2.5.6.jar file for example: >>>>> >>>>> --- 8< --- >>>>> >>>>> >>>> >>>>> filter=3D"(&(package=3Dorg.eclipse.core.runtime)(version>=3D0.= 0.0)(common=3Dsplit)(mandatory:<*common))" >>>>> multiple=3D"false" name=3D"package" optional=3D"true">Import package >>>>> org.eclipse.core.runtime >>>>> >>>>> --- 8< --- >>>>> >>>>> This elements causes the parser to throw the following exception when >>>>> invoking 'obr list' via the felix shell: >>>>> >>>>> --- 8< --- >>>>> >>>>> ERROR: Error parsing repository metadata >>>>> org.osgi.framework.InvalidSyntaxException: expected ~=3D|>=3D|<=3D >>>>> at org.apache.felix.framework.FilterImpl.(FilterImpl.java:81) >>>>> at >>>>> >>>>> org.apache.felix.framework.BundleContextImpl.createFilter(BundleConte= xtImpl.java:102) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RequirementImpl.setFilter(Requireme= ntImpl.java:57) >>>>> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source) >>>>> at >>>>> >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:25) >>>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.metadataparser.XmlCommonHandler.sta= rtElement(XmlCommonHandler.java:490) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.metadataparser.kxmlsax.KXml2SAXPars= er.parseXML(KXml2SAXParser.java:67) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryImpl.parseRepositoryFile(= RepositoryImpl.java:256) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryImpl.access$000(Repositor= yImpl.java:44) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryImpl$1.run(RepositoryImpl= .java:75) >>>>> at java.security.AccessController.doPrivileged(Native Method) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryImpl.(RepositoryImp= l.java:71) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryImpl.(RepositoryImp= l.java:60) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryAdminImpl.initialize(Repo= sitoryAdminImpl.java:206) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryAdminImpl.discoverResourc= es(RepositoryAdminImpl.java:126) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.ObrCommandImpl.list(ObrCommandImpl.= java:210) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.ObrCommandImpl.execute(ObrCommandIm= pl.java:104) >>>>> at >>>>> >>>>> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand= (Activator.java:276) >>>>> at >>>>> >>>>> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.j= ava:167) >>>>> at java.lang.Thread.run(Thread.java:619) >>>>> WARNING: RepositoryAdminImpl: Exception creating repository >>>>> file:/home/kkoehler/repository.xml. Repository is skipped. >>>>> java.lang.reflect.InvocationTargetException >>>>> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source) >>>>> at >>>>> >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:25) >>>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.metadataparser.XmlCommonHandler.sta= rtElement(XmlCommonHandler.java:490) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.metadataparser.kxmlsax.KXml2SAXPars= er.parseXML(KXml2SAXParser.java:67) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryImpl.parseRepositoryFile(= RepositoryImpl.java:256) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryImpl.access$000(Repositor= yImpl.java:44) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryImpl$1.run(RepositoryImpl= .java:75) >>>>> at java.security.AccessController.doPrivileged(Native Method) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryImpl.(RepositoryImp= l.java:71) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryImpl.(RepositoryImp= l.java:60) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryAdminImpl.initialize(Repo= sitoryAdminImpl.java:206) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RepositoryAdminImpl.discoverResourc= es(RepositoryAdminImpl.java:126) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.ObrCommandImpl.list(ObrCommandImpl.= java:210) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.ObrCommandImpl.execute(ObrCommandIm= pl.java:104) >>>>> at >>>>> >>>>> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand= (Activator.java:276) >>>>> at >>>>> >>>>> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.j= ava:167) >>>>> at java.lang.Thread.run(Thread.java:619) >>>>> Caused by: org.osgi.framework.InvalidSyntaxException: expected ~=3D|>= =3D|<=3D >>>>> at org.apache.felix.framework.FilterImpl.(FilterImpl.java:81) >>>>> at >>>>> >>>>> org.apache.felix.framework.BundleContextImpl.createFilter(BundleConte= xtImpl.java:102) >>>>> at >>>>> >>>>> org.apache.felix.bundlerepository.RequirementImpl.setFilter(Requireme= ntImpl.java:57) >>>>> ... 18 more >>>>> >>>>> --- 8< --- >>>>> >>>>> The parser expects "~=3D|>=3D|<=3D" but found "mandatory:<*common" >>>>> ('explicit' >>>>> generated by the org.osgi.impl.bundle.obr.resource.BundleInfo class). >>>>> >>>>> So I'm not sure what's going wrong here ;-) and how to fix this. >>>>> Is this the wrong syntax or is it a parser problem? >>>>> >>>>> I'm using trunk versions of the bundle repository and the bundleplugi= n >>>>> by >>>>> the way... >>>>> >>>>> Thanks >>>>> >>>>> Kristian >>>>> >>>>> >>>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>>> For additional commands, e-mail: users-help@felix.apache.org >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>> For additional commands, e-mail: users-help@felix.apache.org >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >> For additional commands, e-mail: users-help@felix.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > > --=20 http://www.kkoehler.com --0015174c13b2f77e9e0464450313--