We are trying to connect Salesforce through soapUI but getting below error, can someone help with detailed solution which is working.
Got the Salesforce JDBC driver and connection string from https://github.com/ascendix/salesforce-jdbc
Driver: com.ascendix.jdbc.salesforce.ForceDriver
Connection string: jdbc:ascendix:salesforce://;user=username;password=password
soapUI open source 5.4.0
Error:
Can not get the connection for specified properties;
java.sql.SQLException: [LoginFault [ApiFault exceptionCode =
'INVALID_LOGIN' exceptionMessage = 'Username, password, or invalid
security token, or locked user.' extendedErrorDetails = '{[0]}']]
Related
While Working on a legacy application that first file date back to year 2005.
It used to create connection pool that is mapped to DataSource that application connects with,
URL: jdbc:oracle:thin:#host.test.intranet:1521:service_name
Driver Classname:oracle.jdbc.driver.OracleDriver
Properties(key=value):
user=makeduser
password=maskedpassword
dll=ocijdbc8
protocol=thin
ACLName: null
Recently, the db got rehosted and the new connection details changed from SID to Service_name
While trying to use same format "host"port:sid"
The error that it returns when weblogic server is started
Cannot startup connection pool "veroPool" weblogic.common.ResourceException:Could not >create pool connection. The DBMS driver exception was:java.sql.SQLException: Io exception: >Connection refused(DESCRIPTION=(TMP=)(VSNNUM=318767104)(ERR=12505)(ERROR_STACK=(ERROR=>(CODE=12505)(EMFI=4))))
And When trying to use following format:
jdbc:oracle:thin:#//NEWHOST.TEST.INTRANET:1521/NEW-SERVICE_NAME
Error returned is:
Cannot startup connection pool "veroPool" weblogic.common.ResourceException:Could not create pool connection. The DBMS driver exception was: java.sql.SQLException: Io exception: Invalid connection string format, a valid format is: "host:port:sid"
This driver version doesn't support the service name passed in the url in this format, so you have to use the SID. Try to connect to the DB and get the SID using the following query:
select sys_context('userenv','instance_name') from dual;
Then you can use the SID returned from the query in your connection url:
jdbc:oracle:thin:#host.test.intranet:1521:SID
Alternatively you can try with the following syntax to specify your connection which suports service name for this driver version:
jdbc:oracle:thin:#(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = <HOST>)(PORT = <PORT>))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = <SERVICE_NAME>)))
i tried to connect an mysql in api manager wso2 jdbc using this url jdbc:mysql://localhost:3306/eemp?allowPublicKeyRetrieval=true&useSSL=false
but gets an error:
The data source URL is not accepted by any of the loaded drivers.
Cannot load connection class because of underlying exception:
com.mysql.cj.exceptions.WrongArgumentException: Malformed database
URL, failed to parse the connection string near
';useSSL=false'.
I think you are having the URL as follows.
jdbc:mysql://localhost:3306/db?allowPublicKeyRetrieval=true&useSSL=false
Try the following
jdbc:mysql://localhost:3306/db?allowPublicKeyRetrieval=true&useSSL=false
I'm tryng to connect jmeter and marklogic using postgresql-42.1.4.jar or mljdbc-42.1.4.jar.
My app-servers:
My Configuration of JDBC:
And i received the error: "Cannot create PoolableConnectionFactory (The connection attempt failed.)"
What i do wrong? help?
As far as I can remember the default postgresql validation query used to validate the JDBC connection is not a valid SQL statement for MarkLogic. JMeter uses apache commons dbcp for its connection pooling which in turn uses a validation query to validate the connections.
Not sure what the query is (I'm sure this is somewhere in the source code) but you need to change that.
Go to "JDBC Connection Configuration" and set "Validation Query" to select 1.
For reference the complete exception message is:
java.sql.SQLException: Cannot create PoolableConnectionFactory
(isValid() returned false)
I am using ORACLE 12c database in our Application while starting Applications
showing below error.
WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Listener refused the connection with the following error:
ORA-12518, TNS:listener could not hand off client connection
)
Could not obtain connection to query metadata: org.jboss.util.NestedSQLException: Unable to get managed connection for FooDB; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for FooDB)
Here is My connections URL:
jdbc:oracle:thin:#(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mydomain.com)(PORT=1521))
(LOAD_BALANCE=ON)(FAILOVER=ON)(CONNECT_DATA=(SERVER=SHARED)(SERVICE_NAME=FOODB)(FAILOVER_MODE=(.......
this unknown issue leads application performance issue while longing into app looking for any parameters to add from jboss as database is in 2 node clustered environment.
Thanks in advance.
I am trying to establish a JDBC connection to access HIVE via SQL workbenchJ. I have placed all the JARs needed for connection along with the connection URL. Am getting the error
[Amazon]HivejdbcDriver error initialized or created
transport for authentication:null
while testing the connection. Can anyone help me on this?