Oracle.sql.* with JDBC drivers 8.0.5
the oracle.sql package is not included in my JDBC driver file classes111.zip given for oracle data server version 8.0.5.
I would like to use the oracle STRUCT and ARRAY type for calling PL/SQL stored procedures taking STRUCT objects in arguments.
Are the JDBC drivers 8.1.* compatible with the oracle data server 8.0.5 (if I only use the STRUCT or ARRAY types)? Is it a way for passing ARRAY of VARCHAR2 values to PL/SQL stored procedure with the oracle 8.0.5 JDBC driver?
thanks
Unfortunately, these classes (oracle.sql.STRUCT and oracle.sql.ARRAY) are not compatible to 8.0 database. There is server format changes between 8.1 and 8.0, and JDBC driver only supports the 8.1 format.
Please upgrade your database to 8i.
Similar Messages
-
Connecting Oracle 8i with JDBC
Hi Friends,
I am facing a problem while doing a connection to my DB which is ORACLE 8i with JDBC communication channels thorugh xi.
I am getting an error "Error during database connection to the database URL 'jdbc:oracle:thin:@hostname:ORCL' using the JDBC driver 'oracle.jdbc.driver.OracleDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:oracle:thin:@hostname:ORCL': SAPClassNotFoundException: oracle.jdbc.driver.OracleDriver"
In one of the SAP notes:867176 its mentioned .....
3. Which JDBC driver version is certified to connect to which database version?
From the Oracle side:
The Oracle 10g JDBC drivers are certified to work with currently-supported versions of the database.
JDBC 8i/9i Thin drivers are certified to work with supported (previous) versions of the database.
Existing and supported JDBC drivers are certified to work with Oracle Database 10g.
From the SAP side:
SAP only supports homogeneus setups. The oracle driver major version must match the database major version, and the driver version must not be smaller than the database version.
SAP does not support Oracle 8i drivers.
Is it not possible to connect to my DB? Is SAP supports the connection to 8i oracle database? any idea,,,
Regards,
Sunil.Hi,
Following is the connection string that we are currently using for connecting to Oracle 8i.
This setting has been working for us. give it a try.
connection string : jdbc:oracle:oci8:userid/password@server
Note that this connection string is only if you use the Oracle OCI driver. The OCI driver requires a shared library or DLL on the server.
The thin driver for Oracle is more commonly used as it doesn't require any additional libraries. The connection string is as already listed above:
jdbc.oracle.thin:@server:port:SID
There is no need to put the user and password into the connection string in the adapter config, putting it into the user and password fields works just fine.
Regards,
Suryanarayana -
Can't connect to external Oracle DB with JDBC connector
Hello guys,
I had failed to connect to connect external Oracle via JDBC connector .
Could you please help me to resolve the problem ?
Backgroud:
We need to connect the external Oracle DB with JDBC connector, because BI need to connect to the target Oracle. If the JDBC connector suceed, BI will create a UD which use the datasource
we create in Visual admin to connect to the external Oracle DB.
Environment:
Our EP version is NW04S SP17 , OS is AIX .
The target Oracle DB version is 10g(10.1.0.2.0, 64bi).
Configuration procedure :
1. Import Oracle driver "ojdbc14.jar" and create new driver which named "Oracle " under
JDBC Connector ->Run time ->Driver in Visual Admin.
2. Create datasource "Mydatasource" under JDBC Connector ->Run time ->Data Source,
Name : Mydatasource
Driver Name : Oracle
JDBC version: 2.0(with XA support)
JDBC compliant:
Object Factory :oracle.jdbc.pool.OracleDataSourceFactory
DataSource Type: ConnectionPoolDataSource
*CPDS class name :oracle.jdbc.pool.OracleConnectionPoolDataSource
Additional:
Additional Properties:
DatabaseName:LPAR8TEST
DriverName:oracle.jdbc.OracleDriver
Password: *****
PortNumber:1521
ServerName: 10.1.16.208
URL :jdbc:oracel:[email protected]:1521:LPAR8TEST
User:IMPL
Connectoin Pool:
Initial Connectons: 1 Expiration: (check)
Maximum Connections: 25 Connection Lifetime :600
Maximum time wait of connection : 60 Cleanup Thread : 200
Default Connectoin Isolaton :Default
SQL Engine:
Open SQL
3.Create Connector :
Copy the standard connector :SDK_JDBC to SDK_JDBC_Oracle,
Resource Adopter:
Loader References:
Add "libray:Oracle" .
Managed Connection Factory:
Configuration Property:
DriverName:oracle.jdbc.OracleDriver
Password: ****
User:IMPL
URL: jdbc:oracle:[email protected]:1521:LPAR8TEST
All fo my configuration had been listed.
And I had created JCO RFC : JT-BIDEV_PORTAL_BD1 , and created RFC connection with SM59 in BI.
Please give me some suggesiton.
Thanks.
LouisWhen I try to start datasoure "Mydatasource" , it display error, error detail:
java.rmi.RemoteException: com.sap.engine.services.dbpool.exceptions.BaseRemoteException: Error during start of application "sap.com/Mydatasource". [id = StartupError]
at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.startApplication(DataSourceManagerImpl.java:608)
Caused by: java.rmi.RemoteException: Error occurred while starting application in whole cluster and wait.; nested exception is:
com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide exception: server ID 3128050:com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Cannot start DataSource "CGNPC".
at com.sap.engine.services.dbpool.deploy.ContainerImpl.startDataSource(ContainerImpl.java:1549)
Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
at com.sap.engine.services.dbpool.spi.CPManagedConnectionFactoryImpl.createManagedConnection(CPManagedConnectionFactoryImpl.java:198)
Caused by: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide exception: server ID 3128050:com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Cannot start DataSource "Mydatasource".
at com.sap.engine.services.dbpool.deploy.ContainerImpl.startDataSource(ContainerImpl.java:1549)
Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
at com.sap.engine.services.dbpool.spi.CPManagedConnectionFactoryImpl.createManagedConnection(CPManagedConnectionFactoryImpl.java:198)
Caused by: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
u2026.
When I try to test JDBC with URL : http://jt-pldev:50000/TestJDBC_Web/TestJDBCPage.jsp,
First I choose connection name "SDK_JDBC_Oracle" .
If I click "Check Connectons", it display :
500 Internal Server Error
SAP J2EE Engine/7.00
Application error occurred during request processing.
Details:
java.lang.NoClassDefFoundError: com.sap.ip.bi.sdk.dac.connector.odbo.impl.Connection (initialization failure)
Exception id: [001A64A86F2C006B000004C40010302A000469C74E86A096]
If I click "Slecton Connection", it display:
500 Internal Server Error
SAP J2EE Engine/7.00
Application error occurred during request processing.
Details:
com.sap.engine.frame.core.load.SAPNoClassDefFoundError: javax.resource.Referenceable
Exception id: [001A64A86F2C0063000004C00010302A000469C74FA2BB59] -
Our builds kick off and run integration tests. They are configured to hit a SQL Server Express server.
If the builds have been quiet for a while, the first test to connect fails after stalling for 20 minutes.
Subsequent tests are fine.
Reversing test order does the same thing, with a different test.
We noticed in the SQL Server express log the server saying it is waking up after being idle.
Microsoft SQL Server Express with Microsoft SQL Server JDBC Drivers 4.0.2206.
Connection times out after 20 minutes.Occurs with the first connection made after the SQL Server Express server wakes up from going to sleep.Connections after the first are just fine, until SQL Server Express sleeps.SSL enabled. Timeout duration for the connection failure is unaffected by setting timeout options for the connection. Work around:
cron-like job that runs every minute that makes a simple query on the server keeps the server from going to sleep.
Has anyone else run into this?Hello,
SQL Server Express will go to sleep if idle, this behavior is not configurable.
When SQL Express transitions from idle to active some of the memory that was released needs to be reclaimed; this results is a slight lag during "startup time" when you're first connecting to SQL Express.
The other sort of sleep occurs when a database with AUTO_CLOSE unloading itself after a period of inactivity. This can be resolved by setting AUTO_CLOSE to false.
You can refer to the following blog about more details about this:
http://blogs.msdn.com/b/sqlexpress/archive/2008/02/22/sql-express-behaviors-idle-time-resources-usage-auto-close-and-user-instances.aspx
You can try to upgrade the SQL Server Express to a non-free version to get rid of this.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
Where can I find platform support metrix for Oracle 10g/11i JDBC drivers?
I need find the official supported platform metrix of Oracle 10g/11i JDBC drivers.
Where can I find this kind of information?
especially, does Oracle 10g/11i JDBC drivers support Windows2008 and AIX6.1?
Any information, please share with me here.
Thank you so much!This Metalink has all the nesscessary inforamtion
metalink 401934.1
Besides this you can check the JDBC developers guide
[For 11|http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/overvw.htm#i1003779] [For 10g|http://download.oracle.com/docs/cd/B14117_01/java.101/b10979/overvw.htm#sthref61] -
Use of Complex Oracle Object with JDBC
How can I use Oracle Object(or PL/Sql type) with JDBC
I have a structure of record with some attributes and table of another attribute.
My types are defined as follows !
<code>
CREATE TYPE EMPLOYEE_GRADES AS TABLE OF VARCHAR2(50)
CREATE TYPE EMPLOYEES AS OBJECT(EmpName VARCHAR2(50), EmpGrades Employee_Grades)
</code>
My custom object might have the following structure (or should it be different)
<code>
public class EmpColl implements CustomDatum, CustomDatumFactory
-- other stuff ----
/* fields */
public String empName;
public Collection empNos;
</code>
I want to pass an variable of type EMPLOYEES to an procedure.
Thanx in Advance
Chetan
[email protected]<code>
CREATE TYPE EMPLOYEE_GRADES AS TABLE OF VARCHAR2(50)
CREATE TYPE EMPLOYEES AS OBJECT(EmpName VARCHAR2(50), EmpGrades Employee_Grades)
</code>The easiest is to use JPublisher (which comes with the SQLJ distribution).
Say:
jpub -user=username/password -sql=EMPLOYEES:Employees,EMPLOYEE_GRADES:EmployeeGrades
You will get (among others) the Java files Employees.java and EmployeeGrade.java. Go ahead, compile and use them.
Look in [Oracle Home]/sqlj/demo/jpub for a number of additional examples, and in the JPublisher User's Guide for background info.
The next (9.2) release of JPublisher will also provide some support for accessing legacy PL/SQL types from Java. -
I am connecting to an Oracle lite database on NT Server 4.0 with
JDBC and trying to run an simple insert statement. If I try to
run the same statement again (which should throw an exception
since the pk already exists) I get an application error - not an
exception as expected - I get the same thing when executing a
"delete from.." stmt on an empty table. These same stmts work
fine in Oracle8i.
Also, if I use access with ODBC to view the tables access will
often freeze up on me.
Any Help would be appreciated.
Dylan
nullYou probably mean if you can call a Java Stored Procedure from ADOCE application. PL/SQL packages are not supported in Oracle Lite database. The answer is no. For more information see Developers' Guide for WindowsCE, Chapter 4
-
Weblogic 5.1 and Oracle Database 10g JDBC Drivers
I need to know if there are JDBC drivers for Oracle Database 10g compatible with Weblogic Server 5.1.
Regards,
LuisHi. You should be able to use any JDBC driver with WebLogic 5.1.
It may be the JVM that complains, if you use too old a JVM...
Joe Weinstein at BEA Systems -
I'm having problems registering jdbc drivers. I've been trying to register the microsoft Sql Server 2000 jdbc driver so that I can create a connection in my code rather than using entity beans. I've set the CLASSPATH variable to point to the driver's .jar files in the install directory with no success.
I've connected to the database using the driver via the IDE' s Runtime and it tests ok and allows me to create a database schema ok. (I had to copy the driver files to the sun/studio5u1_se/lib/ext dir to enable this) Is there a location I can unpack the drivers .jar files which will make the driver available?
I have also tried setting the CLASSPATH variable to point to the above mentioned directory..but that didn't work either. Can anyone help?
These are the exception messages that I get
java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at Portfolio.DriverTest.getConnection(DriverTest.java:43)
at Portfolio.DriverTest.main(DriverTest.java:102)
Error Trace in getConnection() : com.pointbase.jdbc.jdbcUniversalDriverIf u type in command line
java -classpath .;<directory containing the driver>
it executes your class file properly
note that <directory containing the driver> is the full path to your driver. I mean, the directory that contains your driver\drivername
eg:
java -classpath .;c:/driver/drivername
don�t forget to put the "dot" before semicolon. If u forget it, java won�t find your class file. your class file must be at the directory you�re executing the command
I need to configure my sun studo ent. to locate my jdbc driver for mySQL. I don�t know where this can be made. If any of you know. please report me -
Local oracle access with jdbc thin
hello there
it need help despratly,
im developing an applet to talk to remote oracle dbs using jdbc
thin
but i also want an applet to be able to talk to a local oracle db
on the same hardisk.
for a remote connection the follwing stringis used at my
university
static final String connect_string =
"jdbc:oracle:thin:scott/[email protected]:1521:DSC1";
but what do i subsitute for thr host as i want to access the db
on my hard disk?
i need as much help ASP, as im well behind my schedule for this
project.?
also i take it that to allow this and access to remote servers
other than the web server, the applet needs to be signed, is this
possible with jdk1.1.x compatble browsers?
yours
richard sergio marchesi
email - [email protected]
or
email - [email protected]
nullThe thin driver reqiures a TCP listener to be running. If you are
using Personal Oracle for the 'local' RDBMS then it doesn't have
a listener (with the default installation). Start the listener
and you should be able to connect. You will also want a local
webserver of some sort to serve the applet to you as well, but
anything (even TinyWeb) will do for that.
null -
Connecting to an oracle db with jdbc
I downloaded the jdbc drivers and unzipped them to "C:\SDK\Classes", therefore they're "C:\SDK\Classes\oracle\jdbc\..."
My classpath is set to "C:\SDK\Classes\"
public void connect()
String serverName = "********";
String portNumber = "1521";
String sid = "oracle9";
String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
String username = "*****";
String password = "*****";
Connection connection = null;
try
String driverName = "oracle.jdbc.driver.OracleDriver";
Class.forName(driverName);
// Create a connection to the database
connection = DriverManager.getConnection(url, username, password);
catch (ClassNotFoundException e)
System.out.println("Could not find the database driver");
catch (SQLException e)
System.out.println("Could not connect to the database");
}I get the error "Could not find the database driver" when i run this.
Can anyone suggest anything?
Thanks!Check your classpath and webserver library directory
it must be classes12.jar file in the lib directory that using the webserver
or classpath
.;c:\jdk1.3.1\extlib\classes12.jar;
and check your jdbc driver version -
Connecting Oracle 7.3.4 with JDBC drivers 8.1.6
I am on a Solaris7 with Oracle 7.3.4 and drivers 8.1.6.
My code compiles and when it runs it gives me this error below:
ld.so.1: /usr/java1.1/bin/../bin/sparc/native_threads/java: fatal: libclntsh.so.
8.0: open failed: No such file or directory (/export/home/oracle7/app/oracle/pro
duct/7.3.4/lib/libocijdbc8.so)
java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Error.<init>(Compiled Code)
at java.lang.LinkageError.<init>(Compiled Code)
at java.lang.UnsatisfiedLinkError.<init>(Compiled Code)
at java.lang.Runtime.loadLibrary(Compiled Code)
at java.lang.System.loadLibrary(Compiled Code)
at oracle.jdbc.oci8.OCIDBAccess.logon(Compiled Code)
at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at jversion.main(Compiled Code)
I have all my paths in my LD_LIBRARY_PATH and the file it looks for is in the specified directory, and the permissions have been set correctly. I HAVE NO IDEA WHAT THE PROBLEM IS! Thank you in advance and ANY help would be appreciated,
isaac mosqueraYou shouldn't have to do anything "special" other than provide connectivity between the two databases.
Have you tried creating the database link yet? If so, did you receive errors? If not, then try it out and find out for yourself. -
CallableStatement does not run PL/SQL with jdbc:oracle:thin driver
I have a very simple PL/SQL function:
FUNCTION CalculateDistance
(x1 IN NUMBER, y1 IN NUMBER, x2 IN NUMBER, y2 IN NUMBER)
RETURN NUMBER
AS
distance NUMBER;
BEGIN
distance := SQRT(POWER(x1-x2,2) + POWER(y1-y2,2));
return distance;
END;
I call it with:
CallableStatement cs = null;
try {
biomassStatement = con.prepareCall("{ call MYPACKAGE.CalculateDistance(?, ?, ?, ?, ?)}");
cs.setDouble("X1", -367546.78402892);
cs.setDouble("Y1", 150712.8161204);
cs.setDouble("X2", -2155095.49289);
cs.setDouble("Y2", 774013.149084);
cs.registerOutParameter("v_Return", OracleTypes.NUMBER);
cs.execute();
The only answer I get is:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'CALCULATEDISTANCE'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
I tried it with different Data sources (common, pool, XA) and nothing works...
Tried using ojdbc14_g.jar to see if could get more information with no help...
HELP!!!Hi,
You are calling a FUNCTION, i.e you have one return value (And four arguments)
So according to javadocs
http://download.oracle.com/javase/6/docs/api/java/sql/CallableStatement.html
Your synbtax should be like:
{?= call <procedure-name>[(<arg1>,<arg2>, ...)]}Rigtht now, your call seems to be for a procedure having five arguments.
Regards
Peter -
Trouble to connect to Oracle Lite with JDBC
Hi.
I have installed Oracle Lite 9i on my PC (Win 2000 Pro). Then I connected an HP Jornada 525 (WinCE 3.0) and with
ActiveSync I installed the Oracle Mobile Client. Using MSql, I created some tables and did some data inserts - Oracle
is working fine on the Pocket PC. The next step was to create an Java application that will run on the Jornada to
connect to this database and edit its data. Here is the initial source code:
import java.sql.*;
public class JDBCEX {
public void JDBCEX () {
public static void main(String args[]) {
Connection conn = null;
Statement stmt = null;
ResultSet retset = null;
try {
Class.forName("oracle.lite.poljdbc.POLJDBCDriver");
conn = DriverManager.getConnection("jdbc:Polite:Polite","system", "manager");
catch (Exception e) {
System.out.println(e);
System.exit(0);
This works fine on my PC, but in the Pocket PC it gave me: java.sql.SQLException: Internal Error. This after I expanded
the jar files, 'cause before it tells me that ther is no oljdbc40 on the shared library path. I adjusted the classpath on the
registry, but i does not have any impact ... There is no file with name oljdbc40, only JARs olite40 and olitejdbc40. I installed
olitejdbcpj40.jar, and setting this library leads to the same error above.
What could be wrong? Do you have any tutorial or can you list all steps necessary to bring this working?
ThanksIf you're attempting to use the ODBC API directly, have you downloaded the ODBC SDK from Microsoft? That will include some sample code, which is a great starting point. So far as I'm aware, you shouldn't need to configure anything in Borland C++ that you don't have to configure in any other C++ compiler to use ODBC.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Problem to establish connection between Oracle SQL and JDBC
Hi friends i have been trying this code from two days i donno whats wrong please try to sort the problem thank u in advance this is my program:
//This is my Connection class
package com.java.jdbc.util;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class EmployeeUtil {
public EmployeeUtil()
public static Connection getconnection()
Connection con=null;
try {
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
//DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:ORANT","system","manager");
// Class.forName("sun.jdbc.odbc.OracleDriver").newInstance();
// con = DriverManager.getConnection("jdbc:odbc:Javatut","System","manager");
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InstantiationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return con;
//This is my DB class:
package com.java.jdbc.DB;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import com.java.jdbc.info.EmployeeInfo;
import com.java.jdbc.util.EmployeeUtil;
public class EmployeeDB {
Connection connection=null;
public EmployeeDB()
//this.connection=EmployeeUtil.getconnection();
public void select(EmployeeInfo empinfo)
this.connection=EmployeeUtil.getconnection();
String stb = "select * from employee";
try {
Statement stmt = connection.createStatement();
ResultSet rs = stmt.executeQuery(stb);
System.out.println(rs);
//EmployeeInfo empinfo = new EmployeeInfo();
while(rs.next())
empinfo.setEmpId(rs.getString(1));
empinfo.setEmpfName(rs.getString(2));
empinfo.setEmplName(rs.getString(3));
empinfo.setEmpAge(rs.getString(4));
empinfo.setEmpSalary(rs.getString(5));
System.out.println("The EmployeeID is : "+empinfo.getEmpfName());
System.out.println("The Employee First Name is : "+empinfo.getEmpfName());
System.out.println("The Employee Last Name is : "+empinfo.getEmplName());
System.out.println("The Employee Age is : "+empinfo.getEmpAge());
System.out.println("The Employee Salary is : "+empinfo.getEmpSalary());
connection.commit();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
//This is my info object
package com.java.jdbc.info;
public class EmployeeInfo {
private String empId;
private String empfName;
private String emplName;
private String empAge;
private String empSalary;
public String getEmpAge() {
return empAge;
public void setEmpAge(String empAge) {
this.empAge = empAge;
public String getEmpfName() {
return empfName;
public void setEmpfName(String empfName) {
this.empfName = empfName;
public String getEmpId() {
return empId;
public void setEmpId(String empId) {
this.empId = empId;
public String getEmplName() {
return emplName;
public void setEmplName(String emplName) {
this.emplName = emplName;
public String getEmpSalary() {
return empSalary;
public void setEmpSalary(String empSalary) {
this.empSalary = empSalary;
//This is my Controller class:
package com.java.jdbc.controller;
import com.java.jdbc.DB.EmployeeDB;
import com.java.jdbc.info.EmployeeInfo;
public class EmployeeController {
public static void main(String args[])
EmployeeDB empdb = new EmployeeDB();
EmployeeInfo emp = new EmployeeInfo();
empdb.select(emp);
// I got these errors:
java.sql.SQLException: Io exception: Got minus one from a read call
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:210)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.java.jdbc.util.EmployeeUtil.getconnection(EmployeeUtil.java:18)
at com.java.jdbc.DB.EmployeeDB.select(EmployeeDB.java:20)
at com.java.jdbc.controller.EmployeeController.main(EmployeeController.java:11)
Exception in thread "main" java.lang.NullPointerException
at com.java.jdbc.DB.EmployeeDB.select(EmployeeDB.java:23)
at com.java.jdbc.controller.EmployeeController.main(EmployeeController.java:11)Are you using Oracle 10.2 in shared server configuration under Windows?
If so it's a driver bug (BUG - Connection pooling with 10g 10.1.3 Preview 4 App Server Oracle suggest to use OCI driver.
Maybe you are looking for
-
Buying Indesign software instead of Creative Cloud pay monthly
Please can someone help? I have Adobe Photoshop Elements 12 and I also want to buy Adobe InDesign. I don't want to pay monthly as the level that I need it for I will not need updates on it etc etc. I would prefer to buy outright and not pay monthly (
-
Details of Crashing Information AdapterDeviceID: 2562 AdapterVendorID: 8086 Add-ons: {d47a9f51-8281-43fa-f450-f28ef8735e9a}:2.1.1,[email protected]:3.6.5.112,{972ce4c6-7e08-4474-a285-3208198ce6fd}:4.0 AvailableVirtualMemory: 1923440640 BuildID: 20110
-
ABAP OO Doubt - validate call method.
Hi experts I'm beginer in ABAP OO and i created this code : output-cep = ch_adrc_struc-post_code1. TRY. CREATE OBJECT lr_cep. CATCH cx_ai_system_fault . ENDTRY. TRY.
-
Creating a Macro with Adobe Acrobat X v.10.0.0 HELP!
Hello, I am new to Adobe and was wondering if there is a way to create a macro for my situation. I am recording voting decisions from a pdf into an excel spreadsheet. I need to go through multiple pdf files and find the pages where votes have taken p
-
Adding a check box control for each row of data in a DataModel
Hi all, I need to add a checkbox control for each row of data on a DataModel object. I have a "commandButton" at the bottom of DataModel, and whenever someone checks some of the rows on that list of rows, I need to get the selected dataModel(fragment