Solved

acess denied by rdbms

Posted on 2000-05-15
9
166 Views
Last Modified: 2010-04-01
when i run my applet connected to my local database i am getting an error message like ' java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc' .
what could be the problem?
0
Comment
Question by:viswaselar
  • 4
  • 2
  • 2
  • +1
9 Comments
 

Expert Comment

by:kurman
ID: 2809883
Most probably you haven't specified user="" and password="" to access database. I don't know for sure, but if you are using ODBC bridge, specify pwd and username
0
 

Author Comment

by:viswaselar
ID: 2810752
The very same uid, pwd, driver set works
for an application. And my servlet is able to reach database with the same set.
0
 

Expert Comment

by:sdwr98
ID: 2810962
Sounds more like an applet permissions issue. Applets are usually restricted to connections only to the web server that served them.  If your database is running on a separate machine, that could be your problem.  If you're running the applet using AppletRunner, try changing the security settings to allow the applet more access.
0
 

Author Comment

by:viswaselar
ID: 2812828
How to change the security settings.
Any codes ?
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Expert Comment

by:sdwr98
ID: 2817322
If you're using AppletViewer (included with the Java2 SDK), then under Preferences, you can choose either Restricted or Unrestricted class access.  Choose Unrestricted, and see if that helps.
0
 

Author Comment

by:viswaselar
ID: 2820514
I am using browser.
0
 

Expert Comment

by:kurman
ID: 2821251
JDK 1.1 or JDK1.2 ?
0
 

Author Comment

by:viswaselar
ID: 2828857
jdk1.2
0
 
LVL 3

Accepted Solution

by:
terajiv earned 20 total points
ID: 2924509
try using Properties files...

Rajiv
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now