Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 264236 - Error message shown in console while running Test.Execution.Services.testsuite
Summary: Error message shown in console while running Test.Execution.Services.testsuite
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Paul Slauenwhite CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-09 13:58 EST by Ben Chen CLA
Modified: 2016-05-05 11:08 EDT (History)
1 user (show)

See Also:


Attachments
Patch. (1.42 KB, patch)
2009-02-19 06:14 EST, Paul Slauenwhite CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Chen CLA 2009-02-09 13:58:28 EST
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!
Comment 1 Paul Slauenwhite CLA 2009-02-09 14:03:53 EST
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?
Comment 2 Ben Chen CLA 2009-02-09 14:59:15 EST
(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

Comment 3 Paul Slauenwhite CLA 2009-02-09 15:42:40 EST
(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?
Comment 4 Ben Chen CLA 2009-02-09 16:04:39 EST
(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)
Comment 5 Paul Slauenwhite CLA 2009-02-09 16:12:42 EST
(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
Comment 6 Ben Chen CLA 2009-02-09 17:11:08 EST
(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
Comment 7 Paul Slauenwhite CLA 2009-02-09 17:33:10 EST
(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).

Comment 8 Paul Slauenwhite CLA 2009-02-09 17:35:32 EST
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?
Comment 9 Ben Chen CLA 2009-02-10 11:19:07 EST
(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
Comment 10 Paul Slauenwhite CLA 2009-02-10 13:54:27 EST
(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. 

Comment 11 Paul Slauenwhite CLA 2009-02-10 15:25:11 EST
(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.
Comment 12 Ben Chen CLA 2009-02-10 16:20:29 EST
(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)
Comment 13 Paul Slauenwhite CLA 2009-02-17 13:13:12 EST
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
Comment 14 Paul Slauenwhite CLA 2009-02-19 06:14:11 EST
Created attachment 126153 [details]
Patch.
Comment 15 Paul Slauenwhite CLA 2009-02-19 06:17:15 EST
(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).
Comment 16 Ben Chen CLA 2009-02-24 10:31:13 EST
Verified with TPTP-4.5.3-200902231004 driver
Comment 17 Ben Chen CLA 2009-02-24 10:31:32 EST
Closing after being verified