Quantcast
Channel: BIRT Exchange Forum Feed
Viewing all 542 articles
Browse latest View live

remove header and footer

$
0
0
Hi,
Now i generate report with birt api, and my report always has the header and footer , how can i drop them?

thanks

informations about BIRT Scripting

$
0
0
Hi, i'm a new user of BIRT Editor and i need some help in BIRT using. I'm supposed to create a report which respect these rules:

- in even(impair) page number, the field "TLD Signature" is displayer in the footer
- the report list a group of "SCOUT accounts" with a description of each one, when a description ends in a even page number, we must have a pagebreak and a blank page before the next "SCOUT account" description.


So my questions are: How can i manage pagebreak and blank page creation in relation to the page number? How can i manage field display in relation to the page number?

I hope my topic is understandable cause i'm french and my english is not really perfect.

How do i use word wrap in report design?

$
0
0
Hi all,

I am using Birt report version 2.3.2.

I created a design in JDBC datasource and access the data.

and the dataset value is dateSetRow["CompnayName"]="sdssssssssssssssssssssssssssssssssssddddddfsfsfdsfdsfsdfsdfdsssssssssssssssssssss" like this.

I display the character is one line with out break the word when i view the report.

But i want to apply the Word wrap to that column.

Can I do this?

Please help me.

Setting column decimal format with Java Design API

$
0
0
Hi, I am trying to set the format of a numeric cell using the Design API to 2 decimal places to no avail.

I have tried the method suggested by the following post : Changing column decimal format with the DE
to no avail.

My code looks like this:

String colFormat="#0.00";
DataItemHandle dih =(DataItemHandle)cell.getContent().get(0);
NumberFormatValue nfs=new NumberFormatValue();
nfs.setPattern(colFormat);
dih.clearProperty(StyleHandle.NUMBER_FORMAT_PROP);
dih.setProperty( StyleHandle.NUMBER_FORMAT_PROP, nfs );


but to no avail. It formats the string 1 only as "1.0" instead of "1.00" as I would expect.

I took a look at what was in the report design file and the XML for the column looks like this:

 <cell id="341">
                        <property name="paddingBottom">0.1pt</property>
                        <data name="data_ratio" id="342">
                            <structure name="numberFormat">
                                <property name="pattern">#0.00</property>
                            </structure>
                            <property name="textAlign">center</property>
                            <property name="height">8pt</property>
                            <property name="width">24pt</property>
                            <property name="resultSetColumn">ratio</property>
                        </data>
                    </cell>


Does anyone have any ideas?

Thanks.

Displaying Current Date and time

$
0
0
Hi. I am trying to display the current date and time in a report footer. Although, my PC is set to EST, the report is displaying the GMT. How can I get the correct time to display?

Here is what I am currently using in the footer:

<VALUE-OF format="mm-dd-yyyy kk:mm:ss">new Date()</value-of>

Thanks,
Maria

Multi-Date Select Parameter

$
0
0
I am using the free version of BIRT (v4.22) with the JSCal2 plugin for data picker parameters. I would like the user to be able to hold the <CTRL> key and select multiple dates.

Is this possible?

Jim

How to handle empty crosstab

$
0
0
In a crosstab, I would like to display a message 'No Data' when a crosstab filters out certain data and there ends up being no rows.

inline style doesn't work for excel emitter

$
0
0
I have a rptdesign file that when used to create a pdf, works flawlessly, but when asked to emit an excel spreadsheet, it fails.

I have a list which contains a repeating grid. The grid repeats for each row in the list's dataset. I need the grid elements to repeat horizontally and only wrap underneath when the margin is hit. I'm using a display style of "inline" for the grid to get the proper effect.

This works perfectly in pdf, but excel pushes each grid element under the previous one effectively stacking them instead of moving them horizontally.

I tried a very simple example of this with two labels. I give them "inline" displays and they show up horizontally in pdf, but vertically in excel.

Any ideas?


Greg

Passing Date Paramter directly to Data Set qualification in ODA Data Source

$
0
0
Hello Everyone,

We are using BMC Remedy AR System ODA Data Source for developing our reports.
And almost all the reports have Date Time fields (From Date and To Date)as parameters.
The concern is that how can I use these parameters for querying the Data Set directly in the 'Data Set Qualification'.

I have attached a screenshot to show how the Qualification area becomes available on selecting the Remedy ODA Data Source.

Any suggestions ?

P.S : I do not want to use these parameters to be used in the 'Filters' for the Data Set.

Any suggestions ?

How to create a subreport using BIRT Report Designer on ClearQuest v7.1.2

$
0
0
Hi. I am new using BIRT Report Designer on ClearQuest 7.1.2. I am trying to create a report with two(2) subreports in it.

First Dataset I have the Id
Second Dataset I have Id, Project, Status

I want that for example:
Id = 0001

Create a report like
Id 0001

Project ABC
Status Active

Id 0002

Project BCD
Status Closed

I tried several ways using the the table binding without luck. Can any one knows how to create this kind od report using BIRT Report Designer on ClearQuest v7.1.2?  Birt Report Designer with ClearQuest v7.1.2 - How to create a subreport.pdf (232.07K)
: 4

expanding the x-axis dynamically

$
0
0
I have charts in which x-axis displays the name of the agents as per the records in db. Now what happens is sometimes i have only 3-4 records the hart displays well but when I have more than 10 or 15 records the x-axis skips to display the name of some of the agents. How can I fix this issue? Like the chart should be able to accommodate the necessary changes expand or shrink depending on the amount of data and the problem is solely with the x-axis.

Thanks in advance,
Megha

How to acheive report as displayed in attached image

$
0
0
Hi BIRT Guru,

Can you please guide me how to design report which i attached below.
I want to have sum of both groups as well as sum of each row which i clearly mentioned in attached image.

Bottom 5 rows are footer row to have sumation of "ABC" and "XYZ".

Regards,
Bokya

Report Emitter performance very slow

$
0
0
We have J2EE application running on JBOSS7.1.1Final integrated with BIRT 3.7.2 via spring frame work. Our reports outputs to Excel, Word, PDF, HTML and PPT. We created a singleton for Report Engine/Platform and just use the same report engine every time we run a report in mutli threaded environment.

We are noticing that when we stress out the application BIRT emitters writing the data to output file very slow. When we bounce JBOSS we notice normal behavior. But as we increase the number of reports run we notice the emitter performance degrade even though we're only at about 25% CPU intensive.

Any idea what cause the performance degrade? This is a show stopper for us to go live.

I appreciate for your help.

Here is the code we are using:

public void start() {
if (log.isDebugEnabled()) {
log.debug("Starting Eclipse BIRT platform");
}

try {
Platform.startup(engineConfig);
} catch (BirtException be) {
throw new IllegalArgumentException("Failure starting BIRT platform", be);
}
}

public IReportEngine getReportEngine() {
if (reportEngine == null) {
if (log.isDebugEnabled()) {
log.debug("Creating new instance of report engine.");
}
reportEngineFactory = (IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);

reportEngine = reportEngineFactory.createReportEngine(engineConfig);
}

return reportEngine;
}

public void executeReport(IReportEngine reportEngine, Connection theConnection, ReportingMessage msg) throws Exception {
logger.info("Report : " + reportingLocation );

String rptDesign = getApplicationConfiguration().get(ReportConstants.REPORT_ROOT_DIR)+ msg.getReportDesingFile();

IReportRunnable runnable;
try {
runnable = reportEngine.openReportDesign(new ClassPathResource(rptDesign).getInputStream());
IRunAndRenderTask runAndRenderTask = reportEngine.createRunAndRenderTask(runnable);
ModuleHandle birtReport = runnable.getDesignHandle().getModuleHandle();
runAndRenderTask.getAppContext().put("birt_engine",new Boolean(true));

runAndRenderTask.setParameterValue(ReportConstants.REPORT_CHARID_PARM_KEY, msg.getReportCharID());
runAndRenderTask.setParameterValue(ReportConstants.REPORT_DPVID_PARM_KEY,msg.getDomainProposalVersionId());

//set the passed in connection...
runAndRenderTask.getAppContext().put(ReportConstants.REPORT_ODADRIVER_CONNECTION_PARM_KEY, theConnection);

HTMLRenderOption htmlRenderOption = new HTMLRenderOption();
String outputFileName = reportingLocation.getPreStageReportPath()+reportingLocation.getReportName();
htmlRenderOption.setOutputFileName( outputFileName );
htmlRenderOption.setOutputFormat(msg.getOutputFormat());//ReportConstants.EXCEL_OUTPUT_FORMAT);
runAndRenderTask.setRenderOption(htmlRenderOption);
runAndRenderTask.run();
runAndRenderTask.close();
} catch (Exception e) {
logger.error("Exception ", e);
throw new Exception("BIRT Failed to run report \n"+e.getMessage());
} catch (Throwable t) {
logger.error("Throwable ", t);
throw new Exception("BIRT Failed to run report \n"+errorMessage);
}
}


Thanks
Krishna

birt drop down parameter page, loading VERY slow

$
0
0
Hello:
I am learning BIRT while doing a project using it. I have a report page which presents the user with list of dates as a drop down to select and pass it to the report as an input parameter. The list contains 20M records. I have set up proper indexes on the database so the query hardly takes less than 1 sec to retrieve the list. It is getting way sloooooow when BIRT is presenting the results in a drop down of the parameter list. Is there a work around/ fix to resolve this issue? I am using tomcat, birt report viewer application.

Birt report in IE9 with GWT and HTML5

$
0
0
Hi,

In our application we are using GWT with HTML5 for developing the UI.
For smooth rendering of the UI in IE9 and above we used the following meta tag information.

<meta http-equiv="X-UA-Compatible" content="IE=8; IE=9">

The above tag has been included as a header in all the pages to render the UI as expected.
When we are trying to include the Birt report via iframe the parameter popup of birt report is not visible to enter the parameter values.
This problem aris only in IE9 and above.
As per the solution found in forums adding <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> the tag has to work.
However this solution is not working since we are already providing a meta tag in the header.

Can somebody provide as a solution will be more helpfull or is there any work arround to eleminate the header tag while rendering the report?
We are facing this problem only in IE9 and above browsers.

Note: If we remove the meta tag from the header the UI compatible with IE9 and above is broken since we are using HTML5.

Thanks in adavance.

Regards,
V.Murugan

Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.dbprofile

$
0
0
Hi,

I am having some trouble deploying a BIRT report via Tomcat and BIRT-Viewer.
I have created a very simple test report with a single postgres data source (no connection profile!) and put it into

\webapps\birt-viewer\test_project\test\new_report.rptdesign

I have put the potgres driver into
\webapps\birt-viewer\WEB-INF\lib\postgresql-9.2-1002.jdbc4

and referred to it in the data source.

When I run the report as HTML preview everything is fine, but when I deploy it and try to access it via Tomcat, the following error is shown:

org.eclipse.birt.report.engine.api.EngineException: An exception occurred during processing. Please see the following message for details:
Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.dbprofile.
org.eclipse.datatools.connectivity.oda.OdaException ;
java.lang.IllegalStateException: Unable to determine the default workspace location. Check your OSGi-less platform configuration of the plugin or datatools workspace path.
   at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1239)
   at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1218)
   at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:96)
   at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)
   at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
   at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:46)
   at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
   at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
   at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34)
   at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)
   at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
   at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
   at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:249)
   at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:269)
   at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:86)
   at org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1325)
   at org.eclipse.birt.report.service.BirtViewerReportService.runReport(BirtViewerReportService.java:158)
   at org.eclipse.birt.report.service.actionhandler.BirtRunReportActionHandler.__execute(BirtRunReportActionHandler.java:81)
   at org.eclipse.birt.report.service.actionhandler.BirtGetPageActionHandler.__checkDocumentExists(BirtGetPageActionHandler.java:58)
   at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.prepareParameters(AbstractGetPageActionHandler.java:119)
   at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.__execute(AbstractGetPageActionHandler.java:104)
   at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
   at org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47)
   at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:143)
   at org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetPage(BirtDocumentProcessor.java:87)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(AbstractBaseComponentProcessor.java:112)
   at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
   at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
   at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
   at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
   at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
   at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
   at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
   at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
   at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
   at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
   at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: org.eclipse.birt.report.data.adapter.api.AdapterException: An exception occurred during processing. Please see the following message for details:
Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.dbprofile.
org.eclipse.datatools.connectivity.oda.OdaException ;
java.lang.IllegalStateException: Unable to determine the default workspace location. Check your OSGi-less platform configuration of the plugin or datatools workspace path.
   at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.execute(DataRequestSessionImpl.java:654)
   at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:152)
   at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:83)
   at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:267)
   at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1941)
   at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:80)
... 65 more
Caused by: org.eclipse.birt.data.engine.odaconsumer.OdaDataException: Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.dbprofile.
org.eclipse.datatools.connectivity.oda.OdaException ;
java.lang.IllegalStateException: Unable to determine the default workspace location. Check your OSGi-less platform configuration of the plugin or datatools workspace path.
   at org.eclipse.birt.data.engine.odaconsumer.ExceptionHandler.newException(ExceptionHandler.java:54)
   at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:177)
   at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:224)
   at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java:212)
   at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource(DataSourceRuntime.java:217)
   at org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSource(QueryExecutor.java:435)
   at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:322)
   at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:455)
   at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.produceQueryResults(PreparedDataSourceQuery.java:190)
   at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:178)
   at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute(PreparedOdaDSQuery.java:153)
   at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.execute(DataRequestSessionImpl.java:634)
... 70 more
Caused by: org.eclipse.datatools.connectivity.oda.OdaException ;
java.lang.IllegalStateException: Unable to determine the default workspace location. Check your OSGi-less platform configuration of the plugin or datatools workspace path.
   at org.eclipse.birt.report.data.oda.jdbc.dbprofile.impl.Connection.open(Connection.java:116)
   at org.eclipse.birt.report.data.oda.jdbc.dbprofile.impl.Connection.open(Connection.java:62)
   at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaConnection.open(OdaConnection.java:250)
   at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:165)
... 80 more
Caused by: java.lang.IllegalStateException: Unable to determine the default workspace location. Check your OSGi-less platform configuration of the plugin or datatools workspace path.
   at org.eclipse.datatools.connectivity.internal.ConnectivityPlugin.getDefaultStateLocation(ConnectivityPlugin.java:155)
   at org.eclipse.datatools.connectivity.internal.ConnectivityPlugin.getWorkspaceFilePath(ConnectivityPlugin.java:178)
   at org.eclipse.datatools.connectivity.drivers.DriverManager.wereDefaultDriversCreated(DriverManager.java:549)
   at org.eclipse.datatools.connectivity.drivers.DriverManager.resetDefaultInstances(DriverManager.java:840)
   at org.eclipse.datatools.connectivity.drivers.DriverManager.(DriverManager.java:125)
   at org.eclipse.datatools.connectivity.drivers.DriverManager.getInstance(DriverManager.java:67)
   at org.eclipse.datatools.connectivity.DriverConnectionBase.getDriverDefinition(DriverConnectionBase.java:136)
   at org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverConnectionBase.java:100)
   at org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:54)
   at org.eclipse.datatools.enablement.internal.postgresql.PostgreSQLJDBCConnection.(PostgreSQLJDBCConnection.java:47)
   at org.eclipse.datatools.enablement.internal.postgresql.PostgreSQLConnectionFactory.createConnection(PostgreSQLConnectionFactory.java:51)
   at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83)
   at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359)
   at org.eclipse.datatools.connectivity.sqm.internal.core.connection.ConnectionInfoImpl.initializeJDBCConnection(ConnectionInfoImpl.java:705)
   at org.eclipse.datatools.connectivity.sqm.internal.core.connection.ConnectionInfoImpl.(ConnectionInfoImpl.java:690)
   at org.eclipse.datatools.connectivity.sqm.internal.core.connection.ConnectionFactory.createConnection(ConnectionFactory.java:38)
   at org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFactory.createConnection(SQMConnectionFactory.java:45)
   at org.eclipse.datatools.connectivity.sqm.internal.core.connection.ConnectionFactory.createConnection(ConnectionFactory.java:59)
   at org.eclipse.datatools.connectivity.internal.ConnectionFactoryAdapterProvider.createConnection(ConnectionFactoryAdapterProvider.java:114)
   at org.eclipse.datatools.connectivity.internal.ManagedConnection.createConnection(ManagedConnection.java:163)
   at org.eclipse.datatools.connectivity.internal.CreateConnectionJob.run(CreateConnectionJob.java:56)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
 


I have read some enties on the boards, where the solution is somehow related to the usage (or better non-usage) of connection profiles. But since I do not use them at all ...

Has anyone of you around here mabye a hint where to look at?
Thanks!

Max

Adding In Missing Dates from Data Set into Report

$
0
0
Sorry I posted this twice by mistake. I can't see how to remove this one.




Hi All,

I am sure I am approaching this wrongly. I have a data set with the following data from a db. For this example the data is time spent in a shop.

Parameters:

Paramater Start Date = Sep 01
Paramater End Date = Sep 05

Data Set:

Datetime | Minutes Spent in Shop

Sep 01, 2012 3:36 AM | 10
Sep 02, 2012 5:36 AM | 20
Sep 05, 2012 5:36 AM | 10

This I cannot change. In the report I do not want to have missing dates. So for example with this data I would have a list that would not contain the Sep 03 and 04.

In My report I would like it to read.

Sep 01 | 10
Sep 02 | 20
Sep 03 | 0
Sep 04 | 0
Sep 05 | 10

Would it be best to create a scripted data set using the start and end parameters and joining them? I am not sure if this is even possible.

Thanks for looking

Andy Hulme

Fail with using JNDI connection

$
0
0
Hi,

I using a "file.xml" to set the connections attributes. If using all informations on "Data Souce" (driver, url, user, pw), the same of the "file.xml", it works, but the JNDI not work. I need help.

Informations of the tools:

JBOSS JBoss EAP 5.x Runtime Server
Birt Runtime_3.7.1
SGBD Oracle

        <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source" id="778">
            <list-property name="privateDriverProperties">
                <ex-property>
                    <name>metadataBidiFormatStr</name>
                    <value>ILYNN</value>
                </ex-property>
                <ex-property>
                    <name>disabledMetadataBidiFormatStr</name>
                </ex-property>
                <ex-property>
                    <name>contentBidiFormatStr</name>
                    <value>ILYNN</value>
                </ex-property>
                <ex-property>
                    <name>disabledContentBidiFormatStr</name>
                </ex-property>
            </list-property>
            <property name="odaJndiName">java:jdbc/IQOracleDS</property>
        </oda-data-source>



Error report:

org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.
at org.eclipse.birt.report.service.ReportEngineService.throwDummyException(ReportEngineService.java:1106)
at org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1326)
at org.eclipse.birt.report.service.BirtViewerReportService.runReport(BirtViewerReportService.java:158)
at org.eclipse.birt.report.service.actionhandler.BirtRunReportActionHandler.__execute(BirtRunReportActionHandler.java:81)
at org.eclipse.birt.report.service.actionhandler.BirtGetPageActionHandler.__checkDocumentExists(BirtGetPageActionHandler.java:58)
at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.prepareParameters(AbstractGetPageActionHandler.java:119)
at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.__execute(AbstractGetPageActionHandler.java:104)
at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:143)
at org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetPage(BirtDocumentProcessor.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(AbstractBaseComponentProcessor.java:112)
at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:269)
at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:85)
at org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1317)
... 56 more
Caused by: java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager.findDriver(JDBCDriverManager.java:746)
at org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager.registerDriver(JDBCDriverManager.java:903)
at org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager.doConnect(JDBCDriverManager.java:257)
at org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager.getConnection(JDBCDriverManager.java:214)
at org.eclipse.birt.report.data.oda.jdbc.Connection.connectByUrl(Connection.java:237)
at org.eclipse.birt.report.data.oda.jdbc.Connection.open(Connection.java:162)
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaConnection.open(OdaConnection.java:250)
at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:165)
at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:224)
at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java:212)
at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource(DataSourceRuntime.java:217)
at org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSource(QueryExecutor.java:407)
at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:317)
at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:455)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.produceQueryResults(PreparedDataSourceQuery.java:190)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:178)
at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute(PreparedOdaDSQuery.java:145)
at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.execute(DataRequestSessionImpl.java:620)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:152)
at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:80)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:267)
at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1905)
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:80)
at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:46)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:249)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:260)
... 58 more

frameset data differs from preview data

$
0
0
Hello,

I'm observing a strange problem. In preview-mode everything looks fine, but when I run in frameset-mode (our default) the row data is "moved" up by one row and thereby is a null-value in the last row. To make you understand the problem here are two screens to show the difference.

Preview (correct data)
Posted Image

Frameset (from row 2 everything is moved up by one row)
Posted Image

I'm using a ScriptedDataSet fetching the data with:
open
provider = new Packages.ReportProvider();
data = provider.getReportDetails(params["XXX"].value, params["startDate"].value, params["endDate"].value);
totalrows = data.size();
currentrow = 0;

fetch
if (currentrow >= totalrows) {
  return false;
}
var actualRow = data.get(currentrow);
row["XXX"] = actualRow[0];
row["XXX"] = actualRow[1];
...
row["XXX"] = actualRow[5];
row["totalrows"] = totalrows;

currentrow = currentrow + 1;
return true;


close
provider = null;
data = null;


I'm using birt-3.7.2 on GlassFish 3.1.2 (build 23) and I'm designing with Eclipse-Plugin (BIRT Framework 4.2.1).

Do you have any ideas how I get frameset working? Thanks in advance!

Localization of BIRT report using JAR files

$
0
0
I want to localize report generated from BIRT using .jar files instead of using .properties files. My jar file will access a DB (SQL server) which will return it the key value pairs for localisation. Can anybody help me with this and tell me how can i achieve this using a jar file. What should my jar file contain and how will my report use it?
Viewing all 542 articles
Browse latest View live