Forum Stats

  • 3,816,414 Users
  • 2,259,185 Discussions
  • 7,893,475 Comments

Discussions

Jdev issue with Anyconnect VPN4.10 java.net.SocketException:Permission denied:connect

Ken Mills
Ken Mills Member Posts: 2 Green Ribbon

Greetings,

*At the bottom of the intro will be the errors and data i have collected.*


Java Version: 1.8.0_311

Oracle: 10.1.3.x

Anyconnect: 4.10.01075

OS: Windows 10


Hopefully someone can help me here ive spent a few weeks troubleshooting an issue that is impacting a large group of developers at my company whom received new laptops but cannot connect with jdev using localhost on Cisco Anyconnect VPN version 4.10.01075

To make it stranger, the connection on the new laptops works on the network proper and off VPN as well as on standard external connection. The old laptops with mirrored configurations has no issue with the former(works internal, vpn and external)

The software versions of Jdev, Java, Oracle and Anyconnect are the same between the new and old units and there is transparent proxy settings here as i was looking at a similar exact issue that was closed with no resolution(see: https://community.oracle.com/tech/developers/discussion/3993565/unable-to-run-applications-in-jdeveloper-with-anyconnect-vpn )


Any help or guidance would be incredibly appreciated on this, hopefully i provided enough data to start this off!


OC4J console error:

Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]

C:\Oracle\JDevOracle\jdevhome\jdev\system\oracle.j2ee.10.1.3.43.6\embedded-oc4j\config>

C:\Oracle\JDevOracle\jdevbin\jdk\bin\javaw.exe -hotspot -classpath C:\Oracle\JDevOracle\jdevbin\j2ee\home\oc4j.jar;C:\Oracle\JDevOracle\jdevbin\jdev\lib\jdev-oc4j-embedded.jar -DFND_JDBC_STMT_CACHE_SIZE=200 -DCACHENODBINIT=true -DRUN_FROM_JDEV=true -mx256m -XX:MaxPermSize=256M -Doracle.j2ee.dont.use.memory.archive=false -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\Oracle\JDevOracle\jdevhome\jdev\system\oracle.j2ee.10.1.3.43.6\embedded-oc4j\config\server.xml

[waiting for the server to complete its initialization...]

Mar 3, 2022 4:18:44 PM com.evermind.server.jms.JMSMessages log

INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).

Mar 3, 2022 4:18:44 PM com.evermind.server.jms.JMSMessages log

INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].

22/03/03 16:18:44 WARNING: Code-source C:\Oracle\JDevOracle\jdevbin\jdev\appslibrt\xml.jar (from <library> in /C:/Oracle/JDevOracle/jdevhome/jdev/system/oracle.j2ee.10.1.3.43.6/embedded-oc4j/config/application.xml) has the same filename but is not identical to /C:/Oracle/JDevOracle/jdevbin/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\Oracle\JDevOracle\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.

22/03/03 16:18:44 WARNING: Code-source C:\Oracle\JDevOracle\jdevbin\jdev\appslibrt\jazn.jar (from <library> in /C:/Oracle/JDevOracle/jdevhome/jdev/system/oracle.j2ee.10.1.3.43.6/embedded-oc4j/config/application.xml) has the same filename but is not identical to /C:/Oracle/JDevOracle/jdevbin/j2ee/home/jazn.jar (from <code-source> in META-INF/boot.xml in C:\Oracle\JDevOracle\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.

22/03/03 16:18:44 WARNING: Code-source C:\Oracle\JDevOracle\jdevbin\jdev\appslibrt\jazncore.jar (from manifest of /C:/Oracle/JDevOracle/jdevbin/jdev/appslibrt/jazn.jar) has the same filename but is not identical to /C:/Oracle/JDevOracle/jdevbin/j2ee/home/jazncore.jar (from <code-source> in META-INF/boot.xml in C:\Oracle\JDevOracle\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.

22/03/03 16:18:50 java.net.SocketException: Permission denied: connect

22/03/03 16:18:50 at java.net.PlainSocketImpl.socketConnect(Native Method)

22/03/03 16:18:50 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

22/03/03 16:18:50 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

22/03/03 16:18:50 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

22/03/03 16:18:50 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

22/03/03 16:18:50 at java.net.Socket.connect(Socket.java:529)

22/03/03 16:18:50 at java.net.Socket.connect(Socket.java:478)

22/03/03 16:18:50 at java.net.Socket.<init>(Socket.java:375)

22/03/03 16:18:50 at java.net.Socket.<init>(Socket.java:218)

22/03/03 16:18:50 at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.sendMessage(Oc4jNotifier.java:98)

22/03/03 16:18:50 at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.postInitApplicationServer(Oc4jNotifier.java:55)

22/03/03 16:18:50 at com.evermind.server.ApplicationServer.serverExtensionPostInit(ApplicationServer.java:1218)

22/03/03 16:18:50 at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1065)

22/03/03 16:18:50 at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)

22/03/03 16:18:50 at java.lang.Thread.run(Thread.java:662)

22/03/03 16:18:50 Oracle Containers for J2EE 10g (10.1.3.5.0) initialized

Process exited.


System Variables: -Djava.net.preferIPv4Stack=true

Confirmed Forcepoint is not impacting this

Confirmed SentinelOne is not impacting this

Confirmed that the listeners are actively listening on the right ports when OCj4 is ran

Confirmed ports are opened

Confirmed in network logs that there is no communication attempts(user is using localhost)

Confirmed environment variables are appropriate system and user

Confirmed all functionality off VPN, works in all other instances including being on the network.

Disabled Ipv6 on all adapters

Disabled ipv6 via registry key

Set registry key preferences for ipv4

Moved device in Active Directory OU


Best Answer

Answers