Class not found exception using SSL on Postgres DB
Answered
I have started getting the following expception when trying to connect to one of our databases which uses SSL...
[08006] SSL error: java.lang.ClassNotFoundException: com.intellij.execution.rmi.ssl.SslSocketFactory
The datasource configuration worked ok last time we used it, however I admit it has been a few months.
I know the cerificates are fine as I can connect via our applications and pgAdmin.
I have just upgraded to IDEA Ultimate 2017.3.2 if tha tmakes any difference.
Any clues?
Please sign in to leave a comment.
Hello Paul,
Could you please attach screenshot of your PostgreSQL datasource settings?
Please try to re-install the IDE and make sure that IDE settings directories IDE installation home are added to antivirus/firewall exclusion list or disable the AV/firewall.
If issue remains, post somewhere complete idea.log after IDE restart and reproducing the error.
Re-installign made no difference. Here is the log....
2018-01-15 08:43:02,514 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2018-01-15 08:43:02,526 [ 12] INFO - #com.intellij.util.ui.JBUI - User scale factor: 1.0
2018-01-15 08:43:02,526 [ 12] INFO - #com.intellij.util.ui.JBUI - System scale factor: 1.0 (IDE-managed HiDPI)
2018-01-15 08:43:02,534 [ 20] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-173.4127.27, 25 Dec 2017 16:02)
2018-01-15 08:43:02,534 [ 20] INFO - #com.intellij.idea.Main - OS: Windows 7 (6.1, amd64)
2018-01-15 08:43:02,534 [ 20] INFO - #com.intellij.idea.Main - JRE: 1.8.0_152-release-1024-b8 (JetBrains s.r.o)
2018-01-15 08:43:02,534 [ 20] INFO - #com.intellij.idea.Main - JVM: 25.152-b8 (OpenJDK 64-Bit Server VM)
2018-01-15 08:43:02,536 [ 22] INFO - #com.intellij.idea.Main - JVM Args: -Xms512m -Xmx8g -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djb.vmOptionsFile=C:\Users\T0035121\.IntelliJIdea2017.3\config\idea64.exe.vmoptions -Xbootclasspath/a:C:\Program Files\JetBrains\IntelliJ IDEA 2017.3.1\lib\boot.jar -Didea.jre.check=true -Dide.native.launcher=true -Didea.paths.selector=IntelliJIdea2017.3 -XX:ErrorFile=C:\Users\T0035121\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\T0035121\java_error_in_idea.hprof
2018-01-15 08:43:02,537 [ 23] INFO - #com.intellij.idea.Main - ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@1977d55e[Running, parallelism = 7, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
2018-01-15 08:43:02,537 [ 23] INFO - #com.intellij.idea.Main - ext: C:\Program Files\JetBrains\IntelliJ IDEA 2017.3.1\jre64\lib\ext: [access-bridge-64.jar, cldrdata.jar, dnsns.jar, jaccess.jar, jfxrt.jar, localedata.jar, meta-index, nashorn.jar, sunec.jar, sunjce_provider.jar, sunmscapi.jar, sunpkcs11.jar, zipfs.jar]
2018-01-15 08:43:02,537 [ 23] INFO - #com.intellij.idea.Main - JNU charset: Cp1252
2018-01-15 08:43:02,567 [ 53] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 29 ms
2018-01-15 08:43:02,569 [ 55] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2018-01-15 08:43:04,506 [ 1992] INFO - llij.ide.plugins.PluginManager - Plugin 'Save Actions' can't be loaded because: Plugin is disabled
2018-01-15 08:43:04,512 [ 1998] INFO - llij.ide.plugins.PluginManager - Plugin 'Sencha Ext JS' can't be loaded because: Plugin is disabled
2018-01-15 08:43:04,526 [ 2012] INFO - llij.ide.plugins.PluginManager - Plugin 'Nyan Progress Bar' can't be loaded because: Plugin is disabled
2018-01-15 08:43:05,034 [ 2520] INFO - llij.ide.plugins.PluginManager - 142 plugins initialized in 1600 ms
2018-01-15 08:43:05,075 [ 2561] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: ASP (0.1), Android Support (10.2.3), AngularJS (173.4127.27), Ant Support (1.0), Application Servers View (0.2.0), AspectJ Support (1.2), Bytecode Viewer (0.1), CFML Support (3.53), CSS Support (173.4127.27), CVS Integration (11), Cloud Foundry integration (1.0), CloudBees integration (1.0), CoffeeScript (2.0), Copyright (8.1), Coverage (173.4127.27), Cucumber for Groovy (999.999), Cucumber for Java (999.999), DSM Analysis (1.0.0), Database Tools and SQL (173.4127.27), Eclipse Integration (3.0), EditorConfig (173.4127.27), Emma (173.4127.27), Flash/Flex Support (173.4127.27), FreeMarker support (1.0), GWT Support (1.0), Geronimo Integration (1.0), Gherkin (999.999), Git Integration (8.1), GitHub (173.4127.27), GlassFish Integration (1.0), Google App Engine Integration (1.1.4), Gradle (173.4127.27), Grails (9.0), Groovy (9.0), Guice (8.0), HTML Tools (2.0), Haml (173.4127.27), Heroku integration (173.4127.27), Hibernate Support (1.0), I18n for Java (173.4127.27), IDE Settings Sync (173.4127.27), IDEA CORE (173.4127.27), 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 (173.4127.27), 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 (173.4127.27), 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.10-release-IJ2017.3-1), Less support (173.4127.27), Markdown support (173.4127.27), Maven Integration (173.4127.27), Maven Integration Extension (173.4127.27), Mercurial Integration (10.0), OpenShift integration (1.0), Osmorc (1.4.10), Perforce Integration (2.0), Persistence Frameworks Support (1.0), Playframework Support (1.0), Plugin DevKit (1.0), Properties Support (173.4127.27), QuirksMode (173.4127.27), REST Client (173.4127.27), Refactor-X (2.01), Remote Hosts Access (0.1), Resin Integration (8.1), SSH Remote Run (0.1), Sass support (173.4127.27), Settings Repository (173.4127.27), 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 (173.4127.27), 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 (173.4127.27), 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 (173.4127.27), ZKM-Unscramble (1.0), dmServer Support (0.9.5), tslint (173.4127.27)
2018-01-15 08:43:05,075 [ 2561] INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: Apache Camel IDEA Plugin (0.4.6), CodeGlance (1.5.2), Docker integration (173.3727.15), Grep Console (7.2.162.000.0), Kubernetes and OpenShift Resource Support (0.9), Lombok Plugin (0.15.17.2), Maven Helper (3.6.172.1454.0), SnakeYAML plugin (1.17.0), SonarLint (3.1.0.2244)
2018-01-15 08:43:05,075 [ 2561] INFO - llij.ide.plugins.PluginManager - Disabled plugins: Nyan Progress Bar (1.10), Save Actions (0.16), Sencha Ext JS (6.0.11.531)
2018-01-15 08:43:08,220 [ 5706] INFO - cloudConfig.CloudConfigManager - === Exit: JBA_NOT_FOUND ===
2018-01-15 08:43:08,463 [ 5949] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=8105
2018-01-15 08:43:08,530 [ 6016] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Program Files\JetBrains\IntelliJ IDEA 2017.3.1\bin\fsnotifier64.exe
2018-01-15 08:43:08,543 [ 6029] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2018-01-15 08:43:09,337 [ 6823] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=0.0; restored: fontSize=12, fontScale=1.0
2018-01-15 08:43:09,870 [ 7356] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2018-01-15 08:43:09,892 [ 7378] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.ui.OptionsTopHitProvider$Activity@702b9b79
2018-01-15 08:43:10,030 [ 7516] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2018-01-15 08:43:10,078 [ 7564] INFO - gs.impl.UpdateCheckerComponent - channel: release
2018-01-15 08:43:10,405 [ 7891] INFO - il.indexing.FileBasedIndexImpl - Index exts enumerated:258
2018-01-15 08:43:10,411 [ 7897] INFO - il.indexing.FileBasedIndexImpl - Index scheduled:6
2018-01-15 08:43:10,460 [ 7946] INFO - tellij.psi.stubs.StubIndexImpl - All stub exts enumerated:38
2018-01-15 08:43:10,461 [ 7947] INFO - tellij.psi.stubs.StubIndexImpl - stub exts update scheduled:0
2018-01-15 08:43:10,726 [ 8212] INFO - mbokPluginApplicationComponent - Lombok plugin initialized for IntelliJ
2018-01-15 08:43:10,731 [ 8217] INFO - mbokPluginApplicationComponent - Runtime path support is disabled
2018-01-15 08:43:11,387 [ 8873] INFO - plication.impl.ApplicationImpl - 111 application components initialized in 7956ms
2018-01-15 08:43:11,415 [ 8901] INFO - .intellij.idea.IdeaApplication - App initialization took 9990 ms
2018-01-15 08:43:12,885 [ 10371] INFO - pl$FileIndexDataInitialization - Initialization done:2479
2018-01-15 08:43:13,380 [ 10866] INFO - atibilityChecksMetadataUpdater - Failed to parse XML metadata
com.intellij.util.io.HttpRequests$HttpStatusException: Status: 503. Status=503, Url=https://dl.google.com/android/studio/metadata/android-component-compatibility.xml
at com.intellij.util.io.HttpRequests.openConnection(HttpRequests.java:527)
at com.intellij.util.io.HttpRequests.access$300(HttpRequests.java:63)
at com.intellij.util.io.HttpRequests$RequestImpl.getConnection(HttpRequests.java:292)
at com.intellij.util.io.HttpRequests$RequestImpl.getInputStream(HttpRequests.java:301)
at com.android.tools.idea.gradle.project.sync.compatibility.CompatibilityChecksMetadataUpdater.lambda$null$1(CompatibilityChecksMetadataUpdater.java:85)
at com.intellij.util.io.HttpRequests.lambda$doProcess$0(HttpRequests.java:418)
at com.intellij.util.net.ssl.CertificateManager.runWithUntrustedCertificateStrategy(CertificateManager.java:349)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:418)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:398)
at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:63)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:266)
at com.android.tools.idea.gradle.project.sync.compatibility.CompatibilityChecksMetadataUpdater.lambda$fetchMetadata$2(CompatibilityChecksMetadataUpdater.java:83)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2018-01-15 08:43:13,481 [ 10967] INFO - exImpl$StubIndexInitialization - Initialization done:597
2018-01-15 08:43:13,506 [ 10992] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2018-01-15 08:43:13,509 [ 10995] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=15, fontScale=1.25; restored: fontSize=12, fontScale=1.0
2018-01-15 08:43:13,990 [ 11476] INFO - CompilerWorkspaceConfiguration - Available processors: 8
2018-01-15 08:43:14,003 [ 11489] INFO - pl.projectlevelman.NewMappings - VCS Root: [] - [<Project>]
2018-01-15 08:43:14,006 [ 11492] INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [<Project>]
2018-01-15 08:43:14,713 [ 12199] INFO - .openapi.application.Preloader - Finished preloading com.intellij.openapi.actionSystem.impl.ActionPreloader@4836d4e8
2018-01-15 08:43:16,122 [ 13608] INFO - ellij.project.impl.ProjectImpl - 208 project components initialized in 3761 ms
2018-01-15 08:43:17,210 [ 14696] INFO - le.impl.ModuleManagerComponent - 53 module(s) loaded in 1087 ms
2018-01-15 08:43:17,931 [ 15417] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.ui.search.SearchableOptionPreloader@20d43353
2018-01-15 08:43:17,945 [ 15431] INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2018-01-15 08:43:18,173 [ 15659] WARN - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.
2018-01-15 08:43:18,623 [ 16109] INFO - .openapi.application.Preloader - Finished preloading com.intellij.codeInsight.completion.CompletionPreloader@564569fb
2018-01-15 08:43:29,054 [ 26540] INFO - ellij.project.impl.ProjectImpl - 20 project components initialized in 37 ms
2018-01-15 08:43:29,629 [ 27115] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2017.3.1/lib/jps-launcher.jar;C:/Program Files/Java/jdk1.8.0_25/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2017.3.1/lib/optimizedFileManager.jar
2018-01-15 08:43:29,701 [ 27187] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2018-01-15 08:43:29,704 [ 27190] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2018-01-15 08:43:29,704 [ 27190] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2018-01-15 08:43:29,882 [ 27368] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 815ms; general responsiveness: ok; EDT responsiveness: ok
2018-01-15 08:43:30,336 [ 27822] INFO - ScriptTemplatesProviders - [kts] loading script definitions [] using cp:
2018-01-15 08:43:30,342 [ 27828] INFO - ScriptTemplatesProviders - Templates provider KotlinCompilerScriptTemplatesSettings is invalid:
2018-01-15 08:43:30,373 [ 27859] INFO - ScriptTemplatesProviders - Templates provider Gradle Kotlin DSL is invalid: Unable to get Gradle home directory
2018-01-15 08:43:30,374 [ 27860] INFO - ScriptTemplatesProviders - Templates provider Gradle Kotlin DSL is invalid: Unable to get Gradle home directory
2018-01-15 08:43:30,374 [ 27860] INFO - ScriptTemplatesProviders - Templates provider Gradle Script Kotlin is invalid: Unable to get Gradle home directory
2018-01-15 08:43:30,374 [ 27860] INFO - ScriptTemplatesProviders - [kts] loading script definitions [kotlin.script.templates.standard.ScriptTemplateWithArgs] using cp:
2018-01-15 08:43:32,477 [ 29963] INFO - tartup.impl.StartupManagerImpl - OpenFilesActivity run in 3469ms under project opening modal progress
2018-01-15 08:43:32,780 [ 30266] INFO - tartup.impl.StartupManagerImpl - InitToolWindowsActivity run in 303ms under project opening modal progress
2018-01-15 08:43:32,866 [ 30352] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 3927ms; general responsiveness: ok; EDT responsiveness: 2/4 sluggish, 1/4 very slow
2018-01-15 08:43:34,849 [ 32335] INFO - j.ide.ui.OptionsTopHitProvider - 530 ms spent to cache options in application
2018-01-15 08:43:34,922 [ 32408] INFO - tartup.impl.StartupManagerImpl - C:/Repos/lpds/.idea case-sensitivity: expected=false actual=false
2018-01-15 08:43:35,286 [ 32772] INFO - git4idea.GitVcs - Git version: 2.8.2.0 (CYGWIN)
2018-01-15 08:43:35,789 [ 33275] INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [<Project>]
2018-01-15 08:43:40,209 [ 37695] INFO - tor.impl.FileEditorManagerImpl - Project opening took 28033 ms
2018-01-15 08:43:40,246 [ 37732] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2017.3.1/lib/jps-launcher.jar;C:/Program Files/Java/jdk1.8.0_25/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2017.3.1/lib/optimizedFileManager.jar
2018-01-15 08:43:40,303 [ 37789] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2018-01-15 08:43:40,304 [ 37790] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2018-01-15 08:43:40,304 [ 37790] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2018-01-15 08:43:41,215 [ 38701] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 11324ms; general responsiveness: ok; EDT responsiveness: 6/12 sluggish, 4/12 very slow
2018-01-15 08:43:42,062 [ 39548] INFO - tartup.impl.StartupManagerImpl - Some post-startup activities freeze UI for noticeable time. Please consider making them DumbAware to do them in background under modal progress, or just making them faster to speed up project opening.
2018-01-15 08:43:42,062 [ 39548] INFO - tartup.impl.StartupManagerImpl - ProjectInspectionProfileStartUpActivity run in 798ms on UI thread
2018-01-15 08:43:42,187 [ 39673] INFO - cloudConfig.CloudConfigManager - === StatusBar.update another widget: null ===
2018-01-15 08:43:42,192 [ 39678] INFO - cloudConfig.CloudConfigManager - === StatusBar ignored ===
2018-01-15 08:43:42,510 [ 39996] INFO - tartup.impl.StartupManagerImpl - GrailsStartupActivity run in 121ms on UI thread
2018-01-15 08:43:42,731 [ 40217] INFO - tartup.impl.StartupManagerImpl - MaintenanceActivity run in 221ms on UI thread
2018-01-15 08:43:43,421 [ 40907] INFO - j.ide.ui.OptionsTopHitProvider - 372 ms spent to cache options in project
2018-01-15 08:43:43,441 [ 40927] INFO - j.compiler.server.BuildManager - Using preloaded build process to compile C:\Repos\lpds
2018-01-15 08:43:44,147 [ 41633] INFO - lij.tasks.impl.TaskManagerImpl - Searching for task 'LPDS-831' in JiraRepository(URL='http://aow-jira')
2018-01-15 08:43:44,150 [ 41636] INFO - ntellij.analysis.SonarLintTask - Running SonarLint Analysis for 'CalculateRestControllerTest.java'
2018-01-15 08:43:55,836 [ 53322] INFO - s.CompilerReferenceServiceImpl - backward reference index reader is opened
2018-01-15 08:43:56,328 [ 53814] INFO - j.compiler.server.BuildManager - Using preloaded build process to compile C:\Repos\lpds
2018-01-15 08:43:56,995 [ 54481] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2017.3.1/lib/jps-launcher.jar;C:/Program Files/Java/jdk1.8.0_25/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2017.3.1/lib/optimizedFileManager.jar
2018-01-15 08:43:57,178 [ 54664] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2018-01-15 08:43:57,178 [ 54664] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2018-01-15 08:43:57,178 [ 54664] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2018-01-15 08:44:04,831 [ 62317] INFO - .server.BuildMessageDispatcher - An existing connection was forcibly closed by the remote host
java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:192)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1100)
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:372)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at java.lang.Thread.run(Thread.java:745)
2018-01-15 08:44:04,980 [ 62466] INFO - s.CompilerReferenceServiceImpl - backward reference index reader is opened
2018-01-15 08:44:05,735 [ 63221] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2017.3.1/lib/jps-launcher.jar;C:/Program Files/Java/jdk1.8.0_25/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2017.3.1/lib/optimizedFileManager.jar
2018-01-15 08:44:05,781 [ 63267] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2018-01-15 08:44:05,781 [ 63267] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2018-01-15 08:44:05,782 [ 63268] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2018-01-15 08:44:08,592 [ 66078] INFO - ntellij.analysis.SonarLintTask - SonarLint analysis done
2018-01-15 08:44:09,072 [ 66558] INFO - ntellij.analysis.SonarLintTask - Running SonarLint Analysis for 'CalculateRestControllerTest.java'
2018-01-15 08:44:11,263 [ 68749] INFO - ntellij.analysis.SonarLintTask - SonarLint analysis done
2018-01-15 08:44:11,280 [ 68766] INFO - ntellij.analysis.SonarLintTask - Running SonarLint Analysis for 'CalculateRestControllerTest.java'
2018-01-15 08:44:12,265 [ 69751] INFO - ntellij.analysis.SonarLintTask - SonarLint analysis done
2018-01-15 08:44:14,008 [ 71494] INFO - ntellij.analysis.SonarLintTask - Running SonarLint Analysis for 'CalculateRestControllerTest.java'
2018-01-15 08:44:15,293 [ 72779] INFO - ntellij.analysis.SonarLintTask - SonarLint analysis done
2018-01-15 08:44:19,366 [ 76852] INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-01-15 08:44:20,632 [ 78118] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 381ms; general responsiveness: ok; EDT responsiveness: ok
2018-01-15 08:44:20,761 [ 78247] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 128ms; general responsiveness: ok; EDT responsiveness: ok
2018-01-15 08:44:20,770 [ 78256] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2017.3.1/lib/jps-launcher.jar;C:/Program Files/Java/jdk1.8.0_25/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2017.3.1/lib/optimizedFileManager.jar
2018-01-15 08:44:20,834 [ 78320] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2018-01-15 08:44:20,834 [ 78320] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2018-01-15 08:44:20,834 [ 78320] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2018-01-15 08:44:31,190 [ 88676] INFO - ution.rmi.RemoteProcessSupport - "C:\Program Files\JetBrains\IntelliJ IDEA 2017.3.1\jre64\bin\java" -Djavax.net.ssl.keyStore=C:\Repos\lpds\installation\production\installation\other\server.keystore -Djavax.net.ssl.keyStorePassword=battle101 -Djavax.net.ssl.trustStore=C:\Repos\lpds\installation\production\installation\other\trust.keystore -Djavax.net.ssl.trustStorePassword=battle101 -Djava.net.preferIPv4Stack=true -DsslCaCertPath=C:\Repos\lpds\security\multivm\root.crt -DsslClientCertPath=C:\Repos\lpds\security\multivm\postgres.crt -DsslClientKeyPath=C:\Repos\lpds\security\multivm\postgres.key -Duser.timezone=UTC -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2017.3.1\lib\idea_rt.jar" com.intellij.rt.execution.CommandLineWrapper C:\Users\T0035121\AppData\Local\Temp\idea_classpath com.intellij.database.remote.RemoteJdbcServer org.postgresql.Driver
2018-01-15 08:44:31,258 [ 88744] INFO - ntellij.analysis.SonarLintTask - Running SonarLint Analysis for 'CalculateRestControllerTest.java'
2018-01-15 08:44:31,284 [ 88770] INFO - s.CompilerReferenceServiceImpl - backward reference index reader is opened
2018-01-15 08:44:31,777 [ 89263] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2017.3.1/lib/jps-launcher.jar;C:/Program Files/Java/jdk1.8.0_25/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2017.3.1/lib/optimizedFileManager.jar
2018-01-15 08:44:31,821 [ 89307] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2018-01-15 08:44:31,821 [ 89307] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2018-01-15 08:44:31,822 [ 89308] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2018-01-15 08:44:32,060 [ 89546] INFO - ntellij.analysis.SonarLintTask - SonarLint analysis done
2018-01-15 08:44:32,074 [ 89560] INFO - ution.rmi.RemoteProcessSupport - Port/ID: 48144/RemoteDriverImpl76b59232
2018-01-15 08:44:32,122 [ 89608] INFO - urce.DatabaseConnectionManager - Connecting as: enterprisedb
2018-01-15 08:44:32,122 [ 89608] INFO - urce.DatabaseConnectionManager - Connecting to: jdbc:postgresql://192.168.161.183:5432/lpds
2018-01-15 08:44:32,205 [ 89691] WARN - urce.DatabaseConnectionManager - Connecting to: jdbc:postgresql://192.168.161.183:5432/lpds
2018-01-15 08:44:32,205 [ 89691] WARN - urce.DatabaseConnectionManager - [08006] SSL error: java.lang.ClassNotFoundException: com.intellij.execution.rmi.ssl.SslSocketFactory
We have now upgraded to 2018.1 and still have this problem.
For some reason the com.intellij.execution.rmi.ssl.SslSocketFactory class is not found on the process cpasspath IDE starts to connect to the database. This class is located in IDEA_HOME/lib/util.jar file. Such problems are usually caused by corrupted (jar) IDE installation. Have you tried to re-install IDE from scratch? Do you have antivirus/firewall? If so, make sure IDE process, IDE installation home directories are added to exclusion list. Please try complete re-install and with the latest version from https://confluence.jetbrains.com/display/IDEADEV/IDEA+2018.1+EAP
If you get the same issue, please post the output from idea.log after reproducing and the content of idea_classpath file: you can see the full file path in idea.log when remote process is started. From the posted above log this file name is C:\Users\T0035121\AppData\Local\Temp\idea_classpath.
I have the same problem. Idea 2019.2.4 on Ubuntu, newly reinstalled from toolbox. The util.jar file is just where the log indicates it is looking:
Switched to default boot jdk. Same problem.
How do you set SSL settings? Attach screenshots of all connection settings you set and idea.log after trying with bundled JDK.
Here are the settings and log:
Try re-install from https://www.jetbrains.com/idea/download/ into a new empty directory and start with default settings (rename/remove settings folders https://intellij-support.jetbrains.com/hc/en-us/articles/206544519 ).
I am experimenting the same problem. So the proposed solution is to re-install IntelliJ ?
Does this actually worked for anybody ? I do not see any evidence of that in this thread.
Sergio,
According to the logs issue is caused by corrupted installation. You may try to install other major version (e.g. 2019.3) in parallel. And check the issue there without importing settings from previous IDE versions.
I tried uninstalling and re-installing IntelliJ using Toolbox. To my surprise, when it installed it again it did not ask me if I want to import or not from previous settings. In any case this did not solve the problem. The unfortunate side effect is that all my plugins were gone and I had to install them again.
The mere fact that IntelliJ requires the CA file while neither pgadmin, psql nor the custom application do seems to indicate that it is not entirely in control of what it is doing.
Sergio,
Settings/configs directory (https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs) is not removed while uninstalling via toolbox. Please try to backup and remove it to run IDE with default settings.
I just deleted the settings at ~/Library/Preferences/<PRODUCT><VERSION>, as recommended.
I still see the error message:
[08006] The SSLSocketFactory class provided com.intellij.execution.rmi.ssl.SslSocketFactory could not be instantiated. signed overrun, bytes = 919.
A clarification, this problem only appears when I enable SSL AND I try to fill in the three fields in the SSL dialog: CA file, Client certificate file, Client key file.
If I fill in only the CA file it works without problems, but I guess that a full double authentication is not performed right ? (I think it is just the client authenticating the server).
In any case this should also work if all the files are selected.
Sergio Castro & Joachim, your error is different.
That is certificate parsing error. As it works with CA, the problem is int client cert/key files.
Could you provide some info about your certificates?
Thanks for your feedback Alexander, so I may be doing something wrong with the certificates.
The certificates I am using have been generated only with the purpose of testing the SSL connection through IntelliJ. I am generating them with these commands:
openssl req -new -text -passout pass:abcd -subj /CN=localhost -out server.req
openssl rsa -in privkey.pem -passin pass:abcd -out server.key
openssl req -x509 -in server.req -text -key server.key -out server.crt
(the generated files are: privkey.pem, server.crt, server.key, server.req)
I am testing the SSL connection through IntelliJ by means of:
- Checking the "Use SSL" option.
- Selecting in CA file my server.crt file.
- Selecting "Full verification" in the "Mode" combo box.
- Pushing the "Test Connection" button.
Until this point it works, but I am leaving the "Client certificate file" and the "Client key file" empty. So I understand it is just performing a verification of the server certificate and not a double authentication, right?
If I want to include the "Client certificate file" and the "Client key file" it fails with the error I posted. For the former I am currently using my "server.key" file and for the later the "privkey.pem" file. Which files should I use instead ?
`server.key ` is a key file, not certificate. (you could open it as text to see)
> not a double authentication, right?
It looks like so. That is highly driver dependent. When you set certificates/keys - we provide them to trust/keystores, mode is passed to driver => driver does its black magic
Has anyone ever solved this?
I'm getting similar error, with the newest IDE.
I'm using the same ca.crt / client.crt / client.key files as in my spring boot application. From the application connection works fine, from Intellij Idea I get error:
When I set debug level to trace for the connection, I get the following error:
I'm a bit suspicious if bouncycastle is not missing on a classpath...?
Could anyone point me in some direction please?
JiangHongTiao Your error is different.
Try to generate the key according to this advice: https://github.com/cockroachdb/cockroach/issues/29463#issuecomment-418132988