IntelliJ not connecting to internet when my organization vpn is connected? - java

I tried to make gradle build, but intellij not downloading my dependency.
I am connected to my organization VPN, also tried automatic HTTP proxy
and custom vm argument no luck. I tried test connection in proxy settings it failing with VPN.
But without VPN test connection is success. Week before both ways its working. Can't understood sudden problem. Any solutions
Intellij Version 2019.1.2

I didn't encounter this problem myself, but from what I see in the internet, this is most likely not an IDEA problem, but a "Grandle through VPN" problem.
Some googling shows up next:
How to configure Grandle with VPN
Example of fixing SBT proxy in IDEA

Related

Spring project cannot connect to the database

PLSQL can connect to oracle, but the project can not be connected, it will report errors when it is started, but it should not be the problem of code, because everyone of the code is pulled down from git.
I've tried re-installing jdk, re-pulling maven library, and even installing virtual machines, is still not good, or report the same error.
The error occurs when your database is down hence the connection refused error or your credentials are wrong. It would help if we could look at your code.

Not able to record in Jmeter after OS reinstallation

I am using Jmeter 2.13 version and with that I used to record many scripts earlier successfully without any issue . Now, my OS has been reinstalled and I am holding Windows 8.1 , 64 bit version.After re installation, I am not able to record HTTPS web applications even though my proxy configuration is correct. After I setup everything in Jmeter, and click on start from work bench and I navigate to the browser try to access the application, it shows "Server not found" message.
However, the scripts which I saved earlier are working fine without any issues. only the new recording is not working.
Help me with the possible solutions.
"Server not found" indicates that browser is unable to access Internet (or intranet).
Most likely you're sitting behind the corporate proxy server and in previous JMeter installation you had these proxy server details specified in system.properties file like:
http.proxyHost=10.20.30.40
http.proxyPort=3128
https.proxyHost=10.20.30.40
https.proxyPort=3128
Double check with your network administrator if this is the case, if yes - take steps from Using JMeter behind a proxy User Manual chapter.
You can also try out JMeter Chrome Extension as an alternative solution - in that case you don't have to worry about proxies and SSL certificates substitution.

Debugging Apache Spark clustered application from Eclipse

I am trying to debug Spark application running on eclipse in clustered/distributed environment but not able to succeed.
Application is java based and I am running it through Eclipse. Configurations to spark for Master/worker is provided through Java only.
Though I can debug the code on driver side but as the code flow moves in Spark(i.e call to .map(..)), the debugger doesn't stop. Because that code is running in Workers JVM.
Is there anyway I can achieve this ?
I have tried giving following configurations in Tomcat through Eclipse :
-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=7761,suspend=n
and setting respective port in Debug->remote java application.
But after these settings I get the error: Failed to connect to remote VM. Connection Refused
If anybody has any solution to this, please help.
I was facing the same issue while configuring the spark debugging on remote master. But after that I've installed the spark on my Ubuntu machine then it worked fine. If you really want to debug, my suggestions are
1- configure spark on your testing machine then you can easily debug applications.
2- use IntelliJ IDEA, I've used it for for debugging if I've to use remote spark.
EDITED:
If you are going to use IntelliJ IDEA then you can easily configure remote debugging as explained here. Debugging Apache Spark Jobs

Dynamic Webservices project -- can only connect over localhost

I'm running a RESTful webservice created in Eclipse Java EE using TomCat 7.0. I test it using a web browser. It will connect over the localhost, but not with the remote IP. It used to work with an IP, and then I moved my project to a Git repository so I could upload it to Github. Now it's not working for an IP. Not really sure what's up.
Any ideas? Firewalls are off too.
Bonus: I also have the small red x error icon on my project. I can't find any errors and it compiles fine and works fine as long as it's localhost. How the heck do I get rid of the x icon?
Edit: Works with a local IP. I was testing this on a college network earlier. Now I'm on a home network. Any comments?
Hope the following article helps :
www.sitepoint.com/accessing-localhost-from-anywhere
Incase you also have trouble accessing via localhost refer to all the answers for this post:
stackoverflow.com/questions/2280064/tomcat-started-in-eclipse-but-unable-to-connect-to-http-localhost8085
The question is missing many details like logs.. url and configuration for tomcat to give you a specific answer

eclipse port occupying error on startup

I am getting this error while starting eclipse. I am using eclipse on windows 7
"There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server.
Command start-domain failed."
I have searched and found that if i put mny hostname against 127.0.0.1 then this problem can be resolve but my problem is that i can't place my hostname in my host file due to our organization internal network security and i can't even edit this file.So i want that this glassfish server stops allocating 4848 port and starts working on another port.
Please help as i got stuck in this issue.
Thanks
The Eclipse plugin contributes its own Glassfish instance that runs only as long as Eclipse runs. Uninstalling your standalone copy is probably a good solution for you. If not, reconfigure the standalone copy to use a different admin port.
A simple Google search will cover that for you. Here's what I have found as the top hit.

Categories

Resources