Solved

acess denied by rdbms

Posted on 2000-05-15
9
167 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 77
Java asynchronous logging 4 50
eclipse formatting 6 72
type mismatch (Object[] to double[] 4 0
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This video teaches viewers about errors in exception handling.

920 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

11 Experts available now in Live!

Get 1:1 Help Now