duplicate entry for key (1 reply)
hi 2 every1, i created a table 'empp' with 4 fields starting with 'eid', 'uname', 'password', 'first_name'. i made 'eid' as auto-increment nd assigned primary key to it. 'uname' is set as unique nd...
View ArticleIssues with connection Pool (1 reply)
i have an issue trying to connect through connection pooling with mysql5.0 and connector j 5.0 in tomcat and glassfish, was trying to make it work but it returns that cannot cast javax.sql.DataSource...
View Articledifference between a method and a function? (no replies)
What is the difference between a method and a function?? why we dont call a method as a funtion in java?
View Articleconnection error (3 replies)
hi I'm new to java,JDBC and MYSQL and I'm having trouble connecting to a database on my local host with JDBC i can connect with the mysql CLI client and work bench no problem its just when i try and...
View ArticleGetting data source error while making connection to database (no replies)
While I am trying to connect with database through jython, I am getting exception "unable to instantiate datasource" in line mysqlConn = zxJDBC.connectx(url, user, password, driver,CHARSET='iso_1') My...
View Articleneed reason behind float / f keyword while declaring it as a float numeric...
Hello, I need the reason behind using (float) / 'f' keywords while defining a float variable in java... eg. float f = 12.45f; or float f=(float)12.45; instead of: float f=12.45; as we write in c++.....
View ArticleMySQL JDBC driver not returning rows. (1 reply)
Hi I am running a Servlet deployed in JBoss 5.0 which uses Datasource to obtain the connection.I am querying the database for a value , but it returns empty resultset, eventhough data is available in...
View ArticleJConnection (no replies)
hi i used JConnection Package from shine enterprise java pattern to connect to data base from a java program. i feel its more clear. pleas tel me your idea about it if there is any way to make the...
View ArticleConnector/J replication eliminates load-balancing and vice versa (4 replies)
I have a replicated system with one master and multiple slave databases. I am having trouble configuring the database connection such that reads are being load-balanced between the slaves. My...
View ArticleJDBC mapping of TINYINT and SMALLINT (1 reply)
Hello, why does the JDBC connector map TINYINT and SMALLINT to Integer instead of java.lang.Byte and java.lang.Short as you'd expect? This can cause problems because code generators will pick up the...
View ArticleMySQL Connector/J: Load Balancing (no replies)
MySQL Connector/J: Load-balancing failover policies http://mysqlblog.fivefarmers.com/2010/07/07/connectorjs-load-balancing-failover-policies/ MySQL Connector/J: Load-balancing for auto-commit-enabled...
View Articlejpa/eclipselink setMaxResults() doesn't work with MySql - sql syntax error (1...
i am using mysql(connector 5.1.12 and db 5.1.47) in conjunction with eclipselink 2. nearly all went fine so far but now i tried to limit a select statements output with q.setMaxResults(x) but this...
View ArticleMSQL sample with Shine (no replies)
Shine enterprise pattern is a new pattern base on MVC for J2EE,J2SE,J2ME application. It has 1- Maplet Framework (MVC and Web Framework) 2- JShooter (Reflect Oriented Framework in Network) 3-...
View Articleshine and Oracle (no replies)
Shine Enterprise Java Pattern is an Open Source Java Pattern. Shine Enterprise Java Pattern is a Pattern for (J2SE, J2EE, J2ME) Applications. Shine Enterprise Java Pattern Frameworks and Libraries:...
View ArticleRESOLVED: jdbcDSN (no replies)
Hello all, I'm relatively new to MySQL and databases in general, and I am having some problems connecting one of my databases in MySQL to a java program called "D2R Map". For setting up the...
View ArticleJDBC driver localized message (no replies)
Hi, I'm try to find a version of connector JDBC with messages in french... Are you idea where can i find it ? Ronan
View ArticleMysql jdbc exception (no replies)
Hi, When I am trying to do an mvn install of mifos application I am getting the following error. Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The...
View ArticleConnections hang during long running test (3 replies)
Hi, It seems to be that during long running scaling test all db connections hangs. Example of hanging thread: "pool-8-thread-10" nid=220 state=RUNNABLE at java.net.SocketInputStream.socketRead0(Native...
View Article