Forums Register Login

java.security.AccessControlException

+Pie Number of slices to send: Send
Hi ALL,

I have a query REG: java.policy File

I developed a java bean that will download a file from the application server to client machine. Some time back the code works fine and now am getting java.security.AccessControlException: access denied (java.net.SocketPermission 202.55555.0.44:7022 connect,resolve)

I started googling and I got some replys saying that some permissions were missing in java.policy File.
Could some one please assist me to resolve this issue.

Thanks in advance
+Pie Number of slices to send: Send
What kind of environment does this code run in? There must be a SecurityManager involved that enforces a policy. The first step would be to find out which policy that is, and whether it's possible to change it.
+Pie Number of slices to send: Send
Thanks Ulf Dittmer,

Oracle forms were calling the Java bean using VBean Class. And the Java bean is downloading the files from application server
+Pie Number of slices to send: Send
OK, so there's an application server. You need to find out which security policy it uses; maybe the system administrator can help with that.
+Pie Number of slices to send: Send
But the same file from the same client machine can be able to access through browser. But Java bean is failing(AccessControlException )

Also I just checked with DBA team and system Admin. They were helpless to me
+Pie Number of slices to send: Send
Any suggestions please
+Pie Number of slices to send: Send
I'm unsure now if this is a client problem or a server problem?

Whatever JVM is the origin of this problem is running under a SecurityManager. Most likely that is set as a parameter at JVM startup. So you need to find out which command is used to start the JVM. If the sys admin can't do that, then nobody can, which I think is unlikely.

If it really is happening in the app server, check its documentation for references to security managers and security policies.
+Pie Number of slices to send: Send
 

Meet Gaurav wrote:Any suggestions please


I can remember saying to you that Patience Is A Virtue.
Bring me the box labeled "thinking cap" ... and then read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1184 times.
Similar Threads
RMI Server connection problem on XP ?
SocketPermission Exception
RMI Server Connection Problem on XP prof
help to avoid SecuriyAcessControl Exception
Where to place the java.policy file
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 22:24:43.