Breaking News
Home / Tag Archives: JDBC

Tag Archives: JDBC

Data truncation: Data too long for column – JDBC

Issue Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column ‘columname‘ at row 1     at com.mysql.jdbc.MysqlIO.checkErrorPacket(     at com.mysql.jdbc.MysqlIO.checkErrorPacket(     at com.mysql.jdbc.MysqlIO.sendCommand(     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(     at com.mysql.jdbc.ConnectionImpl.execSQL(     at com.mysql.jdbc.PreparedStatement.executeInternal(     at com.mysql.jdbc.PreparedStatement.executeUpdate(     at com.mysql.jdbc.PreparedStatement.executeUpdate(     at com.mysql.jdbc.PreparedStatement.executeUpdate(     at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(     at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(     at com.infuze.service.subscription.dao.SubscriptionDao.addSubscriptionTrail(     at com.infuze.service.subscription.workflow.SubscriptionAddonWorkflow.executeProcess(     … 10 more<!

Read More »

JDBC – link failure CommunicationsException

Exception Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.      at com.mysql.jdbc.SQLError.createCommunicationsException(     at com.mysql.jdbc.MysqlIO.<init>(     at com.mysql.jdbc.ConnectionImpl.coreConnect(     at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(     at com.mysql.jdbc.ConnectionImpl.createNewIO(     at com.mysql.jdbc.ConnectionImpl.<init>(     at com.mysql.jdbc.JDBC4Connection.<init>(     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(     <!

Read More »

What is JDBC URL format for MySQL Connector/J?

Answer: The JDBC URL format for MySQL Connector/J is as follows, with items in square brackets ([, ]) being optional: jdbc:mysql://[host][,failoverhost…][:port]/[database][?propertyName1][=propertyValue1][&propertyName2][=propertyValue2]… If the host name is not specified, it defaults to If the port is not specified, it defaults to 3306, the default port number for MySQL servers. [pb_builder]

Read More »

What the features of Solid DB (In Memory Database)?

The following are the features of a Solid DB, one of the fastest in memory databases. In-memory, relational database –solidDB keeps data in main memory at all times rather than on disk (data is still persistent)–Applications can take advantage of its capability through standard ODBC, JDBC, SQL interfaces.<!

Read More »

No Managed Connections Available

No Managed Connection Available, this exception is thrown when the client (some DAO) tries to get a database connection out of a pool (managed by connection manager) and there is no more connection available in the pool to return back.  This can happen in any connection pool e.g. a pool …

Read More »
Advertisment ad adsense adlogger