Community
Participate
Working Groups
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!
This appears to be related to running with the new BIRT (V2.5). Although the TPTP Test Reports are an as-is component, the report infrastructure is still supported and used by our consumers. Ben, is the report correct?
(In reply to comment #1) > This appears to be related to running with the new BIRT (V2.5). Although the > TPTP Test Reports are an as-is component, the report infrastructure is still > supported and used by our consumers. > > Ben, is the report correct? > The report generated are correct. I tried using BIRT 2.3.2, it gave the following exception: java.lang.NoClassDefFoundError: org.eclipse.birt.report.model.api.IResourceLocator at java.lang.ClassLoader.defineClassImpl(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:258) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:165) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:570) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:540) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:471) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:459) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:439) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193) at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:372) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:448) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:401) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:389) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87) at java.lang.ClassLoader.loadClass(ClassLoader.java:597) at org.eclipse.tptp.platform.report.birt.core.internal.impl.ReportElementExtensionRegistryReader.createReportElement(ReportElementExtensionRegistryReader.java:113) at org.eclipse.tptp.test.report.birt.services.TestSuitesPublicationService.publish(TestSuitesPublicationService.java:63) at org.eclipse.hyades.test.core.services.AbstractTestResultsPublicationService.execute(AbstractTestResultsPublicationService.java:105) at org.eclipse.hyades.automation.server.AbstractService.execute(AbstractService.java:43) at org.eclipse.hyades.automation.server.ServiceProxy$1.run(ServiceProxy.java:139) at org.eclipse.hyades.automation.core.utils.ReusableThread.run(ReusableThread.java:131) at java.lang.Thread.run(Thread.java:810) Caused by: java.lang.ClassNotFoundException: org.eclipse.birt.report.model.api.IResourceLocator at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:485) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:401) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:389) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87) at java.lang.ClassLoader.loadClass(ClassLoader.java:597) ... 22 more
(In reply to comment #2) > (In reply to comment #1) > > This appears to be related to running with the new BIRT (V2.5). Although the > > TPTP Test Reports are an as-is component, the report infrastructure is still > > supported and used by our consumers. > > > > Ben, is the report correct? > > > > The report generated are correct. Great. I have decreased the priority accordingly. > I tried using BIRT 2.3.2, it gave the following exception: > > java.lang.NoClassDefFoundError: > org.eclipse.birt.report.model.api.IResourceLocator Can you confirm that the org.eclipse.birt.report.model plug-in is installed/loaded?
(In reply to comment #3) > > Can you confirm that the org.eclipse.birt.report.model plug-in is > installed/loaded? > In console: ss org.eclipse.birt.report gives the following org.eclipse.birt.report.designer_2.3.2.r232_v20081010 org.eclipse.birt.report.designer.samplereports_2.3.2.r232_20090115 org.eclipse.birt.report.engine.fonts_2.3.2.r232_20090108 org.eclipse.birt.report.runtime_2.3.2.r232_v20081010 I'm guessing no birt-report-framework-2_3_2-N20090116.zip and org.eclipse.tptp.test.report.birt-TPTP-4.5.3-200902061432.zip are installed (followed the instruction on installing tptp birt, which is DTP + GEF + BIRT, delete tptp.birt.report plugins in the feature and plugins folder, then extract the tptp birt zip)
(In reply to comment #4) > (In reply to comment #3) > > > > > Can you confirm that the org.eclipse.birt.report.model plug-in is > > installed/loaded? > > > > In console: > ss org.eclipse.birt.report gives the following > > org.eclipse.birt.report.designer_2.3.2.r232_v20081010 > org.eclipse.birt.report.designer.samplereports_2.3.2.r232_20090115 > org.eclipse.birt.report.engine.fonts_2.3.2.r232_20090108 > org.eclipse.birt.report.runtime_2.3.2.r232_v20081010 > > I'm guessing no > > birt-report-framework-2_3_2-N20090116.zip and > org.eclipse.tptp.test.report.birt-TPTP-4.5.3-200902061432.zip are installed > (followed the instruction on installing tptp birt, which is DTP + GEF + BIRT, > delete tptp.birt.report plugins in the feature and plugins folder, then extract > the tptp birt zip) > Looks like an installation issue. Please use the BIRT/DTP/GEF from TPTP 4.5.2 RC1: http://www.eclipse.org/tptp/home/downloads/?buildId=TPTP-4.5.2-200901201658
(In reply to comment #5) > (In reply to comment #4) > > (In reply to comment #3) > > > > > > > > Can you confirm that the org.eclipse.birt.report.model plug-in is > > > installed/loaded? > > > > > > > In console: > > ss org.eclipse.birt.report gives the following > > > > org.eclipse.birt.report.designer_2.3.2.r232_v20081010 > > org.eclipse.birt.report.designer.samplereports_2.3.2.r232_20090115 > > org.eclipse.birt.report.engine.fonts_2.3.2.r232_20090108 > > org.eclipse.birt.report.runtime_2.3.2.r232_v20081010 > > > > I'm guessing no > > > > birt-report-framework-2_3_2-N20090116.zip and > > org.eclipse.tptp.test.report.birt-TPTP-4.5.3-200902061432.zip are installed > > (followed the instruction on installing tptp birt, which is DTP + GEF + BIRT, > > delete tptp.birt.report plugins in the feature and plugins folder, then extract > > the tptp birt zip) > > > > Looks like an installation issue. Please use the BIRT/DTP/GEF from TPTP 4.5.2 > RC1: > > http://www.eclipse.org/tptp/home/downloads/?buildId=TPTP-4.5.2-200901201658 > Tried using those, still doesn't load org.eclipse.birt.report.model
(In reply to comment #6) OK, I will investigate further when we fix this defect. However, this may be a case of BIRT not being forward compatible (report templates compiled with BIRT 2.5 but ran with BIRT 2.3.2).
Ben, can you confirm if the report generation from the TPTP UI suffers from the same symptoms in the .log file using the TPTP 4.5.3 and BIRT 2.5 configuration?
(In reply to comment #8) > Ben, can you confirm if the report generation from the TPTP UI suffers from the > same symptoms in the .log file using the TPTP 4.5.3 and BIRT 2.5 configuration? > Using birt 2.3.2 and tptp 453, trying to open an execution file in test navigator would give : java.lang.NoClassDefFoundError: org.eclipse.birt.chart.device.ICallBackNotifier Right clicking on a testsuite and "Report" does not show the BIRT report options. with 4.5.3 and BIRT 2.5, the Report functions are working and error log stays clean. Paul is this what you wanted? Let me know
(In reply to comment #9) > (In reply to comment #8) > > Ben, can you confirm if the report generation from the TPTP UI suffers from the > > same symptoms in the .log file using the TPTP 4.5.3 and BIRT 2.5 configuration? > > > > Using birt 2.3.2 and tptp 453, trying to open an execution file in test > navigator would give : java.lang.NoClassDefFoundError: > org.eclipse.birt.chart.device.ICallBackNotifier > > Right clicking on a testsuite and "Report" does not show the BIRT report > options. Thanks Ben. Clearly BIRT is not forward compatible. Lets focus on the current TPTP 4.5.3 configuration/dependencies (e.g. BIRT 2.5) for this defect. > with 4.5.3 and BIRT 2.5, the Report functions are working and error log stays > clean. Perfect. Looks to be only an issue when generating the report via ASF. > Paul is this what you wanted? Let me know Yes, thank you.
(In reply to comment #9) > with 4.5.3 and BIRT 2.5, the Report functions are working and error log stays > clean. This BIRT error message is printed to standard error and not logged to the .log file. Self hosting or starting Eclipse with -consolelog exposes this BIRT error message when generating the BIRT Test report from the TPTP UI.
(In reply to comment #11) > (In reply to comment #9) > > > with 4.5.3 and BIRT 2.5, the Report functions are working and error log stays > > clean. > > This BIRT error message is printed to standard error and not logged to the .log > file. Self hosting or starting Eclipse with -consolelog exposes this BIRT > error message when generating the BIRT Test report from the TPTP UI. > I see, tried again and got this in the console: osgi> Feb 10, 2009 4:17:36 PM org.eclipse.birt.report.model.metadata.ChoicePrope rtyType validateXml SEVERE: Not found choice: any Feb 10, 2009 4:17:36 PM org.eclipse.birt.report.model.metadata.ChoicePropertyTyp e validateXml SEVERE: Not found choice: any seems to be the exact same message that appeared in the java console (the message in the Description)
This appears to be a BIRT issue when we call org.eclipse.birt.report.engine.api.IReportEngine.openReportDesign(InputStream) in org.eclipse.tptp.platform.report.birt.core.provisional.BIRTReportGenerator.generateHTMLReportFragment(OutputStream, String, String, InputStream, InputStream, boolean, BIRTResourceLocator): https://bugs.eclipse.org/bugs/show_bug.cgi?id=265193
Created attachment 126153 [details] Patch.
(In reply to comment #13) > This appears to be a BIRT issue when we call > org.eclipse.birt.report.engine.api.IReportEngine.openReportDesign(InputStream) > in > org.eclipse.tptp.platform.report.birt.core.provisional.BIRTReportGenerator.generateHTMLReportFragment(OutputStream, > String, String, InputStream, InputStream, boolean, BIRTResourceLocator): > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=265193 > This was caused by a unsupported dataType ('any') in our /org.eclipse.tptp.test.report.birt/templates/TabularSubReport.rptdesign report template. Changing the 'any' dataType to 'string' (recommendation of the BIRT Team) resolves the symptom, without any side effects. Attached patch checked in to CVS (HEAD).
Verified with TPTP-4.5.3-200902231004 driver
Closing after being verified