Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BD80310F30 for ; Wed, 19 Mar 2014 12:28:01 +0000 (UTC) Received: (qmail 64023 invoked by uid 500); 19 Mar 2014 12:28:01 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 63799 invoked by uid 500); 19 Mar 2014 12:28:00 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 63760 invoked by uid 99); 19 Mar 2014 12:28:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2014 12:27:59 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [108.178.24.182] (HELO delivery.mailspamprotection.com) (108.178.24.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2014 12:27:54 +0000 Received: from ns1.siteground192.com ([184.154.231.10] helo=serv01.siteground192.com) by se1.mailspamprotection.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82) (envelope-from ) id 1WQFag-0000dn-0b for user@karaf.apache.org; Wed, 19 Mar 2014 07:27:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=redbite.com; s=dkim; h=Message-Id:References:To:In-Reply-To:Date:Subject:Content-Type:Mime-Version:From; bh=s4w260HAT7QBK8nhO/eSlfrRecsEtkEqRKf2FmgeFnI=; b=X1767V16POW+PoIilHgQGEytSD2RWyPjVLnAzivALUB1Hqm9OiTG1GyM4iCKVQEjoq+b1a9FxfFJc9uJfryE6DdNeK4Sjlw+cB5yxdEGQqfokhyiOky4dKdxMT9TdI8QLAFiKLSzHXLWXo9Vgj+c3xQywBV6ilVBXUPsZCiUpUs=; Received: from [193.34.186.97] (port=64697 helo=[192.168.1.103]) by serv01.siteground192.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.80.1) (envelope-from ) id 1WQFac-0007ax-7n for user@karaf.apache.org; Wed, 19 Mar 2014 07:27:22 -0500 From: Daniel McGreal Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: multipart/alternative; boundary="Apple-Mail=_F78032C0-755B-4430-8D93-376478E9DE95" Subject: Re: Karaf & Java8 Date: Wed, 19 Mar 2014 12:27:22 +0000 In-Reply-To: <15103_1395231442_53298AD2_15103_18905_1_C4E3C19CD10AA241A4A01199E95BAC4103102FE0ED@THSONEA01CMS05P.one.grp> To: user@karaf.apache.org References: <12805_1386247843_52A076A3_12805_5325_1_C4E3C19CD10AA241A4A01199E95BAC4103091AB09B@THSONEA01CMS05P.one.grp> <52A07884.4090808@nanthrax.net> <26911_1386249280_52A07C40_26911_327_1_C4E3C19CD10AA241A4A01199E95BAC4103091AB1BA@THSONEA01CMS05P.one.grp> <52A07E06.1000402@nanthrax.net> <4819_1386924058_52AAC81A_4819_7335_1_C4E3C19CD10AA241A4A01199E95BAC4103094D02A9@THSONEA01CMS05P.one.grp> <52AAD235.6070108@nanthrax.net> <31594_1386940772_52AB0964_31594_12047_1_C4E3C19CD10AA241A4A01199E95BAC4103094D0D51@THSONEA01CMS05P.one.grp> <52AB3151.5020409@nanthrax.net> <27656_1395047884_5326BDCC_27656_4595_2_C4E3C19CD10AA241A4A01199E95BAC41031007CB25@THSONEA01CMS05P.one.grp> <5326C680.6080903@nanthrax.net> <17158_1395217608_532954C8_17158_246_1_C4E3C19CD10AA241A4A01199E95BAC410310268C91@THSONEA01CMS05P.one.grp> <15103_1395231442_53298AD2_15103_18905_1_C4E3C19CD10AA241A4A01199E95BAC4103102FE0ED@THSONEA01CMS05P.one.grp> Message-Id: X-Mailer: Apple Mail (2.1257) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - serv01.siteground192.com X-AntiAbuse: Original Domain - karaf.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - redbite.com X-Get-Message-Sender-Via: serv01.siteground192.com: none X-Filter-ID: XtLePq6GTMn8G68F0EmQvZoW/Fl8E8L7SGGu21wPk0AJhdEWb5Rc1IpQlFRjlMc22/DdsWt9H9Hf mb/hALGE553TF1F3xIgFHaF+2Vzg+KY5oMNCupMsuDtMklOH6gaKZ7jVRdeRlISve/HXderiY44A zbaaY2rMsvYp355RQ0FuhMRuTMAadDEUTD487ClCXPWlFdaGOH191uXjgjQN/cY7QEWsFImn77hu ETMlYPWFpPp2RCAFfObmMSgBAvIOis3m0N5qr2jb4WsTMcXx5dED6QlDnAylSPcPvzWga888F/IJ RA8ZF8C5AnJBxSFDMd71KfVsI3DlTbF4mhactWKHfLw3wdH6E62FNuTxI6vfEuhHWDnwW51su4ta 8rzCHxu5IpwUvrZnj+35JldJfxyO6fMNMzdpPqPowJNf7tQ+ENNcBfXKL7bohxdxxQn4ympQ8D7i H1AM8XEbvxM4C0fVaxoYA7Jgbd9maoZfKEyvDBVB7iND3l9Yi93+0VqUtcSlL7qs6ZociHPeP1zX P98S6EdYOfBbnWy7i1ryvMJf+uuJ/MWWdfd2YWR40F0b5irh30Yh4kWRQDo18VGh4Rcq7VVuCmkU lEahcsQPuYfbVcCKQaZDNvP7zLWseQEAY9USuVn252LBycAsKxUSt9BmWkblmhvcshAHxJFC67Eq xCIAJptb6Jh3aldCPzk2Wxg/uRYVJdZqXCJLIx3CuA== X-Originating-IP: 184.154.231.10 X-SpamExperts-Domain: siteground192.com X-SpamExperts-Username: 184.154.231.10 Authentication-Results: mailspamprotection.com; auth=pass smtp.auth=184.154.231.10 X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: SB/global_tokens (0.00175262673543) X-Recommended-Action: accept X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_F78032C0-755B-4430-8D93-376478E9DE95 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 I think that's the part of the startup script that tries to parse the = version out of a call to /whichever/java -version =46rom memory, the script isn't capable of interpreting Java versions = that are not reported as x.x.x. Though that doesn't prevent startup. I have had startups seemingly = 'hang' when the instance wasn't able to connect to its online feature = repository. On 19 Mar 2014, at 12:17, CLEMENT Jean-Philippe wrote: > I tried the lastest 3.0.1-SNAPSHOT (not 3.1.0 yet) on RHEL6 and I get = the following error message: > ./karaf: line 242: [: : integer expression expected > =20 > Don=92t know why but karaf does not start at all. > =20 > PS: apache-karaf-3.0.1-20140319.004654-68.tar.gz > =20 > Regards, > JP > =20 > De : Guillaume Nodet [mailto:gnodet@apache.org]=20 > Envoy=E9 : mercredi 19 mars 2014 09:48 > =C0 : user > Objet : Re: Karaf & Java8 > =20 > You'll find it at the following location: > = http://repository.apache.org/content/groups/snapshots/org/apache/karaf/apa= che-karaf/3.1.0-SNAPSHOT/ > =20 >=20 > 2014-03-19 9:26 GMT+01:00 CLEMENT Jean-Philippe = : > Hi JB, >=20 > How may I download the 3.1.0-SNAPSHOT? >=20 > Regards, > JP >=20 > [@@ THALES GROUP INTERNAL @@] >=20 > -----Message d'origine----- > De : Jean-Baptiste Onofr=E9 [mailto:jb@nanthrax.net] > Envoy=E9 : lundi 17 mars 2014 10:55 > =C0 : user@karaf.apache.org > Objet : Re: Karaf & Java8 >=20 > Hi JP, >=20 > Karaf master is 3.1.0-SNAPSHOT. I will take a look on the update on = master (especially the impact on blueprint). >=20 > Regards > JB >=20 > On 03/17/2014 10:17 AM, CLEMENT Jean-Philippe wrote: > > Dear Karaf-ers, > > > > ASM 5 is released so it may be used in Karaf to get Java 8 support: > > > > "This version is fully backward compatible with ASM 5.0 BETA (itself = binary compatible with the 4.x versions) and provides full support for = the new Java 8 class format features. However, new dynamic checks have = been added in order to make sure that ASM version numbers (e.g. > > Opcodes.ASM4, Opcodes.ASM5, etc) are correctly used at runtime by = subclasses of the ASM classes (as documented in the API). > > > > Another major difference is that > > visitMethodInsn(int,String,String,String) is now deprecated, and = replaced with visitMethodInsn(int,String,String,String,boolean) -- in = order to support invokespecial and invokestatic on interfaces in Java 8. > > Visitors declared with the Opcodes.ASM5 version MUST use this new > > method instead of the deprecated one (old visitors using the > > Opcodes.ASM4 and using the deprecated method will continue to work). > > See chapters 5 and > > 10 of the User Guide > > (http://download.forge.objectweb.org/asm/asm4-guide.pdf) for more = details." > > > > I'm not familiar with ASM at all, but I would like to get Java 8 > > support :) > > > > How may I help? Is there already a Karaf 3.1.0 beta version? > > > > Regards, > > JP > > > > -----Message d'origine----- > > De : Jean-Baptiste Onofr=E9 [mailto:jb@nanthrax.net] Envoy=E9 : = vendredi > > 13 d=E9cembre 2013 17:10 =C0 : user@karaf.apache.org Objet : Re: = Karaf & > > Java8 > > > > It's exactly what I suspect about Aries Proxy and ASM. > > > > You will have a bunch of feature that won't work. > > > > I gonna check the version range. > > > > Regards > > JB > > > > On 12/13/2013 02:19 PM, CLEMENT Jean-Philippe wrote: > >> I found that ASM is installed as any normal bundle within Karaf. So = I installed the v5-beta with same start level and removed the old one. = For the moment it seems to work with Java 8, the only thing is that the = log is full of "unable to create a proxy object for ... returning the = original object instead." > >> > >> JP > >> > >> > >> -----Message d'origine----- > >> De : Jean-Baptiste Onofr=E9 [mailto:jb@nanthrax.net] Envoy=E9 : = vendredi > >> 13 d=E9cembre 2013 10:24 =C0 : user@karaf.apache.org Objet : Re: = Karaf & > >> Java8 > >> > >> Hi JP, > >> > >> as ASM 5 is still beta, we don't upgrade in Karaf (or after 3.0.0 = on trunk). > >> > >> As Aries Proxy also use ASM, I don't think that Aries tested ASM 5 = beta at all. So not sure it will work "out of the box". > >> > >> Regards > >> JB > >> > >> On 12/13/2013 09:40 AM, CLEMENT Jean-Philippe wrote: > >>> It looks like ASM 5 beta supports Java8 which is great news. > >>> > >>> Is there a way to patch Karaf? > >>> > >>> Regards, > >>> JP > >>> > >>> [@@ OPEN @@] > >>> > >>> -----Message d'origine----- > >>> De : Jean-Baptiste Onofr=E9 [mailto:jb@nanthrax.net] Envoy=E9 : = jeudi 5 > >>> d=E9cembre 2013 14:22 =C0 : user@karaf.apache.org Objet : Re: = Karaf & > >>> Java8 > >>> > >>> It depends if we need an ASM update or not. > >>> > >>> Let me take a quick look on that, I will get back to you (at least = in the Jira). > >>> > >>> Regards > >>> JB > >>> > >>> On 12/05/2013 02:14 PM, CLEMENT Jean-Philippe wrote: > >>>> Ok, well... from your experience, when could I expect a Java8 = compliant version of Karaf? > >>>> > >>>> JP > >>>> > >>>> -----Message d'origine----- > >>>> De : Jean-Baptiste Onofr=E9 [mailto:jb@nanthrax.net] Envoy=E9 : = jeudi 5 > >>>> d=E9cembre 2013 13:59 =C0 : user@karaf.apache.org Objet : Re: = Karaf & > >>>> Java8 > >>>> > >>>> Hi Jean-Philippe, > >>>> > >>>> not yet, we have to work on ASM for full support. > >>>> > >>>> I gonna take a look on that just after Karaf 3.0.0 release. > >>>> > >>>> Regards > >>>> JB > >>>> > >>>> On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe wrote: > >>>>> Dear Karaf experts, > >>>>> > >>>>> It seems Karaf 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). = Is > >>>>> there a workaround? > >>>>> > >>>>> JP > >>>>> > >>>> > >>>> -- > >>>> Jean-Baptiste Onofr=E9 > >>>> jbonofre@apache.org > >>>> http://blog.nanthrax.net > >>>> Talend - http://www.talend.com > >>>> > >>> > >>> -- > >>> Jean-Baptiste Onofr=E9 > >>> jbonofre@apache.org > >>> http://blog.nanthrax.net > >>> Talend - http://www.talend.com > >>> > >> > >> -- > >> Jean-Baptiste Onofr=E9 > >> jbonofre@apache.org > >> http://blog.nanthrax.net > >> Talend - http://www.talend.com > >> > > > > -- > > Jean-Baptiste Onofr=E9 > > jbonofre@apache.org > > http://blog.nanthrax.net > > Talend - http://www.talend.com > > >=20 > -- > Jean-Baptiste Onofr=E9 > jbonofre@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com --Apple-Mail=_F78032C0-755B-4430-8D93-376478E9DE95 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 I think that's the part of the startup script that = tries to parse the version out of a call to /whichever/java = -version
=46rom memory, the script isn't capable of interpreting = Java versions that are not reported as = x.x.x.

Though that doesn't prevent = startup. I have had startups seemingly 'hang' when the instance = wasn't able to connect to its online feature = repository.

On 19 Mar 2014, at 12:17, CLEMENT = Jean-Philippe wrote:

I tried the lastest 3.0.1-SNAPSHOT (not 3.1.0 yet) on RHEL6 = and I get the following error message:
 
Don=92t know why but karaf does not start at = all.
 
PS: = apache-karaf-3.0.1-20140319.004654-68.tar.gz
Regards,
JP
 
 Guillaume Nodet = [mailto:gnodet@apache.org] 
Envoy=E9 : 
mercredi 19 mars 2014 = 09:48
=C0 : user
Objet : Re: Karaf & = Java8
You'll find it at the = following location:
    

Envoy=E9 : lundi 17 mars 2014 = 10:55
=C0 : user@karaf.apache.org
Objet : = Re: Karaf & Java8

Hi JP,

Karaf master is = 3.1.0-SNAPSHOT. I will take a look on the update on master (especially = the impact on blueprint).

Regards
JB

On 03/17/2014 = 10:17 AM, CLEMENT Jean-Philippe wrote:
> Dear = Karaf-ers,
>
> ASM 5 is released so it may be used in Karaf = to get Java 8 support:
>
> "This version is fully backward = compatible with ASM 5.0 BETA (itself binary compatible with the 4.x = versions) and provides full support for the new Java 8 class format = features. However, new dynamic checks have been added in order to make = sure that ASM version numbers (e.g.
> Opcodes.ASM4, Opcodes.ASM5, = etc) are correctly used at runtime by subclasses of the ASM classes (as = documented in the API).
>
> Another major difference is = that
> visitMethodInsn(int,String,String,String) is now = deprecated, and replaced with = visitMethodInsn(int,String,String,String,boolean) -- in order to support = invokespecial and invokestatic on interfaces in Java 8.
> Visitors = declared with the Opcodes.ASM5 version MUST use this new
> method = instead of the deprecated one (old visitors using the
> = Opcodes.ASM4 and using the deprecated method will continue to = work).
> See chapters 5 and
> 10 of the User Guide
> = (>
> I'm not familiar with ASM at all, but I would = like to get Java 8
> support :)
>
> How may I help? Is = there already a Karaf 3.1.0 beta version?
>
> = Regards,
> JP
>
> -----Message d'origine-----
> = De : Jean-Baptiste Onofr=E9 [mailto:
jb@nanthrax.net] = Envoy=E9 : vendredi
> 13 d=E9cembre 2013 17:10 =C0 : user@karaf.apache.org Objet : Re: Karaf = &
> Java8
>
> It's exactly what I suspect about = Aries Proxy and ASM.
>
> You will have a bunch of feature = that won't work.
>
> I gonna check the version = range.
>
> Regards
> JB
>
> On 12/13/2013 = 02:19 PM, CLEMENT Jean-Philippe wrote:
>> I found that ASM is = installed as any normal bundle within Karaf. So I installed the v5-beta = with same start level and removed the old one. For the moment it seems = to work with Java 8, the only thing is that the log is full of "unable = to create a proxy object for ... returning the original object = instead."
>>
>> JP
>>
>>
>> = -----Message d'origine-----
>> De : Jean-Baptiste Onofr=E9 = [mailto:jb@nanthrax.net] Envoy=E9 : = vendredi
>> 13 d=E9cembre 2013 10:24 =C0 : user@karaf.apache.org Objet : Re: Karaf = &
>> Java8
>>
>> Hi = JP,
>>
>> as ASM 5 is still beta, we don't upgrade in = Karaf (or after 3.0.0 on trunk).
>>
>> As Aries Proxy = also use ASM, I don't think that Aries tested ASM 5 beta at all. So not = sure it will work "out of the box".
>>
>> = Regards
>> JB
>>
>> On 12/13/2013 09:40 AM, = CLEMENT Jean-Philippe wrote:
>>> It looks like ASM 5 beta = supports Java8 which is great news.
>>>
>>> Is = there a way to patch Karaf?
>>>
>>> = Regards,
>>> JP
>>>
>>> [@@ OPEN = @@]
>>>
>>> -----Message = d'origine-----
>>> De : Jean-Baptiste Onofr=E9 [mailto:jb@nanthrax.net] Envoy=E9 : jeudi 5
>>> = d=E9cembre 2013 14:22 =C0 : user@karaf.apache.org Objet : Re: Karaf = &
>>> Java8
>>>
>>> It depends = if we need an ASM update or not.
>>>
>>> Let me = take a quick look on that, I will get back to you (at least in the = Jira).
>>>
>>> Regards
>>> = JB
>>>
>>> On 12/05/2013 02:14 PM, CLEMENT = Jean-Philippe wrote:
>>>> Ok, well... from your = experience, when could I expect a Java8 compliant version of = Karaf?
>>>>
>>>> = JP
>>>>
>>>> -----Message = d'origine-----
>>>> De : Jean-Baptiste Onofr=E9 = [mailto:jb@nanthrax.net] Envoy=E9 : jeudi = 5
>>>> d=E9cembre 2013 13:59 =C0 : user@karaf.apache.org Objet : Re: Karaf = &
>>>> Java8
>>>>
>>>> = Hi Jean-Philippe,
>>>>
>>>> not yet, we = have to work on ASM for full = support.
>>>>
>>>> I gonna take a look on = that just after Karaf 3.0.0 = release.
>>>>
>>>> = Regards
>>>> JB
>>>>
>>>> = On 12/05/2013 01:50 PM, CLEMENT Jean-Philippe = wrote:
>>>>> Dear Karaf = experts,
>>>>>
>>>>> It seems Karaf = 3.0.0 RC1 doesn't work with Java8 (KARAF-2562). = Is
>>>>> there a = workaround?
>>>>>
>>>>> = JP
>>>>>
>>>>
>>>> = --
>>>> Jean-Baptiste Onofr=E9
>>>>       jbonofre@apache.org
>>   jbonofre@apache.org
> http://blog.nanthrax.net
> = Talend - jbonofre@apache.org