Похожие чаты

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 ответов

12 просмотров

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😆

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта