Questions tagged [datasource]

Datasource is a name given to the connection set up to a database from a server. The name is commonly used when creating a query to the database. The database source name (DSN) does not have to be the same as the filename for the database.

A data source is any of the following types of sources for (mostly) digitized data:

  • a database (in the Java software platform, datasource is a special name for the connection set up to a database from a server)
  • a computer file
  • a data stream

Please see more here (Wikipedia entry for Datasource) and here (Java 6 Datasource interface documentation)

4483 questions
1
vote
0 answers

Access camel blueprint dataSource reference in java

I defined a dataSource in a blueprint.xml which is deployed on karaf:
Milla
  • 393
  • 1
  • 4
  • 18
1
vote
1 answer

Grafana DataSource response data format

I'm writing a fairly simple data source for Grafana and I'm having issues with the response to the query function usually located in datasource.js. I get this error message every time a query is made: Data source query result invalid, missing data…
Sviests
  • 13
  • 3
1
vote
2 answers

org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to com.mysql.jdbc.Connection

geeting org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to com.mysql.jdbc.Connection by using tomcat server and mysql database please find below code. Please help me how to resolve this. context.xml
sathyay
  • 11
  • 2
1
vote
2 answers

Delete Item from ListBox with DataSource

I have a listbox whose DataSource is a List who contains folders name. I want delete the folders from listbox and the path, but the first it doesn't work. Here the code: private static List themesF; public Form1() { …
Seeker
  • 13
  • 5
1
vote
2 answers

DataGridView bind to a list of Objects which contain a Dictionary

I am successfully binding to a list of objects and setting this as the DataGridViews datasource. Definiting columns, at run time, which include the appropriate DataPropertyNames. However I now need to add a list to my object class. The size of this…
TheGrovesy
  • 131
  • 2
  • 12
1
vote
1 answer

C# DataGridView to Excel File errors

I've coded this following a youtube tutorial, on the tutorial the DataSource is an AOD.NET Entity Data Model where I've used an Access Database instead. I've compiled the code but am getting various errors like The name 'productBindingSource' does…
UserSN
  • 691
  • 1
  • 4
  • 25
1
vote
1 answer

Coldfusion - Session.dsn Confusion

I'm being tasked to help with a slow takeover of a large ColdFusion app for our organization. I'm not finding the syntax or functions terribly hard to understand, but I do have one thing I can't find an answer to:
Jensen010
  • 295
  • 2
  • 16
1
vote
2 answers

grid view asp.net show header if no data

i want to show a grid view' header even if the data source that bound to the grid is empty? Is there any way to achieve the same without adding a BLANK row?
Rauf
  • 10,916
  • 19
  • 67
  • 115
1
vote
1 answer

weblogic.jdbc.common.internal.RmiDataSource_12212_WLStub cannot be cast to javax.sql.DataSource

My app is trying to access DataSource through JNDI on Weblogic(12) Server. The following exception is thrown weblogic.jdbc.common.internal.RmiDataSource_12212_WLStub cannot be cast to javax.sql.DataSource Where is this class…
Chandu
  • 1,205
  • 4
  • 19
  • 34
1
vote
2 answers

Spring boot multiple datasources

I have a problem with an application using spring boot in 1.5.1 version. My application need to communicate with 2 databases (Oracle and MySQL) My application use 2 datasources : - MySQL datasource @Configuration public class OracleDBConfig { …
Ahmed
  • 76
  • 8
1
vote
1 answer

ColdFusion is not connecting datasource with SQL Server 2014

I am trying to connect datasource in coldfusion admin with my local sql server 2014 but it is not connecting . I have tried every method to do this but no success. I have also created new user but it is also not working. I am getting this…
1
vote
1 answer

How to read all data from druid datasource

I am using below json to read all data from a druid datasource. But in the request threshold field/value is mandatory. It returns number of rows specified in threshold. { "queryType" : "select", "dataSource" : "wikiticker", …
sidnakoppa
  • 71
  • 4
1
vote
1 answer

Bind Property of Property to GridView

Hey, I would like to show the title and the price of a movie in my Gridview. The title and price are properties from the class Movie and Movie is a property of the class CartItem. Here is the Code of my gridview
Vinzcent
  • 1,378
  • 6
  • 32
  • 59
1
vote
0 answers

Defining a datasource resource in tomcat context.xml

I'm using Spring batch and spring batch admin and i write in applicationContext this code, defining a bean called dataSource: Now, i would change this code, defining my…
user2520969
  • 1,199
  • 5
  • 17
  • 25
1
vote
1 answer

Specifying schema name while creating ConnectionPool

I am using the commons-dbcp2 library for JdbcConnectionPooling: org.apache.commons commons-dbcp2 2.1.1 When i am initializing…