You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Karl Pauls <ka...@gmail.com> on 2009/05/04 12:12:33 UTC

Re: [GSoC] About Harmony OSGi-ed

Please ignore the exception in felix. It is not really an exception at
all but a printStackTrace that will be removed by the next release.
Sorry about that :-)

Felix should still work as expected so no need to worry. The reason
why you don't see the stacktrace on sun is that their URLClassloader
doesn't toString and recreate it's urls on classloads -- which harmony
does apparently (I'd say that is a bug in harmony but that is
unrelated to the problem at hand). We work around that issue inside
felix and the stacktrace you see is only indicating this (it wasn't
supposed to be still in there - I removed it in trunk).

regards,

Karl

2009/4/28 tian galaxy <ha...@gmail.com>:
> Hi,Alexei
> Thanks .
>
> No .It seems that it is not the problem of felix since no exception is
> thrown runing on sun.
> The IOException is thrown at [1].So I debug into that line .
> Seems it related to the class dalvik.system.DexFileClass .The " connection "
> to open is [2].
>
> While the strange thing is when I debug on the sun's jdk I never got to line
> [1],even the function URLHandlersStreamHandlerProxy.openConnection.
> I may need more time to debug into it .Also I think I will try to join the
> mailinglist of Felix to find more information.
> I am a little busy with something else in my lab in the last few days.I
> think I will investigate on this problem intensively this week:)
>
> [1]at
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:283)
> [2]http://felix.extensions:9/dalvik/system/DexFile.class
>
> Regards
> Michael
>
> 2009/4/28 Alexei Fedotov <al...@gmail.com>
>
>> Michael,
>> How it is going with Felix? Have you succeed to launch it without
>> exception?
>>
>> Thanks!
>>
>> On Tue, Apr 28, 2009 at 8:48 AM, tian galaxy <ha...@gmail.com>
>> wrote:
>> > Hi All
>> >
>> > First , thanks for giving me this precious opportunity .To me it is a
>> great
>> > honor to be able participate in this year summer code .
>> > This time of the period is for bonding and preparation ,so I've already
>> > started reading specs and relevance meterials and also had some rewarding
>> > discussions with my mentor ,Jimmy.
>> >
>> > Second ,OSGi is an important attribute of Hamrony runtime and  I know
>> many
>> > of you are experts on Harmony and drlvm , so there must be many
>> > brilliant ideas about how the OSGi-ed Harmony should be and how to
>> realize
>> > that in your mind. So before getting started , I'd like you could
>> > share some of your precious ideas about this with me and discuss together
>> > ,thus make Harmony a better OSGi-ed java runtime !
>> > Any ideas ,descriptions and information will be appreciated !
>> >
>> > Thanks a billion!
>> >
>> > --
>> > Regards
>> > Michael Tian
>> >
>>
>>
>>
>> --
>> With best regards / с наилучшими пожеланиями,
>> Alexei Fedotov / Алексей Федотов,
>> http://www.telecom-express.ru/
>> http://people.apache.org/~aaf/ <http://people.apache.org/%7Eaaf/>
>> http://harmony.apache.org/
>> http://code.google.com/p/openmeetings/
>>
>
>
>
> --
> Regards
> Michael Tian
>



-- 
Karl Pauls
karlpauls@gmail.com

Re: [GSoC] About Harmony OSGi-ed

Posted by Karl Pauls <ka...@gmail.com>.
2009/5/4 tian galaxy <ha...@gmail.com>:
> Pauls,
> Thanks for the information .May be it's just  the version of HDK is old .
> I will check out the latest ones.
> Thanks .

I was talking about a printStackTrace in felix. So using a newer
version of HDK wont change thinks. Try updating to the latest felix
trunk - that should make the output go away.

regards,

Karl

> 2009/5/4 Karl Pauls <ka...@gmail.com>
>
>> Please ignore the exception in felix. It is not really an exception at
>> all but a printStackTrace that will be removed by the next release.
>> Sorry about that :-)
>
> That's all right :)
>
>>
>>
>> Felix should still work as expected so no need to worry. The reason
>> why you don't see the stacktrace on sun is that their URLClassloader
>> doesn't toString and recreate it's urls on classloads -- which harmony
>> does apparently (I'd say that is a bug in harmony but that is
>> unrelated to the problem at hand). We work around that issue inside
>> felix and the stacktrace you see is only indicating this (it wasn't
>> supposed to be still in there - I removed it in trunk).
>>
>> regards,
>>
>> Karl
>>
>> 2009/4/28 tian galaxy <ha...@gmail.com>:
>> > Hi,Alexei
>> > Thanks .
>> >
>> > No .It seems that it is not the problem of felix since no exception is
>> > thrown runing on sun.
>> > The IOException is thrown at [1].So I debug into that line .
>> > Seems it related to the class dalvik.system.DexFileClass .The "
>> connection "
>> > to open is [2].
>> >
>> > While the strange thing is when I debug on the sun's jdk I never got to
>> line
>> > [1],even the function URLHandlersStreamHandlerProxy.openConnection.
>> > I may need more time to debug into it .Also I think I will try to join
>> the
>> > mailinglist of Felix to find more information.
>> > I am a little busy with something else in my lab in the last few days.I
>> > think I will investigate on this problem intensively this week:)
>> >
>> > [1]at
>> >
>> org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:283)
>> > [2]http://felix.extensions:9/dalvik/system/DexFile.class
>> >
>> > Regards
>> > Michael
>> >
>> > 2009/4/28 Alexei Fedotov <al...@gmail.com>
>> >
>> >> Michael,
>> >> How it is going with Felix? Have you succeed to launch it without
>> >> exception?
>> >>
>> >> Thanks!
>> >>
>> >> On Tue, Apr 28, 2009 at 8:48 AM, tian galaxy <ha...@gmail.com>
>> >> wrote:
>> >> > Hi All
>> >> >
>> >> > First , thanks for giving me this precious opportunity .To me it is a
>> >> great
>> >> > honor to be able participate in this year summer code .
>> >> > This time of the period is for bonding and preparation ,so I've
>> already
>> >> > started reading specs and relevance meterials and also had some
>> rewarding
>> >> > discussions with my mentor ,Jimmy.
>> >> >
>> >> > Second ,OSGi is an important attribute of Hamrony runtime and  I know
>> >> many
>> >> > of you are experts on Harmony and drlvm , so there must be many
>> >> > brilliant ideas about how the OSGi-ed Harmony should be and how to
>> >> realize
>> >> > that in your mind. So before getting started , I'd like you could
>> >> > share some of your precious ideas about this with me and discuss
>> together
>> >> > ,thus make Harmony a better OSGi-ed java runtime !
>> >> > Any ideas ,descriptions and information will be appreciated !
>> >> >
>> >> > Thanks a billion!
>> >> >
>> >> > --
>> >> > Regards
>> >> > Michael Tian
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> With best regards / с наилучшими пожеланиями,
>> >> Alexei Fedotov / Алексей Федотов,
>> >> http://www.telecom-express.ru/
>> >> http://people.apache.org/~aaf/ <http://people.apache.org/%7Eaaf/>
>> >> http://harmony.apache.org/
>> >> http://code.google.com/p/openmeetings/
>> >>
>> >
>> >
>> >
>> > --
>> > Regards
>> > Michael Tian
>> >
>>
>>
>>
>> --
>> Karl Pauls
>> karlpauls@gmail.com
>>
>
>
>
> --
> Regards
> Michael Tian
>



-- 
Karl Pauls
karlpauls@gmail.com

Re: [GSoC] About Harmony OSGi-ed

Posted by tian galaxy <ha...@gmail.com>.
Pauls,
Thanks for the information .May be it's just  the version of HDK is old .
I will check out the latest ones.
Thanks .

2009/5/4 Karl Pauls <ka...@gmail.com>

> Please ignore the exception in felix. It is not really an exception at
> all but a printStackTrace that will be removed by the next release.
> Sorry about that :-)

That's all right :)

>
>
> Felix should still work as expected so no need to worry. The reason
> why you don't see the stacktrace on sun is that their URLClassloader
> doesn't toString and recreate it's urls on classloads -- which harmony
> does apparently (I'd say that is a bug in harmony but that is
> unrelated to the problem at hand). We work around that issue inside
> felix and the stacktrace you see is only indicating this (it wasn't
> supposed to be still in there - I removed it in trunk).
>
> regards,
>
> Karl
>
> 2009/4/28 tian galaxy <ha...@gmail.com>:
> > Hi,Alexei
> > Thanks .
> >
> > No .It seems that it is not the problem of felix since no exception is
> > thrown runing on sun.
> > The IOException is thrown at [1].So I debug into that line .
> > Seems it related to the class dalvik.system.DexFileClass .The "
> connection "
> > to open is [2].
> >
> > While the strange thing is when I debug on the sun's jdk I never got to
> line
> > [1],even the function URLHandlersStreamHandlerProxy.openConnection.
> > I may need more time to debug into it .Also I think I will try to join
> the
> > mailinglist of Felix to find more information.
> > I am a little busy with something else in my lab in the last few days.I
> > think I will investigate on this problem intensively this week:)
> >
> > [1]at
> >
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:283)
> > [2]http://felix.extensions:9/dalvik/system/DexFile.class
> >
> > Regards
> > Michael
> >
> > 2009/4/28 Alexei Fedotov <al...@gmail.com>
> >
> >> Michael,
> >> How it is going with Felix? Have you succeed to launch it without
> >> exception?
> >>
> >> Thanks!
> >>
> >> On Tue, Apr 28, 2009 at 8:48 AM, tian galaxy <ha...@gmail.com>
> >> wrote:
> >> > Hi All
> >> >
> >> > First , thanks for giving me this precious opportunity .To me it is a
> >> great
> >> > honor to be able participate in this year summer code .
> >> > This time of the period is for bonding and preparation ,so I've
> already
> >> > started reading specs and relevance meterials and also had some
> rewarding
> >> > discussions with my mentor ,Jimmy.
> >> >
> >> > Second ,OSGi is an important attribute of Hamrony runtime and  I know
> >> many
> >> > of you are experts on Harmony and drlvm , so there must be many
> >> > brilliant ideas about how the OSGi-ed Harmony should be and how to
> >> realize
> >> > that in your mind. So before getting started , I'd like you could
> >> > share some of your precious ideas about this with me and discuss
> together
> >> > ,thus make Harmony a better OSGi-ed java runtime !
> >> > Any ideas ,descriptions and information will be appreciated !
> >> >
> >> > Thanks a billion!
> >> >
> >> > --
> >> > Regards
> >> > Michael Tian
> >> >
> >>
> >>
> >>
> >> --
> >> With best regards / с наилучшими пожеланиями,
> >> Alexei Fedotov / Алексей Федотов,
> >> http://www.telecom-express.ru/
> >> http://people.apache.org/~aaf/ <http://people.apache.org/%7Eaaf/>
> >> http://harmony.apache.org/
> >> http://code.google.com/p/openmeetings/
> >>
> >
> >
> >
> > --
> > Regards
> > Michael Tian
> >
>
>
>
> --
> Karl Pauls
> karlpauls@gmail.com
>



-- 
Regards
Michael Tian