| Summary: | Classpath issues with Chart Builder | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Jason Weathersby <jasonweathersby> | ||||||
| Component: | BIRT | Assignee: | Birt-ReportDesigner <Birt-ReportDesigner-inbox> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | Xiaoying Gu <bluesoldier> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | bluesoldier, xiaofeng.zhang, yi.wang | ||||||
| Version: | 2.6.0 | ||||||||
| Target Milestone: | 2.6.1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | Obsolete | ||||||||
| Attachments: |
|
||||||||
|
Description
Jason Weathersby
Created attachment 175853 [details]
projects to reproduce the issue
This also may have something to do witch caching the resultset that has a java object as one of the columns. I noticed that if I take the report with no chart and just add the same table that the column that contains the java object then shows null for both. Some more details. This does appear to be 2 different bugs. The problem with using the dataset twice (either 2 tables or a table and a chart) appears to have to do with the reading from cache. The data engine does not seem to locate the class. In the ObjectSecurity.java class this line:
public static Object readObject( final ObjectInputStream is )
throws IOException, DataException, ClassNotFoundException
{
try
{
if ( is == null )
return null;
return AccessController.doPrivileged( new PrivilegedExceptionAction<Object>( ) {
public Object run( ) throws IOException, ClassNotFoundException
{
return is.readObject( );
}
} );
throws the classnotfound exception, when it is looking for the java object for the column. This exception is swallowed in the ResultObjectUtil.java class when it tries to read the object from cache.
try
{
obs[j] = ObjectSecurity.readObject( ois );
}
catch ( Exception e )
{
// impossible
}
I manually added my class to the data engine plugin and it worked, but I still get the error in the chart builder. Attached is a screen shot.
Created attachment 175888 [details]
chart builder problem
Fixed. The cause of the issue is that chart's live preview did not support resolving class path from the preference. Does this also fix the data engine not finding the class when using a java object data type when a data set is used more than once? (In reply to comment #6) > Does this also fix the data engine not finding the class when using a java > object data type when a data set is used more than once? I'm afraid not. What does that mean? How can I reproduce it? Your attached reports work fine, except that the chart cannot work in chart builder, and I've fixed this issue. Sorry, I should have been clearer. Drag the dataset above the chart so that you have a table and the chart tied to the same dataset and run the report and it will fail. (In reply to comment #8) > Sorry, I should have been clearer. Drag the dataset above the chart so that > you have a table and the chart tied to the same dataset and run the report and > it will fail. This issue has been fixed in DTE side. Verified in daily build 2.6.1.v20100812-0630 |