Hot Swap Unresponsive and Unit Tests cannot be run in Intellij IDEA

Answered

I had Intellij version 2017.3.3 and all was working fine. Hot swap button started unresponsive and I realised that JUnit tests started not being run yesterday. I updated to 2017.3.5 version and then I downloaded 2018.1.5 version to install the latest version. Nothing changed, same problem still continues.

I work on MAC OSX platform and JRE version 1.8.0_152-release.

0
15 comments

What do you mean by "unresponsive hotswap button"? What exactly happens: please describe expected/actual result. Please also post somewhere full content of idea.log file after IDE restart and full textual output from Debug tool window when you launch Junit tests.

0
Avatar
Permanently deleted user

I cannot build project (hot swap) when server is running. At the same time I cannot run/debug any unit tests. I noticed a message from Event Log as shown below:

Outdated License Server Detected
Your license ticket is obtained from an outdated version of the license server.
To keep your product licensed, the license server requires an immediate update to the latest version.
Read full details, and pass this information to the server administrator on your side.

0

"Outdated License Server Detected" message is note related to described problem.

What exactly happens when you try to build the project or try to run/debug a test? Please describe the exact steps.

0
Avatar
Permanently deleted user

First case: I click on Hot Swap button (green down arrow icon with 010101 binaries on toolbar) or click on Build Project under Build Tab or press Command+F9 (MacOS shortcut), nothing happens on all 3 cases. In the past, it rebuilded project and says <number of> classes reloaded etc and I carried on without restarting server with changes on backend classes.

Second case: I right click on a test class on project explorer and choose run/debug test class, nothing happens likewise I click on Hot Swap button. It's like clicking on button which has no function for onClick event .

0

Do you use Maven or Gradle in project? Please provide idea.log and build.log files after IDE restart and reproducing both cases. Also attach screenshot of File | Settings | Build, Execution, Deployment | Compiler and Java Compiler settings.

0

We just upgraded our license server to the latest available version and upgraded IntelliJ at the same time.  We are seeing the same "Outdated License Server Detected" message along with:

Your license ticket is obtained from an outdated version of the license server. To keep your product licensed, the license server requires an immediate update to the latest version. Read full details, and pass this information to the server administrator on your side.

We aren't having issues with the applications acquiring licenses, just keep hearing from developers about this error.

Does anyone know what is causing this?

 

License Server Build 11073

IntelliJ IDEA 2018.1.5 (Ultimate Edition)
Build #IU-181.5281.24, built on June 12, 2018


0
Avatar
Permanently deleted user

Yes I use Maven in the project.

There is no build log files under the new folder IntelliJIdea2018.1 although I built the project many times after IDE update, but there is idea.log.

2018-06-19 09:47:38,891 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------ 
2018-06-19 09:47:39,058 [ 167] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-181.5281.24, 12 Jun 2018 15:39)
2018-06-19 09:47:39,058 [ 167] INFO - #com.intellij.idea.Main - OS: Mac OS X (10.13.5, x86_64)
2018-06-19 09:47:39,058 [ 167] INFO - #com.intellij.idea.Main - JRE: 1.8.0_152-release-1136-b39 (JetBrains s.r.o)
2018-06-19 09:47:39,058 [ 167] INFO - #com.intellij.idea.Main - JVM: 25.152-b39 (OpenJDK 64-Bit Server VM)
2018-06-19 09:47:39,066 [ 175] INFO - #com.intellij.idea.Main - JVM Args: -Xms1024m -Xmx2048m -XX:ReservedCodeCacheSize=240m -XX:+UseCompressedOops -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Xverify:none -XX:ErrorFile=/Users/keremyildiz/java_error_in_idea_%p.log -XX:HeapDumpPath=/Users/keremyildiz/java_error_in_idea.hprof -Xbootclasspath/a:../lib/boot.jar -Djb.vmOptionsFile=/Users/keremyildiz/Library/Preferences/IntelliJIdea2018.1/idea.vmoptions -Didea.java.redist=jdk-bundled -Didea.home.path=/Applications/IntelliJ IDEA.app/Contents -Didea.executable=idea -Didea.paths.selector=IntelliJIdea2018.1
2018-06-19 09:47:39,066 [ 175] INFO - #com.intellij.idea.Main - ext: /Applications/IntelliJ IDEA.app/Contents/jdk/Contents/Home/jre/lib/ext: [sunec.jar, nashorn.jar, cldrdata.jar, jfxrt.jar, dnsns.jar, localedata.jar, sunjce_provider.jar, meta-index, sunpkcs11.jar, jaccess.jar, zipfs.jar]
2018-06-19 09:47:39,066 [ 175] INFO - #com.intellij.idea.Main - ext: /System/Library/Java/Extensions: [MRJToolkit.jar]
2018-06-19 09:47:39,066 [ 175] INFO - #com.intellij.idea.Main - JNU charset: UTF-8
2018-06-19 09:47:39,078 [ 187] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 12 ms
2018-06-19 09:47:39,089 [ 198] INFO - #com.intellij.idea.Main - initializing environment
2018-06-19 09:47:39,090 [ 199] INFO - .intellij.util.EnvironmentUtil - loading shell env: /bin/bash -l -i -c '/Applications/IntelliJ IDEA.app/Contents/bin/printenv.py' '/private/var/folders/0d/sr832_4s3mjd6vbgs25s_kd80000gn/T/intellij-shell-env.tmp'
2018-06-19 09:47:39,202 [ 311] INFO - .intellij.util.EnvironmentUtil - shell environment loaded (13 vars)
2018-06-19 09:47:39,218 [ 327] INFO - .intellij.util.EnvironmentUtil - LC_CTYPE=en_US.UTF-8
2018-06-19 09:47:40,236 [ 1345] INFO - #com.intellij.util.ui.JBUI - User scale factor: 1.0
2018-06-19 09:47:40,236 [ 1345] INFO - #com.intellij.util.ui.JBUI - System scale factor: 2.0 (JRE-managed HiDPI)
2018-06-19 09:47:40,858 [ 1967] INFO - .intellij.idea.IdeaApplication - CPU cores: 4; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@390f5910[Running, parallelism = 3, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@5ce282c
2018-06-19 09:47:42,366 [ 3475] INFO - llij.ide.plugins.PluginManager - 133 plugins initialized in 1231 ms
2018-06-19 09:47:42,371 [ 3480] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: ASP (0.1), Android Support (10.3.0), AngularJS (181.5281.24), Ant Support (1.0), Application Servers View (0.2.0), AspectJ Support (1.2), Bytecode Viewer (0.1), CFML Support (3.53), CSS Support (181.5281.24), CVS Integration (11), Cloud Foundry integration (1.0), CloudBees integration (1.0), CoffeeScript (181.5281.24), Copyright (8.1), Coverage (181.5281.24), Cucumber for Groovy (181.5281.24), Cucumber for Java (181.5281.24), DSM Analysis (1.0.0), Database Tools and SQL (181.5281.24), Eclipse Integration (3.0), EditorConfig (181.5281.24), Emma (181.5281.24), Flash/Flex Support (181.5281.24), FreeMarker support (1.0), GWT Support (1.0), Geronimo Integration (1.0), Gherkin (999.999), Git Integration (8.1), GitHub (181.5281.24), GlassFish Integration (1.0), Google App Engine Integration (1.1.4), Gradle (181.5281.24), Grails (9.0), Groovy (9.0), Guice (8.0), HTML Tools (2.0), HTTP Client (181.5281.24), Haml (181.5281.24), Heroku integration (181.5281.24), Hibernate Support (1.0), I18n for Java (181.5281.24), IDE Settings Sync (181.5281.24), IDEA CORE (181.5281.24), IntelliLang (8.0), J2ME (1.0), JBoss Arquillian Support (1.0), JBoss Drools Support (1.0), JBoss Frameworks Base Support (1.0), JBoss Integration (1.0), JBoss Seam Pageflow Support (1.0), JBoss Seam Pages Support (1.0), JBoss Seam Support (1.0), JBoss jBPM (2.0.0), JSR45 Integration (1.0), JUnit (1.0), Java Bytecode Decompiler (181.5281.24), Java EE: Batch Applications (1.0), Java EE: Bean Validation Support (1.1), Java EE: Contexts and Dependency Injection (1.1), Java EE: EJB, JPA, Servlets (1.0), Java EE: JMS, JSON Processing, Concurrency, Transaction (1.0), Java EE: Java Server Faces (2.2.X.), Java EE: RESTful Web Services (JAX-RS) (1.0), Java EE: Web Services (JAX-WS) (1.9), Java EE: WebSockets (1.0), Java Server Pages (JSP) Integration (1.0), Java Stream Debugger (181.5281.24), JavaFX (1.0), JavaScript Debugger (1.0), JavaScript Intention Power Pack (0.9.4), JavaScript Support (1.0), Jetty Integration (1.0), Kotlin (1.2.31-release-IJ2018.1-1), Less support (181.5281.24), Markdown support (181.5281.24), Maven Integration (181.5281.24), Maven Integration Extension (181.5281.24), Mercurial Integration (10.0), OpenShift integration (1.0), Osmorc (1.4.11), Perforce Integration (2.0), Persistence Frameworks Support (1.0), Playframework Support (1.0), Plugin DevKit (1.0), Properties Support (181.5281.24), QuirksMode (181.5281.24), Reactor framework support (1.0), Refactor-X (2.01), Remote Hosts Access (0.1), Resin Integration (8.1), SSH Remote Run (0.1), Sass support (181.5281.24), Settings Repository (181.5281.24), Smali Support (1.0), Spring AOP/@AspectJ (1.0), Spring Batch (1.0), Spring Boot (1.0), Spring Data (1.0), Spring Integration Patterns (1.0), Spring MVC (1.0), Spring OSGi (1.0), Spring Security (1.0), Spring Support (1.0), Spring Web Flow (1.0), Spring Web Services (1.0), Spring WebSocket (1.0), Spy-js (181.5281.24), Struts 1.x (2.0), Struts 2 (1.0), Stylus support (999.999), Subversion Integration (1.1), TFS Integration (999.999), Tapestry support (1.0), Task Management (1.0), Terminal (0.1), TestNG-J (8.0), Thymeleaf (1.0), Time Tracking (1.0), Tomcat and TomEE Integration (1.0), UI Designer (181.5281.24), UML Support (1.0), Vaadin Support (1.0), Velocity support (1.0), W3C Validators (2.0), WebLogic Integration (1.0), WebSphere Integration (1.0), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML (181.5281.24), ZKM-Unscramble (1.0), dmServer Support (0.9.5), tslint (181.5281.24)
2018-06-19 09:47:42,371 [ 3480] INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: Vue.js (181.4892.29)
2018-06-19 09:47:43,232 [ 4341] INFO - cloudConfig.CloudConfigManager - === Exit: JBA_NOT_FOUND ===
2018-06-19 09:47:43,272 [ 4381] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=1994
2018-06-19 09:47:43,322 [ 4431] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: /Applications/IntelliJ IDEA.app/Contents/bin/fsnotifier
2018-06-19 09:47:43,331 [ 4440] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2018-06-19 09:47:43,856 [ 4965] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2018-06-19 09:47:43,964 [ 5073] WARN - nSystem.impl.ActionManagerImpl - keymap "Xcode" not found [Plugin: Git4Idea]
2018-06-19 09:47:43,991 [ 5100] WARN - nSystem.impl.ActionManagerImpl - keymap "Xcode" not found [Plugin: hg4idea]
2018-06-19 09:47:44,256 [ 5365] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.ui.OptionsTopHitProvider$Activity@68b2b755
2018-06-19 09:47:44,275 [ 5384] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2018-06-19 09:47:44,289 [ 5398] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2018-06-19 09:47:44,350 [ 5459] INFO - gs.impl.UpdateCheckerComponent - channel: release
2018-06-19 09:47:44,507 [ 5616] INFO - il.indexing.FileBasedIndexImpl - Index exts enumerated:117, number of extensions:74
2018-06-19 09:47:44,512 [ 5621] INFO - il.indexing.FileBasedIndexImpl - Index scheduled:4
2018-06-19 09:47:44,569 [ 5678] INFO - tellij.psi.stubs.StubIndexImpl - All stub exts enumerated:47, number of extensions:116
2018-06-19 09:47:44,570 [ 5679] INFO - tellij.psi.stubs.StubIndexImpl - stub exts update scheduled:0
2018-06-19 09:47:45,031 [ 6140] INFO - plication.impl.ApplicationImpl - 101 application components initialized in 3898ms
2018-06-19 09:47:45,112 [ 6221] INFO - .intellij.idea.IdeaApplication - App initialization took 7209 ms
2018-06-19 09:47:45,788 [ 6897] INFO - pl$FileIndexDataInitialization - Initialization done:1276
2018-06-19 09:47:45,864 [ 6973] INFO - exImpl$StubIndexInitialization - Initialization done:75
2018-06-19 09:47:46,019 [ 7128] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2018-06-19 09:47:46,720 [ 7829] INFO - j.ide.ui.OptionsTopHitProvider - 794 ms spent to cache options in application
2018-06-19 09:47:47,082 [ 8191] INFO - .openapi.application.Preloader - Finished preloading com.intellij.openapi.actionSystem.impl.ActionPreloader@2726f29f
2018-06-19 09:47:48,494 [ 9603] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.ui.search.SearchableOptionPreloader@483a3ca
2018-06-19 09:47:48,968 [ 10077] INFO - .openapi.application.Preloader - Finished preloading com.intellij.codeInsight.completion.CompletionPreloader@3318aaf3
2018-06-19 09:47:48,976 [ 10085] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.actions.GotoClassPresentationUpdater@4b4c6280
2018-06-19 09:47:49,131 [ 10240] INFO - CompilerWorkspaceConfiguration - Available processors: 4
2018-06-19 09:47:49,139 [ 10248] INFO - pl.projectlevelman.NewMappings - VCS Root: [] - [<Project>]
2018-06-19 09:47:49,139 [ 10248] INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [<Project>]
2018-06-19 09:47:49,856 [ 10965] INFO - ellij.project.impl.ProjectImpl - 181 project components initialized in 1353 ms
2018-06-19 09:47:51,419 [ 12528] INFO - le.impl.ModuleManagerComponent - 1 module(s) loaded in 1562 ms
2018-06-19 09:47:51,596 [ 12705] INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2018-06-19 09:47:51,828 [ 12937] WARN - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.
2018-06-19 09:47:52,074 [ 13183] INFO - ellij.project.impl.ProjectImpl - 20 project components initialized in 21 ms
2018-06-19 09:47:52,539 [ 13648] INFO - CompilerBackwardReferenceIndex - backward reference index version differ due to: class java.io.FileNotFoundException
2018-06-19 09:47:53,177 [ 14286] INFO - rojectCodeStyleSettingsManager - Initialized from default code style settings.
2018-06-19 09:47:53,509 [ 14618] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 632ms; general responsiveness: ok; EDT responsiveness: ok
2018-06-19 09:47:56,526 [ 17635] INFO - tartup.impl.StartupManagerImpl - OpenFilesActivity run in 3697ms under project opening modal progress
2018-06-19 09:47:56,580 [ 17689] INFO - ge.ExternalProjectsDataStorage - Loaded external projects data in 3 millis
2018-06-19 09:47:56,622 [ 17731] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 3828ms; general responsiveness: ok; EDT responsiveness: 0/4 sluggish, 2/4 very slow

I attached 2 images showing my Compiler and Java Compiler settings.



 

0

>We just upgraded our license server to the latest available version and upgraded IntelliJ at the same time. We are seeing the same "Outdated License Server Detected" message along with:

>Does anyone know what is causing this?

Yes, the License Sever version that is used in your organisation to distribute licenses needs to be updated. You can copntact support-int@jetbrains.com for more details if you have any questions.


Do you run any Maven goals (e.g. for building the project or from plugins)? Does build action (Build | Rebuild project) work when application is not running? Does build action work in other projects?

>There is no build log files under the new folder IntelliJIdea2018.1

build.log file is located in IDE "log/build-log" directory. Do you have one?

Please try if it helps deleting IDE Caches folder.

 

0
Avatar
Permanently deleted user

I checked if there was any other log file path from your support link: https://www.jetbrains.com/help/idea/15.0/project-and-ide-settings.html 

There is no additional log file. After IDE update, there is no build log file.



0
Avatar
Permanently deleted user

Yes I run/debug as maven project. Btw build project is not working even if application is not working.

I tried with other project, build project works and test classes can be run/debugged. It might be related with my project configuration.

0

>Yes I run/debug as maven project.

I mean do you build the project via Maven goal or use only IDE for building (i.e. Build | Build Project action)? Have you ever configured any Maven triggers?

Is it possible to get a screencast showing these steps to see what is going on? It is strange that the IDE build action is not triggered at all after you invoke the action. I see no errors in logs, so IDE is not broken.

0
Avatar
Permanently deleted user

I added New Maven Configuration and inserted Command Line under Run/Edit Configurations. After that I run/debug configuration I added. Btw it was working before.

0

 

>I added New Maven Configuration and inserted Command Line under Run/Edit Configurations.

Please attach screenshot(s) of run debug configuration(s) you have created and that you run.

But still it does not explain why IDE build action is not triggered. It would be helpful to see the screencast showing the problem.

0

I can contact support, but I followed the directions at https://www.jetbrains.com/help/license_server/downloading.html just yesterday and downloaded the file from: https://download.jetbrains.com/lcsrv/license-server-installer.zip.  The service.build.properties contains: #Thu May 31 17:31:03 MSK 2018

The following ticket has been created: https://intellij-support.jetbrains.com/hc/en-us/requests/1453297

0
Avatar
Permanently deleted user

After I installed IntelliJ IDEA 2018.2 EAP, both hot swap and running/debugging unit tests started to work fine.

0

Please sign in to leave a comment.