Re: [general] Harmony Todo list
Stefano, - move 'harmonytest.org' source code in the harmony svn repository so that others can work on it What's the procedure for this? Certificate of origin, etc? Is the code scan required before that? I can create a JIRA with the sources attached but the problem is they're changed often. (actually, I think we should host the harmony testing in our own zone and avoid depending on Alexey's own resources, but there is no hurry for that). Yes, that'd be great. Fitting it to hosting that is more suitable for home pages is a pain in the brain. -- Regards, Anton Luht, Intel Java XML Engineering
Re: [general] Harmony Todo list
Who wrote it? The code? Me. (actually, I think we should host the harmony testing in our own zone and avoid depending on Alexey's own resources, but there is no hurry for that). Yes, that'd be great. Fitting it to hosting that is more suitable for home pages is a pain in the brain. -- Regards, Anton Luht, Intel Java XML Engineering
Re: [classlib] Using Aspects for Tracing
Hello Sian, [skip] 5. Write a tracing aspect (or copy the one attached to modules\math\src\main\java\org\apache\harmony\tracing) There was only patch to build.xml attached - could you please send the aspect or better create a JIRA issue and attach all stuff to it? -- Regards, Anton Luht, Intel Java XML Engineering
Re: [testing] Tests scores on http://harmonytest.org Was: [DRLVM] General stability
Alexei, I like your approach to result comparison. 10% can be default value for some form field - anyone can change it if needed. OK, let's try it and see if it satisfies the community/ Probably more conventional would be to parse system-out![CDATA[]]/system-out for some metric. Does the site already parse TEST-* files? It parses TESTS-TestSuites.xml - as far as I can see, it contains the same information as TEST-* files. Is there a common format of output of stress tests you're talking about? Thank you, Alexei On 11/10/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, Alexei, I have related question. How can we improve http://harmonytest.org to make it possible to publish not just pass, fail, or error but numeric test scores? Easily - test results in JUnit reports have 'time' property - execution time in seconds. We can import and show them in the results. What else is needed? Maybe add something like 'show regressions' to the the 'compare runs' page? For example, show tests that increased execution time by more than 10% sorted by increase rate desc? -- Regards, Anton Luht, Intel Java XML Engineering -- Thank you, Alexei -- Regards, Anton Luht, Intel Java XML Engineering
Re: [testing] harmonytest.org new features
Hello, Alexei, One little remark: I've got the following screen after trying to search for beans and clicking the first link: It was because of bad/broken data - I've removed it and now the link works. -- Regards, Anton Luht, Intel Java XML Engineering
[testing] harmonytest.org new features
Hello, Yesterday I've deployed a new version to harmonytest.org New features include: - packages/suites/tests tree-like navigation (as in local JUnit html results).Tree navigation populated to old results, too. - the first page only includes 50 latest test runs, link to archive search added (includes search by uploader's name - request by Tony Wu) - filter diff results by test name (request by Alexei Fedotov) - detection of crashes - sometimes when suite crashes, there is an empty TEST-suite-name.xml file in the run results. If such file is found, all tests from this suite (detected from previous runs) are marked as crashed in this run. Bugs fixed: - duplicates in the results (if any) are merged (bug report by Tony Wu - test count on the site was bigger than real one) - there was a problem in uploading large files - ~ 5Mb - the results were not imported - playing with the configuration solved this problem - at least my test 11Mb file that broke the upload now uploads correctly. Please report bugs and send feature requests. -- Regards, Anton Luht, Intel Java XML Engineering
Re: [testing] Tests scores on http://harmonytest.org Was: [DRLVM] General stability
Hello, Alexei, I have related question. How can we improve http://harmonytest.org to make it possible to publish not just pass, fail, or error but numeric test scores? Easily - test results in JUnit reports have 'time' property - execution time in seconds. We can import and show them in the results. What else is needed? Maybe add something like 'show regressions' to the the 'compare runs' page? For example, show tests that increased execution time by more than 10% sorted by increase rate desc? -- Regards, Anton Luht, Intel Java XML Engineering
Re: [drlvm][unit] Closing H-1679, H-1722
Hello, Both bugs are verified on svn = r471521, (Nov 5 2006), Windows/ia32/msvc 1310, debug build and can be closed. On 11/5/06, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: Fedotov, Alexei A wrote: Anton, Is it ok to close the following issues? * HARMONY-1679 Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task * HARMONY-1722 notify() in synchronized section makes wait(long) wait forever I don't know about 1679, but I agree about 1722 if it can't be repeated. geir I cannot reproduce them on the latest build. With best regards, Alexei Fedotov, Intel Java XML Engineering -- Regards, Anton Luht, Intel Java XML Engineering
Re: 235 tests are missed at DRLVM test run for Windows
Alexei, 2. If I suggested an enhancement, this would be an addition of a test name filter for comparison results. I mean that if I'm interested in Bidi tests comparison, I put Bidi into form field (name=Bidi) and see a comparison for the tests which names contain the specified substring. Feature request accepted :) 3. When I use Open in a new window for a list of tags, IE opens a copy of the initial window. When I do a left click, there is no scroll bar at the pop up window, and the list of tags doesn't fit the window. Thanks, scrollbars were added. -- Regards, Anton Luht, Intel Java XML Engineering
Re: 235 tests are missed at DRLVM test run for Windows
Alexey, 1) allow to compare by exact id - e.g. I failed to compare #90 and #91 due to missing tags. First, you can obtain login (ask any registered user to add you) and tag runs you are interested in. Second - you can do it if you enter two result ids into URL: http://harmonytest.org/diff.do?method=viewid=id1id2=id2 2) add filtering by tags on the main page - e.g. to see only drl or only linux results. Feature request accepted - I think there will be ~20..30 latest results on the first page and 'Search' link that will allow to search by tags, other run properties (like uploader name - old request from Tony Wu) -- Regards, Anton Luht, Intel Java XML Engineering
Re: 235 tests are missed at DRLVM test run for Windows
Feature requests from Geir (multiple select for tags) and Alexey (shortcut to compare two runs from the first page) are accepted and put in the implemetation queue. -- Regards, Anton Luht, Intel Java XML Engineering
Re: 235 tests are missed at DRLVM test run for Windows
Hello, Queue appeared to be a stack :) Both requests are implemented, others are pending. On 11/1/06, Anton Luht [EMAIL PROTECTED] wrote: Feature requests from Geir (multiple select for tags) and Alexey (shortcut to compare two runs from the first page) are accepted and put in the implemetation queue. -- Regards, Anton Luht, Intel Java XML Engineering
Re: 235 tests are missed at DRLVM test run for Windows
Hello, Alexei, Vladimir and others: Please enjoy the new runs comparing functionality: http://harmonytest.org/diff.do?method=viewid=72id2=80 :) The support for tags that was discussed few weeks ago has been implemented. Now every run has a set of tags associated with it. Registered users can edit list of tags. When you view a run result, you can search for run to compare this run with using tags . For example, when you view run with tags drl, msvc, windows, xp it is possible to search for run with tags ibm, msvc, windows, xp and see the difference between two VMs. Please excuse the mess in the order of the results - I've noticed the effect only after deploy :) It is possible to specify the list of tags when uploading new results. I've tagged ~20-30 runs to experiment with. I've also implemented a request to save user name between results upload. Please report bugs and send feature requests. -- Regards, Anton Luht, Intel Java XML Engineering
Re: 235 tests are missed at DRLVM test run for Windows
Hello, Alexei, Thanks for the kind words. Few ideas: 1. To get the picture offline I added perPage attribute wget http://harmonytest.org/ diff.do?method=viewid=72id2=80perPage=10 Maybe it's worth to add link 'download diff' that will allow to save data in TSV format? I prefer TSV not CSV because it doesn't require smart escaping. It's also possible to create tricky HTML files that can be imported in Excel - this may look better - headers in bold, multiple worksheets, etc. 2. This can be used to compare our results against RI when the quality of the test base is unknown. Yes - I've added option 'RI' for results uploading. Tag 'ri' can also be added so one will be able to compare run having 'windows, xp, sp2, msvc, drl' tags with 'windows, xp, sp2, ri', etc. I also think about about having tags for different test suites, for example, 'axis' for Axis tests (already uploaded by Tony), 'eut' for Eclipse Unit Tests, etc. This will allow to add new test suites to the site with little efforts and make suites co-existing in parallel so if someone is investigating failures of one suite, he doesn't see results of others. With best regards, Alexei Fedotov, Intel Java XML Engineering -Original Message- From: Anton Luht [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 31, 2006 4:37 PM To: harmony-dev@incubator.apache.org Subject: Re: 235 tests are missed at DRLVM test run for Windows Hello, Alexei, Vladimir and others: Please enjoy the new runs comparing functionality: http://harmonytest.org/diff.do?method=viewid=72id2=80 :) The support for tags that was discussed few weeks ago has been implemented. Now every run has a set of tags associated with it. Registered users can edit list of tags. When you view a run result, you can search for run to compare this run with using tags . For example, when you view run with tags drl, msvc, windows, xp it is possible to search for run with tags ibm, msvc, windows, xp and see the difference between two VMs. Please excuse the mess in the order of the results - I've noticed the effect only after deploy :) It is possible to specify the list of tags when uploading new results. I've tagged ~20-30 runs to experiment with. I've also implemented a request to save user name between results upload. Please report bugs and send feature requests. -- Regards, Anton Luht, Intel Java XML Engineering -- Regards, Anton Luht, Intel Java XML Engineering
Re: [classlib][test] Site to collect classlib test statistics
Alexey, I've added both options - search by test name and list of tests that ever failed. The second one is very big because of results you've uploaded for DRLVM/Linux with 554 errors. Please tell me if you want to change anything in the interface. On 10/6/06, Alexey Varlamov [EMAIL PROTECTED] wrote: Anton, Many thanks for exploring this area, it looks quite promising. An idea: this service would become more valuable if presented transparent search/comparison of results for particular tests over all uploaded runs. Let user enter name of a test and show in one table all known results for this test, or even better, provide a table of all ever failed tests with links to individual consolidated tables. This would help analyzing failures very much. -- Regards, Alexey 2006/10/4, Anton Luht [EMAIL PROTECTED]: Hello, Could you tell about it in more detail? 1) Who can upload test results? Everyone - no authorization is needed, you can include file upload to your regular builds if you want - authorized users can remove them later if something goes wrong :) If you want to modify uploaded tests' data - add JIRA issues to failures, add comments, etc - please send me login/password and I'll create an account. 2) How are you going to develop this site, structure, data base and etc.? I'll try to implement all feature requests that community members will express. One of possible directions I see is support for new test suites - currently it recognises only Harmony classlib JUnit tests output. If you have another test suite you want to upload to that site - just send me an archive and I'll try to add support for this kind of tests. Sources of that app are not in SVN now - if you want to review/fix/improve something - I can send you an archive. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm][jet] Could you please look into HARMONY-1678?
Egor, I've marked this bug with 'minor' priority because it didn't affect any known application and didn't cause crash. Seems that Alexey struggles for absence of JUnit tests failures because of DRLVM bugs, that's why he promoted the bug. P.S. you are promoting a low-priority bug while there are a lot of critical crashes flying around. Is it marked as Minor by mistake? -- Egor Pasko, Intel Managed Runtime Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib][test] Site to collect classlib test statistics
Hello, Those 554 errors on interpreter are due to fork mode=once, it is a single error affecting the whole run. Is there a way to delete an uploaded run? I've added a possibility to delete run for a registered user. Please send me login/password if you want to have such possibility. Better yet, to be able select a range of runs to include to analysis. The appetite comes with eating :) Criteria to select can vary, one of many possible is execution engine - it would be nice to have such characteristic of a run ... The latest Web 2.0 fashion trend is to use tags for this (same as keywords in Bugzilla) :) Will it do for you if tags support is implemented? Examples of tags I can can think of are: msvc, gcc, Linux, Windows, SP2, RedHat, Single_Core, Multi_Core, etc. We can have an editable list to avoid typos but to be able to add new tags easily. Alexey, I've added both options - search by test name and list of tests that ever failed. The second one is very big because of results you've uploaded for DRLVM/Linux with 554 errors. Please tell me if you want to change anything in the interface. On 10/6/06, Alexey Varlamov [EMAIL PROTECTED] wrote: Anton, Many thanks for exploring this area, it looks quite promising. An idea: this service would become more valuable if presented transparent search/comparison of results for particular tests over all uploaded runs. Let user enter name of a test and show in one table all known results for this test, or even better, provide a table of all ever failed tests with links to individual consolidated tables. This would help analyzing failures very much. -- Regards, Alexey 2006/10/4, Anton Luht [EMAIL PROTECTED]: Hello, Could you tell about it in more detail? 1) Who can upload test results? Everyone - no authorization is needed, you can include file upload to your regular builds if you want - authorized users can remove them later if something goes wrong :) If you want to modify uploaded tests' data - add JIRA issues to failures, add comments, etc - please send me login/password and I'll create an account. 2) How are you going to develop this site, structure, data base and etc.? I'll try to implement all feature requests that community members will express. One of possible directions I see is support for new test suites - currently it recognises only Harmony classlib JUnit tests output. If you have another test suite you want to upload to that site - just send me an archive and I'll try to add support for this kind of tests. Sources of that app are not in SVN now - if you want to review/fix/improve something - I can send you an archive. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Bugs priorities
Hello, Maybe it's worth to explicitly specify priorities for various kinds of bugs? The advice that appears now near 'priority' drop-down in JIRA list is general and not Harmony-specific. Bug submitters make decision mostly by his/her intuition. An example of rule set: VM hangs crashes - critical, Junit tests failures - major, application failures - major, exception incompatibility - minor. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [jira] Bugs priorities
Hello, Salikh, I just suggest rules to be written explicitly. Every bug submitter tends to think that his bug or his application is the most important - some limits should be put to avoid 90% of bugs being major and critical. On 10/5/06, Salikh Zakirov [EMAIL PROTECTED] wrote: Anton Luht wrote: Hello, Maybe it's worth to explicitly specify priorities for various kinds of bugs? The advice that appears now near 'priority' drop-down in JIRA list is general and not Harmony-specific. Bug submitters make decision mostly by his/her intuition. An example of rule set: VM hangs crashes - critical, Junit tests failures - major, application failures - major, exception incompatibility - minor. And what guidelines would you recommend for the corner cases, when something is important for some people, and does not matter for others? For example, some people are trying to get Harmony to run x86_64 and ia64 platforms, while most of the project participants just do not care. - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib] Recognizing lock objects
Hello, Maybe it's better to mark 'locking' objects with something like //$LOCK-1$ ? New Object() can be created for many purposes - I'm not sure what percent is used for locks - 10 or 90. Another suggestion: use new Object() { public String toString() { return something that contains some locking keyword; } } On 10/4/06, Tim Ellison [EMAIL PROTECTED] wrote: BTW, as I go through the code looking at the occurrences of 'new Object()' and determining if they are used simply for their locks, I figured we also need a way to record the check has been done. So, if there is a 'new Object()' that is not simply a lock object (and therefore named as we agreed) I'll mark it on the same line as // $NON-LOCK-1$ so we can easily grep for divergences from the pattern. Regards, Tim Mikhail Fursov wrote: Another variant is to use anonymous class without the name: Object lock = new Object(){}; But the name by itself (RepositionLock) serves like a comment. On 10/3/06, Tim Ellison [EMAIL PROTECTED] wrote: private class RepositionLock {} private Object repositionLock = new RepositionLock(); -- Tim Ellison ([EMAIL PROTECTED]) IBM Java technology centre, UK. - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm] invoking non-trivial jars results in IllegalAccessError
Alexey, Thanks for pointing to that test - I created my tests using this approach. Please see HARMONY-1671 for tests. If you think that some more options should be covered - please let me know - I'll try to make tests for them. On 9/29/06, Alexey Varlamov [EMAIL PROTECTED] wrote: Anton, Many thanks for volunteering. You might be interested to look at org.apache.harmony.archive.tests.java.util.jar.JarOutputStreamTest in archive module - it gives some basic coverage in this area. I know about it because just recently fixed it, see HARMONY-1622. -- Alexey 2006/9/29, Anton Luht [EMAIL PROTECTED]: Hello, I'd like to volunteer. Just an idea: I'm going to create a number of .class and .jar files and test various combinations of launching using SupportExec On 9/25/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: We desperately need tests for this. Anyone want to volunteer, to even make simple ones? We can stuff into the smoke or other frameworks... geir Pavel Pervov wrote: Chris, As far as I understant, this is responsibility of a class loader to parse Class-Path attribute of any jar file it has in its class path. System class loader for DRLVM (which is URLClassLoader) does this. Any objections? Regards, Pavel Pervov. Intel Middleware Products Division. On 9/25/06, Chris Gray [EMAIL PROTECTED] wrote: As I understand it, the classpath of the jarred application should include the jar file itself and the contents of its Class-Path attribute (if any). You probably need to create a special class loader for the application and use that whenever the application (or a library loaded by it) is the initiator. -- Chris Gray/k/ Embedded Java Solutions BE0503765045 Embedded Mobile Java, OSGihttp://www.k-embedded-java.com/ [EMAIL PROTECTED] +32 3 216 0369 - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[classlib] [testing] How to file JIRA issues for impl JUnit tests?
Hello, It's clear how to file issues for public API - write a test with differend behaviour on RI and Harmony. It's not clear how to write tests or report problems when JUnit impl test fail. I see org.apache.harmony.security.tests.asn1.der.SequenceTest failing at svn = r452457, (Oct 3 2006), Windows/ia32/msvc 1310, debug build Other people report failures , too : http://www.harmonytest.org/testapp.do?method=showresultid=74663 -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Alexey, I was configuring site at that time :) I hope I've solved the problems with connection pool settings - sorry for the inconvenience. On 9/29/06, Alexei Zakharov [EMAIL PROTECTED] wrote: Hi Anton, I hate to tell you this but it is down again (12:00 MSK). I'm not complaining, just want to look at the site. :) Regards, 2006/9/28, Anton Luht [EMAIL PROTECTED]: Hello, The problem could be that hoster uses Mysql 4 while the app was configured for Mysql 5 - I've changed the settings - it's up again - I'll be watching it... On 9/28/06, Anton Luht [EMAIL PROTECTED] wrote: Seems like the real-life testing broke the app :) Sorry for the inconvenience - I'm going to investigate it and bring it bask asap. On 9/28/06, Anton Luht [EMAIL PROTECTED] wrote: Alexei, Thanks for the info - fixed. -- Alexei Zakharov, Intel Middleware Product Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm] invoking non-trivial jars results in IllegalAccessError
Hello, I'd like to volunteer. Just an idea: I'm going to create a number of .class and .jar files and test various combinations of launching using SupportExec On 9/25/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: We desperately need tests for this. Anyone want to volunteer, to even make simple ones? We can stuff into the smoke or other frameworks... geir Pavel Pervov wrote: Chris, As far as I understant, this is responsibility of a class loader to parse Class-Path attribute of any jar file it has in its class path. System class loader for DRLVM (which is URLClassLoader) does this. Any objections? Regards, Pavel Pervov. Intel Middleware Products Division. On 9/25/06, Chris Gray [EMAIL PROTECTED] wrote: As I understand it, the classpath of the jarred application should include the jar file itself and the contents of its Class-Path attribute (if any). You probably need to create a special class loader for the application and use that whenever the application (or a library loaded by it) is the initiator. -- Chris Gray/k/ Embedded Java Solutions BE0503765045 Embedded Mobile Java, OSGihttp://www.k-embedded-java.com/ [EMAIL PROTECTED] +32 3 216 0369 - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Alexei, You can see the number of passed tests on the very first page of the site. I'll put the total number of records returned in search soon. To draw attention to the site: unit test results for the latest snapshots were uploaded. Additionally: I've seen one crash when running tests at Windows and twice test run hanged on Linux - I had to kill java process to proceed. On 9/28/06, Fedotov, Alexei A [EMAIL PROTECTED] wrote: Anton, Thank you for a prompt reply! I have one more comment concerning a site design: it would be great to see a number of records in the current search request. For example, if I chose nothing, I would a total number of tests in the report. Actually I want to see a total number of passed tests. Why? Since the number of fails gives us an optimistic estimate due to report misses, I may calculate a number of fails as a total amount - number of passes. With best regards, Alexei Fedotov, Intel Middleware Products Division -Original Message- From: Anton Luht [mailto:[EMAIL PROTECTED] Sent: Thursday, September 28, 2006 2:01 PM To: harmony-dev@incubator.apache.org Subject: Re: [build-test-infra] Build Test Infrastructure Alexei, VM hanged in the process of test execution - I killed it and tests proceeded - I'm not sure whether this crash is recorded as error or those tests are not included in the report. The report on site is the similar to the one I see in my local test_result/html report . On 9/28/06, Fedotov, Alexei A [EMAIL PROTECTED] wrote: Anton, I'm looking at http://www.harmonytest.org/testapp.do?method=showrunid=4name=result=2 jira=0 http://www.harmonytest.org/testapp.do?method=showrunid=4name=result=3 jira=0 I see 5 errors and 14 failures. I just want to double check that we have less than 20 problems with running unit tests on DRLVM. Is it correct statement or some failures are missed? With best regards, Alexei Fedotov, Intel Middleware Products Division BTW, I have a small request for enhancement: the following request hides search options by the right margin of my screen. I would suggest reordering table rows in a way fixed width fields go first. http://www.harmonytest.org/testapp.do?method=showrunid=4name=result=1 jira=0 -Original Message- From: Anton Luht [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 7:44 PM To: harmony-dev@incubator.apache.org Subject: Re: [build-test-infra] Build Test Infrastructure I think we'd want this to be registered user can add user Done. I'm still the only person with login - send me your login/password to register. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Alexei, VM hanged in the process of test execution - I killed it and tests proceeded - I'm not sure whether this crash is recorded as error or those tests are not included in the report. The report on site is the similar to the one I see in my local test_result/html report . On 9/28/06, Fedotov, Alexei A [EMAIL PROTECTED] wrote: Anton, I'm looking at http://www.harmonytest.org/testapp.do?method=showrunid=4name=result=2 jira=0 http://www.harmonytest.org/testapp.do?method=showrunid=4name=result=3 jira=0 I see 5 errors and 14 failures. I just want to double check that we have less than 20 problems with running unit tests on DRLVM. Is it correct statement or some failures are missed? With best regards, Alexei Fedotov, Intel Middleware Products Division BTW, I have a small request for enhancement: the following request hides search options by the right margin of my screen. I would suggest reordering table rows in a way fixed width fields go first. http://www.harmonytest.org/testapp.do?method=showrunid=4name=result=1 jira=0 -Original Message- From: Anton Luht [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 7:44 PM To: harmony-dev@incubator.apache.org Subject: Re: [build-test-infra] Build Test Infrastructure I think we'd want this to be registered user can add user Done. I'm still the only person with login - send me your login/password to register. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Alexei, Thanks for the info - fixed. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Seems like the real-life testing broke the app :) Sorry for the inconvenience - I'm going to investigate it and bring it bask asap. On 9/28/06, Anton Luht [EMAIL PROTECTED] wrote: Alexei, Thanks for the info - fixed. -- Regards, Anton Luht, Intel Middleware Products Division -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Hello, The problem could be that hoster uses Mysql 4 while the app was configured for Mysql 5 - I've changed the settings - it's up again - I'll be watching it... On 9/28/06, Anton Luht [EMAIL PROTECTED] wrote: Seems like the real-life testing broke the app :) Sorry for the inconvenience - I'm going to investigate it and bring it bask asap. On 9/28/06, Anton Luht [EMAIL PROTECTED] wrote: Alexei, Thanks for the info - fixed. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
I think we'd want this to be registered user can add user Done. I'm still the only person with login - send me your login/password to register. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Hello, The features were implemented - now it's an app backed up by database (mysql). The app was deployed at http://www.harmonytest.org . If you want to have a login/password to be able not only view but also modify test results (add comments, add JIRA issues numbers to failing tests) - please send me login password - I'll add you. I can also implement user management in web interface, but I haven't decided which option to pick: - self-registration with later approval by a registered user - self-registration without approval - a registered user can add users I've uploaded one archive with results twice to give an idea what link 'see the result in other runs' look like. If you have any results - please share them. Please note that error handling is minimal now - if you put a date in wrong format , you'll get internal error instead of polite hint. Hope someone but me will find it useful :) On 9/6/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, Seems like nobody is using this test results storage - the problem may be that it has very few features. I'm going to implement something I think will be useful - please make comments if you have any. Features are: - autorization - authorized users can modify tests results, for example, link a test failure to a JIRA issue - attributes - platform, compiler, JVM, build date, build tag for every test run (set of test results) - list with test runs on the first page - attributes + number of passed, failed tests - browsing of test runs - view all tests, view failed, etc - for every test it will be posible to view its history - results of this test in other runs - on all configurations and on the same confiruration On 9/4/06, Anton Luht [EMAIL PROTECTED] wrote: Thanks, These were remains of setup experiments - removed from the list. On 9/4/06, Vladimir Ivanov [EMAIL PROTECTED] wrote: Seems, that links upload60551http://harmonytest.org/testapp.do;jsessionid=9644A083467EC4F0C4CC806DB107C3F2?method=showrunid=upload60551 Europe/Moscow 11.2.0 x86 Windows XP 5.1 upload60552http://harmonytest.org/testapp.do;jsessionid=9644A083467EC4F0C4CC806DB107C3F2?method=showrunid=upload60552 Europe/Moscow 11.2.0 x86 Windows XP 5.1 upload60553http://harmonytest.org/testapp.do;jsessionid=9644A083467EC4F0C4CC806DB107C3F2?method=showrunid=upload60553 Europe/Moscow 11.2.0 x86 Windows XP 5.1 are broken. thanks, Vladimir On 9/1/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, I've deployed the test infrastructure app to http://harmonytest.org . It is mostly for demo purpose - the disk space is not too large - I hope it will move somewhere else after evaluation. Please try to upload your test results there and send comments/wishes about the app - I'll try to implement them. There is no design because I didn't dare to make it Apache-looking :) The problem I see is that DRL VM version as seen is 'java.exe -version' is not seen in System.getProperties() as is not recorded in xmls with test results because of it. It's hard to identify the configuration the tests were run on - I think version information should be added to properties. I don't want to send the account data to the list - please let me know if you want to have access to the site. On 8/4/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, I've uploaded a proto of a proto for test infrastructure to http://issues.apache.org/jira/browse/HARMONY-1062 . At least it allows to upload test results to a server. Unfortunately I haven't found a server to deploy it yet so I can't send URL that contains test installation. The screenshots look much like those I've sent before. Sorry I haven't implemented Alexei's proposal to make test report JUnitReport style looking but I do remember about it. I've tried to separate web application logic from data access logic - the latter is implemented with data stored in files. -- Regards, Anton Luht, Intel Middleware Products Division -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division -- Regards, Anton Luht, Intel Middleware Products Division -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm][jit] array bounds check implementation
Hello, Egor, Isn't that really just faith based? What if you really do have a very large upper bound? upper bounds are not larger than Integer.MAX_VALUE, and any negative value in unsigned arithmetic is larger. I love this hack. Maybe it's worth to comment it and other tricks like this? Seems it's not too obvious :) -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [DRLVM] Integration checks (was building from svn on FC5)
Hello, I've created a patch that adds task 'eclipsehwa' (Eclipse 'Hello, world!' application) to Harmony classlib build.xml . It's attached to the issue. You can run ant -Dharmony.vm.exe=... -Declipse-home=eclipse 3.2 root eclipsehwa and Eclipse will start, create a project, create a test and compile it Now it doesn't work with Harmony DRLVM because '-jar' launching is used. On 7/4/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, I've created an Eclipse automated test based on Salikh's code - please see http://issues.apache.org/jira/browse/HARMONY-752 I've tested it on Windows XP on Eclipse that goes with harmony VM - eclipse-SDK-3.1.1-win32.zip Sometimes (irregularry) after execution it prints some stack traces to the console. Scenario is executed successfully anyway - a project is created, editor opens, some code is pasted in it, project is built, closed and deleted. Please feel free to add comments to that issue if you find errors in it or fail to run it on some configurations. -- Regards, Anton Luht, Intel Middleware Products Division -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm] Need help debugging
Hello, With a very fresh build: DRLVM + classlib svn = r442859, (Sep 13 2006), Windows/ia32/msvc 1310, debug build I see no problems with 'java -version' (and I've never seen) but still see the problems with '-jar ...' launching . On 9/13/06, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: I'm a little skeptical, as I had that change in before you first tested and found a problem, right? geir Vladimir Gorr wrote: vm\vmcore\src\kernel_classes\native\org_apache_harmony_vm_VMStack.cpp ... * /* *// skip Thread.runImpl() size--; // skip the VMStart$MainThread if one exits from the bottom of the stack // along with 2 reflection frames used to invoke method main static String* starter_String = genv-string_pool.lookup(java/lang/VMStart$MainThread); Method_Handle method = frames[size].method; assert(method); // skip only for main application thread if (!strcmp(method_get_name(method), runImpl) method-get_class()-name == starter_String) { int rem = size - skip-1; size -= rem 2 ? rem : 2; } ASSERT(size = skip, Trying to skip skip frames but there are only size frames in stack); **/* ... Thanks, Vladimir. On 9/13/06, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: Vladimir Gorr wrote: I was able to sucessfully run both applications (Eclipse ActiveMQ) for the recent build. what changed? geir Thanks, Vladimir. On 9/12/06, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: doh. Thanks. I feel dumb for not trying the simplest thing first :) There's a test... geir Anton Luht wrote: Hello, The 'java -jar' launcher prints dump and exits even on a minimal HelloWorld app jar - please see http://issues.apache.org/jira/browse/HARMONY-1444 On 9/12/06, Anton Luht [EMAIL PROTECTED] wrote: No, I used hand-made build from SVN. BTW, sorry for confusion about 'broken data'. The pointer value is changed inside the method - this assignment should be removed. On 9/12/06, Vladimir Gorr [EMAIL PROTECTED] wrote: Did you run this application for the recent binaries got from the SVN sources? As for me my results differ from Geir ones, namely, DRLVM crashes for both Windows Linux as follows: === Windows === vgorr@ /cygdrive/c/Tools/incubator-activemq-4.0 $ echo JAVA_HOME JAVA_HOME vgorr@ /cygdrive/c/Tools/incubator-activemq-4.0 $ echo $CLASSPATH c:/Tools/incubator-activemq-4.0/lib vgorr@ /cygdrive/c/Tools/incubator-activemq-4.0 $ which java /cygdrive/c/DrlSrc/drlvm/trunk/build/win_ia32_msvc_debug/deploy/jre/bin/java vgorr@ /cygdrive/c/Tools/incubator-activemq-4.0 $ bin/activemq cygpath: can't convert empty path An unhandled error (4) has occurred. HyGeneric_Signal_Number=0004 ExceptionCode=c005 ExceptionAddress=00F3D648 ContextFlags=0001003f Handler1=00401010 Handler2=11105D20 InaccessibleAddress=00F3D648 EDI=0013F9D4 ESI=0013F768 EAX= EBX=000B ECX=0001 EDX=000C EIP=00F3D648 ESP=0013F764 EBP=0013F770 Module= Module_base_address=00F3 Offset_in_DLL=d648 Linux sh bin/activemq java: /nfs/ins/proj/drl/coreapi/vgorr/drlvm/trunk/vm/vmcore/src/exception/exceptions.cpp:143: _jobject* create_exception(const char*): Assertion `hythread_is_suspend_enabled()' failed. abort_handler() Aborted Thanks, Vladimir. On 9/12/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, I'm observing the same problem - ActiveMQ can't start - on DRLVM + Classlibrary build 442240 . The problem I see first is that in classlib root\modules\luni\src\main\native\launcher\shared\main.c in function 'static int invocation' after call 'createVMArgs' variable 'mainClassJar' contains garbale while in the very end of 'static int createVMArgs' it contains valid string 'org.apache.harmony.kernel.vm.JarRunner' . If we comment out 'hymem_allocate_memory' in that function: if (isStandaloneJar) { if (useDefaultJarRunner == 0) { //:::commented out mainClassJar = hymem_allocate_memory (50); if (mainClassJar == NULL) the application will crash a little later. Note: we can comment this out because memory for mainClassJar is already allocated in the calling method. I believe that the general problem is that contents of memory alocated with hymem_allocate_memory get somehow broken on exit from a method. On 9/9/06, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: I applied the GCv4.1 patch and now I pass smoke test. I suspect it may be because the patch modifies the LOS test
Re: [drlvm] Need help debugging
Hello, I'm observing the same problem - ActiveMQ can't start - on DRLVM + Classlibrary build 442240 . The problem I see first is that in classlib root\modules\luni\src\main\native\launcher\shared\main.c in function 'static int invocation' after call 'createVMArgs' variable 'mainClassJar' contains garbale while in the very end of 'static int createVMArgs' it contains valid string 'org.apache.harmony.kernel.vm.JarRunner' . If we comment out 'hymem_allocate_memory' in that function: if (isStandaloneJar) { if (useDefaultJarRunner == 0) { //:::commented out mainClassJar = hymem_allocate_memory (50); if (mainClassJar == NULL) the application will crash a little later. Note: we can comment this out because memory for mainClassJar is already allocated in the calling method. I believe that the general problem is that contents of memory alocated with hymem_allocate_memory get somehow broken on exit from a method. On 9/9/06, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: I applied the GCv4.1 patch and now I pass smoke test. I suspect it may be because the patch modifies the LOS test, but I'm not so sure. that patch (HARMONY-1269) is a sole-author patch to our existing codebase, and while I do have a BCC to put in SVN, I think that this is a patch, and not a bulk contribution, so I'll go forward and commit it. geir Geir Magnusson Jr. wrote: More news - I'm not passing the smoke tests. gc.LOC just spins (and sucks a lot of memory in). Clearly what I thought were trivial changes to switch to use the launcher had hidden effects. Any suggestions where to start looking? geir Geir Magnusson Jr. wrote: I was testing the DRLVM-in-Launcher setup and something is seriously broken. On Ubuntu, both debug and release builds, it will run Tomcat ok, but when I try something like Eclipse 3.2 or ActiveMQ 4.0.2 the program runs and silently exits. No log output, no console output. I've been trying to find a hint of what is making it unhappy, but so far, no luck. I've been staring at the output with -Xlog and -Xtrace, and there doesn't seem to be any errors, but I don't know what to look for. ( I've captured the stream and placed it here : http://people.apache.org/~geirm/activemq-logstream-20060909.txt http://people.apache.org/~geirm/activemq-tracestream-20060909.txt If anyone has any hints, I'd be mighty obliged... geir - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm] Need help debugging
No, I used hand-made build from SVN. BTW, sorry for confusion about 'broken data'. The pointer value is changed inside the method - this assignment should be removed. On 9/12/06, Vladimir Gorr [EMAIL PROTECTED] wrote: Did you run this application for the recent binaries got from the SVN sources? As for me my results differ from Geir ones, namely, DRLVM crashes for both Windows Linux as follows: === Windows === vgorr@ /cygdrive/c/Tools/incubator-activemq-4.0 $ echo JAVA_HOME JAVA_HOME vgorr@ /cygdrive/c/Tools/incubator-activemq-4.0 $ echo $CLASSPATH c:/Tools/incubator-activemq-4.0/lib vgorr@ /cygdrive/c/Tools/incubator-activemq-4.0 $ which java /cygdrive/c/DrlSrc/drlvm/trunk/build/win_ia32_msvc_debug/deploy/jre/bin/java vgorr@ /cygdrive/c/Tools/incubator-activemq-4.0 $ bin/activemq cygpath: can't convert empty path An unhandled error (4) has occurred. HyGeneric_Signal_Number=0004 ExceptionCode=c005 ExceptionAddress=00F3D648 ContextFlags=0001003f Handler1=00401010 Handler2=11105D20 InaccessibleAddress=00F3D648 EDI=0013F9D4 ESI=0013F768 EAX= EBX=000B ECX=0001 EDX=000C EIP=00F3D648 ESP=0013F764 EBP=0013F770 Module= Module_base_address=00F3 Offset_in_DLL=d648 Linux sh bin/activemq java: /nfs/ins/proj/drl/coreapi/vgorr/drlvm/trunk/vm/vmcore/src/exception/exceptions.cpp:143: _jobject* create_exception(const char*): Assertion `hythread_is_suspend_enabled()' failed. abort_handler() Aborted Thanks, Vladimir. On 9/12/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, I'm observing the same problem - ActiveMQ can't start - on DRLVM + Classlibrary build 442240 . The problem I see first is that in classlib root\modules\luni\src\main\native\launcher\shared\main.c in function 'static int invocation' after call 'createVMArgs' variable 'mainClassJar' contains garbale while in the very end of 'static int createVMArgs' it contains valid string 'org.apache.harmony.kernel.vm.JarRunner' . If we comment out 'hymem_allocate_memory' in that function: if (isStandaloneJar) { if (useDefaultJarRunner == 0) { //:::commented out mainClassJar = hymem_allocate_memory (50); if (mainClassJar == NULL) the application will crash a little later. Note: we can comment this out because memory for mainClassJar is already allocated in the calling method. I believe that the general problem is that contents of memory alocated with hymem_allocate_memory get somehow broken on exit from a method. On 9/9/06, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: I applied the GCv4.1 patch and now I pass smoke test. I suspect it may be because the patch modifies the LOS test, but I'm not so sure. that patch (HARMONY-1269) is a sole-author patch to our existing codebase, and while I do have a BCC to put in SVN, I think that this is a patch, and not a bulk contribution, so I'll go forward and commit it. geir Geir Magnusson Jr. wrote: More news - I'm not passing the smoke tests. gc.LOC just spins (and sucks a lot of memory in). Clearly what I thought were trivial changes to switch to use the launcher had hidden effects. Any suggestions where to start looking? geir Geir Magnusson Jr. wrote: I was testing the DRLVM-in-Launcher setup and something is seriously broken. On Ubuntu, both debug and release builds, it will run Tomcat ok, but when I try something like Eclipse 3.2 or ActiveMQ 4.0.2 the program runs and silently exits. No log output, no console output. I've been trying to find a hint of what is making it unhappy, but so far, no luck. I've been staring at the output with -Xlog and -Xtrace, and there doesn't seem to be any errors, but I don't know what to look for. ( I've captured the stream and placed it here : http://people.apache.org/~geirm/activemq-logstream-20060909.txt http://people.apache.org/~geirm/activemq-tracestream-20060909.txt If anyone has any hints, I'd be mighty obliged... geir - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html
Re: [drlvm] Need help debugging
Hello, The 'java -jar' launcher prints dump and exits even on a minimal HelloWorld app jar - please see http://issues.apache.org/jira/browse/HARMONY-1444 On 9/12/06, Anton Luht [EMAIL PROTECTED] wrote: No, I used hand-made build from SVN. BTW, sorry for confusion about 'broken data'. The pointer value is changed inside the method - this assignment should be removed. On 9/12/06, Vladimir Gorr [EMAIL PROTECTED] wrote: Did you run this application for the recent binaries got from the SVN sources? As for me my results differ from Geir ones, namely, DRLVM crashes for both Windows Linux as follows: === Windows === vgorr@ /cygdrive/c/Tools/incubator-activemq-4.0 $ echo JAVA_HOME JAVA_HOME vgorr@ /cygdrive/c/Tools/incubator-activemq-4.0 $ echo $CLASSPATH c:/Tools/incubator-activemq-4.0/lib vgorr@ /cygdrive/c/Tools/incubator-activemq-4.0 $ which java /cygdrive/c/DrlSrc/drlvm/trunk/build/win_ia32_msvc_debug/deploy/jre/bin/java vgorr@ /cygdrive/c/Tools/incubator-activemq-4.0 $ bin/activemq cygpath: can't convert empty path An unhandled error (4) has occurred. HyGeneric_Signal_Number=0004 ExceptionCode=c005 ExceptionAddress=00F3D648 ContextFlags=0001003f Handler1=00401010 Handler2=11105D20 InaccessibleAddress=00F3D648 EDI=0013F9D4 ESI=0013F768 EAX= EBX=000B ECX=0001 EDX=000C EIP=00F3D648 ESP=0013F764 EBP=0013F770 Module= Module_base_address=00F3 Offset_in_DLL=d648 Linux sh bin/activemq java: /nfs/ins/proj/drl/coreapi/vgorr/drlvm/trunk/vm/vmcore/src/exception/exceptions.cpp:143: _jobject* create_exception(const char*): Assertion `hythread_is_suspend_enabled()' failed. abort_handler() Aborted Thanks, Vladimir. On 9/12/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, I'm observing the same problem - ActiveMQ can't start - on DRLVM + Classlibrary build 442240 . The problem I see first is that in classlib root\modules\luni\src\main\native\launcher\shared\main.c in function 'static int invocation' after call 'createVMArgs' variable 'mainClassJar' contains garbale while in the very end of 'static int createVMArgs' it contains valid string 'org.apache.harmony.kernel.vm.JarRunner' . If we comment out 'hymem_allocate_memory' in that function: if (isStandaloneJar) { if (useDefaultJarRunner == 0) { //:::commented out mainClassJar = hymem_allocate_memory (50); if (mainClassJar == NULL) the application will crash a little later. Note: we can comment this out because memory for mainClassJar is already allocated in the calling method. I believe that the general problem is that contents of memory alocated with hymem_allocate_memory get somehow broken on exit from a method. On 9/9/06, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: I applied the GCv4.1 patch and now I pass smoke test. I suspect it may be because the patch modifies the LOS test, but I'm not so sure. that patch (HARMONY-1269) is a sole-author patch to our existing codebase, and while I do have a BCC to put in SVN, I think that this is a patch, and not a bulk contribution, so I'll go forward and commit it. geir Geir Magnusson Jr. wrote: More news - I'm not passing the smoke tests. gc.LOC just spins (and sucks a lot of memory in). Clearly what I thought were trivial changes to switch to use the launcher had hidden effects. Any suggestions where to start looking? geir Geir Magnusson Jr. wrote: I was testing the DRLVM-in-Launcher setup and something is seriously broken. On Ubuntu, both debug and release builds, it will run Tomcat ok, but when I try something like Eclipse 3.2 or ActiveMQ 4.0.2 the program runs and silently exits. No log output, no console output. I've been trying to find a hint of what is making it unhappy, but so far, no luck. I've been staring at the output with -Xlog and -Xtrace, and there doesn't seem to be any errors, but I don't know what to look for. ( I've captured the stream and placed it here : http://people.apache.org/~geirm/activemq-logstream-20060909.txt http://people.apache.org/~geirm/activemq-tracestream-20060909.txt If anyone has any hints, I'd be mighty obliged... geir -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Hello, Seems like nobody is using this test results storage - the problem may be that it has very few features. I'm going to implement something I think will be useful - please make comments if you have any. Features are: - autorization - authorized users can modify tests results, for example, link a test failure to a JIRA issue - attributes - platform, compiler, JVM, build date, build tag for every test run (set of test results) - list with test runs on the first page - attributes + number of passed, failed tests - browsing of test runs - view all tests, view failed, etc - for every test it will be posible to view its history - results of this test in other runs - on all configurations and on the same confiruration On 9/4/06, Anton Luht [EMAIL PROTECTED] wrote: Thanks, These were remains of setup experiments - removed from the list. On 9/4/06, Vladimir Ivanov [EMAIL PROTECTED] wrote: Seems, that links upload60551http://harmonytest.org/testapp.do;jsessionid=9644A083467EC4F0C4CC806DB107C3F2?method=showrunid=upload60551 Europe/Moscow 11.2.0 x86 Windows XP 5.1 upload60552http://harmonytest.org/testapp.do;jsessionid=9644A083467EC4F0C4CC806DB107C3F2?method=showrunid=upload60552 Europe/Moscow 11.2.0 x86 Windows XP 5.1 upload60553http://harmonytest.org/testapp.do;jsessionid=9644A083467EC4F0C4CC806DB107C3F2?method=showrunid=upload60553 Europe/Moscow 11.2.0 x86 Windows XP 5.1 are broken. thanks, Vladimir On 9/1/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, I've deployed the test infrastructure app to http://harmonytest.org . It is mostly for demo purpose - the disk space is not too large - I hope it will move somewhere else after evaluation. Please try to upload your test results there and send comments/wishes about the app - I'll try to implement them. There is no design because I didn't dare to make it Apache-looking :) The problem I see is that DRL VM version as seen is 'java.exe -version' is not seen in System.getProperties() as is not recorded in xmls with test results because of it. It's hard to identify the configuration the tests were run on - I think version information should be added to properties. I don't want to send the account data to the list - please let me know if you want to have access to the site. On 8/4/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, I've uploaded a proto of a proto for test infrastructure to http://issues.apache.org/jira/browse/HARMONY-1062 . At least it allows to upload test results to a server. Unfortunately I haven't found a server to deploy it yet so I can't send URL that contains test installation. The screenshots look much like those I've sent before. Sorry I haven't implemented Alexei's proposal to make test report JUnitReport style looking but I do remember about it. I've tried to separate web application logic from data access logic - the latter is implemented with data stored in files. -- Regards, Anton Luht, Intel Middleware Products Division -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Thanks, These were remains of setup experiments - removed from the list. On 9/4/06, Vladimir Ivanov [EMAIL PROTECTED] wrote: Seems, that links upload60551http://harmonytest.org/testapp.do;jsessionid=9644A083467EC4F0C4CC806DB107C3F2?method=showrunid=upload60551 Europe/Moscow 11.2.0 x86 Windows XP 5.1 upload60552http://harmonytest.org/testapp.do;jsessionid=9644A083467EC4F0C4CC806DB107C3F2?method=showrunid=upload60552 Europe/Moscow 11.2.0 x86 Windows XP 5.1 upload60553http://harmonytest.org/testapp.do;jsessionid=9644A083467EC4F0C4CC806DB107C3F2?method=showrunid=upload60553 Europe/Moscow 11.2.0 x86 Windows XP 5.1 are broken. thanks, Vladimir On 9/1/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, I've deployed the test infrastructure app to http://harmonytest.org . It is mostly for demo purpose - the disk space is not too large - I hope it will move somewhere else after evaluation. Please try to upload your test results there and send comments/wishes about the app - I'll try to implement them. There is no design because I didn't dare to make it Apache-looking :) The problem I see is that DRL VM version as seen is 'java.exe -version' is not seen in System.getProperties() as is not recorded in xmls with test results because of it. It's hard to identify the configuration the tests were run on - I think version information should be added to properties. I don't want to send the account data to the list - please let me know if you want to have access to the site. On 8/4/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, I've uploaded a proto of a proto for test infrastructure to http://issues.apache.org/jira/browse/HARMONY-1062 . At least it allows to upload test results to a server. Unfortunately I haven't found a server to deploy it yet so I can't send URL that contains test installation. The screenshots look much like those I've sent before. Sorry I haven't implemented Alexei's proposal to make test report JUnitReport style looking but I do remember about it. I've tried to separate web application logic from data access logic - the latter is implemented with data stored in files. -- Regards, Anton Luht, Intel Middleware Products Division -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Hello, I've deployed the test infrastructure app to http://harmonytest.org . It is mostly for demo purpose - the disk space is not too large - I hope it will move somewhere else after evaluation. Please try to upload your test results there and send comments/wishes about the app - I'll try to implement them. There is no design because I didn't dare to make it Apache-looking :) The problem I see is that DRL VM version as seen is 'java.exe -version' is not seen in System.getProperties() as is not recorded in xmls with test results because of it. It's hard to identify the configuration the tests were run on - I think version information should be added to properties. I don't want to send the account data to the list - please let me know if you want to have access to the site. On 8/4/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, I've uploaded a proto of a proto for test infrastructure to http://issues.apache.org/jira/browse/HARMONY-1062 . At least it allows to upload test results to a server. Unfortunately I haven't found a server to deploy it yet so I can't send URL that contains test installation. The screenshots look much like those I've sent before. Sorry I haven't implemented Alexei's proposal to make test report JUnitReport style looking but I do remember about it. I've tried to separate web application logic from data access logic - the latter is implemented with data stored in files. -- Regards, Anton Luht, Intel Middleware Products Division -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib][luni] signalis interruptus in hysock
Hello, Behaviour of select() with SA_RESTART can vary by platform - see [1] ---quote begins [EINTR] The select() function was interrupted before any of the selected events occurred and before the timeout interval expired. If SA_RESTART has been set for the interrupting signal, it is implementation-dependent whether select() restarts or returns with [EINTR]. ---quote ends Thus, I think Artem's patch is correct - it just make behaviour of select() not dependent on the underlying platform - the call is restarted just like read() and write() do. [1] http://www.opengroup.org/onlinepubs/007908799/xsh/select.html On 8/31/06, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: On Aug 31, 2006, at 3:03 AM, Jimmy, Jing Lv wrote: Alexey Varlamov wrote: Guys, Probably I missed that thread on InterruptibleChannel implementation, but I've just hit on the following code in java.nio.channels.spi.AbstractInterruptibleChannel: static { try { setInterruptAction = AccessController .doPrivileged(new PrivilegedExceptionActionMethod() { public Method run() throws Exception {return Thread.class.getDeclaredMethod(setInterruptAction, new Class[] { Runnable.class }); } }); setInterruptAction.setAccessible(true); } catch (Exception e) { // FIXME: be accomodate before VM actually provides // setInterruptAction method // throw new Error(e); } } There are no docs on j.l.Thread.setInterruptAction()... Does this code snippet relate to the subject of this discussion? Hi, The SIGUSR2 is much more powerful than I think. If it can really break select operation without other harmful side-effect, I believe it is a good way to Interrupt Channel. IIRC, setInterruptAction is used if VM can not interrupt some I/ O blocking operation, like select(), so it set a callback and ask classlib method to stop them(close fd, etc). But if SIGUSR2 works so well, I doubt it is not necessary then. BTW, can it break socket read/write or other blocking operation as well? (I'm very interested in how does it work, as common thread mechanism know nothing how to stop a certain I/O :) ) Yes, it's one of the 'features' of signals in unix. So read() and write() are also affected - they can return from a blocking operation with nothing read and errno set to EINTR. SIGUSR2 is not in itself any more powerful than SIGUSR1 - they all have the same effect, namely a software interrupt. I looked in DRLVM and it appears that the right thing is being done - namely the sighandler is being setup w/ the SA_RESTART flag, so that system calls that can be restarted are restarted. Experimentation on ubuntu shows that read() can be dealt with this way, but select() doesn't appear to be able to... IOW, I can get it so signals are caught and handled and read() is automatically restarted - it doesn't complete on the signal and therefore never appears to me to be interrupted, where I cant' get select() to behave that way it always completes when a signal is caught. This is consistent with Stevens, although he notes that in SVR4, select() is restarted. :/ Of course Stevens is pre-linux, and still talks about modems. It's truly a great reference for this, but would be nice if it was up-to-date wrt linux. The problem is that the author died a few years ago... So I don't know what to do. I'm hoping someone can tell us how J9 does this - the obvious answer is that J9 doesn't use any signals, but I'm not sure if I buy that yet. If we employ the patch, then our socket listening code can't be interrupted, and I'm pretty uncomfortable with that. geir - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[classlib] [testing] crashes in test execution
Hello, I've tried to run 'ant test' in classlib on a recent build hand-made from SVN and came across several problems. First problem was that a popup window with assertion appeared - it was easy to solve it - see HARMONY-1340 . The second one is more tricky for me. ---details start--- vm version: svn = r438451, (Aug 30 2006), Windows/ia32/msvc 1310, debug build tests are run in the following way: set JAVA_HOME=... ant test -Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter in compiling LUNI a debug popup occures: in the method JavaLabelPrepass::ldc (file JavaLabelPrepass.cpp) constantType value is null. This happens because in method DrlVMCompilationInterface::getConstantType (file DrlVMInterface.cpp) drlType returned doesn't fit any of options in switch() and surprisingly falls through assert(0) statements to 'return NULL'. ---details end Does anyone else observe similar behaviour? Or you don't have any problems with tests and I should re-check my configuration? -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib][sql] Another confusing behavior: java.sql.Timestamp
Hello, I don't think we should bother about single value which is very unlikely to happpen in real data. On 8/29/06, Richard Liang [EMAIL PROTECTED] wrote: Hello All, RI's java.sql.Timestamp(long time) behaves confusing when the parameter time is in Long.MIN_VALUE. Shall we follow RI? Output of the following sample is: time: -9223372036854775808 time: 9223372036854775192 timestamp: 292278994-08-17 15:12:55.192 timestamp: 292278994-08-17 15:12:55.192 = import java.sql.Timestamp; public class TimeStampTest { public static void main(String[] args) { long time = Long.MIN_VALUE; long time2 = 9223372036854775192l; Timestamp timestamp = new Timestamp(time); Timestamp timestamp2 = new Timestamp(time2); System.out.println(time: + time); System.out.println(time: + time2); System.out.println(timestamp: + timestamp); System.out.println(timestamp: + timestamp2); } } -- Richard Liang China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm] sanity check - can someone build from svn and test ActiveMQ?
One of reasons of verifier/classnotfound exceptions is that classes can't be read from files after security manager is installed - please see http://issues.apache.org/jira/browse/HARMONY-1226 for minimal test case. It is the reason why class can't be loaded with second parameter == true but can be loaded with it == false. The class is already in cache but access to its disk copy is denied. On 8/18/06, Pavel Rebriy [EMAIL PROTECTED] wrote: Ok, I'll try to explain it. Function vf_resolve_class with true as the second parameter asks class loader to load a class with a given class name. If the second parameter equals to false, function just checks if a given class is loaded, and get it if it is. The patch claims that if class loader tries to load a given class and fails and then asks it to lookup among loaded classes it appears to be successfully loaded. That is a class is failed to load, but it is successfully loaded in VM. It could work only is a class loader is bugged. On 17/08/06, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: Right - what I was worried about was that I *thought* that HARMONY-956 got me to where Gergory is describing, but he's applying HARMONY-1179. I'll just stop worrying about this for the snapshot, post it, and move on w/ 1179 and keep going. Thanks all for looking into this - I could *swear* that 956 had a visible effect, but I was clearly mistaken. And what is dutty hacking? :) geir On Aug 17, 2006, at 8:11 AM, Pavel Rebriy wrote: Anton, your patch is a dutty hacking. With and without the patch ActiveMQ crashes as Gregory described. On 17/08/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, Please try to apply patch Index: vm/vmcore/src/verifier/ver_utils.cpp === --- vm/vmcore/src/verifier/ver_utils.cpp(revision 432184) +++ vm/vmcore/src/verifier/ver_utils.cpp(working copy) @@ -1391,6 +1391,9 @@ // get stack reference class class_handler source = vf_resolve_class( constraint-source, true, ctex ); +if(source == NULL) { + source = vf_resolve_class( constraint-source, false, ctex ); +} if( !source ) { VERIFY_DEBUG( verifying class class_get_name( ctex- m_class ) (method method_get_name( constraint-method ) Unfortunately I cannot attach it to the JIRA issue because the issue is closed. On 8/16/06, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: I'm trying to create snapshots, and when testing w/ ActiveMQ, I still have the same problems w/ ActiveMQ as reported originally in HARMONY-956. Can someone do a sanity check? it's a release build. geir - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev- [EMAIL PROTECTED] For additional commands, e-mail: harmony-dev- [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: harmony-dev- [EMAIL PROTECTED] -- Best regards, Pavel Rebriy - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Pavel Rebriy -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib][instrument]Using Support_Exec framework(was Re: [classlib][Instrument] Documents for non-unit-tests)
Jimmy, Ah, we are trying to catch the exact exception name, not its message. I agree parsing the message is a bad idea, but find an exact exception name in the output is still stable, am I right? Yes, it's stable. In fact, I have no idea to catch an exception in exec, it surely contains no such function, right? No, it doesn't. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm] sanity check - can someone build from svn and test ActiveMQ?
Hello, Please try to apply patch Index: vm/vmcore/src/verifier/ver_utils.cpp === --- vm/vmcore/src/verifier/ver_utils.cpp(revision 432184) +++ vm/vmcore/src/verifier/ver_utils.cpp(working copy) @@ -1391,6 +1391,9 @@ // get stack reference class class_handler source = vf_resolve_class( constraint-source, true, ctex ); +if(source == NULL) { + source = vf_resolve_class( constraint-source, false, ctex ); +} if( !source ) { VERIFY_DEBUG( verifying class class_get_name( ctex-m_class ) (method method_get_name( constraint-method ) Unfortunately I cannot attach it to the JIRA issue because the issue is closed. On 8/16/06, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: I'm trying to create snapshots, and when testing w/ ActiveMQ, I still have the same problems w/ ActiveMQ as reported originally in HARMONY-956. Can someone do a sanity check? it's a release build. geir - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[app-bug] mx4j
Hello, Now some people in this list are trying to make ActiveMQ run on Harmony. ActiveMQ is based on MX4J [1] . MX4J 3.0.1 has 812 unit tests. Results of those tests: BEA WebLogic JRockit(TM) 1.4.2_04 JVM : 810 tests, 1 failure, 1 error (99.75%) Harmony DRLVM version 11.2.0 766 tests, 2 failures, 110 errors (85.38%) Maybe it's worth to consider MX4j JUnit tests first and then try to fix ActiveMQ? MX4J is used not only in ActiveMQ but in other apps like Tomcat as well. [1] http://mx4j.sourceforge.net -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [app-bug] mx4j
Not yet. I think that making minimal test cases from JUnit tests is simpler than making ones from an application though. I'm going to get down to it soon - I just wanted to discuss it before acting to make sure that nobody objects such approach. On 8/17/06, Geir Magnusson Jr. [EMAIL PROTECTED] wrote: that's a great idea. Have you isolated any of the errors? geir On Aug 17, 2006, at 10:40 AM, Anton Luht wrote: Hello, Now some people in this list are trying to make ActiveMQ run on Harmony. ActiveMQ is based on MX4J [1] . MX4J 3.0.1 has 812 unit tests. Results of those tests: BEA WebLogic JRockit(TM) 1.4.2_04 JVM : 810 tests, 1 failure, 1 error (99.75%) Harmony DRLVM version 11.2.0 766 tests, 2 failures, 110 errors (85.38%) Maybe it's worth to consider MX4j JUnit tests first and then try to fix ActiveMQ? MX4J is used not only in ActiveMQ but in other apps like Tomcat as well. [1] http://mx4j.sourceforge.net -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib][instrument]Using Support_Exec framework(was Re: [classlib][Instrument] Documents for non-unit-tests)
Cool idea - rethrow exceptions from exec'ed java :) You exec jvm that dies because some exception (say, NPE) not catched, support_exec analyzes output, understands that NPE was thrown and rethrows it :) People who will look at those tests will certainly go mad. On 8/16/06, Jimmy, Jing Lv [EMAIL PROTECTED] wrote: Paulex Yang wrote: Jimmy, Jing Lv wrote: Hi, I'm trying to write some unit tests of instrument. As discussed, I'm using exec. Currently I've tried Support_Exec and find it fairly easy to use(Thanks Stepan :) ). For resources (jar files and utility classes), I make a new directory: $Harmony/modules/instrument/src/test/resource/org/apache/harmony/tests/instrument and put them there. And I meet a problem here. Currently the default classpath in running test is $Harmony/modules/instrument/bin, so it meets problem in loading those utility classes (it can load jar files though). I remember Mark has plan to change the classpath in running testcase, it'll be great if he make some progress. An another problem is checking, currently the result is checked by searching and compare in string(e.g, find someException in result). But the framework seems fails if any exception is thrown out. Can it make a little change that it passes and returns the error message in exec? Didn't catch up here, did you mean that you need to check the exception message as well as exception type? Not necessary to check messages. However we can not catch those exceptions so we have to analysis output. For an example: run java -javaagent:test.jar myclass so get output: Exception in thread main java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown So urce) Caused by: java.lang.IllegalAccessError ... In this case we can search for InvocationTargetException in the output to ensure the expected exception. Sometimes we may also check cause by exceptions. This approach seems not perfect. Any comments/suggestions? Thanks! snip -- Best Regards! Jimmy, Jing Lv China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib][instrument]Using Support_Exec framework(was Re: [classlib][Instrument] Documents for non-unit-tests)
IMHO analysis of exception stacktrace output is a bad idea. Tests should not produce uncatched exceptions unless they fail. Test authors should explicitly catch an exception and print some text to stdout. Reasons are: - exception messages are not standard, different JVMs can produce different output - localized messages can be printed, the test may fail because of locales - if test author expects IOException but subclass of this exception is thrown and printed, the test will fail while if the test was written in the way catch IOException; print PASSED the test would pass On 8/16/06, Stepan Mishura [EMAIL PROTECTED] wrote: On 8/16/06, Anton Luht wrote: Cool idea - rethrow exceptions from exec'ed java :) You exec jvm that dies because some exception (say, NPE) not catched, support_exec analyzes output, understands that NPE was thrown and rethrows it :) People who will look at those tests will certainly go mad. You misunderstoond the idea for using support_exec - no exceptions re-throwing should be made. A test will verify only that VM fails in expected way (i.e. with expected error message). Do you have a better idea how to test that? Thanks, Stepan. On 8/16/06, Jimmy, Jing Lv [EMAIL PROTECTED] wrote: Paulex Yang wrote: Jimmy, Jing Lv wrote: Hi, I'm trying to write some unit tests of instrument. As discussed, I'm using exec. Currently I've tried Support_Exec and find it fairly easy to use(Thanks Stepan :) ). For resources (jar files and utility classes), I make a new directory: $Harmony/modules/instrument/src/test/resource/org/apache/harmony/tests/instrument and put them there. And I meet a problem here. Currently the default classpath in running test is $Harmony/modules/instrument/bin, so it meets problem in loading those utility classes (it can load jar files though). I remember Mark has plan to change the classpath in running testcase, it'll be great if he make some progress. An another problem is checking, currently the result is checked by searching and compare in string(e.g, find someException in result). But the framework seems fails if any exception is thrown out. Can it make a little change that it passes and returns the error message in exec? Didn't catch up here, did you mean that you need to check the exception message as well as exception type? Not necessary to check messages. However we can not catch those exceptions so we have to analysis output. For an example: run java -javaagent:test.jar myclass so get output: Exception in thread main java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown So urce) Caused by: java.lang.IllegalAccessError ... In this case we can search for InvocationTargetException in the output to ensure the expected exception. Sometimes we may also check cause by exceptions. This approach seems not perfect. Any comments/suggestions? Thanks! snip -- Best Regards! Jimmy, Jing Lv China Software Development Lab, IBM -- Thanks, Stepan Mishura Intel Middleware Products Division -- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib][instrument]Using Support_Exec framework(was Re: [classlib][Instrument] Documents for non-unit-tests)
For example, how you will test that VM is aborted during start-up with NoClassDefFoundError (not with IllegalArgumentException or any other exception) if it is impossible to load requested class? I think it should be done using some VM tests - maybe using JVMTI. Parsing output sounds too weak for me - anything that prints NoClassDefFoundError args[0] will do. This is too complicated though and I agree that parsing error output will work in most cases. [1] http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200608.mbox/[EMAIL PROTECTED] On 8/16/06, Stepan Mishura [EMAIL PROTECTED] wrote: On 8/16/06, Anton Luht wrote: Cool idea - rethrow exceptions from exec'ed java :) You exec jvm that dies because some exception (say, NPE) not catched, support_exec analyzes output, understands that NPE was thrown and rethrows it :) People who will look at those tests will certainly go mad. You misunderstoond the idea for using support_exec - no exceptions re-throwing should be made. A test will verify only that VM fails in expected way (i.e. with expected error message). Do you have a better idea how to test that? Thanks, Stepan. On 8/16/06, Jimmy, Jing Lv [EMAIL PROTECTED] wrote: Paulex Yang wrote: Jimmy, Jing Lv wrote: Hi, I'm trying to write some unit tests of instrument. As discussed, I'm using exec. Currently I've tried Support_Exec and find it fairly easy to use(Thanks Stepan :) ). For resources (jar files and utility classes), I make a new directory: $Harmony/modules/instrument/src/test/resource/org/apache/harmony/tests/instrument and put them there. And I meet a problem here. Currently the default classpath in running test is $Harmony/modules/instrument/bin, so it meets problem in loading those utility classes (it can load jar files though). I remember Mark has plan to change the classpath in running testcase, it'll be great if he make some progress. An another problem is checking, currently the result is checked by searching and compare in string(e.g, find someException in result). But the framework seems fails if any exception is thrown out. Can it make a little change that it passes and returns the error message in exec? Didn't catch up here, did you mean that you need to check the exception message as well as exception type? Not necessary to check messages. However we can not catch those exceptions so we have to analysis output. For an example: run java -javaagent:test.jar myclass so get output: Exception in thread main java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown So urce) Caused by: java.lang.IllegalAccessError ... In this case we can search for InvocationTargetException in the output to ensure the expected exception. Sometimes we may also check cause by exceptions. This approach seems not perfect. Any comments/suggestions? Thanks! snip -- Best Regards! Jimmy, Jing Lv China Software Development Lab, IBM -- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [general] compatibility packages
Hello, There's another issues on compatibility: some applications rely on the existence of JAVA_ROOT/lib/rt.jar - the example is [1]. Some require tools.jar [2]. Harmony doesn't have these jars now so applications can fail on it just because they're bound to the implementation specifics. [1] http://koders.com/java/fid94A9F615DBE6674BB9423D1DF67C8256605B5C24.aspx?s=rt.jar [2] http://koders.com/java/fidDE45C5B81C71D554A7E680A0E64FC1D564BA830A.aspx?s=tools.jar -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm] HARMONY-956 - problem w/ DRLVM classloader
Hello, I've found another issue trying to run activemq: HARMONY-1177 . I think it's important - try/catch/return works incorrectly. On 8/14/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Anton Luht wrote: Hello, DRLVM has an (undocumented?) option to switch off verifier -Dvm.use_verifier=false . With this option activemq starts without crash. Verifier seem to be the blocker. Odd. even with that switch, I get a crash. Of course, it's not the verifier. Seems like ActiveMQ is a good app to focus on to get running geir On 8/8/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Gregory Shimansky wrote: On Tuesday 08 August 2006 00:01 Geir Magnusson Jr wrote: Ok - I made that fix and still seem to have a problem, even after a clean rebuild. I guess I should figure out how to turn on the trace... The problem is that class loader does not chain VerifyError to NoClassDefFoundError so debugging such problems is diffucult without tracing. I think this is a place for improvement in drlvm. I tried to fix the problem and found out that verifier just doesn't understand exception handlers which point to the code length address (code end + 1). It is a surprise that this problem didn't appear earlier. App-oriented testing... :) My patch attached to JIRA attempts to fix the problem in verifier only, the application still fails to start. In default mode it exits silently, I didn't find any exception logs or something. When using interpreter -Xint it fails with ArrayStoreException still without any stack trace. I'll try to find out what is happening. Nice work. Thanks for doing this... geir Anton Luht wrote: Hello, The problem is with verifier. The code in Verifier.cpp: if( ( start_pc = len ) || ( end_pc = len ) || ( handler_pc = len ) ) ... result = VER_ErrorHandler; I've modified error logging a bit to log values of start_pc, end_pc, handler_pc and len and that's the output: Loading message broker from: xbean:activemq.xml vf_debug: VerifyError: (class: edu/emory/mathcs/backport/java/util/concurrent/lo cks/ReentrantLock$NonfairSync, method: lockInterruptibly()V, len: 103, start_pc: 87, end_pc: 103, handler_pc: 21) Handler pc is out of range vf_debug: verifying class edu/emory/mathcs/backport/java/util/concurrent/locks/R eentrantLock (method init()V) couldn't load class edu/emory/mathcs/backport/j ava/util/concurrent/locks/ReentrantLock$NonfairSync vf_debug: VerifyError: edu/emory/mathcs/backport/java/util/concurrent/locks/Reen trantLock$NonfairSync Failed to execute main task. Reason: java.lang.NoClassDefFoundError: edu/emory/m athcs/backport/java/util/concurrent/locks/ReentrantLock$NonfairSync I'm not an expert in verification but seems like end_pc = len should be replaced with end_pc len On 8/5/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Anyone interested? :) - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm] HARMONY-956 - problem w/ DRLVM classloader
Sorry - the bug is not reproduced on the latest build. Someone has fixed it during the weekend :) On 8/14/06, Anton Luht [EMAIL PROTECTED] wrote: Hello, I've found another issue trying to run activemq: HARMONY-1177 . I think it's important - try/catch/return works incorrectly. On 8/14/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Anton Luht wrote: Hello, DRLVM has an (undocumented?) option to switch off verifier -Dvm.use_verifier=false . With this option activemq starts without crash. Verifier seem to be the blocker. Odd. even with that switch, I get a crash. Of course, it's not the verifier. Seems like ActiveMQ is a good app to focus on to get running geir On 8/8/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Gregory Shimansky wrote: On Tuesday 08 August 2006 00:01 Geir Magnusson Jr wrote: Ok - I made that fix and still seem to have a problem, even after a clean rebuild. I guess I should figure out how to turn on the trace... The problem is that class loader does not chain VerifyError to NoClassDefFoundError so debugging such problems is diffucult without tracing. I think this is a place for improvement in drlvm. I tried to fix the problem and found out that verifier just doesn't understand exception handlers which point to the code length address (code end + 1). It is a surprise that this problem didn't appear earlier. App-oriented testing... :) My patch attached to JIRA attempts to fix the problem in verifier only, the application still fails to start. In default mode it exits silently, I didn't find any exception logs or something. When using interpreter -Xint it fails with ArrayStoreException still without any stack trace. I'll try to find out what is happening. Nice work. Thanks for doing this... geir Anton Luht wrote: Hello, The problem is with verifier. The code in Verifier.cpp: if( ( start_pc = len ) || ( end_pc = len ) || ( handler_pc = len ) ) ... result = VER_ErrorHandler; I've modified error logging a bit to log values of start_pc, end_pc, handler_pc and len and that's the output: Loading message broker from: xbean:activemq.xml vf_debug: VerifyError: (class: edu/emory/mathcs/backport/java/util/concurrent/lo cks/ReentrantLock$NonfairSync, method: lockInterruptibly()V, len: 103, start_pc: 87, end_pc: 103, handler_pc: 21) Handler pc is out of range vf_debug: verifying class edu/emory/mathcs/backport/java/util/concurrent/locks/R eentrantLock (method init()V) couldn't load class edu/emory/mathcs/backport/j ava/util/concurrent/locks/ReentrantLock$NonfairSync vf_debug: VerifyError: edu/emory/mathcs/backport/java/util/concurrent/locks/Reen trantLock$NonfairSync Failed to execute main task. Reason: java.lang.NoClassDefFoundError: edu/emory/m athcs/backport/java/util/concurrent/locks/ReentrantLock$NonfairSync I'm not an expert in verification but seems like end_pc = len should be replaced with end_pc len On 8/5/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Anyone interested? :) - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to run tests? (was Re: [classlib][support] Using new framework for testing serialization (was: ...)
Hello, Mess with golden files seem to be a problem. Why not just pass path to an alternative JVM as an argument to the tests? Maybe an environment variable or a VM property. The test framework can serialize some data in one vm, deserialize it in another and check that object was deserialized correctly. Process communication or serialization to temporary files can be used to exchange data between VMs. This approach will: - remove golden files - allow test that data serialized in Harmony is deserialized in another VM correctly - allow compare Harmony serialization with any VM, not only the one used when golden files were produced. The test based on such framework will look something like: public void writeTestData(ObjectOutputStream oos) { oos.write(new Integer(2)); } public void readTestData(ObjectInputStream ois) { Integer i = (Integer) ois.readObject(); assertEquals(i.intValue(), 2); } On 8/11/06, Stepan Mishura [EMAIL PROTECTED] wrote: On 8/11/06, Mark Hindess wrote: On 10 August 2006 at 14:51, Stepan Mishura wrote: On 8/10/06, Jimmy, Jing Lv wrote: Hi Stepan, IMO, most ser file should be put into a certain directory, so the the appropriate directory is always there. I'd like to add a new method to the framework as: public static void createGoldenFile(TestCase test,Object object) throws IOException { createGoldenFile(src/test/resources/serialization,test,object); } But if 'root' param is relative path them the generated file is placed in 'bin' (i.e. module_root/bin/test). folder. Am I right? So you have to move it by hands anyway to module_root/src/test/resources/serialization folder. I was thinking about this. Currently all of the relative paths in modules/name/build.xml are relative to modules/name, except those on test invocations which are relative to modules/name/bin/test. IMHO, this is slightly confusing for instance in the security module, For example, modules/security/build.xml sets the classpath (in ant) to include ../../build/tests when running the api tests, but when running the api injected tests it appends ../../../../build/tests to the bootclasspath (using -X vm argument). Yes, I agree that this is confusing and should be fixed. Thanks, Stepan. I think ant should just run tests in modules/name. (I didn't realise that eclipse already ran the tests for there or I'd probably have suggested it earlier.) Regards, Mark. -- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm] HARMONY-956 - problem w/ DRLVM classloader
Geir, can you please add that patch to the JIRA entry? It's not a patch, but a bug workaround or better to say - dirty hack. I'd better try to solve the core problem and provide the proper patch in few days. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [general] new snapshots up early morning... is the win2k problem gone?
Hello, And what benefits will we get from this? What is the percentage of Win9x users? According to Russian analogues of Google Analytics there are ~30% of Win9x hosts among Internet clients. I believe users of these computers are not developers and not interested in Harmony now but maybe they'll need it one day :) -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [general] new snapshots up early morning... is the win2k problem gone?
Strange... It means that 1/3 of my friends should have Win9x... But I can not recall such large number... just one or two. Can you give a link to this statistics? See [1] . I've checked other sites with OS statistics and they mostly report 4% of Windows 9x (for example, [2]), so I think you're right and the number of Windows 9x users is really low and the statistics I've found first reported wrong numbers. [1] http://gs.hotlog.ru/ (Russian only) [2] http://www.thecounter.com/stats/2006/July/os.php -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm] expanding the tests
Hello, It seems that the following should be done to include Jasmin tests into the infrastructure: - support different types of files in the test suite - at least Java and Jasmine. It may be not a good idea to create a separate test suite for Jasmine tests because a developer that creates test for some functionality would have to switch between them if he/she wants to write tests partly in Java partly in Jasmine. Maybe someone would want to create a test with mixed Java and Jasmine code - for example, test written in Java that loads class compiled from Jasmine - such test may be not only smoke/unit but also stress, performance, etc - like tests written in Java - test harness should be able to support not only common JUnit/TestNG/... classes but also things like negative class loading tests - there are classes with broken structures and the test is an attempt to load them - if JVM fails, the test passes. On 8/2/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: I was looking at HARMONY-788 today, and I'd like to be able to incorporate some of the jasmin tests into our infrastructure. I presume that the techniques for creating arbitrary class files will be useful for classlib as well? Anyone have any thoughts on how we might go forward here, in DRLVM anyway? I don't want to keep going w/ the current tests (a la smoke). geir - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Hello, Alexei. There are many ways in which you can achieve the separation of business logic from presentation layer. Have you heard about MVC (or Model-View-Controller) paradigm? . However, this is a hand-made variant of the MVC-framework. :) Yes, that's why I've chosen Struts. It's an MVC framework, it's Apache project and it's very popular (their site says it's 'the most popular web application framework for Java'). I have a couple of years of experience in development with JSP and Struts so I've chosen it not because I've heard some buzz in forums and decided to try it for test application but because I know it's good. I think that our purpose is not to reinvent the wheel and to write yet another MVC framework in scope of Harmony project but just to create rapidly test infrastructure for Harmony. About the attached HTMLs: is there any possibility to utilize JUnitReport to generate report pages? It will probably look nicer in this case. OK, I'll put a link to this page, too. 2006/8/2, Anton Luht [EMAIL PROTECTED]: Hello, I'm all open for any suggestions and wishes - I'm not an architect but a humble coder :) Regarding Struts: putting logic in JSP looks ugly for me. Puttind 'out.println(html code' to Java code looks ugly, too. I remember from my Web app development experience that Struts worked well. Why not use it? I've already implemented a small prototype using Perl + cgi - please see the screenshots attached. I'm going to make a webapp with similar pages. The pages are: - list of uploaded results (test runs) - upload result form - list of tests for each test run - page with test result for a single test in run Sorting, paging, filtering, comparing, etc, to be implemented later. On 8/2/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Alexei Zakharov wrote: Anton, How many pages do you plan to have in your application? I mean that Struts is probably too heavy solution for couple of pages (if this is your case). *IMHO* I was thinking the same thing, but was going to keep quiet unless someone else spoke up. However, I think the real problem is scope, not the tool (as I figure one simple page done in Struts is the same amount of time as one w/ another technology). Anton, could you give us a brief outline of how you hope to proceed? Right now we're desperate for the basics - somewhere to post info, and somewhere to read a summary across all platforms. geir Best Regards, 2006/8/2, Anton Luht [EMAIL PROTECTED]: Hello, I believe that there are more installations that can execute CGI than those that can run servlets. I'm sure that for the first time the test infrastructure will be deployed to an existing installation but not to a dedicated server - that's why I decided that CGI suites better. But we aren't going to deploy the central service to everywhere, just to the apache infrastructure. I don't know Apache infrastructure too well - ok, if there's a possibility to deploy a webapp - I'll write server-side in Java, no problem. If anyone objects that the technology should be Java + servlet container, please let community know. If nobody objects I'm going to get down to coding. I think I'll use Struts for the app. When we have a dedicated host for builds maybe it'll be worth to rewrite test infrastructure in Java. But please do not consider the choice of technology final - I just wanted to pick something that fits for a prototype: fast to develop and easy to deploy. I'm confused. We'll have a host to receive this info from the distributed build machines. One host will be recording the info from the all the other distributed build machines... geir On 8/1/06, Alexei Zakharov [EMAIL PROTECTED] wrote: Hi Anton, I believe that most common server-side engine is CGI (not PHP or J2EE) so I'd like to implement this using Perl CGI scripts. (just thinking about) there are several good Java-oriented technologies - servlets, JSP, JSF - why not to use them? I don't like to say that servlets are more frequent than perl, but Java itself is not the most widely used language. We should advertise it. :) IMHO having Java web/servlets server (not a complete J2EE) for such type of tasks with theoretically Harmony JRE inside will do a good job for our project. Regards, 2006/7/28, Anton Luht [EMAIL PROTECTED]: Hello, I know why this thread is so lazy - it's because everybody dislikes QA testing :) OK, now let me add my $0.02 about my vision about reporting of test results. I believe it's better to do this using HTTP rather than mail because some people may not have access to SMTP port (for example, be behind proxy with Exchange as mail
Re: [drlvm] expanding the tests
In other words you suggest we should develop our own harness, right? :) At least search for existing harnesses - I'm sure there are projects with tests in mixed nature (languages, way of execution, etc) with test infrastructure that runs them all and displays results in an uniform manner. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Hello, I've uploaded a proto of a proto for test infrastructure to http://issues.apache.org/jira/browse/HARMONY-1062 . At least it allows to upload test results to a server. Unfortunately I haven't found a server to deploy it yet so I can't send URL that contains test installation. The screenshots look much like those I've sent before. Sorry I haven't implemented Alexei's proposal to make test report JUnitReport style looking but I do remember about it. I've tried to separate web application logic from data access logic - the latter is implemented with data stored in files. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Hello, I believe that there are more installations that can execute CGI than those that can run servlets. I'm sure that for the first time the test infrastructure will be deployed to an existing installation but not to a dedicated server - that's why I decided that CGI suites better. But we aren't going to deploy the central service to everywhere, just to the apache infrastructure. I don't know Apache infrastructure too well - ok, if there's a possibility to deploy a webapp - I'll write server-side in Java, no problem. If anyone objects that the technology should be Java + servlet container, please let community know. If nobody objects I'm going to get down to coding. I think I'll use Struts for the app. When we have a dedicated host for builds maybe it'll be worth to rewrite test infrastructure in Java. But please do not consider the choice of technology final - I just wanted to pick something that fits for a prototype: fast to develop and easy to deploy. I'm confused. We'll have a host to receive this info from the distributed build machines. One host will be recording the info from the all the other distributed build machines... geir On 8/1/06, Alexei Zakharov [EMAIL PROTECTED] wrote: Hi Anton, I believe that most common server-side engine is CGI (not PHP or J2EE) so I'd like to implement this using Perl CGI scripts. (just thinking about) there are several good Java-oriented technologies - servlets, JSP, JSF - why not to use them? I don't like to say that servlets are more frequent than perl, but Java itself is not the most widely used language. We should advertise it. :) IMHO having Java web/servlets server (not a complete J2EE) for such type of tasks with theoretically Harmony JRE inside will do a good job for our project. Regards, 2006/7/28, Anton Luht [EMAIL PROTECTED]: Hello, I know why this thread is so lazy - it's because everybody dislikes QA testing :) OK, now let me add my $0.02 about my vision about reporting of test results. I believe it's better to do this using HTTP rather than mail because some people may not have access to SMTP port (for example, be behind proxy with Exchange as mail server - I don't really know if it provides SMTP service). HTTP is open in most configurations and it was already decided that HDK and tests will be delivered via HTTP. I see the reporting of the results in the following way: after executing tests the script packs results and uploads them (as with browser file upload) to the server. After that data is processed on server-side - daemons can send periodical e-mails, draw charts, reports, lists of top test results contributors, etc. Nobody criticized this approach so I assume that it's not too bad. I'm going to implement a sketch for server-side bunch of scripts - one that accepts uploads and puts them to a temp directory and maybe some simple reports. They won't use any database. I believe that most common server-side engine is CGI (not PHP or J2EE) so I'd like to implement this using Perl CGI scripts. Since this is a first draft, I'm not going to use advanced templates language like XSLT. Including HTML output in script is bad idea so I'm going to use something like HTML::Template [1] for pages generation and CGI::Lite [2] for requests handling. Perl is chosen just because it suites well for fast prototyping development. If nobody objects, I'm going to start coding. [1] http://html-template.sourceforge.net/ [2] http://search.cpan.org/~smylers/CGI-Lite-2.02/Lite.pm -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexei Zakharov, Intel Middleware Product Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [performance] performance measurement of HDK
Vladimir, I've found some more Java benchmarks in bookmarks, maybe some of them will be interesting sor someone. - Richards and deltaBlue [1] - first simulates the task dispatcher in the kernel of an operating system, second is constraint solver benchmark in the Java programming language. - Copier [2] - The source transmits 10,000 numbers through a large number of copiers (1,000 to 20,000) to the sink As far as I understand there are Richards and Copier implementations under Creative Common License. [1] http://research.sun.com/people/mario/java_benchmarking/ [2] http://pws.prserv.net/dlissett/ben/copier1.htm Telco - this one mostly stresses BigInteger/BigDecimal functionality GcOld - the purpose of this one is clear from the name :) SciMark - java benchmark for scientific and numerical computing Linpack java - well-known benchmark solving linear equations The Plasma Benchmark - creates an animated display by continuously summing four sine waves in an applet JavaWorld Benchmark - benchmark for low-level operations: loops, accessing variables, method invocation, arithmetic operators, casting, instantiation, exception handling, thread creation and switching. CaffeineMark 3.0 - low-level benchmark suite, including sieve of Eratosthenes, sorting, logic ops, method invocation, floating point, simple graphics and GUI ops JavaGrande benchmark suite - a set of benchmarks stressing different areas of java. Having in mind that the list of publicly available benchmarks is not too big, sometimes it will be necessary to create micro benches for some of patches (for instance, Harmony-935). IMO micro should be started in case we change some code that the bench covers. Other interesting and possibly more productive way for comparing performance between different implementations are to use non-free benchmarks. For instance, we can use benchmarks from Spec[n], like SpecJVM, SpecJBB, SpecJAppserver. Unfortunately first we should get license for it, but I believe this issue can be solved within the help of companies participating in Harmony :) Thoughts? Comments? [1] http://dacapobench.org [2] http://www.spec.org -- Vladimir Strigun, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [optimization] Algorithmic tricks
Hello, Seems to me that String.hashCode() has to use the algorithm described in the spec if it's to be compliant. Sorry, I didn't notice that the algorithm for hashCode() for String is explicitly written in the spec. Thank you for pointing this. Yes, we must follow spec in this case. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm] crash handling
Gregory, Thanks for the pointing at this option - maybe it's worth to publish undocumented properties and other switches, for example, in Wiki? With this option VM printed before death: Windows reported exception: ACCESS_VIOLATION Registers: EAX: 0x, EBX: 0x, ECX: 0x05d4f860, EDX=0x00060002 ESI: 0x00166040, EDI: 0x052e8190, ESP: 0x05d4f824, EBP=0x EIP: 0x053124ef CallStack: Java_java_util_zip_Deflater_setDictionaryImpl (File: .\modules\archive\src\main\native\archive\shared\deflater.c Line: 46 ) m2n_pop_local_handles (File: ..\vm\port\src\lil\ia32\pi m\m2n_ia32.cpp Line: 229 ) No name (File: ?? Line: ?? )No name (File: ?? Line: ?? ) I think it'd be better for a developer to see Java stacktrace as well. Am I asking for something impossible?:) On 7/27/06, Gregory Shimansky [EMAIL PROTECTED] wrote: On Thursday 27 July 2006 20:47 Anton Luht wrote: Hello, I've been trying to nail down a small problem - new java.util.zip.Deflater().setDictionary(new byte[] {}) throws ArrayIndexOutOfBoundsException in Harmony and doesn't throw in RI. Trying to find a code that causes this problem I've modified native code and after one of modifications VM crashed, but not with usual stacktrace but with popup window (I did it on Windows) that offered to debug my application. I fully understand that it was my fault, etc, but I believe that Harmony code is not 100% error-free and such errors in native code may happen. Maybe it's worth to catch such errors and wrap them into regular Exceptions or at least print stacktrace to the console. There is an undocumented drlvm property vm.assert_dialog which controls this crash popup window on windows. By default this property is true, and you indeed get a debug window when VM or Java native code crash. It is very convenient for debugging because it allows attaching a debugger (if it is installed in your system) right at the crash or failed assert point. To show the stack trace instead you can specify -Dvm.assert_dialog=false to run the program, it should try to dump some stack though I don't think it works for native Java code at the moment. I think crash handler needs improvement in this regard. Whether or not the default of vm.assert_dialog should be true of false is the same argument about whether debug or release mode should be the default. I think it was agreed that debug should be default so far to make it convenient for developers. For you case I think it is preferable to crash window enabled since that is what you want - debug the native code at crash point. To do it you should just compile that native code with debug information and copy pdb file to java executable directory. -- Gregory Shimansky, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Hello, I know why this thread is so lazy - it's because everybody dislikes QA testing :) OK, now let me add my $0.02 about my vision about reporting of test results. I believe it's better to do this using HTTP rather than mail because some people may not have access to SMTP port (for example, be behind proxy with Exchange as mail server - I don't really know if it provides SMTP service). HTTP is open in most configurations and it was already decided that HDK and tests will be delivered via HTTP. I see the reporting of the results in the following way: after executing tests the script packs results and uploads them (as with browser file upload) to the server. After that data is processed on server-side - daemons can send periodical e-mails, draw charts, reports, lists of top test results contributors, etc. Nobody criticized this approach so I assume that it's not too bad. I'm going to implement a sketch for server-side bunch of scripts - one that accepts uploads and puts them to a temp directory and maybe some simple reports. They won't use any database. I believe that most common server-side engine is CGI (not PHP or J2EE) so I'd like to implement this using Perl CGI scripts. Since this is a first draft, I'm not going to use advanced templates language like XSLT. Including HTML output in script is bad idea so I'm going to use something like HTML::Template [1] for pages generation and CGI::Lite [2] for requests handling. Perl is chosen just because it suites well for fast prototyping development. If nobody objects, I'm going to start coding. [1] http://html-template.sourceforge.net/ [2] http://search.cpan.org/~smylers/CGI-Lite-2.02/Lite.pm -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [optimization] Algorithmic tricks
On 7/27/06, Ilya Okomin [EMAIL PROTECTED] wrote: Sounds great to have a page with algorithms tricks used in Harmony project! Maybe it's worth to put information about algorithms to Wiki : http://wiki.apache.org/harmony/ ? -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[drlvm] crash handling
Hello, I've been trying to nail down a small problem - new java.util.zip.Deflater().setDictionary(new byte[] {}) throws ArrayIndexOutOfBoundsException in Harmony and doesn't throw in RI. Trying to find a code that causes this problem I've modified native code and after one of modifications VM crashed, but not with usual stacktrace but with popup window (I did it on Windows) that offered to debug my application. I fully understand that it was my fault, etc, but I believe that Harmony code is not 100% error-free and such errors in native code may happen. Maybe it's worth to catch such errors and wrap them into regular Exceptions or at least print stacktrace to the console. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [optimization] Algorithmic tricks
Hello, One of possible candidates for such optimization may be for example String.hashCode() . Current implementation is rather common. Wikipedia points to hash functions that look more advanced ( http://en.wikipedia.org/wiki/Hash_function ). -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build-test-infra] Build Test Infrastructure
Hello, Here are the results of testing CC script on Linux and Windows A problem for both platforms: fetching classlib dependencies behind proxy doesn't work. Setting ANT_OPTS doesn't help. Setting in Windows ANT_OPTS in System-...-Environment variables (I thought they should have been passed to all processes) doesn't help, too. I've tried to add explicitly setproxy ../ with hardcoded host and port to the cc/projects/classlib/trunk/make/depends.xml - ant complained that it didn't know such task. I've copied ant-nodeps.jar from ant-1.6.5 to cc/lib - version conflict happened. After copying ant-nodeps.jar from ant-1.6.2 to cc/lib external dependencies finally fetched. After that Windows build tests finally worked, on Linux I still experience some problems, but I believe I do something wrong so I won't bother you with details :) One thing I don't understand for windows is that why CC doesn't show last successful build time at localhost:8080 though cc/projects/classlib/trunk/build/test_report contains test results Cleanup of 'connectfour' directories in the build look strange to me :) You mean that we're doing it, or how it's done? I thought it needed to be done as it's a standard CC distro that's automatically fetched and setup, and it's nice to have the unrelated drek removed. Sorry, I didn't notice that CC distro contains extra stuff - I thought it was just a typo or a copy-paste error. OK, now let me add my $0.02 about my vision about reporting of test results. I believe it's better to do this using HTTP rather than mail because some people may not have access to SMTP port (for example, be behind proxy with Exchange as mail server - I don't really know if it provides SMTP service). HTTP is open in most configurations and it was already decided that HDK and tests will be delivered via HTTP. I see the reporting of the results in the following way: after executing tests the script packs results and uploads them (as with browser file upload) to the server. After that data is processed on server-side - daemons can send periodical e-mails, draw charts, reports, lists of top test results contributors, etc. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [app-bug] Anyone interested in chasing down a bug?
Unfortunately I coudn't reproduce it. Here is what I did (I already had buildtest infrastructure set up): 1. downloaded latest JRE snapshot for WIndows. unzipped it to C:\temp\harmony-jre-r424571\ 2. set JAVA_HOME=C:\temp\harmony-jre-r424571\ 3. set PATH= C:\temp\harmony-jre-r424571\bin;%PATH% 4. ant everything worked. Here's the head of the output: - Unable to locate tools.jar. Expected to find it in C:\temp\harmony-jre-r424571\l ib\tools.jar Buildfile: build.xml pre-copy: [echo] Copying full test configuration for CruiseControl from /config/confi g-full.xml start-win: [exec] C:\temp\harmony-jre-r424571\\bin\java -cp C:\temp\harmony-jre-r4 24571\\lib\tools.jar;test root\buildtest\trunk\cc\lib\cruisecontrol.jar --- Jetty on 8080 doesn't work: HTTP ERROR: 404 Not Found RequestURI=/ On 7/25/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: In HARMONY-956, I noted a bug that seems to point to a classpath management problem. I was just trying to run our own buildtest framework using the latest JRE, and I get : [exec] Uncaught exception in Thread-2: [exec] java.lang.NoClassDefFoundError: org/apache/log4j/spi/VectorWriter [exec] at org.apache.log4j.spi.LoggingEvent.init(LoggingEvent.java:126) [exec] at org.apache.log4j.Category.forcedLog(Category.java:375) [exec] at org.apache.log4j.Category.log(Category.java:869) [exec] at org.apache.commons.logging.impl.Log4JLogger.warn(Log4JLogger.java:176) [exec] at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:521) [exec] at org.mortbay.util.Container.start(Container.java:72) [exec] at org.mortbay.http.HttpServer.doStart(HttpServer.java:755) [exec] at org.mortbay.util.Container.start(Container.java:72) [exec] at CruiseControlWithJetty$1.run(CruiseControlWithJetty.java:86) [exec] at java.lang.Thread.run() It may be really easy, but I don't have the time today... just a hint for someone that's interested. What I did was : 1) get the snapshot for windows (see download page on site) 2) do a checkout of the buildtest part of harmony 3) run 'ant setup' to get it setup (don't waste the time having it checkout the source for classlib and drlvm - just let it get CC and set that up. 4) run 'ant' geir - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[optimization] Algorithmic tricks
Hello, I'd like to suggest people that know some algorithmic tricks to look at the corresponding areas of classlib. Maybe some of the community members had (un)lucky experience of tuning performance of some application that led them to a deep knowledge of some very specific area has good approaches but not too widely known to an average developer. It might also be an interest for students and other people from institutes and universities. What I'm talking about is not related to 'premature optimization' that is now being discussed in another thread but something very narrow, limited to maybe one method and not influencing anything else. For example, consider current implementation of java.util.BitSet.cardinality() . It just checks all bits one by one and increments count. [1] Gives an overview of algorithms for checking set bit count. The fastest algorithms are with table lookup, which requires additional memory, but there are algorithms that are several times faster than iteration (in C) and don't require tables. I believe such local optimizations with good comments and links to corresponding resources won't do any harm and are a good point to start with. Does it make sence? [1] http://www-db.stanford.edu/~manku/bitcount/bitcount.html -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib]bug-to-bug compatibility j.u.Formatter
Hello, And there are places RI behaves irrational and not compatible with RI. You mean RI behaves not compatible with spec? :) -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [general] App-driven Improvement
Good day, Are there any licensing limitations for those applications? Someone can find a bug in an application licensed under GPL, then minimize it to a test made of a couple of classes from that application and submit it to JIRA. It's likely that such test can sneak in the test suite. There's an option for an attachment to grant a license or mark as non-licenseable, but as far as I understand, there's no such flag for text and code in the issue body. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: [classlib] TwoKeyHashMap
Hello, * As Alex and other have mentioned, just use a simple wrapper object with correct equals/hashCode. There can be a single instance of such object - not creation of a new key before lookup but assigning two keys' values :) -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib][nio]the conflict of RI and spec?
Jimmy, Please add readFile.delete() and writeFile.delete() in the end of test or .deleteOnExit() in any place. Files created by createTempFile are not cleaned up automatically. On 7/19/06, Jimmy, Jing Lv [EMAIL PROTECTED] wrote: Hi: I find a conflict that RI does not behave as spec says in java.nio.channels.FileChannel.transforFrom(ReadableByteChannel src, long position,long count). The spec says:...Fewer than the requested number of bytes will be transferred if the source channel has fewer than count bytes remaining...[1]. As expected, invoking this method with a count larger than the number of bytes remaining in the ReadableByteChannel, RI should return a number of bytes exactly transfered. But in fact, RI throws an IOException. I run the test[2] on windowsXP SP2 with RI1.5.0_01 and RI1.5.0_06, and on Linux(redhat 9) with RI1.5.0_02 and RI1.5.0_06, and get the same result. Currently Harmony behave well on this. I guess this is a bug of RI, and Harmony implementation is good. If no objection, I suggest add this test to Harmony. Any opinions? Thanks! [1] spec of FileChannel: http://java.sun.com/j2se/1.5.0/docs/api/java/nio/channels/FileChannel.html [2] the test: public void test_transferFromLReadableByteChannelJJ_overflow() throws Exception { String content = test content; int length = content.length(); File readFile = File.createTempFile(testfile1, tmp); File writeFile = File.createTempFile(testfile2, tmp); FileOutputStream fos = new FileOutputStream(readFile); try { fos.write(content.getBytes()); } finally { fos.close(); } FileChannel fc1 = new FileInputStream(readFile).getChannel(); FileChannel fc2 = new FileOutputStream(writeFile).getChannel(); try { long result = fc2.transferFrom(fc1, 0, length * 2); assertEquals(length, result); } finally { fc1.close(); fc2.close(); } } -- Best Regards! Jimmy, Jing Lv China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [build] status
Hello buildmasters, One note: ant fetch-depends seem not to work behind proxy - it fails after timeout. Adding proxy settings to depends.properties didn't help. The problem solved after I've added setproxy proxyhost=${http.proxyHost} proxyport=${http.proxyPort}/ in the beginning of 'download' target in depends.xml -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[os] freebsd
Hello, Some time ago I installed FreeBSD 6.1-RELEASE on my home computer and tried to build original Harmony VM donation [1] + corresponding classlib on it. In the end of the efforts I've managed to build it and print something with '-?' argument, but unfortunately an attempt to run 'Hello, world' app failed. The algorithm was straighforward - when a compile error happened, I've tried to fix it in a straightforward way just to make build pass this stage, and I'm not surprised that the resulted VM doesn't work :) Maybe the list of those changes will give an idea what things should be modified to run Harmony on another platform. Details: - I've installed FreeBSD with complete sources (compat included). - JRE was Diablo-JRE from [2]. - added packages (pkg_add -r) libiconv and libxml2 - linker complained about -ldl missing in many places - I've tried to removed all -ldl entries but finally gave up and symlinked libdl.so to libc.so - replaced everywhere #include malloc.h with #include stdlib.h - paths to some include files changed and some other includes changed, too - replaced PTHREAD_MUTEX_RECURSIVE_NP with PTHREAD_MUTEX_RECURSIVE (_NP stands for non-portable, so I believe it's not a big crime) - mcontext_t has a slighly different structure, for example uc_mcontext.gregs[REG_EAX] - uc_mcontext.mc_eax - sigcontext has a slighly different structure, for example sigcontext.edi - sigcontext.sc_edi - flag for shmem SHM_HUGETLB is missing on FreeBSD - I've just removed it - hysysinfo.c: changed hysysinfo_get_physical_memory to code taken from [3] - hysock.c - undefined HAS_RTNETLINK, changed SOL_IPV6 to IPPROTO_IPV6 - hysock.h - undefined GLIBC_R and defined NO_R (maybe better solution would be ORIGINAL_R and linking with lc_r) changed #define OS_IPV6_ADD_MEMBERSHIP IPV6_ADD_MEMBERSHIP #define OS_IPV6_DROP_MEMBERSHIP IPV6_DROP_MEMBERSHIP to #define OS_IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP #define OS_IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP - thrdsup.c - commented out _FPU_GETCW and _FPU_SETCW - hysiglinux.c - changed sigvec signature sigvec (int sig, const struct sigvec *invec, struct sigvec *outvec) to sigvec (int sig, struct sigvec *invec, struct sigvec *outvec) - pdsimpl.c - removed option SO_BINDTODEVICE (changed to 0). As far as I understand, code with that flag returns available network interfaces - I believe there's a possibility to rewrite in in a FreeBSD way. Threads are a big problem. On Linux pthread_t is an unsigned int, on FreeBSD - pthread* . So things like code from gc_v4.cpp : for (unsigned int i = 0; i get_num_worker_threads() ; i++) { // Point the GC thread to the GC object _gc_threads[i] = new GC_Thread(this, i); assert(_gc_threads[i]); } won't work. I've just added cast to pthread_t but obviously this is not a proper solution. After these modifications all modules compiled but linker complained that some log4cxx functions with wchar_t couldn't be found. Adding -DLOG4CXX_HAS_WCHAR_T=1 and -D__STDC_ISO_10646__=1 flags to log4xcc compilation helped . After that ij compiled but attempt to run it crashed on mutexes. Those calls to mutexes were in sections surrounded with #if APR_HAS_THREADS and it's no wonder I've recompiled log4cxx with -DAPR_HAS_THREADS=0 . After that ij finally printed the list of its options given the -? argument. I've tried to play with the code further trying to make it run 'Hello, world' app but failed. Hope it makes some sence. [1] http://issues.apache.org/jira/browse/HARMONY-438 [2] http://www.freebsdfoundation.org/downloads/java.shtml [3] http://lists.freebsd.org/pipermail/freebsd-hackers/2005-December/014733.html -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib][security] crypto provider: implementation of SHA-1 algorithm
Mark, Let me report one more build problem in this thread: On build 420458 of VM + classlib the following test: import javax.swing.*; public class Test { public static void main(String[] args) throws Throwable { new JButton(); } } prints: Uncaught exception in AWT-EventQueue: java.lang.UnsatisfiedLinkError: Can not find the library: accessors.dll at java.lang.Runtime.loadLibrary0() at java.lang.System.loadLibrary() On 7/7/06, Mark Hindess [EMAIL PROTECTED] wrote: On 7 July 2006 at 16:07, Mark Hindess [EMAIL PROTECTED] wrote: On 7 July 2006 at 18:34, Anton Luht [EMAIL PROTECTED] wrote: Yuri, I'm trying to test serialization but the simple test: import java.io.*; public class Test { public static void main(String[] args) throws Throwable { ObjectOutputStream oos = new ObjectOutputStream(new ByteArrayOutputStream()); oos.writeObject(new Object()); } } fails: java.lang.Error: java.security.NoSuchAlgorithmException: MessageDigest SHA implementation not found at java.io.ObjectStreamClass.computeSerialVersionUID (ObjectStreamClass.java:345) I've built a version of classlib with your patch but the test still fails. Is it because I didn't apply it correctly or maybe something else is missing? Yes. jre/lib/security. Oddly enough I was just looking at this. Fixed in r419914. I've removed the multiple copy tasks that we listing everything drlvm wanted from classlib and replaced it with a copy that copies everything except they things we *don't* need. This should be more reliable. Hopefully it will become obsolete when we have a top-level build. Regards, Mark. - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib] Exception throwing compatibility: java.util.Scanner
It seems like the RI is doing random crap, and it wouldn't be something that someone would depend on... can you imagine? Easily :) One more example: Pattern.compile((?![^\\xB5]), Pattern.CASE_INSENSITIVE); exposes implementation problems: java.lang.ArrayIndexOutOfBoundsException at java.util.regex.Pattern$BitClass.add(Pattern.java:2861) . though it works without Pattern.CASE_INSENSITIVE -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib] trying new framework for testing serialization
Stepan, I think that there's no need in SerializableAssert interface - just put assertDeserialized(Serializable, Serializable) method to SerializationTest class with default implementation based on current code from defineComparator (if there's equals(), use it, if it's instance of Throwable, use some other scheme, etc). If a developer needs his own comparing method, he just redefines this method. If he's happy with equals(), he does nothing. So, verifySelf will look like: ByteArrayOutputStream out = new ByteArrayOutputStream(); putObjectToStream(object, out); ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); assertDeserialized((Serializable) object, (Serializable) getObjectFromStream(in)); This will help us remove methods with SerializableAsset as a third parameter. And a small note: we don't need flush() before close() :) -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib][security] crypto provider: implementation of SHA-1 algorithm
Yuri, I'm trying to test serialization but the simple test: import java.io.*; public class Test { public static void main(String[] args) throws Throwable { ObjectOutputStream oos = new ObjectOutputStream(new ByteArrayOutputStream()); oos.writeObject(new Object()); } } fails: java.lang.Error: java.security.NoSuchAlgorithmException: MessageDigest SHA imple mentation not found at java.io.ObjectStreamClass.computeSerialVersionUID(ObjectStreamClass.j ava:345) I've built a version of classlib with your patch but the test still fails. Is it because I didn't apply it correctly or maybe something else is missing? -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [drlvm] Removing classlib-related tasks from VM build (was Doing the minimum to support Java 5 classfiles)
Hello, For those who're going to rewrite the build: please add copying logging.properties: http://issues.apache.org/jira/browse/HARMONY-789 On 7/5/06, Vladimir Gorr [EMAIL PROTECTED] wrote: On 7/5/06, Salikh Zakirov [EMAIL PROTECTED] wrote: Mark Hindess wrote: Salikh Zakirov wrote: Using the fixed classlib snapshot will remove one factor of uncertainty, and will make the DRLVM behaviour more reproducible. -1 Doing this will hide issues that appear when changes to classlib breaks drlvm. At this stage in the project, I'd rather have such issues be as visible as possible. Such breakages should be relatively easy to fix and any drlvm developer should be capable of rolling back classlib svn until things are fixed if they get impatient. I don't see how it significantly affects reproducibility since it is trivial to check/record the versions of classlib and drlvm svn when an error occurs? I agree that recording revision numbers of both classlib and drlvm will be sufficient to reproduce the problem. The hard part is finding the good ones when the latest revisions do not work, in a case when someone wants to work on something different than fixing the latest breakages. I think that the reasonable compromise is to have both capabilities in the build system (build with classlib snapshot or with latest checkout), and leave it up to contributors to decide which way to use. If DRLVM will be built with the class library snapshot we should be sure it doesn't already contain the breakages. It means the responsible person for the class library snapshot should run the VM tests at least. IMO this will complicate the build process due to the possible test failures because it's not clear on this stage where a cause of error is. Therefore I'd prefer to build from scratch using the recent sources. In the case if any problems happen we can take any other revision either class library or DRLVM sources and re-build them if there are any doubts. In any case you need to take the latest version and to check it when you are finally going to commit your changes. Thanks, Vladimir. - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [DRLVM] Integration checks (was building from svn on FC5)
Hello, I've created an Eclipse automated test based on Salikh's code - please see http://issues.apache.org/jira/browse/HARMONY-752 I've tested it on Windows XP on Eclipse that goes with harmony VM - eclipse-SDK-3.1.1-win32.zip Sometimes (irregularry) after execution it prints some stack traces to the console. Scenario is executed successfully anyway - a project is created, editor opens, some code is pasted in it, project is built, closed and deleted. Please feel free to add comments to that issue if you find errors in it or fail to run it on some configurations. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib] compatibility of toString
Hello, One special case: I'd suggest to test that if you specify some text as an constructor argument to a subclass of Throwable, then toString() contains that text. On 7/3/06, Tim Ellison [EMAIL PROTECTED] wrote: Andrew Zhang wrote: On 7/1/06, Alex Blewitt [EMAIL PROTECTED] wrote: On 01/07/06, Andrew Zhang [EMAIL PROTECTED] wrote: Agree. But there are always exceptions. Some toString methods have to contain some key information as spec required, for example, the size or index. Can you give examples of where the spec specifically mandates the return values of either size or index? What I mean is in some cases, toString returns a string is not enough. e.g. Harmony is Great obviously doesn't comply with spec AbstractCollection.toString() as you mentioned below. Another example is CharBuffer.toString(). The spec says: Returns a string containing the characters in this buffer. The first character of the resulting string will be the character at this buffer's position, while the last character will be the character at index limit() - 1. Invoking this method does not change the buffer's position. Therefore, for these special cases, tests for toString are useful. Of course, instead of comparing Harmony's toString return value with RI's, the test should verify whether Harmony's toString value complys with spec. The test should not look like: assertEquals(RI_TOSTRING, instance.toString()); For CharBuffer.toString, the test may be written as following: assertEquals(the character at this bufer's position, the first character of toString); For most other cases, IMO, Harmony doesn't need to keep the same return value as RI's. Thanks! Yep, if the spec tells you what the format of the string should be then follow it (since apps may be dependent upon it), otherwise I'd be inclined to invent your own useful string representation. Regards. Tim BTW, are these toString information (RI) copyrighted? I don't believe they can be copyrighted. However, the only way to tell if the RI and Harmony return the same results would be to execute both and compare them, and I believe that such reverse engineering would be outside the remit of Harmony. Agree. I doubt that the TCK would test for such features exactly, without specifying them. For example, the AbstractCollection and AbstractMap does specify what it should return: http://java.sun.com/j2se/1.5.0/docs/api/java/util/AbstractCollection.html#toString() http://java.sun.com/j2se/1.5.0/docs/api/java/util/AbstractMap.html#toString() I think you'd find it difficult to explain why (in all cases) toString() returned exactly the same value as the RI without such detailed comments as to their format :-) Alex. - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tim Ellison ([EMAIL PROTECTED]) IBM Java technology centre, UK. - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib] Exception-throwing compatibility question
Hello, There's one example that shows that not only code may contain bugs, but documentation also: 1.5.0 spec [1] says about java.io.BufferedWriter.write(String, int, int) If the value of the len parameter is negative then no characters are written. This is contrary to the specification of this method in the superclass, which requires that an IndexOutOfBoundsException be thrown. 1.4.2 spec [2] doesn't say this, but 1.4.2 JRE behaves as it was written according to 1.5 doc. If it is not said, we expect that BufferedWriter should behave like Writer in this case (throw an exception) so this behaviour is formally a bug. In fact this is just a gap in documentation. [1] http://java.sun.com/j2se/1.5.0/docs/api/java/io/BufferedWriter.html#write(java.lang.String,%20int,%20int) [2] http://java.sun.com/j2se/1.4.2/docs/api/java/io/BufferedWriter.html#write(java.lang.String,%20int,%20int) On 7/3/06, Tim Ellison [EMAIL PROTECTED] wrote: Mikhail Loenko wrote: For the example I've started this thread with it seems that complying the spec is more appropriate there. But probably there are other examples that caused that the doc was worded the given way George and Tim could you please comment? What is the concrete example? e.g. are these checked exceptions, ... ? or NPE vs. IAE ... Regards, Tim 2006/6/30, Paulex Yang [EMAIL PROTECTED]: Anton Avtamonov wrote: On 6/30/06, Mikhail Loenko [EMAIL PROTECTED] wrote: But section Exception-throwing compatibility says that exceptions are different and we aim to be fully compartible with the RI by matching the exception characteristics of each method. I believe that it is for However, in most cases the specification does not describe all possible exceptions that may be thrown case only. In case the spec is complete and not looks like a bug I would vote to follow the spec. +1 from me. Wishes, -- Paulex Yang China Software Development Lab IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tim Ellison ([EMAIL PROTECTED]) IBM Java technology centre, UK. - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [DRLVM] Integration checks (was building from svn on FC5)
Good day, Anyway it seems that creating an automated Eclipse scenario as described by Salikh will be useful. I'll try to create the scenario, corresponding build target and file a JIRA issue with patch for the new functionality. On 6/27/06, Vladimir Ivanov [EMAIL PROTECTED] wrote: Seems, it is not so easy to define the proper test set... Let's define target to run the integration test. It may be: 1) we want to be sure that all were integrated correctly? 2) or we want to guaranty the 'product quality' for build? 3) some other? If target is 1) than we should run minimal tests set (seems, classlib unit tests over tested VM will enough) on one platform. If target is 2) than each developer should run all known/defined tests over all platforms. Seems, is no time for development any more. Everyone will do the release engineering (RE) work. So we have 2 questions here: 1) the small list of integration test should be defined. It may be subset of API unit tests collected as 1 or 2 tests from each API area just to be sure that all things were integrated successfully. 2) the RE procedure should be defined. Who is responsible to build the HDK and place it to download page? What tests should be run before it? How often it should be doing? It is not so obvious as 1). The procedure may be defined, for example, as: - one of committers prepare binary form of HDK and test it on one platform. - if all tests passed he placed it to download somewhere and - other people test it on other platform. - if all tests passed the binaries are promoted and placed to the 'official' download page. Thanks, Vladimir PS. To run some scenario tests actually not integration but functional testing. On 6/26/06, Salikh Zakirov [EMAIL PROTECTED] wrote: Alexey Petrenko wrote: Some checks before commits are defenetly good... 2006/6/23, Andrey Chernyshev [EMAIL PROTECTED]: We may probably also need to define the list of platforms/configurations covered by this procedure. I'm not sure that I get your idea correctly. Do you suggest to ask every developer to make some checks on different platforms and software configurations? If so... Yes, it is good for product stability. But it will be nearly impossible because very small number of developers have access to different platforms and software configurations... First and foremost question is *what* to run as integration tests, rather than on what platforms. I think we need to define what use cases we care for in the form of integration tests. The more conveniently the integration tests are packaged, the higher is the probability of anyone running them. The good example is the smoke tests included with DRLVM: they can be built and run with a single command 'build.bat test' ('build.sh test' on Linux). Once the integration test set is defined, we can think of platform coverage. BuildBot [1] could be the way to interested parties to contribute CPU cycles to verify Harmony quality. [1] http://buildbot.sourceforge.net/ - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [DRLVM] Integration checks (was building from svn on FC5)
Vladimir, Regarding what tool will be used - I don't know yet. I'm studying Eclipse plugins right now. Seems like the situation with standard macro recording and playback in Eclipse is not very good now [1], so the emulation will be based on one of Eclipse plugins or will be a hand-written thing. I plan to start with 1) and if it succeeds - add other scenarios later. [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=80140 On 6/27/06, Vladimir Ivanov [EMAIL PROTECTED] wrote: Do not you think these should be different Eclipse scenarios?: 1) simple scenario that run Eclipse, compile small application and runs it 2) simple debug scenario 3) scenario that runs ant-builder 4-N) other scenarios that emulate user work Am I correct that you are going to use record and play tools? Or, these will be test(s) written using Eclipse API? Thanks, Vladimir On 6/27/06, Anton Luht [EMAIL PROTECTED] wrote: Good day, Anyway it seems that creating an automated Eclipse scenario as described by Salikh will be useful. I'll try to create the scenario, corresponding build target and file a JIRA issue with patch for the new functionality. On 6/27/06, Vladimir Ivanov [EMAIL PROTECTED] wrote: Seems, it is not so easy to define the proper test set... Let's define target to run the integration test. It may be: 1) we want to be sure that all were integrated correctly? 2) or we want to guaranty the 'product quality' for build? 3) some other? If target is 1) than we should run minimal tests set (seems, classlib unit tests over tested VM will enough) on one platform. If target is 2) than each developer should run all known/defined tests over all platforms. Seems, is no time for development any more. Everyone will do the release engineering (RE) work. So we have 2 questions here: 1) the small list of integration test should be defined. It may be subset of API unit tests collected as 1 or 2 tests from each API area just to be sure that all things were integrated successfully. 2) the RE procedure should be defined. Who is responsible to build the HDK and place it to download page? What tests should be run before it? How often it should be doing? It is not so obvious as 1). The procedure may be defined, for example, as: - one of committers prepare binary form of HDK and test it on one platform. - if all tests passed he placed it to download somewhere and - other people test it on other platform. - if all tests passed the binaries are promoted and placed to the 'official' download page. Thanks, Vladimir PS. To run some scenario tests actually not integration but functional testing. On 6/26/06, Salikh Zakirov [EMAIL PROTECTED] wrote: Alexey Petrenko wrote: Some checks before commits are defenetly good... 2006/6/23, Andrey Chernyshev [EMAIL PROTECTED]: We may probably also need to define the list of platforms/configurations covered by this procedure. I'm not sure that I get your idea correctly. Do you suggest to ask every developer to make some checks on different platforms and software configurations? If so... Yes, it is good for product stability. But it will be nearly impossible because very small number of developers have access to different platforms and software configurations... First and foremost question is *what* to run as integration tests, rather than on what platforms. I think we need to define what use cases we care for in the form of integration tests. The more conveniently the integration tests are packaged, the higher is the probability of anyone running them. The good example is the smoke tests included with DRLVM: they can be built and run with a single command 'build.bat test' (' build.sh test' on Linux). Once the integration test set is defined, we can think of platform coverage. BuildBot [1] could be the way to interested parties to contribute CPU cycles to verify Harmony quality. [1] http://buildbot.sourceforge.net/ - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [DRLVM] Integration checks (was building from svn on FC5)
Alexey, As far as I understand Andrey, he suggests to run tests when a piece of code is integrated into the code base, by the person who has access to the repository (committer). A developer shouldn't test his piece of code on any platform, though it'd be good if he did it and reported results in the JIRA issue. I don't know if running tests for hours is suitable for integration check, if so, I can suggest using Eclipse automated tests (can be found in download section for each Eclipse release). Total amount of tests is 1 . They test Eclipse functionality quite deeply. Note: they'll fail without GUI. We may probably also need to define the list of platforms/configurations covered by this procedure. I'm not sure that I get your idea correctly. Do you suggest to ask every developer to make some checks on different platforms and software configurations? If so... Yes, it is good for product stability. But it will be nearly impossible because very small number of developers have access to different platforms and software configurations... -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[website] building VM from the repository instructions
Good day, Though DRLVM is in the repository already, the classlib building instructions [1] still says nothing about it in the section Obtaining a compatible VM . I coudn't find instructions on building DRLVM on the site, either - I found them browsing SVN repository. Maybe it's worth to add info about DRLVM to the Harmony site? [1] http://incubator.apache.org/harmony/subcomponents/classlibrary/build_classlib.html -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)
I've tried to run Azureus on Windows XP from NAT-ed network - with RI it worked fine, with Harmony (classlib revision 415631) an error appeared: 'Too many successive failures occured on port 55255, UDP - processing abandoned. Please check firewall settings for this port to ensure that it is enabled for receiving connections' -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib][testing]resource files: location and usage
Indeed, unless you are extremely paranoid that all the other API implementations wrong, but are conspiring to make your test pass then you should assume that everything else is working ok and you are testing some specific piece of functionality. Why should we have gold files then? Let's imagine we test deserialization. According to your proposal - we suppose that serialization works fine then. Let's serialize something in a file or an array, deserialize and compare - if non-transient fields are equal, it's OK. I suggest to trust only resources created outside Harmony VM - for example, created by Java executed in RI, application on any other language but Java or taken from SVN. Only paranoids survive :) -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)
Great progress - it started and looks similar to Azureus launched on RI. Unfortunately I'm behind a firewall so I can't test it fully (and, frankly speaking, I've never used it before I tried to run it on Harmony so I don't know for sure how to use it properly :) ) -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)
Cool -- can't wait to try it. Did you have to hack any of the Azureus code assumptions to get it working? (i.e. BKS or HARMONY-536 JSSE provider) No, I just ran it 'as is' - old errors are in place: DEBUG::Tue Jun 20 18:25:02 MSD 2006::org.gudy.azureus2.core3.security.impl.SESecurityManagerImpl::initialise::137: No SSL provider available SESecurityManager::initialise::52,ConfigurationChecker::setSystemProperties::141,ConfigurationManager::initialise::138,ConfigurationManager::getInstance::71,LoggerImpl::init::90,Logger::clinit::48,J9VMInternals::initializeImpl::-2,J9VMInternals::initialize::185,StartServer::init::69,Main::init::56,Main::main::162 DEBUG::Tue Jun 20 18:25:02 MSD 2006::org.gudy.azureus2.core3.security.impl.SESecurityManagerImpl::ensureStoreExists::408: java.security.KeyStoreException: KeyStore JKS implementation not found -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[classlib] [testing] Eclipse testing tools
Good day, I'd like to point at the list of various testing tools gathered by Alexei Fedotov. Some of them are Eclipse sub-projects, others can can be used with Eclipse: http://wiki.apache.org/harmony/Eclipse_Testing_Tools Maybe this information will be useful for someone (for example, will help produce new testing ideas). -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [classlib][testing]resource files: location and usage
Good day, It seems to me that some tests may require resources that can't be put to SVN, for example, non-readable files. Non-writable files may fall in this category, too - I think (sorry it I'm wrong) that after commit/checkout from SVN they become writable by the owner. Another example of such resources may be huge files. It's impossible to put such resources to SVN but they may be created in the build process or on fly before executing tests. Maybe it's worth to specify a common approach for such resources, maybe a build target or something like that. It is not a good idea to put creation of such resources in something like setUp() method in JUnit test because who knows if a read-only file created by VM under test is really read-only or not :) On 6/19/06, Stepan Mishura [EMAIL PROTECTED] wrote: On 6/19/06, Vladimir Ivanov wrote: It would be good if the page http://incubator.apache.org/harmony/subcomponents/classlibrary/testing.htmldescribes also location, name convention and access model for resource files used for testing, specifically, for testing serialization. At the present moment test's resource files stored in src/test/resources directory in modules structure. Serialization data stored as resources/ + serialization/ + package name or resources/ + package name + /serialization/ with .ser or .dat extension. Other resource files are stored in resources/ or in the resources/package name directory. I found two mechanisms of accessing resources in tests: 1) Get resource through ClassLoader.getResource(serialization/package name) 2) Get resource through reading file System.getProperty(RESOURCE_DIR + filename). Hi Vladimir, The second mechanismis used in 'security' testing framework (used by auth/crypto/security/x-net modules). We are agreed to merge two existing framework for testing serialization. Currently I'm preparing update for the 'security' framework - it will replace the second mechanism it with the first. Suggestion: 1) Ideal from my point of view variant: lets uniform access to resources throughout all tests (I can do it). Agreed. We should work out uniform access to resources. IIRC we agreed to access *all* resources via classpath. 2) If it's not good idea, then, lets just describe technique of working with resources on testing conventions page to limit the number of access techniques to only two (I can do it). Thoughts? see [1] for name conventions for serialization resource files. Thanks, Stepan. [1] http://incubator.apache.org/harmony/subcomponents/classlibrary/ser_testing.html -- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[apps] freemind
Good day, I've built Harmony with AWT + Swing and tried to run Freemind (http://freemind.sourceforge.net/) on it. It is Swing application. It worked fine in general - I've created a simple 'map' (sort of scheme) in it and saved the file. The only problem I've noticed is that the upper menu (File, Edit, ...) sometimes disappeared after redraws. After resizing the window menu became visible again. -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[build] AWT, Java2D and SWING contribution
Good day, I've come across several issues while building this contribution and would like to share this experience: 1. line 197 (directory layout section) \---cms || |+--- icc34.h |+--- lcms.h |+--- lcms114.lib and/or liblcms.ia32 and/or liblcms.ipf line 300: 9. Copy ./include/icc34.h and ./include/lcms.h to the EXTERNAL_LIBS_DIR/lcms directory. the correct dir is lcms 2. line 174 : EXTRACT_DIR/Harmony/depends/build line 209: Further in the document, EXTERNAL_LIBS_DIR denotes the directory EXTRACT_DIR/Harmony/depends/build. The build searches for libs in another place: copylib.win: BUILD FAILED C:\temp\Harmony-SVN\Harmony\modules\awt\make\build.xml:320: The following error occurred while executing this line: C:\temp\Harmony-SVN\Harmony\modules\awt\make\native\common\gl.xml:97: Warning: C ould not find file C:\temp\Harmony-SVN\Harmony\depends\libs\build\png\libpng.lib to copy. 3. Build copies files to Harmony\deploy\jre dir while all other .jar and .dll files are in Harmony\deploy\jdk\jre 4. Don't forget to add misc.jar to bootclasspath.properties , for example add to the end of file: bootclasspath.38=misc.jar -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[build] windows files on linux
Good day, I'm trying to build VM from SVN using build.sh and have noticed that build.sh update fetched something that looks Windows-only: build root/pre-copied/common/CLASSLIB/depends/oss/win.ia32/icu4c-3.4-harmony.zip , five dlls in build root/pre-copied/common/CLASSLIB/depends/libs/win.ia32/ and many files in build root/pre-copied/common/CLASSLIB/native-src/win.ia32/ total size is about 15 Mb. Is it really needed for non-windows builds? Maybe the build should be changed? Or it is supposed that someone will run build.sh update on Linux and use the fetched files on Windows? -- Regards, Anton Luht, Intel Middleware Products Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]