× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



HiI have a java program which creates JDBC connection, I
using com.ibm.as400.access.AS400JDBCDriver as driver, this java program runs
on AS400.
When i run this java program using jt400Native.jar file, i get following
error, but when i run it with JT400.jar file which i copied from my PC to
IFS folder it works

Java call to use jt400Native.jar
java -Djava.version=1.5 -cp /QIBM/ProdData/OS400/jt400/lib/jt400Native.jar:.
GetAS400JDBCConnection

feb 24 17:13:56:062 CET 2009 as400: Connection null (1469825337) : Throwing
exception. Original exception: .com.ibm.as400.ac
cess.AS400SecurityException: General security error.

at java.lang.Throwable.<init>(Throwable.java:196)

at java.lang.Exception.<init>(Exception.java:41)

at
com.ibm.as400.access.AS400ImplRemote.mapNativeSecurityException(AS400ImplRemote.java:2073)

at
com.ibm.as400.access.AS400ImplRemote.swapTo(AS400ImplRemote.java:2033)

at
com.ibm.as400.access.AS400ImplRemote.signon(AS400ImplRemote.java:1818)

at com.ibm.as400.access.AS400.sendSignonRequest(AS400.java:2585)

at com.ibm.as400.access.AS400.promptSignon(AS400.java:2156)

at com.ibm.as400.access.AS400.signon(AS400.java:3426)

at com.ibm.as400.access.AS400.connectService(AS400.java:877)

at
com.ibm.as400.access.AS400JDBCConnection.setProperties(AS400JDBCConnection.java:3017)

at
com.ibm.as400.access.AS400JDBCDriver.prepareConnection(AS400JDBCDriver.java:1256)

at
com.ibm.as400.access.AS400JDBCDriver.initializeConnection(AS400JDBCDriver.java:1107)

at
com.ibm.as400.access.AS400JDBCDriver.connect(AS400JDBCDriver.java:357)

at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:140)

at
GetAS400JDBCConnection.getJDBCConnection(GetAS400JDBCConnection.java:28)

at GetAS400JDBCConnection.main(GetAS400JDBCConnection.java:35)



mar feb 24 17:13:56:063 CET 2009 as400: Connection null (1469825337) :
Throwing exception. Actual exception: The application se
rver rejected the connection. (General security error.) sqlState: 08004
vendor code -99999.java.sql.SQLException: The application
server rejected the connection. (General security error.)

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
com.ibm.as400.access.JDError.throwSQLException(JDError.java:528)

at
com.ibm.as400.access.AS400JDBCConnection.setProperties(AS400JDBCConnection.java:3021)

at
com.ibm.as400.access.AS400JDBCDriver.prepareConnection(AS400JDBCDriver.java:1256)

at
com.ibm.as400.access.AS400JDBCDriver.initializeConnection(AS400JDBCDriver.java:1107)

at
com.ibm.as400.access.AS400JDBCDriver.connect(AS400JDBCDriver.java:357)

at java.sql.DriverManager.getConnection(DriverManager.java:525)

at java.sql.DriverManager.getConnection(DriverManager.java:140)

at
GetAS400JDBCConnection.getJDBCConnection(GetAS400JDBCConnection.java:28)

at GetAS400JDBCConnection.main(GetAS400JDBCConnection.java:35)



Command to use JT400.jar

java -Djava.version=1.5 -cp /test/jt400.jar:. GetAS400JDBCConnection


This works, i get JDBC connection, what may be the issue

Ashish

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.