Hi Leo, Yes the patch may be out of date - I think it was about 6 months ago when I was looking at Derby. I used the latest stable release at the time but I imagine it will have moved on a lot since then. Which version are you using now?
I'm afraid I haven't seen those problems with the security manager, but I imagine if the tests haven't been designed to run with it on then there could be problems on any VM. Do you think there's another workaround you could do without switching the security manager on? Just a minor side point - I'm not 100% sure about this but I don't think these kinds of activities should be referred to as self-hosting. I think self-hosting would be doing something like using Harmony to build itself. Does anyone else have an opinion on this? Regards, Sian On 13/10/06, Leo Li <[EMAIL PROTECTED]> wrote:
Hi, Sian: Thank you for your patch. It really works. But seems a little outdated.:) I found another work around with useprocess=true , but ... after a lot of trouble: If the useprocess is on, security manager is installed by default, or else it is not. So, when to get command, it should be "java"; when avoid to install security manager, it should be"j9" and the complicated logic of the testcase as well.:( Do you know why the suites will run without security manager installed if the vm is spotted as j9 in the untact version from derby? Does the derby_test.policy really mean something, from the goal of the derby tests?Actually, I have manually forced the testcase not to set security manager when useprocess = true, the tests fails even on RI. I have tried to treat the current IBM VM as normal jdk and with - Djava.security.manager, but it will report error in loading the class of JarFile. Have you ever met this?:) On 10/13/06, Sian January <[EMAIL PROTECTED]> wrote: > > Hi Leo, > > I have uploaded my patch to the Wiki. However the patch just forces use > of > the jdk15 support class, in order to get the tests up and running. As you > > say, a better solution would be to have our own support class. > > Regards, > > Sian > > > On 13/10/06, Leo Li <[EMAIL PROTECTED]> wrote: > > > > Hi, Sian: > > After some study, I found that it is necessary to treat j9 > > seperately,....mmm about security and vm library loader. I have not spot > > the > > precise place. > > I think we have first to get a wrapper jvm class like j9_13 derby > > gives > > but not other standard wrapper class. Then we have to rewrite it java > > command-line as "java" but not "j9". Am I all right? > > Besides, it will be helpful if you can post your patch of Derby on > the > > http://wiki.apache.org/harmony/Apache_Derby.:) > > Thank you. > > > > > > > > On 10/12/06, Sian January < [EMAIL PROTECTED]> wrote: > > > > > > Hi Leo, > > > > > > I have previously run the Derby tests on Harmony with the IBM VME (see > > the > > > Wiki page - http://wiki.apache.org/harmony/Apache_Derby). I had to > make > > > some changes to Derby to get it to run, but from reading the bug > report > > it > > > sounds like you found a way round it too. If not then let me know and > I > > > could send you a patch or post one here or something. I wasn't using > > > DRLVM > > > so I haven't seen the bug you're describing. Running with the IBM VME > I > > > got > > > 82% of the tests passing. I looked at some of the test failures but > not > > > in > > > very much depth. However some of them seemed to be because the > > different > > > VMs had differently formatted output, so not necessarily a bug. I > think > > > that's one of the reasons why the tests need to know what VM they are > > > using. The tests have different output files for different VMs that > > they > > > compare with the actual output for each test. > > > > > > Just as a side point, several people have looked at applications in > the > > > past > > > including myself and have posted the results on the Wiki ( > > > http://wiki.apache.org/harmony/Application_Status). So if anyone is > > > having > > > a problem running a particular application it might be worth having a > > look > > > to check if someone has done it before. Or we could suggest that > > everyone > > > posts this kind of thing to the mailing list in future if that's more > > > likely > > > to be found. > > > > > > Regards, > > > > > > Sian > > > > > > > > > > > > On 12/10/06, Leo Li < [EMAIL PROTECTED]> wrote: > > > > > > > > Hi, all: > > > > I now plan to make the self-host of Derby on Harmony. > > > > Is there anyone interested in this topic? > > > > > > > > Here is what I encountered in the process. Hope it will be > helpful > > > to > > > > anybody who is interested in it. > > > > > > > > At first, the testcases even fails on RI both on windows and > > ubuntu > > > > and > > > > the result are different.??? > > > > After some struggiling, I have successfully passed the provided > > > > testcases on RI after I rebuild the source on my machine. > > > > But there still remains a problem: > > > > The derby team kindly rewrite the launcher for testcases in > order > > to > > > > treat J9 vm differently if the property java.vm.name starts with > "j9". > > > But > > > > the j9 vm used in Harmony has been customized thus is different from > > > > traditional j9 vm that is expected by derby. This leads to failure > to > > > > launch > > > > tests. > > > > I will talk on Derby's mailing list to find a solution. > > > > > > > > -- > > > > Leo Li > > > > China Software Development Lab, IBM > > > > > > > > > > > > > > > > > -- > > > Sian January > > > > > > IBM Java Technology Centre, UK > > > > > > > > > > > > -- > > Leo Li > > China Software Development Lab, IBM > > > > > > > -- > Sian January > > IBM Java Technology Centre, UK > > -- Leo Li China Software Development Lab, IBM
-- Sian January IBM Java Technology Centre, UK