Results 1 to 6 of 6
Thread: Access Control Exception
- 08-25-2010, 12:38 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 28
- Rep Power
- 0
Access Control Exception
hey pals
i have 2 classes one is....
main class
class mainclass
{
public static void main(String[] arg)
{
}
}
and the orther is connectionclass
class connectionclass
{
.....
.....
.....
.....
.....
.....
}
now when i use connectionclass in my mainclass likje this...
class mainclass
{
public static void main(String[] arg)
{
connectionclass object = new connectionclass();
}
}
a new connection is created in and this can be seen on server console'
which means a new client is connected to server
which definately means if i make the object of connectionclass in the project it will lead to connection of client to the server
but now the problem lies here when i try to create the object of connectionclass in the init method of my applet all the object are created ithe applet and there are visible too on ly thing which remains is the connection when i go through the jre console i see the the Access control Exception on the line where outbut stream object is being initlized
os = urlconnectionobject.getoutputstream();
can any one help me out with the problem??
- 08-25-2010, 02:59 PM #2
Member
- Join Date
- Mar 2010
- Posts
- 28
- Rep Power
- 0
- 08-25-2010, 04:12 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,417
- Blog Entries
- 7
- Rep Power
- 17
- 08-26-2010, 07:18 AM #4
Member
- Join Date
- Mar 2010
- Posts
- 28
- Rep Power
- 0
all i want is help and that too urgent...
- 08-26-2010, 09:22 AM #5
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Your urgency is irrelevant to us.
If your Applet is accessing something that isn't from the location it came from you will get an exception. I have no idea if that's what you're doing, because you have provided us with so little info.
- 08-26-2010, 01:16 PM #6
Similar Threads
-
network access control
By yuhobebbho in forum NetworkingReplies: 0Last Post: 05-05-2010, 12:05 PM -
access control exception,while running rmi
By megha in forum Advanced JavaReplies: 3Last Post: 10-26-2008, 04:10 PM -
using Java to access a secure webpage, Exception occurred: Connection timed out
By toby in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 08-07-2007, 06:03 AM


LinkBack URL
About LinkBacks


Bookmarks