• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.security.AccessControlException

 
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ulf Dittmer,

Oracle forms were calling the Java bean using VBean Class. And the Java bean is downloading the files from application server
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any suggestions please
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Meet Gaurav wrote:Any suggestions please


I can remember saying to you that Patience Is A Virtue.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic