Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 235 Big Data Appliance
- 1.9K Data Science
- 449.9K Databases
- 221.6K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.9K SQL & PL/SQL
- 21.3K SQL Developer
- 295.4K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.1K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 158 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 396 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 230 Portuguese
Jdev issue with Anyconnect VPN4.10 java.net.SocketException:Permission denied:connect

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
-
Good lord this "community" is useless
Answers
-
Good lord this "community" is useless
-
Hello @Ken Mills
It seems i am having a similar problem!!
Were you able to find a solution for this?
thank you
-
Have the suggestions in the message dialog been tried?
-
hi @dvohra21
Not from my end no.
Will try to have a look, but i guess it will rather slowdown the error message to appear since we increased the timeout,
-
I found solution from metalink;
Unable To Run Applications In JDeveloper With AnyConnect VPN (Doc ID 1671579.1)
but it's not working, if any one find another solution please let me know.
-
What is the jdeveloper version? It is a connectivity issue. Any Connect VPN may not be supported, or if supported some permissions need to be set.
The Unable To Run Applications In JDeveloper With AnyConnect VPN (Doc ID 1671579.1) is for jdev 10g, but could still be relevant. What was tried from the link? All suggestions? Was a "loopback adapter" installed as suggested, or were files in the persistence\ dir deleted?
-
Hello
I was able to workaround the issue by using the Cisco Any Connect VPN client from the MIcrosoft Store instead of the standalone cisco any connect client which comes in a separate installer.
From the VPN on the windows store, you setup the VPN connection from the WINDOWS VPN Settings.