?
Solved

Java Programming question

Posted on 1997-09-08
1
Medium Priority
?
251 Views
Last Modified: 2011-10-03
Hi
I was trying to run the demo applet JdbcApplet.java for jdbc thin driver using the JDK appletviewer from sun.

The applet came up with the "connection refused" exception on the following line of code:
conn = DriverManager.getConnection (connect_string);

the connect_string had been earlier defined as

static final String connect_string =
                  "jdbc:oracle:thin:myuserid/mypassword@myhost:1525:corvus1";

1525 is the port listed in /etc/services for orasrv
corvus1 is the sid as per our administrator sqlplus.
I was running the applet on a Win95 PC from a DOS window and trying to connect to an Oracle8 database on an AIX box.
Do I need to grant some specific permissions ?

0
Comment
Question by:monal090797
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
EricKaplan earned 100 total points
ID: 1226662
The proper error should be a security exception as applets are allowed to access the host which they ere loaded from and only it.

In any case (even if you run it frm the AIX host), make sure you have loaded the oracle driver (you can debug the client and do a step into driver manager code and see how it iterates over the loaded drivers).

-Eric.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month12 days, 9 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question