Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » PageVariable classcast-exception after osgi-bundle-refresh (OSGI: java.lang.ClassCastException: org.eclipse.birt.report.engine.executor.PageVariable cannot be cast to org.eclipse.birt.report.engine.executor.PageVariable)
icon5.gif  PageVariable classcast-exception after osgi-bundle-refresh [message #685388] Fri, 17 June 2011 12:22 Go to next message
JW  is currently offline JW Friend
Messages: 9
Registered: June 2011
Junior Member
Hello,

I got java.lang.ClassCastException after osgi-bundle refresh: 'org.eclipse.birt.report.engine.executor.PageVariable cannot be cast to org.eclipse.birt.report.engine.executor.PageVariable'

* before refresh my report will exported (to pdf) successful
* after refresh throws the exception (the classname is the same but the classpath not)
* @see birt-classcastexcetion.stacktrce.txt
WHAT CAN I DO?

I try udpate/refresh the following bundles: (same exception)
* update org.eclipse.birt.report.engine
* start org.eclipse.birt.report.engine
* update org.eclipse.birt.report.engine.emitter.config
* start org.eclipse.birt.report.engine.emitter.config
* update org.eclipse.birt.report.engine.script.javascript
* update org.eclipse.birt.report.engine.emitter.pdf
* update org.eclipse.birt.report.engine.emitter.pdf.config
* update de.ibacg.de.ibacg.framework.reporting.birt
* update de.ibacg.cmfs.reporting.pwc

INFO: osgi-bundle-state (before and after refresh)

4	ACTIVE      de.ibacg.framework.reporting.ibaf_reporting_core_0.4.91.SNAPSHOT
23	ACTIVE      de.ibacg.de.ibacg.framework.reporting.birt_0.4.91.SNAPSHOT
27	ACTIVE      org.eclipse.birt.report.engine.emitter.config_2.5.2.v20100208
35	ACTIVE      org.eclipse.birt.report.engine_2.5.2.v20100210
	            Fragments=36
36	RESOLVED    de.ibacg.cmfs.reporting.pwc.fragmentto.org.eclipse.birt.report.engine_1.9.901-SNAPSHOT
	            Master=35
37	ACTIVE      org.eclipse.birt.report.model_2.5.2.v20100127
41	ACTIVE      org.eclipse.birt.report.engine.fonts_2.5.2.v20091224
64	ACTIVE      org.eclipse.birt.report.engine.script.javascript_2.5.2.v20091224
112	ACTIVE      org.eclipse.birt.report.data.adapter_2.5.2.v20100208
121	ACTIVE      org.eclipse.birt.report.engine.emitter.pdf_2.5.2.v20100129
146	RESOLVED    de.ibacg.cmfs.reporting.pwc.reports_1.9.901.SNAPSHOT
	            Master=172
172	ACTIVE      de.ibacg.cmfs.reporting.pwc_1.9.901.SNAPSHOT
	            Fragments=146
177	ACTIVE      org.eclipse.birt.report.engine.emitter.pdf.config_2.5.2.v20100208


I use birt-2.5.2(gallileo) on macosx (leopard) with java-1.6

[Updated on: Fri, 17 June 2011 12:26]

Report message to a moderator

Re: PageVariable classcast-exception after osgi-bundle-refresh [message #685459 is a reply to message #685388] Fri, 17 June 2011 14:32 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Have you tried to restart with -clean?

On 6/17/2011 8:22 AM, JW wrote:
> Hello,
>
> I got 'java.lang.ClassCastException after bundle refresh: org.eclipse.birt.report.engine.executor.PageVariable cannot be cast to org.eclipse.birt.report.engine.executor.PageVariable' after I refresh my bundle.
>
> * before refresh my report will exported (to pdf) successful
> * after refresh throws the exception (the classname is the same but the classpath not)
> * @see birt-classcastexcetion.stacktrce.txt
> WHAT CAN I DO?
>
> I try udpate/refresh the following bundles: (same exception)
> ** update org.eclipse.birt.report.engine
> ** start org.eclipse.birt.report.engine
> ** update org.eclipse.birt.report.engine.emitter.config
> ** start org.eclipse.birt.report.engine.emitter.config
> ** update org.eclipse.birt.report.engine.script.javascript
> ** update org.eclipse.birt.report.engine.emitter.pdf
> ** update org.eclipse.birt.report.engine.emitter.pdf.config
> ** update de.ibacg.de.ibacg.framework.reporting.birt
> ** update de.ibacg.cmfs.reporting.pwc
>
> INFO: osgi-bundle-state (before and after refresh)
>
> 4 ACTIVE de.ibacg.framework.reporting.ibaf_reporting_core_0.4.91.SNAPSHOT
> 23 ACTIVE de.ibacg.de.ibacg.framework.reporting.birt_0.4.91.SNAPSHOT
> 27 ACTIVE org.eclipse.birt.report.engine.emitter.config_2.5.2.v20100208
> 35 ACTIVE org.eclipse.birt.report.engine_2.5.2.v20100210
> Fragments=36
> 36 RESOLVED de.ibacg.cmfs.reporting.pwc.fragmentto.org.eclipse.birt.report.engine_1.9.901-SNAPSHOT
> Master=35
> 37 ACTIVE org.eclipse.birt.report.model_2.5.2.v20100127
> 41 ACTIVE org.eclipse.birt.report.engine.fonts_2.5.2.v20091224
> 64 ACTIVE org.eclipse.birt.report.engine.script.javascript_2.5.2.v20091224
> 112 ACTIVE org.eclipse.birt.report.data.adapter_2.5.2.v20100208
> 121 ACTIVE org.eclipse.birt.report.engine.emitter.pdf_2.5.2.v20100129
> 146 RESOLVED de.ibacg.cmfs.reporting.pwc.reports_1.9.901.SNAPSHOT
> Master=172
> 172 ACTIVE de.ibacg.cmfs.reporting.pwc_1.9.901.SNAPSHOT
> Fragments=146
> 177 ACTIVE org.eclipse.birt.report.engine.emitter.pdf.config_2.5.2.v20100208
Re: PageVariable classcast-exception after osgi-bundle-refresh [message #685723 is a reply to message #685459] Sat, 18 June 2011 10:41 Go to previous messageGo to next message
JW  is currently offline JW Friend
Messages: 9
Registered: June 2011
Junior Member
Jason Weathersby wrote on Fri, 17 June 2011 10:32
Have you tried to restart with -clean?


* restart of my application works
* but, this is a bad szenario: I have a very long bootstrap. And for quick report-testing this is not fine.
Re: PageVariable classcast-exception after osgi-bundle-refresh [message #686081 is a reply to message #685723] Tue, 21 June 2011 15:52 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you log a bug for this?

Jason
Re: PageVariable classcast-exception after osgi-bundle-refresh [message #686392 is a reply to message #686081] Wed, 22 June 2011 07:03 Go to previous messageGo to next message
JW  is currently offline JW Friend
Messages: 9
Registered: June 2011
Junior Member
Bug added: bugs.eclipse.org/bugs/show_bug.cgi?id=350006
Re: PageVariable classcast-exception after osgi-bundle-refresh [message #686627 is a reply to message #686392] Wed, 22 June 2011 16:00 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Thanks for posting the bug number.

Jason
Previous Topic:Exception in Birt while loading class in Google Analytics client library
Next Topic:Referencing .sql file, .jar file
Goto Forum:
  


Current Time: Fri Apr 26 09:03:17 GMT 2024

Powered by FUDForum. Page generated in 0.03346 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top