Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / September 2004

Tip: Looking for answers? Try searching our database.

Java security

Thread view: 
yvashchenko - 29 Sep 2004 11:47 GMT
I havean applet that connects to Oracle osing the thin client.  It
works when run from IDE.  When I try to load it into a web browser I
get

java.security.AccessControlException: access denied
(java.util.PropertyPermission oracle.jserver.version read)

What's up?
Robert Klemme - 29 Sep 2004 15:58 GMT
> I havean applet that connects to Oracle osing the thin client.  It
> works when run from IDE.  When I try to load it into a web browser I
> get
>
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission oracle.jserver.version read)

Applets are only allowed to contact the server they originated from unless
they are signed.  It's generally not a good idea to write an applet that
uses JDBC directly.  Rather communicate with the server and have him do
the DB work.  You can make your life easier by using serialized data for
the communication.  That way the parsing is done for you.

   robert
yvashchenko - 30 Sep 2004 10:18 GMT
Robert
Danke shoen,

But could you explain the fact that I can run the very same applet
from IDE (IntelligIdea)?  Apparently it means that this is possible
somehow.

The problem is that I do not have access to the server and I need this
application to be a part of a webpage.

Yuri

> > I havean applet that connects to Oracle osing the thin client.  It
> > works when run from IDE.  When I try to load it into a web browser I
[quoted text clipped - 10 lines]
>
>     robert
Robert Klemme - 30 Sep 2004 11:05 GMT
> Robert
> Danke shoen,
>
> But could you explain the fact that I can run the very same applet
> from IDE (IntelligIdea)?  Apparently it means that this is possible
> somehow.

Apparently the IDE does not employ a SecurityManager.  There is no server
that the applet was loaded from so it can't possibly check the connection.
Well it could use localhost, but apparently there are no checks.

> The problem is that I do not have access to the server and I need this
> application to be a part of a webpage.

As I said: don't use JDBC in applets.  In your case either implement your
own protocol over HTTP or use Java WebStart.

   robert

> Yuri
>
[quoted text clipped - 12 lines]
> >
> >     robert


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.