Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Paulex Yang
Leo Li wrote: Hi, all: During the self-hosting of Derby, I found a security policy if is applied will lead to errors in loading the class of JarFile. IBM vm will throw java/lang/UnsatisfiedLinkError: java/util/zip/ZipFile.ntvi while drlvm will crash with SEH handler: shutdown errorSEH

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Paulex Yang
A little further hack shows that, the cause is o.a.h.luni.util.Msg cannot be initialized so early, which is the exception message i18n helper class. Its static init codes try to load ResourceBundle but failed. The new i18n helper o.a.h.l.internal.nls.Messages has same issue. I modified the

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Alexey Varlamov
Can't we use lazy initialization here? I had similar experience with this class in the past, and think it should not be so fragile to initialization sequence. And definitely it should not affect whole VM run. 2006/10/18, Paulex Yang [EMAIL PROTECTED]: A little further hack shows that, the cause

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Tim Ellison
Alexey Varlamov wrote: Can't we use lazy initialization here? I had similar experience with this class in the past, and think it should not be so fragile to initialization sequence. And definitely it should not affect whole VM run. It's tricky to ensure the initialization sequence is solid

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Leo Li
It is quite a dilemma: VM is free to choose the strategy of loading library while the sequence is related to classlib. In my opinion, it is classlib that has enough information and the responsibility to decide the library loading sequence. Since the launcher is in the control of classlib, is it

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Alexey Varlamov
2006/10/19, Leo Li [EMAIL PROTECTED]: It is quite a dilemma: VM is free to choose the strategy of loading library while the sequence is related to classlib. In my opinion, it is classlib that has enough information and the responsibility to decide the library loading sequence. Since the

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Leo Li
But there really contains code about launcher in Harmony/luni, and this part is maintained by Harmony classlib but not VM. :) On 10/19/06, Alexey Varlamov [EMAIL PROTECTED] wrote: 2006/10/19, Leo Li [EMAIL PROTECTED]: It is quite a dilemma: VM is free to choose the strategy of loading

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Alexey Varlamov
2006/10/19, Leo Li [EMAIL PROTECTED]: But there really contains code about launcher in Harmony/luni, and this part is maintained by Harmony classlib but not VM. :) Um, I thought all Harmony code is maintained by us community ;) As discussed in an older thread, launcher will be moved to tools

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-15 Thread Leo Li
Ok. I will call it runing Derby on Harmony.:) On 10/14/06, Tim Ellison [EMAIL PROTECTED] wrote: Leo Li wrote: During the self-hosting of Derby... Minor nit, but as Sian pointed out before we would usually reserve 'self-hosting' to mean using Harmony in development of the project itself, i.e.

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-14 Thread Tim Ellison
Leo Li wrote: During the self-hosting of Derby... Minor nit, but as Sian pointed out before we would usually reserve 'self-hosting' to mean using Harmony in development of the project itself, i.e. self hosting in the build system or using Eclipse. I don't consider running other apps as

[classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-13 Thread Leo Li
Hi, all: During the self-hosting of Derby, I found a security policy if is applied will lead to errors in loading the class of JarFile. IBM vm will throw java/lang/UnsatisfiedLinkError: java/util/zip/ZipFile.ntvi while drlvm will crash with SEH handler: shutdown errorSEH handler: too many

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-13 Thread Leo Li
Sorry forget the security policy file. And I add it as the attachment. On 10/13/06, Leo Li [EMAIL PROTECTED] wrote: Hi, all: During the self-hosting of Derby, I found a security policy if is applied will lead toerrors in loading the class of JarFile. IBM vm willthrow

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-13 Thread Tony Wu
I have tried on classlib r454653, drlvm r454551 and got the same result. On 10/13/06, Leo Li [EMAIL PROTECTED] wrote: Sorry forget the security policy file. And I add it as the attachment. On 10/13/06, Leo Li [EMAIL PROTECTED] wrote: Hi, all: During the self-hosting of Derby, I found