Похожие чаты

Hi, I am trying to use the same proxy that is

configured for windows in java by using -Djava.net.useSystemProxies but it is not able to fetch the system proxy for some reason.
I tried to debug the code and found that the native call getSystemProxies() in DefaultProxySelector is returning null.

My question is that do I need some DLL that is missing or there is something off with the proxy configuration on windows?
Any help is appreciated..

12 ответов

10 просмотров

I believe you have to manually set the proxy in the task you are trying to achieve

Check this https://www.baeldung.com/java-connect-via-proxy-server

Anish- Автор вопроса
Пользователь 61653
I believe you have to manually set the proxy in th...

That wouldn't really be helpful in the case I wanna deploy the application to a server where the proxy configuration on the server would be unknown to me. This would mean manual intervention and some sort of configuration that would need to be done while deployment, right?

Anish
That wouldn't really be helpful in the case I wann...

Server OS should probably have some System.getProperty() to give you that info

Anish- Автор вопроса
Alex
Check this https://www.baeldung.com/java-connect-v...

Thank you.. Although I have tried this already and yes by setting the http.proxy thing I would have to manually set the configuration including excluding intranet IP addresses from being talked to via the proxy

Anish- Автор вопроса
Пользователь 61653
Server OS should probably have some System.getProp...

If the server OS already has something it would be definitely be fetched by the native call I've mentioned above

Anish
That wouldn't really be helpful in the case I wann...

I think it depends on where the application will be deployed. Maybe the application server is not behind the proxy and it doesn't need to be configured. If you have a Operations team you should ask them

Anish- Автор вопроса
Alex
I think it depends on where the application will b...

Well, the customer site will have it behind a proxy is what I'm sure of. The customer site is something that they control so can't do much there. The best I could do is tell java to use the system proxies. The sad part is, the issue is on our own server rather than customer.

Anish
Yes

Sorry, my condolences to your team. 😂😂

Anish- Автор вопроса
Пользователь 61653
Sorry, my condolences to your team. 😂😂

Well, I could extend condolences to myself too but then I have to fix this issue. The operations team is Jon Doe, we know he exists but whereabouts are unknown😆

Похожие вопросы

Обсуждают сегодня

а через ESC-код ?
Alexey Kulakov
29
30500 за редактор? )
Владимир
47
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
Привет)) уже кажется эту тему перемусолили, но вот я так и не понял. Я сейчас сижу на 27дюймов 2к мониторе. На Актуальной макоси, если я куплю 27д 4к монитор: - будет ли изобр...
Vladislav Piskunov
15
Hi guys, any problem with Pulsebrige? Trying to transfer from wETH to ETH. First it tells me to connect my metamask "through mobile app" not desktop. Then I did and confirmed ...
Snowflakecrypto
13
any reference of this implementation?
BitBuddha
29
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
13
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
&"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\Hostx64\x64\dumpbin.exe" /EXPORTS C:\Users\Yeet\Tauon\vcpkg\installed\x64-window...
Martin Rys
6
Карта сайта