Rocket® AppServer (formerly part of Micro Focus)

 View Only
  • 1.  org.omg.CORBA.OBJECT_NOT_EXIST: java.net.SocketException: Permission denied: connect

    Posted 11-09-2023 04:33

    Does anyone have suggestions on how to troubleshoot this issue?

    I am running the VisiBroker OS Agent (8.5 SP8) locally. I'm trying to get it running for the first time on a new laptop. Many of us developers have run v8 versions locally for a couple of decades and it worked for me on my old laptop (with an older SP version). I have two CORBA services (I'll call DS and Messages) that I am also running locally. In the osfind, it will show both services as having successfully registered. Depending on the various incarnation of localaddr, sometimes VBconsole sees the registered objects. And other times, it can't connect to the OS agent.

    Messages then tries to call DS and gets the following error:

    org.omg.CORBA.OBJECT_NOT_EXIST: java.net.SocketException: Permission denied: connect  vmcid: 0x56420000  minor code: 1  completed: No

    I ran the osagent with options: "-v +l a". In the log file, I see that when the request comes in to call DS, the following is logged, which makes it seem as if a response is if things are working as expected:

    ==>> Wed Nov 8 12:13:53 2023, dsaclnt.C, 0, Inf
    getProvider() Received <GetProvider> from client at
    Host : <IP>
    User : java
    PID : -1339816031
    CAddr : 127.0.0.1
    VPort : 61940
    CPort : 61940
    Requesting for the following service:
    RMI:some.package.DS:0000000000000000_vsome.package.DS.2.3.2

    ==>> Wed Nov 8 12:13:53 2023, dsaclnt.C, 0, Dbg
    getProvider() Service type <4>, Argument type <1>.

    ==>> Wed Nov 8 12:13:53 2023, dsaclnt.C, 0, Inf
    getProvider() Replying that service is located at,
    Address : <IP>
    Port : 52970

    Someone suggested adding a localaddr file into the \adm folder. I've tried probably a dozen different combinations for ethernet only or wireless only connection. Depending on setup, VB Console sometimes can't find the agent (while osfind always can). However, in all cases, Messages gets "Permission denied". Going back three months, I see no case of any of our almost two dozen CORBA applications in environments ever having logged this error.

    Note that I do have some admin permission on this laptop.

    Other things I've tried:

    • Moving installation folder under My Documents
    • Running OSAgent as Administrator
    • Running my IDE as Administrator. (I'm launching the services from my IDE as I have always done.)
    • Disabled (temporarily) all firewall settings
    • Reviewed the process in Windows Process Monitor.

    #CORBA
    #VisiBroker


  • 2.  RE: org.omg.CORBA.OBJECT_NOT_EXIST: java.net.SocketException: Permission denied: connect

    Posted 11-09-2023 04:34

    Note that I am on Windows 10. (I don't see how to edit my question.)



  • 3.  RE: org.omg.CORBA.OBJECT_NOT_EXIST: java.net.SocketException: Permission denied: connect

    Posted 11-16-2023 22:30

    Hi Marnee. Thanks for raising this issue.

    To understand the reasons behind the SocketException, we will need to see Messages' full debug logs. Could you open a support ticket with the details? We can pick it up from there.

    Thank you and regards,

    Pat

    OpenText SupportLine



  • 4.  RE: org.omg.CORBA.OBJECT_NOT_EXIST: java.net.SocketException: Permission denied: connect

    Posted 11-16-2023 22:40

    Thanks, Pat. Actually, my coworker might have found a fix for this. I want to do some more verification. I will then either reply here with the solution, or I will open a support ticket. How would I open a support ticket. I'm sorry, I haven't found the right spot in this app to do so.



  • 5.  RE: org.omg.CORBA.OBJECT_NOT_EXIST: java.net.SocketException: Permission denied: connect

    Posted 11-16-2023 22:42

    Hi Marnee. Thanks for the update. It is good to know you may have a solution.

    You can open a support case with us through our support portal. Full details can be found here: https://support.microfocus.com/help/support-portal-overview.pdf

    All the best,

    Pat



  • 6.  RE: org.omg.CORBA.OBJECT_NOT_EXIST: java.net.SocketException: Permission denied: connect

    Posted 11-16-2023 22:34

    Hi Marnee,

          Thank you for reaching out to the OpenText CORBA community for help with your VIsiBroker 8.5 troubleshooting. This issue appears to be relatively involved and troubleshooting this issue with osagent on different LAN segements with the localaddr file will certainly involve sharing information best performed in a new support case with the CORBA technical support team. Please open a new support case and we will assist you with your issue. 

    Best Regards,

    -Scott



  • 7.  RE: org.omg.CORBA.OBJECT_NOT_EXIST: java.net.SocketException: Permission denied: connect
    Best Answer

    Posted 01-06-2024 03:10

    We solved this by adding the following system property to our Java VisiBroker services:

    java.net.preferIPv4Stack=true