I am experiencing an issue while attempting to connect to a local instance of firebird 3 on windows using jRDC (this is my first attempt to use jRDC). This is very generic example, no changes to the modules except where needed. I have scoured the forum and found many posts on FB/jRDC, but none that specifically address this. To make matters worse, I am very familiar with the error message I am getting...
java.sql.SQLInvalidAuthorizationSpecException: Your user name and password are not defined. Ask your database administrator to set up a Firebird login. [SQLState:28000, ISC error code:335544472]
...but not why I'm getting it. I've used FB for a while now and I've seen this message on a brand new instance when the username/password is typed in incorrectly. But I've verified the credentials many times and used both isql and ibq to connect and query the db manually. Don't get me wrong, this is obviously something that I've done wrong but I just can't find it.
Thanks in advance for any help. --Larry
Here is my pertinent code and log:
java.sql.SQLInvalidAuthorizationSpecException: Your user name and password are not defined. Ask your database administrator to set up a Firebird login. [SQLState:28000, ISC error code:335544472]
...but not why I'm getting it. I've used FB for a while now and I've seen this message on a brand new instance when the username/password is typed in incorrectly. But I've verified the credentials many times and used both isql and ibq to connect and query the db manually. Don't get me wrong, this is obviously something that I've done wrong but I just can't find it.
Thanks in advance for any help. --Larry
Here is my pertinent code and log:
config.properties:
#Lines starting with '#' are comments.
#Backslash character at the end of line means that the command continues in the next line.
#DATABASE CONFIGURATION
DriverClass=org.firebirdsql.jdbc.FBDriver
JdbcdbcUrl=jdbc:firebirdsql://localhost:3050/C:/Program Files (x86)/Firebird/Firebird_3_0/examples/empbuild/employee.fdb?encoding=UTF8
User=SYSDBA
Password=masterkey
#Java server port
ServerPort=17178
#SQL COMMANDS
sql.select=select FIRST_NAME,LAST_NAME from EMPLOYEE;
Main:
'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#End Region
'change based on the jdbc jar file
#AdditionalJar: jaybird-full-4.0.1.java11
Sub Process_Globals
Public srvr As Server
Public rdcConnector1 As RDCConnector
Public const VERSION As Float = 2.22
Type DBCommand (Name As String, Parameters() As Object)
Type DBResult (Tag As Object, Columns As Map, Rows As List)
End Sub
Sub AppStart (Args() As String)
srvr.Initialize("")
rdcConnector1.Initialize
srvr.Port = rdcConnector1.serverPort
srvr.AddHandler("/test", "TestHandler", False)
srvr.AddHandler("/rdc", "RDCHandler", False)
srvr.Start
Log($"jRDC is running (version = $1.2{VERSION})"$)
StartMessageLoop
End Sub
Compile Output::
B4J Version: 8.50
Java Version: 11
Parsing code. (0.01s)
Building folders structure. (0.01s)
Compiling code. (0.02s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Compiling generated Java code. (0.00s)
Building jar file. (2.35s)
Jar file created: D:\Devel\Projects\B4J\jRDC\Objects\jRDC.jar
Running application. (0.01s)
Completed successfully.
Log Messages (in this case compiled in release mode):
2020-09-27 18:21:04.586:INFO::main: Logging initialized @211ms to org.eclipse.jetty.util.log.StdErrLog
Sep 27, 2020 6:21:04 PM com.mchange.v2.log.MLog
INFO: MLog clients using java 1.4+ standard logging.
Sep 27, 2020 6:21:05 PM com.mchange.v2.c3p0.C3P0Registry
INFO: Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
2020-09-27 18:21:05.352:INFO:oejs.Server:main: jetty-9.4.z-SNAPSHOT; built: 2018-05-03T15:56:21.710Z; git: daa59876e6f384329b122929e70a80934569428c; jvm 11.0.1+13
2020-09-27 18:21:05.384:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2020-09-27 18:21:05.384:INFO:oejs.session:main: No SessionScavenger set, using defaults
2020-09-27 18:21:05.386:INFO:oejs.session:main: node0 Scavenging every 600000ms
2020-09-27 18:21:05.392:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@15d49048{/,file:///D:/Devel/Projects/B4J/jRDC/Objects/www,AVAILABLE}
2020-09-27 18:21:05.396:INFO:oejs.AbstractNCSARequestLog:main: Opened D:\Devel\Projects\B4J\jRDC\Objects\logs\b4j-2020_09_27.request.log
2020-09-27 18:21:05.417:INFO:oejs.AbstractConnector:main: Started ServerConnector@2f666ebb{HTTP/1.1,[http/1.1]}{0.0.0.0:17178}
2020-09-27 18:21:05.418:INFO:oejs.Server:main: Started @1051ms
jRDC is running (version = 2.22)
Sep 27, 2020 6:21:25 PM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource
INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 20000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 1hge165ac1m8bwmaxafg12|75329a49, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> org.firebirdsql.jdbc.FBDriver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 1hge165ac1m8bwmaxafg12|75329a49, idleConnectionTestPeriod -> 600, initialPoolSize -> 3, jdbcUrl -> jdbc:firebirdsql://localhost:3050/employee?encoding=UTF8, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 1800...
Sep 27, 2020 6:22:52 PM com.mchange.v2.resourcepool.BasicResourcePool
WARNING: com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@3b0f991c -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:
java.sql.SQLInvalidAuthorizationSpecException: Your user name and password are not defined. Ask your database administrator to set up a Firebird login. [SQLState:28000, ISC error code:335544472]
at org.firebirdsql.gds.ng.FbExceptionBuilder$Type$4.createSQLException(FbExceptionBuilder.java:579)
at org.firebirdsql.gds.ng.FbExceptionBuilder.toFlatSQLException(FbExceptionBuilder.java:304)
at org.firebirdsql.gds.ng.wire.AbstractWireOperations.readStatusVector(AbstractWireOperations.java:140)
at org.firebirdsql.gds.ng.wire.AbstractWireOperations.processOperation(AbstractWireOperations.java:204)
at org.firebirdsql.gds.ng.wire.AbstractWireOperations.readOperationResponse(AbstractWireOperations.java:163)
at org.firebirdsql.gds.ng.wire.version13.V13WireOperations.authReceiveResponse(V13WireOperations.java:124)
at org.firebirdsql.gds.ng.wire.version10.V10Database.authReceiveResponse(V10Database.java:569)
at org.firebirdsql.gds.ng.wire.WireConnection.identify(WireConnection.java:335)
at org.firebirdsql.gds.ng.wire.FbWireDatabaseFactory.performConnect(FbWireDatabaseFactory.java:51)
at org.firebirdsql.gds.ng.wire.FbWireDatabaseFactory.connect(FbWireDatabaseFactory.java:39)
at org.firebirdsql.gds.ng.wire.FbWireDatabaseFactory.connect(FbWireDatabaseFactory.java:32)
at org.firebirdsql.jca.FBManagedConnection.<init>(FBManagedConnection.java:145)
at org.firebirdsql.jca.FBManagedConnectionFactory.createManagedConnection(FBManagedConnectionFactory.java:599)
at org.firebirdsql.jca.FBStandAloneConnectionManager.allocateConnection(FBStandAloneConnectionManager.java:65)
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:109)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:114)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)
at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)
at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
Caused by: org.firebirdsql.jdbc.FBSQLExceptionInfo: Your user name and password are not defined. Ask your database administrator to set up a Firebird login.
Sep 27, 2020 6:22:52 PM com.mchange.v2.resourcepool.BasicResourcePool
WARNING: Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@6bb60380 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.