Questions tagged [jdbc]

Base API which enables interacting with SQL database servers by executing SQL statements using the Java programming language

Filter by
Sorted by
Tagged with
1 vote
0 answers
15 views

On a system with fapolicyd enabled, how do I permit Java to run sqlitejdbc.so, which has a unique filename at each start?

My issue is fairly similar to this one: I have a Java application running on Rhel 8 that relies on an sqlite-jdcb driver. Unlike in that issue, my issue isn't with my filesystem being mounted with ...
user avatar
  • 106
-1 votes
1 answer
21 views

MySQL JDBC compression in transit

Good morning, I am looking to set my application connection to MySQL to compress data in transit. I read MySQL doc. but it's not cleat to me if I need to do something on the client side, on the server ...
user avatar
  • 721
0 votes
0 answers
18 views

SQL Server JDBC Drivers installation on JBoss EAP 7.3

are the commands below correct? if no what is the correct way to install the module properly module add --name=com.mssql--resources=[PATH] --dependencies=javax.api,javax.transaction.api /subsystem=...
user avatar
  • 1
1 vote
0 answers
26 views

Getting the connection pool properties

I have set up a connection pool in tomcat's server.xml and context.xml. I am using the below code to establish a connection. DataSource ds = (DataSource) context.lookup("jdbc/TestDB"); ds....
user avatar
  • 73
0 votes
1 answer
627 views

connect Crystal Reports with JDBC to PostgreSQL

I want to connect Crystal Reports (2016, Support Pack 8, version 14.2.8.3426) to a PostgreSQL 12 database. Using JDBC. The database is on my local computer, on port 5433. My database name: ogc ...
user avatar
2 votes
2 answers
683 views

Can't connect to Amazon RDS MySQL

I'm trying to connect to RDS MySQL from linux machine. When I test the connection with telnet, the telnet session succeeds but when I'm trying to connect to the db with the next command mysql -h ...
user avatar
0 votes
0 answers
388 views

JDBC performances using AWS RDS instance / Tomcat

I'm using RDS MySQL database for both preproduction and production environment but I'm facing performance issues on the production server while accessing RDS instance through JDBC (db.m5.large) with a ...
user avatar
  • 103
1 vote
1 answer
91 views

Database Connections Persist After Security Group Change

We've set up a system to send a message to a queue in SQS when there's an outage on a dependency. In order to simulate an outage and test the system, I blocked the outbound port to a database on the ...
user avatar
0 votes
2 answers
6k views

SQL Server 2014 enabling TLS 1.1 along with TLS 1.2

I have a Windows Server 2012 R2 which is a DC with SQL Server 2014 (Express) updated to the latest SP2 with CU10 12.2.5571.0 (testing environment). I disabled all protocols except TLS1.1 and TLS1.2 by ...
user avatar
1 vote
1 answer
482 views

JDBC Oracle 12 allow jdbc outgoing traffic in firewalld

I'm installing an application which needs an Oracle DB on my server. The DB is hosted on another dedicated server. The application is using JDBC to connect to the DB. I have tested the connection ...
user avatar
0 votes
0 answers
25 views

encypted pasword for Tomcat server.xml JDBC Datasource

I have certain JDBC resources configured in my Tomcat server.xml file. Using those, I can connect remote databases. For example <Resource name="jdbc/hox" auth="Container" type="javax.sql....
user avatar
1 vote
2 answers
10k views

Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'springbootdb.users'

I have a VM running an MsSQL database. I was previously using an Oracle database. My app injects some sample data on startup and I get this error: Caused by: com.microsoft.sqlserver.jdbc....
user avatar
0 votes
0 answers
990 views

MySQL Communications link failure periodically every 61 minutes

Interesting, strange problem. Have a production system running an application distributed across multiple servers, which all read and write to a, separate, MySQL Server. MySQL Server version 5.6.31 ...
user avatar
0 votes
1 answer
599 views

Connecting to RDS Postgres via jdbc & c3p0 unable to acquire from the underlying database

Trying to connect from an application using C3P0 and the latest Postgresql JDBC driver 9.4.1211. We want the connection string to be SSL and have an MD5 hash password on the user account: c3p0 { ...
user avatar
  • 101
1 vote
0 answers
764 views

Create new MySQL connections when read-only status is detected - AWS RDS failover

Apache Tomcat/7, CentOS, AWS RDS Aurora 5.6.10a AWS provides a cluster CNAME that at any time points to the writer instance of the cluster. e.g. dbname-cluster.cluster-id.us-west-2.rds.amazonaws.com ...
user avatar
  • 11
0 votes
1 answer
164 views

Oracle 8.x what combination of JDBC driver, Hibernate and Spring? [closed]

I'm working to a small project which must run on Tomcat6. It's a small web application, that will use an old DB server which run HP-UX and Oracle8. Now, after several combining config, I'm stuck at ...
user avatar
  • 11
0 votes
2 answers
27k views

Name [ ] is not bound in this Context. Unable to find [jdbc] Tomcat Issues

I just created a fresh Oracle Linux 7 VM with Tomcat 7 and Java 8_40. I've created several servers with Apache and Tomcat before, but never connecting to databases before. SELinux and firewalld are ...
user avatar
  • 21
0 votes
1 answer
230 views

DB replication using BinLog

I am using mysql-binlog-connector to listen to any binlog event and then perform replication on the slave DB. My problem is that, the binlog registers event right after the execution and before commit,...
user avatar
5 votes
1 answer
19k views

terminating connection because of crash of another server process

I have a java scraper that spawns around 1,500-2,100 threads, each of which connects to the same database via jdbc and makes inserts. These threads insert quite frequently. It seems like the db ...
user avatar
  • 255
0 votes
1 answer
1k views

Gather WebSphere Thread Pool Utilization Data In A Text File

I am running a WebSphere 8.x cluster and would like to be able to more closely monitor my JDBC connection pool utilization. All I basically want to do is run a script every couple of minutes that ...
user avatar
  • 549
1 vote
1 answer
7k views

ORA-12505, TNS:listener does not currently know of SID after changing port number

I am trying to change oracle tnslsnr port number from default to some other port. After I change port number for tnslsnr from 1521 to 2000 I start geting ORA-12505, TNS:listener does not currently ...
user avatar
  • 113
0 votes
1 answer
9k views

Weblogic JDBC connection pool keeps in suspended state when DB is back to normal

We have a JDBC connection pool on a weblogic 12c. When the backend database goes to offline, the pool goes into suspended state, and when the db is back online after a short period of time (say 5 min),...
user avatar
  • 173
0 votes
1 answer
966 views

Elasticsearch River JDBC - Avoiding 'SELECT *'

I'd like to syncronize some MySQL tables to an ElasticSearch index, you know, for search. But almost every examples I can find show a big bad fat "SELECT * FROM", it's OK for an example, but I'm in ...
user avatar
  • 251
0 votes
2 answers
3k views

JDBC Connection Pool details on Glassfish

In the context of configuring Session Beans for Entity Classes, I can get some basic information from Glassfish v4 on Ubuntu about the JDBC connection pool from the CLI with asadmin, but would like to ...
user avatar
  • 229
0 votes
1 answer
150 views

WLS: Identifying the managed server where a DB session originates from

We are using WLS servers, on which we configure data sources (DS) and managed servers. For failover reasons, our main application is depolyed on two separate managed servers (lets call them app_1 and ...
user avatar
  • 448
0 votes
1 answer
1k views

Install Apache Derby on CentOS 6.4

I'm not a Java developer, my knowledge is very limited to this topic. I want to deploy a .war webservice on my Tomcat server, which fails most likely because of its Derby dependency (just a guess from ...
user avatar
8 votes
1 answer
37k views

Does an SQL Server instance allow both secure and non-secure connections at the same time?

we have an application running MS SQL Server 2012. For one specific use case we'd like to SSL protect the jdbc connection. I've checked the following links: How to enable SSL encryption for an ...
user avatar
0 votes
1 answer
2k views

Solr: Using multiple SQL server data sources results in error: "...\sqljdbc_auth.dll already loaded in another classloader"

I have one Solr instance running in Jetty with JRE 8 with 3 collections (same as cores, yes?) and more to come. I am indexing data from SQL Server, connecting using NTLM as the identity of the Java ...
user avatar
  • 1
0 votes
2 answers
251 views

Configure MSSQL 2008 to use kerberos authentication

I would like to set my current mssql db (2008 and 2012) to authenticate using a linux kerberos server that I have in my environment . The windows station is in a workgroup and I would like to avoid ...
user avatar
  • 475
1 vote
1 answer
2k views

Monitor Tomcat-JDBC connections

The company that I work for sells a java web application that runs in Tomcat. The primary problems we have are that the tomcat containers become unresponsive and need to be restarted and that the ...
user avatar
  • 107
0 votes
1 answer
585 views

Connection to Amazon AWS highly unreliable [closed]

I have a Java application that connects to MySQL on an Amazon EC2 (USA east region) instance with JDBC (using official latest Oracle drivers, location specified by IP). It also connects to S3 using ...
user avatar
  • 171
0 votes
1 answer
854 views

Tomcat - JDBC Data Access Exception

My company has a web application that allows users as part of their business process to upload large documents (10+ MBs) into the application. For fast connections it works great with the document ...
user avatar
  • 107
0 votes
1 answer
2k views

Is weblogic 10.3.6 data source connection pool maximum capacity per domain or server?

My WLS server is connecting to an Oracle DB that has a maximum concurrent connection limit of 3. I have created a data source in WebLogic and set the "Maximum Capacity" value to 3. Is this value ...
user avatar
  • 237
3 votes
1 answer
8k views

MS SQL Server configured for secure (SSL) connection allows non-secure connection from JDBC Client

I need to connect to the MS SQL Server 2008 r2 using the secure communication. I have been able to do the same using the following connection string: jdbc:sqlserver://<<db server name>>:...
user avatar
0 votes
1 answer
460 views

WebLogic JDBC - Profile Harvest Frequency Seconds

In the company I'm providing consulting services, when the database is updated by a process outside Weblogic Web Application, the updated data is not refreshed at once. Googling a bit I've found the ...
user avatar
12 votes
2 answers
7k views

Is there a way to monitor /dev/random?

We're investigating some JDBC issues, and one of the possible problems is /dev/random being exhausted. The workaround is to switch the JVM to using /dev/urandom, but I wan't to try and determine ...
user avatar
  • 1,320
0 votes
1 answer
394 views

Installed JDBC drivers into Solr

I am running Solr4 on Jetty9 and I am trying to include the JDBC drivers for both MySQL and PostgreSQL. I'm a little confused about how I do this. I believe these to be the two files I need: http:/...
user avatar
  • 1,093
1 vote
1 answer
469 views

Solr list all records but fq matching records first

I’m using solr 4.0 with DIH jdbc connector. I have a field named code with multiple values separated by semicolon(;). I am trying to list the search results which matches the field query(fq) to be ...
user avatar
  • 1,653
0 votes
2 answers
743 views

Set up JDBC DataSource in LDAP

How do I create a JDBC DataSource in an OpenLDAP server? The problem is that jdbc/something is not a valid DN or RDN. But that is the format of the name that you are supposed to use for JDBC ...
user avatar
-2 votes
1 answer
699 views

Can't get jmeter-server to work correctly with jdbc:mysql driver

I am running jmeter-server on a remote database host (Centos, sun-java 1.6). I dropped the MySQL java jar in $JMETER_HOME/lib per the install instructions. When I try to run a job on my local system (...
user avatar
  • 173
2 votes
0 answers
2k views

mysql client can't read query result?

So I have this machine running an XMPP server which connects to its MySQL database. When I start load-testing it, all goes fine up until after about 500s when I notice: Caused by: com.mysql.jdbc....
user avatar
  • 69
0 votes
2 answers
403 views

mysql, java, and MySQLTimeoutException

I've moved the mysql server on different machine in LAN, 16 core, 8GB RAM, and the same dreaaded result. During a load test, all is going well until around 300 seconds. There are 15 persistent ...
user avatar
  • 69
0 votes
3 answers
6k views

Cannot connect to mysql database remotely using jdbc

I am trying to connect to my database which is hosted on 000webhost. I am connecting from SmartFoxServer, and they allow database connections. All you have to do is change some of the settings in the ...
user avatar
1 vote
1 answer
2k views

Can't get Glassfish 3.1.2.2 to use anything other than jdbc/__TimerService for the EJB Timer Service

I am trying to set up a Glassfish cluster (1 DAS with a cluster that has an instance running on an ssh-node). This is where I am: DAS running Cluster created asadmin create-cluster cluster Node ...
user avatar
  • 213
-2 votes
1 answer
2k views

Alfresco couldn't start. Why?

I have alfresco on my VM. When I try to start alfresco I got an error "postgresql could not be started" such as following : /opt/alfresco/postgresql/scripts/ctl.sh : postgresql could not be started ...
user avatar
1 vote
1 answer
467 views

GlassFish cluster-targeted jdbc is not enabled

I have a GlassFish cluster. When I tried to add node and a instance, DAS saids a bunch of error messages telling Resource [ jdbc/xxxx ] of type [ jdbc ] is not enabled [#|2012-11-14T12:07:04.318+...
user avatar
  • 135
7 votes
1 answer
7k views

HAProxy, client timeouts when connecting from JDBC pool

I have a webapp (Tomcat/Hibernate/DBCP 1.4) that runs queries against MySQL, and this works fine for a certain load, say 50 queries a second. When I route the same moderate load through HAProxy (still ...
user avatar
  • 171
0 votes
2 answers
175 views

ColdFusion8 FusionReactor JDBC wrapper - bad driver jars?

I'm having trouble getting the JDBC wrapper tool to wrap my ODBC connections. Before the version that came out today, it wouldn't even run due to a compatibility issue with CF8. Now it's saying ...
user avatar
4 votes
1 answer
2k views

What is the best JDBC connection URI for AWS RDS instances?

When using an Amazon Web Services RDS instance from a Java application, what is the best JDBC connection string? It should tolerate the instance falling over to the standby. AWS handles flipping the ...
user avatar
  • 2,152
1 vote
1 answer
3k views

How to use JDBC Connection Pooling without JNDI DataSource? (in Apache Tomcat)

I have an Apache Tomcat 7 server. I have a quite complex Java Servlet application running on it which needs some MySQL queries per POST. Thus I need a MySQL Database connection to do the query. ...
user avatar
  • 269