Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Error code:EXTENSION_POINT_NOT_FOUND
Error code:EXTENSION_POINT_NOT_FOUND [message #156738] Thu, 27 April 2006 13:22 Go to next message
Ã?nder Ã?lker is currently offline Ã?nder Ã?lkerFriend
Messages: 18
Registered: July 2009
Junior Member
Hi all,

When I try to run this code (below), it gives an error. I could not find
the reason. Could you please help me.

Onder.

Error;
org.eclipse.birt.report.model.metadata.ExtensionLoader
logExtenstionException
[java] SEVERE: Message:The extension point
[org.eclipse.birt.report.model.reportItemModel] is not found. Error
code:EXTENSION_POINT_NOT_FOUND

My code (which I have taken from eclipse site - dedemo.java)

// Create a session handle. This is used to manage all open designs.
// Your app need create the session only once.

SessionHandle session = DesignEngine.newSession( null );

// Create a new report design.

ReportDesignHandle design = session.createDesign( );

// The element factory creates instances of the various BIRT elements.

ElementFactory factory = design.getElementFactory( );

// Create a simple master page that describes how the report will
// appear when printed.
//
// Note: The report will fail to load in the BIRT designer
// unless you create a master page.

DesignElementHandle element = factory.newSimpleMasterPage( "Page Master"
); //$NON-NLS-1$
design.getMasterPages( ).add( element );

// Create a grid and add it to the "body" slot of the report
// design.

GridHandle grid = factory.newGridItem( null, 2 /* cols */, 1 /* row */ );
design.getBody( ).add( grid );

// Note: Set the table width to 100% to prevent the label
// from appearing too narrow in the layout view.

grid.setWidth( "100%" ); //$NON-NLS-1$

// Get the first row.

RowHandle row = (RowHandle) grid.getRows( ).get( 0 );

// Create an image and add it to the first cell.

ImageHandle image = factory.newImage( null );
CellHandle cell = (CellHandle) row.getCells( ).get( 0 );
cell.getContent( ).add( image );
image.setURI( "http://www.eclipse.org/birt/tutorial/multichip-4.jpg" );
//$NON-NLS-1$

// Create a label and add it to the second cell.

LabelHandle label = factory.newLabel( null );
cell = (CellHandle) row.getCells( ).get( 1 );
cell.getContent( ).add( label );
label.setText( "Hello, world!" ); //$NON-NLS-1$

// Save the design and close it.

design.saveAs( "sample.rptdesign" ); //$NON-NLS-1$
design.close( );

// We're done!

I think it is about a .jar (which jar ?)

Regards,
Onder.
Re: Error code:EXTENSION_POINT_NOT_FOUND [message #156791 is a reply to message #156738] Thu, 27 April 2006 15:12 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

If you are using BIRT 2.1 RC0 or 1 this is a know issue and should be fixed
in RC2.

Jason

"Onder" <onderulker@gmail.com> wrote in message
news:36b4d6c694c9b11bf17e32aa6ff73c3a$1@www.eclipse.org...
> Hi all,
> When I try to run this code (below), it gives an error. I could not find
> the reason. Could you please help me.
> Onder.
>
> Error; org.eclipse.birt.report.model.metadata.ExtensionLoader
> logExtenstionException
> [java] SEVERE: Message:The extension point
> [org.eclipse.birt.report.model.reportItemModel] is not found. Error
> code:EXTENSION_POINT_NOT_FOUND
> My code (which I have taken from eclipse site - dedemo.java)
>
> // Create a session handle. This is used to manage all open designs.
> // Your app need create the session only once.
>
> SessionHandle session = DesignEngine.newSession( null );
>
> // Create a new report design.
>
> ReportDesignHandle design = session.createDesign( );
>
> // The element factory creates instances of the various BIRT elements.
>
> ElementFactory factory = design.getElementFactory( );
>
> // Create a simple master page that describes how the report will
> // appear when printed.
> //
> // Note: The report will fail to load in the BIRT designer
> // unless you create a master page.
>
> DesignElementHandle element = factory.newSimpleMasterPage( "Page
> Master" ); //$NON-NLS-1$
> design.getMasterPages( ).add( element );
>
> // Create a grid and add it to the "body" slot of the report
> // design.
>
> GridHandle grid = factory.newGridItem( null, 2 /* cols */, 1 /* row */ );
> design.getBody( ).add( grid );
>
> // Note: Set the table width to 100% to prevent the label
> // from appearing too narrow in the layout view.
>
> grid.setWidth( "100%" ); //$NON-NLS-1$
>
> // Get the first row.
>
> RowHandle row = (RowHandle) grid.getRows( ).get( 0 );
>
> // Create an image and add it to the first cell.
>
> ImageHandle image = factory.newImage( null );
> CellHandle cell = (CellHandle) row.getCells( ).get( 0 );
> cell.getContent( ).add( image );
> image.setURI( "http://www.eclipse.org/birt/tutorial/multichip-4.jpg" );
> //$NON-NLS-1$
>
> // Create a label and add it to the second cell.
>
> LabelHandle label = factory.newLabel( null );
> cell = (CellHandle) row.getCells( ).get( 1 );
> cell.getContent( ).add( label );
> label.setText( "Hello, world!" ); //$NON-NLS-1$
>
> // Save the design and close it.
>
> design.saveAs( "sample.rptdesign" ); //$NON-NLS-1$
> design.close( );
>
> // We're done!
>
> I think it is about a .jar (which jar ?)
> Regards, Onder.
>
Re: Error code:EXTENSION_POINT_NOT_FOUND [message #157002 is a reply to message #156791] Fri, 28 April 2006 07:25 Go to previous messageGo to next message
Ã?nder Ã?lker is currently offline Ã?nder Ã?lkerFriend
Messages: 18
Registered: July 2009
Junior Member
Jason, thanks for answer.

I'm using BIRT 2_0_1 version. Not RC0 or 1. I think this problem is
relevant to 2.0.1 version.

Is there any way for prepairing report with out using report editor? I
want to prepare generic reports. User needs to select chart type and
related columns from user interface. That's why I could not use static
report design.

Is there any way for this? If there is, where can I find samples or
tutorials?

Thanks a lot, my regards.

Onder.
Re: Error code:EXTENSION_POINT_NOT_FOUND [message #157159 is a reply to message #157002] Fri, 28 April 2006 14:10 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Onder,

Take a look at this page.
http://www.eclipse.org/birt/phoenix/deploy/designEngineAPI.p hp

Make sure you have BIRT_HOME set. The error you are having indicates that
the plugins directory is not being found.

Jason

"Onder" <onderulker@gmail.com> wrote in message
news:29cbfa4b17c1421d4c1eb7518026fcfb$1@www.eclipse.org...
> Jason, thanks for answer.
> I'm using BIRT 2_0_1 version. Not RC0 or 1. I think this problem is
> relevant to 2.0.1 version.
> Is there any way for prepairing report with out using report editor? I
> want to prepare generic reports. User needs to select chart type and
> related columns from user interface. That's why I could not use static
> report design.
> Is there any way for this? If there is, where can I find samples or
> tutorials?
>
> Thanks a lot, my regards.
>
> Onder.
>
Re: Error code:EXTENSION_POINT_NOT_FOUND [message #157403 is a reply to message #157159] Mon, 01 May 2006 14:42 Go to previous messageGo to next message
Ã?nder Ã?lker is currently offline Ã?nder Ã?lkerFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks Jason,

I have new question about BIRT_HOME.

Which must be the path (system variable) :
1) C:\birtruntime\birt-runtime-2_0_1\Report Engine
2) C:\eclipse
3) The relation between birt_home and org.eclipse.sdk_3.1.0 is what (if
there is)? And how do I make this relation?

1 and 2 has a plugin directory. I have tried both but I couldn't fixed the
problem.

In addition, do I have to add any thing to like; path=%BIRT_HOME%\plugin
or path=%BIRT_HOME% or somethingelse?

My other question is, do I have to make any path like eclipse_home or
eclipse sdk?

Regards,

Onder.
Re: Error code:EXTENSION_POINT_NOT_FOUND [message #157458 is a reply to message #157403] Mon, 01 May 2006 16:05 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Onder,

BIRT_HOME should be set to 1.
There is no relation between 1 and 2.
Just set BIRT_HOME to C:\birtruntime\birt-runtime-2_0_1\Report Engine.

You do not have to set any other variable.
Here is an example. In this example I set BIRT_HOME by just creating an
EngineConfig class. It is probably better to have as an Environ variable
though.

Jason

import java.io.IOException;

import org.eclipse.birt.report.engine.api.EngineConfig;
import org.eclipse.birt.report.model.api.CellHandle;
import org.eclipse.birt.report.model.api.DesignElementHandle;
import org.eclipse.birt.report.model.api.DesignEngine;
import org.eclipse.birt.report.model.api.ElementFactory;
import org.eclipse.birt.report.model.api.GridHandle;
import org.eclipse.birt.report.model.api.ImageHandle;
import org.eclipse.birt.report.model.api.LabelHandle;
import org.eclipse.birt.report.model.api.ReportDesignHandle;
import org.eclipse.birt.report.model.api.RowHandle;
import org.eclipse.birt.report.model.api.SessionHandle;
import org.eclipse.birt.report.model.api.TableHandle;
import org.eclipse.birt.report.model.api.activity.SemanticException ;

public class CreateReport {

static void createReport()throws IOException, SemanticException

{

//Engine Configuration - set and get temp dir, BIRT home, Servlet context
EngineConfig config = new EngineConfig();
config.setEngineHome( "C:/birt-runtime-2_0_1/birt-runtime-2_0_1/Report
Engine" );

// Create a session handle. Use Default Locale
SessionHandle session = DesignEngine.newSession( null );

// Create a new report design.
ReportDesignHandle design = session.createDesign( );

// The element factory creates instances of the various BIRT elements.
ElementFactory factory = design.getElementFactory( );

// Create a simple master page
DesignElementHandle element = factory.newSimpleMasterPage( "Page
Master" );
design.getMasterPages( ).add( element );

// Create a grid and add it to the "body" slot of the report
// design.
GridHandle grid = factory.newGridItem( null, 2 /* cols */, 1 /* row */ );
design.getBody( ).add( grid );

TableHandle th = factory.newTableItem("test",2);


design.getBody( ).add( th );
th.setWidth("100%");

grid.setWidth( "100%" );
// Get the first row of grid.
RowHandle row = (RowHandle) grid.getRows( ).get( 0 );

// Create an image and add it to the first cell.

ImageHandle image = factory.newImage( null );
CellHandle cell = (CellHandle) row.getCells( ).get( 0 );
cell.getContent( ).add( image );

image.setURI( "\"c:/test/CreateReport/images/eclipseconlogo.jpg\"" );

// Create a label and add it to the second cell.

LabelHandle label = factory.newLabel( null );
cell = (CellHandle) row.getCells( ).get( 1 );
cell.getContent( ).add( label );
label.setText( "Welcome to EclipseCon!" );

// Save the design and close it.

design.saveAs( "c:/test/CreateReport/EclipseCon.rptdesign" );
design.close( );
session.closeAll(true);
System.out.println("Finished!");

}
public static void main(String[] args) {
try
{
createReport( );
}
catch ( Exception e )
{
e.printStackTrace();
}
}

}


"Onder" <onderulker@gmail.com> wrote in message
news:b1f70f2c005f06442d3c265fa8144257$1@www.eclipse.org...
> Thanks Jason,
> I have new question about BIRT_HOME.
>
> Which must be the path (system variable) :
> 1) C:\birtruntime\birt-runtime-2_0_1\Report Engine
> 2) C:\eclipse
> 3) The relation between birt_home and org.eclipse.sdk_3.1.0 is what (if
> there is)? And how do I make this relation?
>
> 1 and 2 has a plugin directory. I have tried both but I couldn't fixed the
> problem.
> In addition, do I have to add any thing to like; path=%BIRT_HOME%\plugin
> or path=%BIRT_HOME% or somethingelse?
>
> My other question is, do I have to make any path like eclipse_home or
> eclipse sdk?
>
> Regards,
>
> Onder.
>
Previous Topic:extension point [org.eclipse.birt.report.model.reportItemModel] is not found The output format h
Next Topic:problems with daily build <20060430-1302>
Goto Forum:
  


Current Time: Fri Sep 27 22:47:16 GMT 2024

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

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

Back to the top