Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » OSGI framework doesn't start / assertion failure
OSGI framework doesn't start / assertion failure [message #169686] Tue, 13 June 2006 09:38 Go to next message
Florian Georg is currently offline Florian Georg
Messages: 34
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------020902090305050709030907
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I try to use the BIRT 2.1 Report Engine API in a simple Java Application
(no plugin project).

However, I'm getting NPEs for hours now:

EngineConfig config = new EngineConfig();
config.setEngineHome("c:/birt/birt-runtime-2_1_0/ReportEngine ");
// (System out states: 'Can't load the report engine')
ReportEngine engine = new ReportEngine(config); // <==== NPE !

I tracked this down to
" org.eclipse.birt.core.framework.Platform#startup(PlatformCon fig) ".


============== snip =================
// start up the OSGI framework
try
{
launcher = new OSGILauncher( );
// startup the OSGi framework,
launcher.startup( config );
// the core plugins is loaded in the start up
// 1. platform should not be null any more.
// 2. the IFactoryService has been registed
// see
// org.eclipse.birt.core.plugin.CorePlugin#start(BundleContext
// context).

assert platform != null; // <===== platform *is* null for me !!

}
catch ( Exception ex )
{
platform = null;
throw new BirtException( "Can't startup the OSGI framework",
new Object[]{}, ex );
}
================ snap =================

Hm, no exception here, but platform==null and no IFactoryService around
:-( .....


Any ideas what this could be?
I see tricky ClassLoader stuff in there, perhaps something is wrong with
my execution setting?


Thanks in advance !
Florian

--------------020902090305050709030907
Content-Type: text/x-vcard; charset=utf-8;
name="Florian.Georg.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="Florian.Georg.vcf"

begin:vcard
fn:Florian Georg
n:Georg;Florian
org:Innovations Softwaretechnologie GmbH;Product Development
adr:;;Ziegelei 7;Immenstaad;;88090;Germany
email;internet:Florian.Georg@innovations.de
title:Developer
tel;work:+49-7545-202-512
url:http://www.innovations.de
version:2.1
end:vcard


--------------020902090305050709030907--
Re: OSGI framework doesn't start / assertion failure [message #169768 is a reply to message #169686] Tue, 13 June 2006 12:56 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

What does the directory structure below ReportEngine look like?
Do you have a configuration directory?

Jason

"Florian Georg" <Florian.Georg@Innovations.de> wrote in message
news:e6mf4e$mmu$1@utils.eclipse.org...
>I try to use the BIRT 2.1 Report Engine API in a simple Java Application
> (no plugin project).
>
> However, I'm getting NPEs for hours now:
>
> EngineConfig config = new EngineConfig();
> config.setEngineHome("c:/birt/birt-runtime-2_1_0/ReportEngine ");
> // (System out states: 'Can't load the report engine')
> ReportEngine engine = new ReportEngine(config); // <==== NPE !
>
> I tracked this down to
> " org.eclipse.birt.core.framework.Platform#startup(PlatformCon fig) ".
>
>
> ============== snip =================
> // start up the OSGI framework
> try
> {
> launcher = new OSGILauncher( );
> // startup the OSGi framework,
> launcher.startup( config );
> // the core plugins is loaded in the start up
> // 1. platform should not be null any more.
> // 2. the IFactoryService has been registed
> // see
> // org.eclipse.birt.core.plugin.CorePlugin#start(BundleContext
> // context).
>
> assert platform != null; // <===== platform *is* null for me !!
>
> }
> catch ( Exception ex )
> {
> platform = null;
> throw new BirtException( "Can't startup the OSGI framework",
> new Object[]{}, ex );
> }
> ================ snap =================
>
> Hm, no exception here, but platform==null and no IFactoryService around
> :-( .....
>
>
> Any ideas what this could be?
> I see tricky ClassLoader stuff in there, perhaps something is wrong with
> my execution setting?
>
>
> Thanks in advance !
> Florian
>
Re: OSGI framework doesn't start / assertion failure [message #170043 is a reply to message #169768] Wed, 14 June 2006 02:49 Go to previous messageGo to next message
Florian Georg is currently offline Florian Georg
Messages: 34
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------040907090202030905000604
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Thanks, figured it out:
The config.ini file in the configuration folder was incidentally deleted
by me !

Nevertheless I think the Platform should not come up with a NPE in such
cases ... is there a possibility for the OSGILauncher to check for
correct directory layout/configuration on startup?

thanks again,
Florian


Jason Weathersby wrote:
> What does the directory structure below ReportEngine look like?
> Do you have a configuration directory?
>
> Jason
>
> "Florian Georg" <Florian.Georg@Innovations.de> wrote in message
> news:e6mf4e$mmu$1@utils.eclipse.org...
>
>>I try to use the BIRT 2.1 Report Engine API in a simple Java Application
>>(no plugin project).
>>
>>However, I'm getting NPEs for hours now:
>>
>>EngineConfig config = new EngineConfig();
>>config.setEngineHome("c:/birt/birt-runtime-2_1_0/ReportEngine ");
>>// (System out states: 'Can't load the report engine')
>>ReportEngine engine = new ReportEngine(config); // <==== NPE !
>>
>>I tracked this down to
>>" org.eclipse.birt.core.framework.Platform#startup(PlatformCon fig) ".
>>
>>
>>============== snip =================
>>// start up the OSGI framework
>>try
>>{
>>launcher = new OSGILauncher( );
>>// startup the OSGi framework,
>>launcher.startup( config );
>>// the core plugins is loaded in the start up
>>// 1. platform should not be null any more.
>>// 2. the IFactoryService has been registed
>>// see
>>// org.eclipse.birt.core.plugin.CorePlugin#start(BundleContext
>>// context).
>>
>>assert platform != null; // <===== platform *is* null for me !!
>>
>>}
>>catch ( Exception ex )
>>{
>>platform = null;
>>throw new BirtException( "Can't startup the OSGI framework",
>>new Object[]{}, ex );
>>}
>>================ snap =================
>>
>>Hm, no exception here, but platform==null and no IFactoryService around
>>:-( .....
>>
>>
>>Any ideas what this could be?
>>I see tricky ClassLoader stuff in there, perhaps something is wrong with
>>my execution setting?
>>
>>
>>Thanks in advance !
>> Florian
>>
>
>
>


--------------040907090202030905000604
Content-Type: text/x-vcard; charset=utf-8;
name="Florian.Georg.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="Florian.Georg.vcf"

begin:vcard
fn:Florian Georg
n:Georg;Florian
org:Innovations Softwaretechnologie GmbH;Product Development
adr:;;Ziegelei 7;Immenstaad;;88090;Germany
email;internet:Florian.Georg@innovations.de
title:Developer
tel;work:+49-7545-202-512
url:http://www.innovations.de
version:2.1
end:vcard


--------------040907090202030905000604--
Re: OSGI framework doesn't start / assertion failure [message #170244 is a reply to message #170043] Wed, 14 June 2006 11:41 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

You can log an enhancement request in bugzilla.

Jason

"Florian Georg" <Florian.Georg@Innovations.de> wrote in message
news:e6obh1$v5g$1@utils.eclipse.org...
> Thanks, figured it out:
> The config.ini file in the configuration folder was incidentally deleted
> by me !
>
> Nevertheless I think the Platform should not come up with a NPE in such
> cases ... is there a possibility for the OSGILauncher to check for
> correct directory layout/configuration on startup?
>
> thanks again,
> Florian
>
>
> Jason Weathersby wrote:
>> What does the directory structure below ReportEngine look like?
>> Do you have a configuration directory?
>>
>> Jason
>>
>> "Florian Georg" <Florian.Georg@Innovations.de> wrote in message
>> news:e6mf4e$mmu$1@utils.eclipse.org...
>>
>>>I try to use the BIRT 2.1 Report Engine API in a simple Java Application
>>>(no plugin project).
>>>
>>>However, I'm getting NPEs for hours now:
>>>
>>>EngineConfig config = new EngineConfig();
>>>config.setEngineHome("c:/birt/birt-runtime-2_1_0/ReportEngine ");
>>>// (System out states: 'Can't load the report engine')
>>>ReportEngine engine = new ReportEngine(config); // <==== NPE !
>>>
>>>I tracked this down to
>>>" org.eclipse.birt.core.framework.Platform#startup(PlatformCon fig) ".
>>>
>>>
>>>============== snip =================
>>>// start up the OSGI framework
>>>try
>>>{
>>>launcher = new OSGILauncher( );
>>>// startup the OSGi framework,
>>>launcher.startup( config );
>>>// the core plugins is loaded in the start up
>>>// 1. platform should not be null any more.
>>>// 2. the IFactoryService has been registed
>>>// see
>>>// org.eclipse.birt.core.plugin.CorePlugin#start(BundleContext
>>>// context).
>>>
>>>assert platform != null; // <===== platform *is* null for me !!
>>>
>>>}
>>>catch ( Exception ex )
>>>{
>>>platform = null;
>>>throw new BirtException( "Can't startup the OSGI framework",
>>>new Object[]{}, ex );
>>>}
>>>================ snap =================
>>>
>>>Hm, no exception here, but platform==null and no IFactoryService around
>>>:-( .....
>>>
>>>
>>>Any ideas what this could be?
>>>I see tricky ClassLoader stuff in there, perhaps something is wrong with
>>>my execution setting?
>>>
>>>
>>>Thanks in advance !
>>> Florian
>>>
>>
>>
>>
>
>
Previous Topic:Page (html document)-level Javascripting - is possible?
Next Topic:Design Engine Error
Goto Forum:
  


Current Time: Tue Jul 29 15:09:39 EDT 2014

Powered by FUDForum. Page generated in 0.02278 seconds