Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Problem runing a report
Problem runing a report [message #144460] Thu, 16 March 2006 13:20 Go to next message
Julio Muñoz is currently offline Julio MuñozFriend
Messages: 31
Registered: July 2009
Member
Hi!, I'm trying to run a xml datasource report but it fails. This is the
trace:



org.eclipse.birt.data.engine.odaconsumer.PreparedStatement doSetProperty
ADVERTENCIA: Cannot set statement property.
java.lang.UnsupportedOperationException: IQuery.setProperty( String
propertyName, String propertyValue )
at
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaOb ject.handleUnsupportedOp(OdaObject.java:278)
at
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQu ery.setProperty(OdaQuery.java:229)
at
org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.d oSetProperty(PreparedStatement.java:154)
at
org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.s etProperty(PreparedStatement.java:136)
at
org.eclipse.birt.data.engine.executor.DataSourceQuery.addPro perties(DataSourceQuery.java:348)
at
org.eclipse.birt.data.engine.executor.DataSourceQuery.prepar e(DataSourceQuery.java:303)
...

any idea of what's happening?

thanks
Re: Problem runing a report [message #144672 is a reply to message #144460] Thu, 16 March 2006 18:59 Go to previous messageGo to next message
Steve Gutz is currently offline Steve GutzFriend
Messages: 70
Registered: July 2009
Member
If you look a few posts down you'll see that I am having the same problem.
I tracked it down to an invalid property.

MAX_ROWS gets a null value and that causes the unsupported operation
exception. However I haven't yet figured out why this is happening or where
MAX_ROWS is coming from..

Someone else must have seen this problem.

"Julio" <julio_munoz@audatex.es> wrote in message
news:ca58c5bd60647e9ee637f9b80826908e$1@www.eclipse.org...
> Hi!, I'm trying to run a xml datasource report but it fails. This is the
> trace:
>
>
>
> org.eclipse.birt.data.engine.odaconsumer.PreparedStatement doSetProperty
> ADVERTENCIA: Cannot set statement property.
> java.lang.UnsupportedOperationException: IQuery.setProperty( String
> propertyName, String propertyValue )
> at
>
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaOb ject.handleUnsup
portedOp(OdaObject.java:278)
> at
>
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQu ery.setProperty(
OdaQuery.java:229)
> at
>
org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.d oSetProperty(Pre
paredStatement.java:154)
> at
>
org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.s etProperty(Prepa
redStatement.java:136)
> at
>
org.eclipse.birt.data.engine.executor.DataSourceQuery.addPro perties(DataSour
ceQuery.java:348)
> at
>
org.eclipse.birt.data.engine.executor.DataSourceQuery.prepar e(DataSourceQuer
y.java:303)
> ..
>
> any idea of what's happening?
>
> thanks
>
Re: Problem runing a report [message #144680 is a reply to message #144460] Thu, 16 March 2006 19:08 Go to previous message
Steve Gutz is currently offline Steve GutzFriend
Messages: 70
Registered: July 2009
Member
Well no thanks to me but here's the answer to the problem:

EngineConfig config = new EngineConfig();
ReportEngine engine = new ReportEngine(config);
engine.changeLogLevel(Level.SEVERE);

The exception is a warning due to something unsupport in XML datasources.
This get's rid of the exception.

Many thanks to Sheldon Lee-Loy for pointing this out.

"Julio" <julio_munoz@audatex.es> wrote in message
news:ca58c5bd60647e9ee637f9b80826908e$1@www.eclipse.org...
> Hi!, I'm trying to run a xml datasource report but it fails. This is the
> trace:
>
>
>
> org.eclipse.birt.data.engine.odaconsumer.PreparedStatement doSetProperty
> ADVERTENCIA: Cannot set statement property.
> java.lang.UnsupportedOperationException: IQuery.setProperty( String
> propertyName, String propertyValue )
> at
>
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaOb ject.handleUnsup
portedOp(OdaObject.java:278)
> at
>
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQu ery.setProperty(
OdaQuery.java:229)
> at
>
org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.d oSetProperty(Pre
paredStatement.java:154)
> at
>
org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.s etProperty(Prepa
redStatement.java:136)
> at
>
org.eclipse.birt.data.engine.executor.DataSourceQuery.addPro perties(DataSour
ceQuery.java:348)
> at
>
org.eclipse.birt.data.engine.executor.DataSourceQuery.prepar e(DataSourceQuer
y.java:303)
> ..
>
> any idea of what's happening?
>
> thanks
>
Previous Topic:calculations using two datasets
Next Topic:Multi-select in combo box parameters?
Goto Forum:
  


Current Time: Thu Dec 26 15:31:54 GMT 2024

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

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

Back to the top