You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Simon Chemouil <sc...@gmail.com> on 2014/04/04 14:28:29 UTC

Apache Karaf 3.0.0 doesn't seem to run

Hi,

I'm trying Karaf again for a project, and I would use 3.0.0 since I'd
like to use a recent version of Felix as my container. Unfortunately
Karaf fails on the first step of the tutorial[1].

While the Karaf 2.2.4 distribution works just fine when running
bin/karaf (out of a fresh install), the same with Karaf 3.0.0 just
freezes, that is: while the process is exposed in JMX (I can connect to
it in JVisualVM/JConsole, and has a few threads), there is *no* output
(not even the banner). If I run the "start" script, it runs in
background but I cannot connect to it.

I suppose there is a deadlock, and I tried to run the "detect deadlock"
operation from the MBean but I don't have the necessary rights when
connecting from JConsole/JVisualVM.

You can find the thread dump here: http://pastebin.com/MgkCvbut

I'm running Ubuntu 13.10 64bit.


[1] http://karaf.apache.org/manual/latest/users-guide/start-stop.html

Thanks for your help,

-- 
Simon

Re: Apache Karaf 3.0.0 doesn't seem to run

Posted by Simon Chemouil <sc...@gmail.com>.
Forgot to say I tried both HotSpot 1.7 and 1.8.

Simon

Le 04/04/2014 14:28, Simon Chemouil a écrit :
> Hi,
> 
> I'm trying Karaf again for a project, and I would use 3.0.0 since I'd
> like to use a recent version of Felix as my container. Unfortunately
> Karaf fails on the first step of the tutorial[1].
> 
> While the Karaf 2.2.4 distribution works just fine when running
> bin/karaf (out of a fresh install), the same with Karaf 3.0.0 just
> freezes, that is: while the process is exposed in JMX (I can connect to
> it in JVisualVM/JConsole, and has a few threads), there is *no* output
> (not even the banner). If I run the "start" script, it runs in
> background but I cannot connect to it.
> 
> I suppose there is a deadlock, and I tried to run the "detect deadlock"
> operation from the MBean but I don't have the necessary rights when
> connecting from JConsole/JVisualVM.
> 
> You can find the thread dump here: http://pastebin.com/MgkCvbut
> 
> I'm running Ubuntu 13.10 64bit.
> 
> 
> [1] http://karaf.apache.org/manual/latest/users-guide/start-stop.html
> 
> Thanks for your help,
> 

Re: Apache Karaf 3.0.0 doesn't seem to run

Posted by Simon Chemouil <sc...@gmail.com>.
OK I just managed to get 3.0.0 running by starting it with the clean
command.

I suppose it went like this:
(1) first tried to run it with Java 8, it wrote some corrupted local
data cache (because of blueprint being unable to create proxies with
Java 8?).
(2) then I exported the JDK_HOME variable to use Java 7. Which couldn't
still run because of the corrupted cache.

Simon

Le 04/04/2014 14:55, Simon Chemouil a écrit :
> The problem seems to be with BluePrint Core. These exceptions don't show
> up with 3.0.1-SNAPSHOT.
> 
> Simon
> 
> Le 04/04/2014 14:49, Jean-Baptiste Onofré a écrit :
>> Hi Simon,
>>
>> Java7 Sun/Oracle and Karaf 3.0.0 should work straight forward.
>>
>> Java8 should be supported starting from 3.0.2 (ASM5 has been released,
>> but we need xbean 3.17 for Java8 support). I'm working on it.
>>
>> Regarding your issue, do you have something in data/log/karaf.log ?
>>
>> Regards
>> JB
>>
>> On 04/04/2014 02:42 PM, Simon Chemouil wrote:
>>> So I managed to connect to the process using JMX, JConsole can't detect
>>> a deadlock with java.lang.Threading#findDeadlockedThreads()
>>>
>>> I'm doing my tests with Oracle's Java 7 VM.
>>>
>>> (actually, the project I work on uses Java 8. It would be nice to know
>>> if there's an ETA for Java 8 support, to know if I should continue to
>>> see if Karaf is a good fit).
>>>
>>> I'll try 3.0.1-SNAPSHOT now and keep you tuned :).
>>>
>>> Thanks,
>>>
>>

Re: Apache Karaf 3.0.0 doesn't seem to run

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Could you try:
1/ to remove the data folder (rm -fr data)
2/ and start Karaf: cd bin && ./karaf

Thanks,
Regards
JB

On 04/04/2014 02:55 PM, Simon Chemouil wrote:
> The problem seems to be with BluePrint Core. These exceptions don't show
> up with 3.0.1-SNAPSHOT.
>
> Simon
>
> Le 04/04/2014 14:49, Jean-Baptiste Onofré a écrit :
>> Hi Simon,
>>
>> Java7 Sun/Oracle and Karaf 3.0.0 should work straight forward.
>>
>> Java8 should be supported starting from 3.0.2 (ASM5 has been released,
>> but we need xbean 3.17 for Java8 support). I'm working on it.
>>
>> Regarding your issue, do you have something in data/log/karaf.log ?
>>
>> Regards
>> JB
>>
>> On 04/04/2014 02:42 PM, Simon Chemouil wrote:
>>> So I managed to connect to the process using JMX, JConsole can't detect
>>> a deadlock with java.lang.Threading#findDeadlockedThreads()
>>>
>>> I'm doing my tests with Oracle's Java 7 VM.
>>>
>>> (actually, the project I work on uses Java 8. It would be nice to know
>>> if there's an ETA for Java 8 support, to know if I should continue to
>>> see if Karaf is a good fit).
>>>
>>> I'll try 3.0.1-SNAPSHOT now and keep you tuned :).
>>>
>>> Thanks,
>>>
>>

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

Re: Apache Karaf 3.0.0 doesn't seem to run

Posted by Simon Chemouil <sc...@gmail.com>.
The problem seems to be with BluePrint Core. These exceptions don't show
up with 3.0.1-SNAPSHOT.

Simon

Le 04/04/2014 14:49, Jean-Baptiste Onofré a écrit :
> Hi Simon,
> 
> Java7 Sun/Oracle and Karaf 3.0.0 should work straight forward.
> 
> Java8 should be supported starting from 3.0.2 (ASM5 has been released,
> but we need xbean 3.17 for Java8 support). I'm working on it.
> 
> Regarding your issue, do you have something in data/log/karaf.log ?
> 
> Regards
> JB
> 
> On 04/04/2014 02:42 PM, Simon Chemouil wrote:
>> So I managed to connect to the process using JMX, JConsole can't detect
>> a deadlock with java.lang.Threading#findDeadlockedThreads()
>>
>> I'm doing my tests with Oracle's Java 7 VM.
>>
>> (actually, the project I work on uses Java 8. It would be nice to know
>> if there's an ETA for Java 8 support, to know if I should continue to
>> see if Karaf is a good fit).
>>
>> I'll try 3.0.1-SNAPSHOT now and keep you tuned :).
>>
>> Thanks,
>>
> 

Re: Apache Karaf 3.0.0 doesn't seem to run

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Simon,

Java7 Sun/Oracle and Karaf 3.0.0 should work straight forward.

Java8 should be supported starting from 3.0.2 (ASM5 has been released, 
but we need xbean 3.17 for Java8 support). I'm working on it.

Regarding your issue, do you have something in data/log/karaf.log ?

Regards
JB

On 04/04/2014 02:42 PM, Simon Chemouil wrote:
> So I managed to connect to the process using JMX, JConsole can't detect
> a deadlock with java.lang.Threading#findDeadlockedThreads()
>
> I'm doing my tests with Oracle's Java 7 VM.
>
> (actually, the project I work on uses Java 8. It would be nice to know
> if there's an ETA for Java 8 support, to know if I should continue to
> see if Karaf is a good fit).
>
> I'll try 3.0.1-SNAPSHOT now and keep you tuned :).
>
> Thanks,
>

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

Re: Apache Karaf 3.0.0 doesn't seem to run

Posted by Simon Chemouil <sc...@gmail.com>.
I'm behind a NAT but there's no proxy.

Simon


Le 04/04/2014 14:50, Jean-Baptiste Onofré a écrit :
> If it works with 3.0.1-SNAPSHOT, I'm pretty sure it's the features
> repository XML not in the system folder.
> When you said that you have an Internet connection, you mean direct
> Internet or via a proxy ?
> 
> Regards
> JB
> 
> On 04/04/2014 02:48 PM, Simon Chemouil wrote:
>> 3.0.1-SNAPSHOT fixes the issue for me.
>>
>> Thanks for the quick help :)
>>
>> Now off to test (and to know when ASM will support Java 8 classfiles so
>> that Karaf can be compatible if I understood right?)
>>
> 

Re: Apache Karaf 3.0.0 doesn't seem to run

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
If it works with 3.0.1-SNAPSHOT, I'm pretty sure it's the features 
repository XML not in the system folder.
When you said that you have an Internet connection, you mean direct 
Internet or via a proxy ?

Regards
JB

On 04/04/2014 02:48 PM, Simon Chemouil wrote:
> 3.0.1-SNAPSHOT fixes the issue for me.
>
> Thanks for the quick help :)
>
> Now off to test (and to know when ASM will support Java 8 classfiles so
> that Karaf can be compatible if I understood right?)
>

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

Re: Apache Karaf 3.0.0 doesn't seem to run

Posted by Simon Chemouil <sc...@gmail.com>.
3.0.1-SNAPSHOT fixes the issue for me.

Thanks for the quick help :)

Now off to test (and to know when ASM will support Java 8 classfiles so
that Karaf can be compatible if I understood right?)

-- 
Simon

Le 04/04/2014 14:42, Simon Chemouil a écrit :
> So I managed to connect to the process using JMX, JConsole can't detect
> a deadlock with java.lang.Threading#findDeadlockedThreads()
> 
> I'm doing my tests with Oracle's Java 7 VM.
> 
> (actually, the project I work on uses Java 8. It would be nice to know
> if there's an ETA for Java 8 support, to know if I should continue to
> see if Karaf is a good fit).
> 
> I'll try 3.0.1-SNAPSHOT now and keep you tuned :).
> 
> Thanks,
> 

Re: Apache Karaf 3.0.0 doesn't seem to run

Posted by Simon Chemouil <sc...@gmail.com>.
So I managed to connect to the process using JMX, JConsole can't detect
a deadlock with java.lang.Threading#findDeadlockedThreads()

I'm doing my tests with Oracle's Java 7 VM.

(actually, the project I work on uses Java 8. It would be nice to know
if there's an ETA for Java 8 support, to know if I should continue to
see if Karaf is a good fit).

I'll try 3.0.1-SNAPSHOT now and keep you tuned :).

Thanks,

-- 
Simon

Le 04/04/2014 14:35, Simon Chemouil a écrit :
> Hi JB,
> 
> Yes I'm trying to run Karaf on my dev PC which is connected to the Internet.
> 
> I'll try the JMX thingy right now.
> 
> Simon
> 
> Le 04/04/2014 14:33, Jean-Baptiste Onofré a écrit :
>> Hi Simon,
>>
>> do you have an internet connection on the machine where you try to run
>> Karaf 3.0.0 ?
>> We have an issue on 3.0.0 requiring an internet connection to start. It
>> will be fixed in 3.0.1.
>>
>> For the jconsole, you have to use the JMX service URL:
>> service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root (not the local
>> process).
>>
>> Regards
>> JB
>>
>> On 04/04/2014 02:28 PM, Simon Chemouil wrote:
>>> Hi,
>>>
>>> I'm trying Karaf again for a project, and I would use 3.0.0 since I'd
>>> like to use a recent version of Felix as my container. Unfortunately
>>> Karaf fails on the first step of the tutorial[1].
>>>
>>> While the Karaf 2.2.4 distribution works just fine when running
>>> bin/karaf (out of a fresh install), the same with Karaf 3.0.0 just
>>> freezes, that is: while the process is exposed in JMX (I can connect to
>>> it in JVisualVM/JConsole, and has a few threads), there is *no* output
>>> (not even the banner). If I run the "start" script, it runs in
>>> background but I cannot connect to it.
>>>
>>> I suppose there is a deadlock, and I tried to run the "detect deadlock"
>>> operation from the MBean but I don't have the necessary rights when
>>> connecting from JConsole/JVisualVM.
>>>
>>> You can find the thread dump here: http://pastebin.com/MgkCvbut
>>>
>>> I'm running Ubuntu 13.10 64bit.
>>>
>>>
>>> [1] http://karaf.apache.org/manual/latest/users-guide/start-stop.html
>>>
>>> Thanks for your help,
>>>
>>

Re: Apache Karaf 3.0.0 doesn't seem to run

Posted by Achim Nierbeck <bc...@googlemail.com>.
Oh and forgot to mention, it will work better with 3.0.1 and while it looks
like you're testing, you might be interested in using the latest SNAPSHOT
version.
We are at a stage where we are about to release the next version and it
does have a lot of nice fixes that you might be interested already :)

regards, Achim


2014-04-04 14:38 GMT+02:00 Achim Nierbeck <bc...@googlemail.com>:

> Java 8 won't work because of ASM, right now ...
>
> regards, Achim
>
>
> 2014-04-04 14:35 GMT+02:00 Simon Chemouil <sc...@gmail.com>:
>
> Hi JB,
>>
>> Yes I'm trying to run Karaf on my dev PC which is connected to the
>> Internet.
>>
>> I'll try the JMX thingy right now.
>>
>> Simon
>>
>> Le 04/04/2014 14:33, Jean-Baptiste Onofré a écrit :
>> > Hi Simon,
>> >
>> > do you have an internet connection on the machine where you try to run
>> > Karaf 3.0.0 ?
>> > We have an issue on 3.0.0 requiring an internet connection to start. It
>> > will be fixed in 3.0.1.
>> >
>> > For the jconsole, you have to use the JMX service URL:
>> > service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root (not the local
>> > process).
>> >
>> > Regards
>> > JB
>> >
>> > On 04/04/2014 02:28 PM, Simon Chemouil wrote:
>> >> Hi,
>> >>
>> >> I'm trying Karaf again for a project, and I would use 3.0.0 since I'd
>> >> like to use a recent version of Felix as my container. Unfortunately
>> >> Karaf fails on the first step of the tutorial[1].
>> >>
>> >> While the Karaf 2.2.4 distribution works just fine when running
>> >> bin/karaf (out of a fresh install), the same with Karaf 3.0.0 just
>> >> freezes, that is: while the process is exposed in JMX (I can connect to
>> >> it in JVisualVM/JConsole, and has a few threads), there is *no* output
>> >> (not even the banner). If I run the "start" script, it runs in
>> >> background but I cannot connect to it.
>> >>
>> >> I suppose there is a deadlock, and I tried to run the "detect deadlock"
>> >> operation from the MBean but I don't have the necessary rights when
>> >> connecting from JConsole/JVisualVM.
>> >>
>> >> You can find the thread dump here: http://pastebin.com/MgkCvbut
>> >>
>> >> I'm running Ubuntu 13.10 64bit.
>> >>
>> >>
>> >> [1] http://karaf.apache.org/manual/latest/users-guide/start-stop.html
>> >>
>> >> Thanks for your help,
>> >>
>> >
>>
>
>
>
> --
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>


-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Re: Apache Karaf 3.0.0 doesn't seem to run

Posted by Achim Nierbeck <bc...@googlemail.com>.
Java 8 won't work because of ASM, right now ...

regards, Achim


2014-04-04 14:35 GMT+02:00 Simon Chemouil <sc...@gmail.com>:

> Hi JB,
>
> Yes I'm trying to run Karaf on my dev PC which is connected to the
> Internet.
>
> I'll try the JMX thingy right now.
>
> Simon
>
> Le 04/04/2014 14:33, Jean-Baptiste Onofré a écrit :
> > Hi Simon,
> >
> > do you have an internet connection on the machine where you try to run
> > Karaf 3.0.0 ?
> > We have an issue on 3.0.0 requiring an internet connection to start. It
> > will be fixed in 3.0.1.
> >
> > For the jconsole, you have to use the JMX service URL:
> > service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root (not the local
> > process).
> >
> > Regards
> > JB
> >
> > On 04/04/2014 02:28 PM, Simon Chemouil wrote:
> >> Hi,
> >>
> >> I'm trying Karaf again for a project, and I would use 3.0.0 since I'd
> >> like to use a recent version of Felix as my container. Unfortunately
> >> Karaf fails on the first step of the tutorial[1].
> >>
> >> While the Karaf 2.2.4 distribution works just fine when running
> >> bin/karaf (out of a fresh install), the same with Karaf 3.0.0 just
> >> freezes, that is: while the process is exposed in JMX (I can connect to
> >> it in JVisualVM/JConsole, and has a few threads), there is *no* output
> >> (not even the banner). If I run the "start" script, it runs in
> >> background but I cannot connect to it.
> >>
> >> I suppose there is a deadlock, and I tried to run the "detect deadlock"
> >> operation from the MBean but I don't have the necessary rights when
> >> connecting from JConsole/JVisualVM.
> >>
> >> You can find the thread dump here: http://pastebin.com/MgkCvbut
> >>
> >> I'm running Ubuntu 13.10 64bit.
> >>
> >>
> >> [1] http://karaf.apache.org/manual/latest/users-guide/start-stop.html
> >>
> >> Thanks for your help,
> >>
> >
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Re: Apache Karaf 3.0.0 doesn't seem to run

Posted by Simon Chemouil <sc...@gmail.com>.
Hi JB,

Yes I'm trying to run Karaf on my dev PC which is connected to the Internet.

I'll try the JMX thingy right now.

Simon

Le 04/04/2014 14:33, Jean-Baptiste Onofré a écrit :
> Hi Simon,
> 
> do you have an internet connection on the machine where you try to run
> Karaf 3.0.0 ?
> We have an issue on 3.0.0 requiring an internet connection to start. It
> will be fixed in 3.0.1.
> 
> For the jconsole, you have to use the JMX service URL:
> service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root (not the local
> process).
> 
> Regards
> JB
> 
> On 04/04/2014 02:28 PM, Simon Chemouil wrote:
>> Hi,
>>
>> I'm trying Karaf again for a project, and I would use 3.0.0 since I'd
>> like to use a recent version of Felix as my container. Unfortunately
>> Karaf fails on the first step of the tutorial[1].
>>
>> While the Karaf 2.2.4 distribution works just fine when running
>> bin/karaf (out of a fresh install), the same with Karaf 3.0.0 just
>> freezes, that is: while the process is exposed in JMX (I can connect to
>> it in JVisualVM/JConsole, and has a few threads), there is *no* output
>> (not even the banner). If I run the "start" script, it runs in
>> background but I cannot connect to it.
>>
>> I suppose there is a deadlock, and I tried to run the "detect deadlock"
>> operation from the MBean but I don't have the necessary rights when
>> connecting from JConsole/JVisualVM.
>>
>> You can find the thread dump here: http://pastebin.com/MgkCvbut
>>
>> I'm running Ubuntu 13.10 64bit.
>>
>>
>> [1] http://karaf.apache.org/manual/latest/users-guide/start-stop.html
>>
>> Thanks for your help,
>>
> 

Re: Apache Karaf 3.0.0 doesn't seem to run

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Simon,

do you have an internet connection on the machine where you try to run 
Karaf 3.0.0 ?
We have an issue on 3.0.0 requiring an internet connection to start. It 
will be fixed in 3.0.1.

For the jconsole, you have to use the JMX service URL: 
service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root (not the local 
process).

Regards
JB

On 04/04/2014 02:28 PM, Simon Chemouil wrote:
> Hi,
>
> I'm trying Karaf again for a project, and I would use 3.0.0 since I'd
> like to use a recent version of Felix as my container. Unfortunately
> Karaf fails on the first step of the tutorial[1].
>
> While the Karaf 2.2.4 distribution works just fine when running
> bin/karaf (out of a fresh install), the same with Karaf 3.0.0 just
> freezes, that is: while the process is exposed in JMX (I can connect to
> it in JVisualVM/JConsole, and has a few threads), there is *no* output
> (not even the banner). If I run the "start" script, it runs in
> background but I cannot connect to it.
>
> I suppose there is a deadlock, and I tried to run the "detect deadlock"
> operation from the MBean but I don't have the necessary rights when
> connecting from JConsole/JVisualVM.
>
> You can find the thread dump here: http://pastebin.com/MgkCvbut
>
> I'm running Ubuntu 13.10 64bit.
>
>
> [1] http://karaf.apache.org/manual/latest/users-guide/start-stop.html
>
> Thanks for your help,
>

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