on 07-06-2014 1:24 PM
Hi Kunal,
Can you share the steps you have tried? Maybe screenshots.
Rgrds,
JK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jitendra , Now I am trying to connect to MS SQL followed by your steps . But getting below error "Cannot create PoolableConnectionFactory (The TCP/IP connection to the host mssqlserver, port 1455 has failed. Error: "null. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".)" and also i have attached screen shot for more information. Can you please check it once ? Thanks & Regards, Kunal Varaiya
Please do not mix two different queries in a single thread otherwise it will be confusing for us and of-course others to find out exact answer related to your original question. Request you to raise a new thread if your question is related to MS SQL. Let this discussion go with HSQLDB only. Hope you understand.
Regards,
JK
Hi Kunal,
Few things to check:
Regards,
JK
PS: Follow this blog series.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jitendra , I am getting below error in server logs . But I dont know how to solve . Can you please help me to solve ? _____________________________________________________________________ 2014 06 05 15:35:40#+0400#ERROR#org.jgroups.protocols.SMP_JDBC_PING##anonymous#Timer-2,,###Error updating JDBC_PING table java.sql.SQLIntegrityConstraintViolationException: Column 'CLUSTER_NAME' cannot accept a NULL value. at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source) at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source) at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source) at org.jgroups.protocols.JDBC_PING.insert(JDBC_PING.java:263) at org.jgroups.protocols.JDBC_PING.writeToFile(JDBC_PING.java:244) at org.jgroups.protocols.FILE_PING$WriterTask.run(FILE_PING.java:257) at org.jgroups.util.TimeScheduler3$Task.run(TimeScheduler3.java:277) at org.jgroups.util.TimeScheduler3$RecurringTask.run(TimeScheduler3.java:308) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:791) Caused by: org.apache.derby.impl.jdbc.EmbedSQLException: Column 'CLUSTER_NAME' cannot accept a NULL value. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) ... 17 common frames omitted Caused by: org.apache.derby.iapi.error.StandardException: Column 'CLUSTER_NAME' cannot accept a NULL value. at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.impl.sql.execute.NormalizeResultSet.normalizeColumn(Unknown Source) at org.apache.derby.impl.sql.execute.NormalizeResultSet.normalizeRow(Unknown Source) at org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore(Unknown Source) at org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore(Unknown Source) at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source) at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source) at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source) ... 11 common frames omitted _____________________________________________________________________ Thanks & Regards, Kunal Varaiya
Hi Kunal,
Error updating JDBC_PING table java.sql.SQLIntegrityConstraintViolationException: Column 'CLUSTER_NAME' cannot accept a NULL value.
Not sure which JDBC_TABLE and CLUSTER_NAME it is pointing.
But you can make sure that:
1. You can set a hsqldb jar file location G:\Softwares\databases\hsqldb-2.3.2\lib\hsqldb.jar in 'classpath' in environment variable. Restart your machine.
2. Are you able to run this command in CMD?
cd "G:\Softwares\databases\hsqldb-2.3.2\bin"
java -classpath G:/Softwares/databases/hsqldb-2.3.2/lib/hsqldb.jar org.hsqldb.server.Server --database.0 file:mydb --dbname.0 xdb
Do you see a message saying " Database [index=0, id=0, db=file:mydb, alias=xdb] opened successfully" ?
2. While connecting to database (runManagerSwing.bat) make sure you select Type as HSQL Database Engine standalone.
3.. Has jar file been deployed successfully? Check in '.state' folder.
You can share some screenshots to understand your issue.
Regards,
JK
Hello Jitendra , I cant connect still i am getting same error like ____________________________________________________________________ Cannot load JDBC driver class 'org.hsqldb.jdbc.JDBCDriver' _________________________________________________________________ Can i connect to my MS SQL database in Odata ? do you know ? how to do it ? Thanks & Regards, Kunal Varaiya
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.