Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRuntime connection string problem
https://www.eclipse.org/forums/index.php/mv/msg/201363/643149/#msg_643149
I read this topic http://www.eclipse.org/forums/index.php?t=tree&th=197797 &S=10362157421a2a3c81ba12fc9c9376cd#page_top
and added this code to my WebReport.java
task.getAppContext().put("OdaJDBCDriverPassInConnection",conn);
the following error occured :
+ An exception occurred during processing. Please see the following message for details:
Failed to prepare the query execution for the data set: Users
Failed to prepare the following query for the data set type (org.eclipse.birt.report.data.oda.jdbc.dbprofile.sqbDataSet) .
[SELECT FULLNAME, LOGINNAME, WORKSITE, ISLOCKED, FAILEDLOGINCOUNT
FROM TUMUSER
WHERE VALIDTO IS NULL
]
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaHe lperException: The established connection to the data source is not active.
Can anyone help me plzzzzzzzzzzzzzz,it's so important]]>Shahab 2010-12-05T12:05:21-00:00Re: Runtime connection string problem
https://www.eclipse.org/forums/index.php/mv/msg/201363/643409/#msg_643409
Also instead of using the graphic sql builder can you try this with a
standard (non-profile) jdbc datasource?
Jason
On 12/5/2010 7:05 AM, Shahab wrote:
> I need to set JDBC connection info at runtime.
> I read this topic
> http://www.eclipse.org/forums/index.php?t=tree&th=197797 &S=10362157421a2a3c81ba12fc9c9376cd#page_top
>
> and added this code to my WebReport.java
> task.getAppContext().put("OdaJDBCDriverPassInConnection",conn);
> the following error occured :
>
>
> + An exception occurred during processing. Please see the following
> message for details:
> Failed to prepare the query execution for the data set: Users
> Failed to prepare the following query for the data set type
> (org.eclipse.birt.report.data.oda.jdbc.dbprofile.sqbDataSet) . [SELECT
> FULLNAME, LOGINNAME, WORKSITE, ISLOCKED, FAILEDLOGINCOUNT
> FROM TUMUSER
> WHERE VALIDTO IS NULL
> ]
> org.eclipse.datatools.connectivity.oda.consumer.helper.OdaHe
> lperException: The established connection to the data source is not active.]]>Jason Weathersby2010-12-06T18:55:51-00:00