Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341310 - Strange serialization exception
Summary: Strange serialization exception
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.0   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-Chart-inbox@eclipse.org CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-30 02:31 EDT by evgenyak CLA
Modified: 2011-06-21 16:28 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description evgenyak CLA 2011-03-30 02:31:54 EDT
Hello,

I have this strange serialization exception. I'm not yet sure whether it affects anything but I don't understand what is causing it.
I'm using JBoss 4.2.
This happens for every report in the system when initiator of the ReportEngine.openReportDesign() comes from within Quartz job.
Quartz is configured to use the class-loader of the original Quartz job creator.
(org.quartz.scheduler.threadsInheritContextClassLoaderOfInitializer=true)

08:10:41,685 ERROR [STDERR] Mar 30, 2011 8:10:41 AM org.eclipse.birt.chart.reportitem.ChartReportItemImpl deserialize
WARNING: Exception
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with uri 'http://www.birt.eclipse.org/ChartModel' not found. (file:///home/evgy/jboss-4.2.0
.GA/bin/test.chart, 1, 367)
        at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:83)
        at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:191)
        at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180)
        at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494)
        at org.eclipse.birt.chart.model.impl.SerializerImpl.fromXml(SerializerImpl.java:465)
        at org.eclipse.birt.chart.reportitem.ChartReportItemImpl.deserialize(ChartReportItemImpl.java:292)
        at org.eclipse.birt.report.model.extension.PeerExtensibilityProvider.initializeReportItem(PeerExtensibilityProvider.java:580)
        at org.eclipse.birt.report.model.elements.ExtendedItem.initializeReportItem(ExtendedItem.java:307)
        at org.eclipse.birt.report.model.elements.ExtendedItem.doCheck(ExtendedItem.java:642)
        at org.eclipse.birt.report.model.elements.ExtendedItem.checkCompatibility(ExtendedItem.java:604)
        at org.eclipse.birt.report.model.parser.ModuleParserHandler.handleExtendedItemCompatibility(ModuleParserHandler.java:455)
        at org.eclipse.birt.report.model.parser.ModuleParserHandler.endDocument(ModuleParserHandler.java:417)
        at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
        at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at org.eclipse.birt.report.model.parser.ModuleReader.readModule(ModuleReader.java:94)
        at org.eclipse.birt.report.model.parser.DesignReader.read(DesignReader.java:88)
        at org.eclipse.birt.report.model.core.DesignSessionImpl.openDesign(DesignSessionImpl.java:314)
        at org.eclipse.birt.report.model.api.SessionHandleImpl.openDesign(SessionHandleImpl.java:294)
        at org.eclipse.birt.report.engine.parser.ReportParser.getDesignHandle(ReportParser.java:158)
        at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.getReportDesignHandle(ReportEngineHelper.java:255)
        at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:274)
        at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:196)
        at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:130)
        at org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(ReportEngine.java:304)
        at com.FlashNetworks.HarmonyAnalytics.ReportsEngine.ReportsEngine.getReportDesignData(ReportsEngine.java:624)
        at com.FlashNetworks.HarmonyAnalytics.ReportsEngine.ReportObject.<init>(ReportObject.java:39)
        at com.FlashNetworks.HarmonyAnalytics.ReportsEngine.ReportsEngine.buildReportsTree(ReportsEngine.java:302)
        at com.FlashNetworks.HarmonyAnalytics.ReportsEngine.ReportsEngine.buildReportsTree(ReportsEngine.java:292)
        at com.FlashNetworks.HarmonyAnalytics.ReportsEngine.ReportsEngine.buildReportsTree(ReportsEngine.java:292)
        at com.FlashNetworks.HarmonyAnalytics.ReportsEngine.ReportsEngine.getReportsTree(ReportsEngine.java:253)
        at com.FlashNetworks.HarmonyAnalytics.ReportsEngine.SystemReports.reload(SystemReports.java:54)
        at com.FlashNetworks.HarmonyAnalytics.Scheduler.system.ReloadReportsJob.execute(ReloadReportsJob.java:27)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://www.birt.eclipse.org/ChartModel' not found. (file:///home/evgy/jboss-4.
2.0.GA/bin/test.chart, 1, 367)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2591)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.java:2422)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1299)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1468)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:1019)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:1001)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:712)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181)
        ... 43 more
Comment 1 Wenfeng Li CLA 2011-06-21 16:28:17 EDT
BIRT 3.7.0 has a new POJO runtime, please try it out and if it fixes the issue.

Please see the deployment instruction at thie wiki page

http://wiki.eclipse.org/BIRT_3.7_Runtime_Deployment_Guide