| Summary: | Exceptions when running ASF tasks. | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Joel Cayne <jcayne> |
| Component: | TPTP | Assignee: | Paul Slauenwhite <paulslau> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | major | ||
| Priority: | P2 | CC: | chenbs, paulslau |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Duwayne, we need this defect for the Test Automation Initiative. Please provide a sizing and resolve early in I4. Thanks. Hi Joel, I am not able to make this fail. Please verify the following: Running IBM 1.5 JDK SR4 Running Ant 1.7 Copied latest ant-tptp.jar from a TPTP 4.5 driver to your ant lib directory I think we can all agree that the stack trace could provide a better message. As near as I can tell, the exception in ServiceProxy.java was due to being unable to find the importExistingProjects service. I will contact you Tuesday morning and see if we can investigate further. Thanks, DuWayne Joel is no longer blocked. It appears that the issue was with importing a project into a workspace running Ant from the IDE that is currently using the same workspace. I will need to verify this, since we made multiple changes in getting the problem resolved. Joe Toomey had previously advised against this practice (running the IDE in the same workspace as Ant tasks) and that it may cause problems. This is a serious issue that should be addressed. Two issues are: How should the issue be resolved, and fixing the code to provide a more meaningfull error message in ServiceProxy.java. I will plan to discuss the direction in next Monday's call. Retargetting. I am also seeing this behavior when running my ANT tasks from Eclipse. For example, NullPointerException, ClassNotFoundError (EMF, TPTP, Eclipse classes), etc. Closing and reopen Eclipse appears to resolve the problem. As Duwayne has mentioned, there are two issues here; the exception and the confusing exception/error message. This defect will cover the first and defect https://bugs.eclipse.org/bugs/show_bug.cgi?id=217487 will cover the second. Note, this is NOT blocking the Test Automation Initiative. We are seeing the same behavior when running from a Java or shell client after several runs: org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.hyades.test.tools.core was unable to load class org.eclipse.hyades.test.tools.core.services.TestExecutionService. Deferring to future as approved by the TPTP PMC (http://dev.eclipse.org/mhonarc/lists/tptp-pmc/msg04926.html). Impacting ASF testing. The following message appeared in the console while executing: 1:testPublishTabularReportSampleJUnitTestOutOfProcess 2:testPublishTabularReportTestSuitesSampleJUnitTestOutOfProcess under JavaAutomationClientAdapterTest, in test suite: \org.eclipse.hyades.test.core.services.tests\manual\Test.Execution.Services.testsuite Using TPTP-4.5.3-200902061432 Driver: Starting test testPublishTabularReportTestSuitesSampleTestsOutOfProcess().... Test execution started. Test 'resources\JUnit\SampleJUnitTest.testsuite' started. Preparing launch delegate... Performing pre-launch check... Performing final launch validation... Initializing source locator... Launching delegate... Waiting.... Test result 'SampleJUnitTest.execution' collected. Test 'resources\JUnit\SampleJUnitTest.testsuite' completed. Test execution completed! The sample tests ([resources\JUnit\SampleJUnitTest.testsuite]) were executed successfully. Test results interrogation started. Verdict for test result 'SampleJUnitTest.execution' is 'error'. Overall verdict is 'error'. Test results interrogation completed. The verdict for the sample tests (error) was correct. Feb 9, 2009 10:59:12 AM org.eclipse.birt.report.model.metadata.ChoicePropertyType validateXml SEVERE: Not found choice: any Feb 9, 2009 10:59:12 AM org.eclipse.birt.report.model.metadata.ChoicePropertyType validateXml SEVERE: Not found choice: any The sample report (D:\Work-TPTP\Workspaces\453_final_0209\org.eclipse.hyades.test.core.services.tests\ReportTabularTestSuites) was generated successfully. Test testPublishTabularReportTestSuitesSampleTestsOutOfProcess() complete! (In reply to comment #9) > The following message appeared in the console while executing: > > 1:testPublishTabularReportSampleJUnitTestOutOfProcess > 2:testPublishTabularReportTestSuitesSampleJUnitTestOutOfProcess > > under JavaAutomationClientAdapterTest, in test suite: > \org.eclipse.hyades.test.core.services.tests\manual\Test.Execution.Services.testsuite > > Using TPTP-4.5.3-200902061432 Driver: > > Starting test testPublishTabularReportTestSuitesSampleTestsOutOfProcess().... > Test execution started. > Test 'resources\JUnit\SampleJUnitTest.testsuite' started. > Preparing launch delegate... > Performing pre-launch check... > Performing final launch validation... > Initializing source locator... > Launching delegate... > Waiting.... > Test result 'SampleJUnitTest.execution' collected. > Test 'resources\JUnit\SampleJUnitTest.testsuite' completed. > Test execution completed! > The sample tests ([resources\JUnit\SampleJUnitTest.testsuite]) were executed > successfully. > Test results interrogation started. > Verdict for test result 'SampleJUnitTest.execution' is 'error'. > Overall verdict is 'error'. > Test results interrogation completed. > The verdict for the sample tests (error) was correct. > Feb 9, 2009 10:59:12 AM > org.eclipse.birt.report.model.metadata.ChoicePropertyType validateXml > SEVERE: Not found choice: any > Feb 9, 2009 10:59:12 AM > org.eclipse.birt.report.model.metadata.ChoicePropertyType validateXml > SEVERE: Not found choice: any > The sample report > (D:\Work-TPTP\Workspaces\453_final_0209\org.eclipse.hyades.test.core.services.tests\ReportTabularTestSuites) > was generated successfully. > Test testPublishTabularReportTestSuitesSampleTestsOutOfProcess() complete! > Ben, this is unrelated to this defect. Please open a new defect against Test.UI.Reporting. sorry about that, https://bugs.eclipse.org/bugs/show_bug.cgi?id=264236 is opened for the previous issue *** This bug has been marked as a duplicate of bug 194503 *** |
Using the following command to import a project into the workspace for ASF: <tptp:importExistingProjects> <fileset dir="${project.dir}"> <include name="**/*.project"/> </fileset> </tptp:importExistingProjects> ANT throws the following exception: [tptp:importExistingProjects] adding file C:\asf\project\test-results\platform\tests\.project [tptp:importExistingProjects] org.eclipse.hyades.test.tools.core.importExistingProjects [tptp:importExistingProjects] java.lang.Exception [tptp:importExistingProjects] at org.eclipse.hyades.automation.server.ServiceProxy.<init>(ServiceProxy.java:100) [tptp:importExistingProjects] at org.eclipse.hyades.automation.server.AutomationServer.run(AutomationServer.java:254) [tptp:importExistingProjects] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [tptp:importExistingProjects] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [tptp:importExistingProjects] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [tptp:importExistingProjects] at java.lang.reflect.Method.invoke(Unknown Source) [tptp:importExistingProjects] at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:572) [tptp:importExistingProjects] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:171) [tptp:importExistingProjects] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) [tptp:importExistingProjects] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) [tptp:importExistingProjects] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) [tptp:importExistingProjects] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) [tptp:importExistingProjects] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [tptp:importExistingProjects] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [tptp:importExistingProjects] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [tptp:importExistingProjects] at java.lang.reflect.Method.invoke(Unknown Source) [tptp:importExistingProjects] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508) [tptp:importExistingProjects] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) [tptp:importExistingProjects] at org.eclipse.equinox.launcher.Main.run(Main.java:1173)