|
-----Original Message-----and
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-
bounces@xxxxxxxxxxxx] On Behalf Of Blalock, Bill
Sent: Friday, September 19, 2008 5:04 PM
To: Java Programming on and around the iSeries / AS400
Subject: Does any know what a DB2SQLInvalidAuthorizationException is
what causes it?(Build
Good evening all:
I tried to use the native JDBC driver (V5R4) and got this exception:
ibm.db2.jdbc.app.DB2SQLInvalidAuthorizationException: Authorization
failure on distributed database connection attempt.
Any ideas what it means?
The only change was using the native driver
com.ibm.db2.jdbc.app.DB2Driver
Here is the rest of the stack trace in case it is helpful.
Thanks!
Bill Blalock
Exception [EclipseLink-4002] (Eclipse Persistence Services - 1.0
1.0 - 20080707)): org.eclipse.persistence.exceptions.DatabaseExceptionAuthorization
Internal Exception:
com.ibm.db2.jdbc.app.DB2SQLInvalidAuthorizationException:
failure on distributed database connection attempt.org.eclipse.persistence.exceptions.EclipseLinkException.<init>(EclipseLi
Error Code: -30082
at java.lang.Throwable.<init>(Throwable.java:196)
at java.lang.Exception.<init>(Exception.java:41)
at java.lang.RuntimeException.<init>(RuntimeException.java:43)
at
nkException.java:47)org.eclipse.persistence.exceptions.EclipseLinkException.<init>(EclipseLi
at
nkException.java:57)org.eclipse.persistence.exceptions.DatabaseException.<init>(DatabaseExce
at
ption.java:66)org.eclipse.persistence.exceptions.DatabaseException.sqlException(Databa
at
seException.java:313)org.eclipse.persistence.exceptions.DatabaseException.sqlException(Databa
at
seException.java:308)org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnect
at
or.java:136)org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(Dat
at
asourceLogin.java:164)org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.conne
at
ctInternal(DatasourceAccessor.java:324)org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connect
at
Internal(DatabaseAccessor.java:264)org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.conne
at
ct(DatasourceAccessor.java:407)org.eclipse.persistence.sessions.server.ConnectionPool.buildConnection(C
at
onnectionPool.java:130)org.eclipse.persistence.sessions.server.ConnectionPool.startUp(Connectio
at
nPool.java:367)org.eclipse.persistence.sessions.server.ServerSession.connect(ServerSess
at
ion.java:500)org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(Data
at
baseSessionImpl.java:606)org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(
at
EntityManagerFactoryProvider.java:211)org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(Entit
at
yManagerSetupImpl.java:246)org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerS
at
ession(EntityManagerFactoryImpl.java:69)org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEnti
at
tyManagerImpl(EntityManagerFactoryImpl.java:118)org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEnti
at
tyManagerImpl(EntityManagerFactoryImpl.java:112)org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEnti
at
tyManager(EntityManagerFactoryImpl.java:100)com.ibm.db2.jdbc.app.DB2SQLException.createException(DB2SQLException.jav
at domain_model.AccessData.getEmSysmon(AccessData.java:20)
at domain_model.AccessData.xfrctl00GetAll(AccessData.java:215)
at
server.LoadXfrctl00.getAuditControlSetSerialized(LoadXfrctl00.java:71)
at server.Monitor.newSerialized(Monitor.java:417)
at server.Monitor.main(Monitor.java:215)
Caused by: com.ibm.db2.jdbc.app.DB2SQLInvalidAuthorizationException:
Authorization failure on distributed database connection attempt.
at java.lang.Throwable.<init>(Throwable.java:196)
at java.lang.Exception.<init>(Exception.java:41)
at java.sql.SQLException.<init>(SQLException.java:40)
at
a:77)com.ibm.db2.jdbc.app.DB2ConnectionRuntimeImpl.SQLConnect(Native
at
Method)com.ibm.db2.jdbc.app.DB2ConnectionRuntimeImpl.connect(DB2ConnectionRunti
at
meImpl.java:160)com.ibm.db2.jdbc.app.DB2Driver.handleURLProcessing(DB2Driver.java:1465)
at
com.ibm.db2.jdbc.app.DB2Connection.<init>(DB2Connection.java:442)
at
org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnect
at com.ibm.db2.jdbc.app.DB2Driver.connect(DB2Driver.java:999)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at
or.java:97)(ii) do
... 19 more
_____________
The information contained in this message is proprietary and/or
confidential. If you are not the
intended recipient, please: (i) delete the message and all copies;
not disclose,sender
distribute or use the message in any manner; and (iii) notify the
immediately. In addition,(JAVA400-L)
please be aware that any message addressed to our domain is subject to
archiving and review by
persons other than the intended recipient. Thank you.
_____________
--
This is the Java Programming on and around the iSeries / AS400
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.