This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Modern JavaScript for the Impatient and have Cay Horstmann on-line!
See this thread for details.
Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Problem with ORACLE port when connecting from RMI

 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
WE are trying to invoke an application from ORACLE 9i using RMI we get an exception as

ERROR: java.security.AccessControlException: the Permission

(java.net.SocketPermission 202.46.209.44:38766 connect,resolve) has not been

granted to WEBX

The port 38766 is not being used by our application nor the RMI.RMI is using the port 1099. once permission is granted to this 38766 port,the application is working fine.
The same application,again if invoked some time later,it again comes up with a different Port and again throws the exception.

Could any one please help me out with this? why is that the oracle is randomly coming up with ports?? IS it some firewall problem? or is it that
oracle is creating random ports by itself as a security measure? if so how to overcome this port problem.

Its really urgent.thank you for your time.

Thanks
Raj
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your DB is on Windows or is configured as Shared Server the listener will catch the initial connection (usually on pots 1521 or 1526) then hand off to a dedicated background process (windows dedicated) or a dispatcher (Shared Server) on a different port.

See

http://www.stunnel.org/examples/oracle.html

for a fix for the windows 9i problem.

If you are using Shared Server get your DBA to reconfigure to allow your Application to make a dedicated connection.
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post the same question in more than one forum. Read CarefullyChooseOneForum to see why.

Duplicate post over in Distributed Java forum
 
Those cherries would go best on cherry cheesecake. Don't put those cherries on this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic