karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Karaf & Java8
Date Wed, 19 Mar 2014 16:23:20 GMT
Hi JP,

the problem only occurs with Java8 ?

(I don't think so regarding the issue).

I tried just now without problem on Ubuntu, I'm testing on my CentOS VM.

Regards
JB

On 03/19/2014 01:17 PM, 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
>
> Don’t know why but karaf does not start at all.
>
> PS: apache-karaf-3.0.1-20140319.004654-68.tar.gz
>
> Regards,
>
> JP
>
> *De :*Guillaume Nodet [mailto:gnodet@apache.org]
> *Envoyé :* mercredi 19 mars 2014 09:48
> *À :* user
> *Objet :* Re: Karaf & Java8
>
> You'll find it at the following location:
>
> http://repository.apache.org/content/groups/snapshots/org/apache/karaf/apache-karaf/3.1.0-SNAPSHOT/
>
> 2014-03-19 9:26 GMT+01:00 CLEMENT Jean-Philippe
> <jean-philippe.clement@fr.thalesgroup.com
> <mailto:jean-philippe.clement@fr.thalesgroup.com>>:
>
> Hi JB,
>
> How may I download the 3.1.0-SNAPSHOT?
>
> Regards,
> JP
>
> [@@ THALES GROUP INTERNAL @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net <mailto:jb@nanthrax.net>]
>
> Envoyé : lundi 17 mars 2014 10:55
>
> À : user@karaf.apache.org <mailto: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
>  > (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é [mailto:jb@nanthrax.net
> <mailto:jb@nanthrax.net>] Envoyé : vendredi
>  > 13 décembre 2013 17:10 À : user@karaf.apache.org
> <mailto: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é [mailto:jb@nanthrax.net
> <mailto:jb@nanthrax.net>] Envoyé : vendredi
>  >> 13 décembre 2013 10:24 À : user@karaf.apache.org
> <mailto: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é [mailto:jb@nanthrax.net
> <mailto:jb@nanthrax.net>] Envoyé : jeudi 5
>  >>> décembre 2013 14:22 À : user@karaf.apache.org
> <mailto: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é [mailto:jb@nanthrax.net
> <mailto:jb@nanthrax.net>] Envoyé : jeudi 5
>  >>>> décembre 2013 13:59 À : user@karaf.apache.org
> <mailto: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é
>  >>>> jbonofre@apache.org <mailto:jbonofre@apache.org>
>  >>>> http://blog.nanthrax.net
>  >>>> Talend - http://www.talend.com
>  >>>>
>  >>>
>  >>> --
>  >>> Jean-Baptiste Onofré
>  >>> jbonofre@apache.org <mailto:jbonofre@apache.org>
>  >>> http://blog.nanthrax.net
>  >>> Talend - http://www.talend.com
>  >>>
>  >>
>  >> --
>  >> Jean-Baptiste Onofré
>  >> jbonofre@apache.org <mailto:jbonofre@apache.org>
>  >> http://blog.nanthrax.net
>  >> Talend - http://www.talend.com
>  >>
>  >
>  > --
>  > Jean-Baptiste Onofré
>  > jbonofre@apache.org <mailto:jbonofre@apache.org>
>  > http://blog.nanthrax.net
>  > Talend - http://www.talend.com
>  >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <mailto:jbonofre@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message