Tag Archives: intellectual idea

IDEA springboot can recognize POM files, but suddenly it can’t reference mven dependencies. Strange things, inexplicable solutions

Foreword: today I open idea 2020.3 and find that all the spring boot projects can’t find all the dependencies. These projects were started normally yesterday

then I subconsciously thought that my Maven settings were wrong, but I checked and found that there was no problem with Maven configuration, and idea also recognized the pom.xml file. After reloading Maven dependencies several times, it still couldn’t work. Emmmmm, I think it may be caused by idea cache, right?The entire project was reloaded, but still not. Then I went to Baidu. There were not many solutions on Baidu and what I did above. I put on a mask of pain. I’m just a rookie. How can I meet this kind of thing?T.T.


Suddenly, I noticed that the red dot of idea event log was flashing, and I click to see

It said that there was something wrong with my plug-in, emmmmm. I don’t know why it suddenly went wrong, so I unloaded the plug-in, restarted the idea, and returned to normal. My God, what’s the situation?

Log content of event log

2021-07-08 09:44:26,967 [  59955]  ERROR - penapi.project.DumbServiceImpl - IntelliJ IDEA 2020.3.2  Build #IU-203.7148.57 
2021-07-08 09:44:26,967 [  59955]  ERROR - penapi.project.DumbServiceImpl - JDK: 11.0.9.1; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o. 
2021-07-08 09:44:26,967 [  59955]  ERROR - penapi.project.DumbServiceImpl - OS: Windows 10 
2021-07-08 09:44:26,968 [  59956]  ERROR - penapi.project.DumbServiceImpl - Plugin to blame: RestfulToolkit version: 2.0.9 
2021-07-08 09:44:26,968 [  59956]  ERROR - penapi.project.DumbServiceImpl - Last Action:  
2021-07-08 09:44:27,072 [  60060]  ERROR - penapi.project.DumbServiceImpl - Error executing task com.intellij.util.DisposeAwareRunnable@51a99ed3 
java.lang.NoClassDefFoundError: Could not initialize class com.zhaow.restful.common.ToolkitIcons
	at com.zhaow.restful.navigator.RestServicesNavigator.initToolWindow(RestServicesNavigator.java:118)
	at com.zhaow.restful.navigator.RestServicesNavigator.lambda$initComponent$0(RestServicesNavigator.java:105)
	at com.intellij.util.DisposeAwareRunnable.run(DisposeAwareRunnable.java:72)
	at com.intellij.openapi.project.DumbServiceImpl.doRun(DumbServiceImpl.java:399)
	at com.intellij.openapi.project.DumbServiceImpl.updateFinished(DumbServiceImpl.java:391)
	at com.intellij.openapi.project.TrackedEdtActivityService$TrackedEdtActivity.run(TrackedEdtActivityService.java:100)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:216)
	at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:24)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:199)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
	at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:324)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:85)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:134)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47)
	at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:190)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:976)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:843)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:454)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:773)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:453)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:501)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2021-07-08 09:44:27,072 [  60060]  ERROR - penapi.project.DumbServiceImpl - IntelliJ IDEA 2020.3.2  Build #IU-203.7148.57 
2021-07-08 09:44:27,072 [  60060]  ERROR - penapi.project.DumbServiceImpl - JDK: 11.0.9.1; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o. 
2021-07-08 09:44:27,073 [  60061]  ERROR - penapi.project.DumbServiceImpl - OS: Windows 10 
2021-07-08 09:44:27,073 [  60061]  ERROR - penapi.project.DumbServiceImpl - Plugin to blame: RestfulToolkit version: 2.0.9 
2021-07-08 09:44:27,073 [  60061]  ERROR - penapi.project.DumbServiceImpl - Last Action:  
2021-07-08 09:44:34,619 [  67607]   INFO - dea.updater.SdkComponentSource - File C:\Users\cuiliangyun\.android\repositories.cfg could not be loaded. 
2021-07-08 09:44:34,628 [  67616]   INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/addons_list-3.xml 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 7月 08, 2021 9:44:35 上午 net.sourceforge.pmd.lang.rule.AbstractRuleChainVisitor visitAll 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 警告: Exception applying rule PackageNamingRule on file D:/我的/我的项目/myproject-sso/src/main/java/com/example/sso/SsoApplication.java, continuing with next rule 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - java.lang.RuntimeException: org.jaxen.UnresolvableException: No Such Function matches 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at net.sourceforge.pmd.lang.rule.xpath.JaxenXPathRuleQuery.evaluate(JaxenXPathRuleQuery.java:73) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at net.sourceforge.pmd.lang.rule.XPathRule.evaluate(XPathRule.java:114) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at net.sourceforge.pmd.lang.java.rule.JavaRuleChainVisitor.visit(JavaRuleChainVisitor.java:42) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at net.sourceforge.pmd.lang.rule.AbstractRuleChainVisitor.visitAll(AbstractRuleChainVisitor.java:96) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at net.sourceforge.pmd.RuleChain.apply(RuleChain.java:67) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at net.sourceforge.pmd.RuleSets.apply(RuleSets.java:140) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.alibaba.p3c.idea.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.kt:220) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.alibaba.p3c.idea.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.kt:65) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.alibaba.p3c.idea.pmd.AliPmdProcessor.processFile(AliPmdProcessor.kt:75) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.alibaba.p3c.idea.inspection.AliPmdInspectionInvoker.doInvoke(AliPmdInspectionInvoker.kt:62) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.alibaba.p3c.idea.inspection.AliPmdInspectionInvoker$Companion.invokeInspection(AliPmdInspectionInvoker.kt:125) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.alibaba.p3c.idea.inspection.AliPmdInspection.checkFile(AliPmdInspection.kt:71) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at PackageNamingRuleInspection.checkFile(DelegatePmdInspection.kt:47) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:145) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.accept(PsiJavaFileBaseImpl.java:475) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:66) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:57) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.runToolOnElements(LocalInspectionsPass.java:298) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$3(LocalInspectionsPass.java:267) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:156) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:148) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$4(LocalInspectionsPass.java:266) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:127) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:116) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$5(LocalInspectionsPass.java:266) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:136) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:149) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1132) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:92) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:104) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.concurrency.ApplierCompleter.lambda$compute$0(ApplierCompleter.java:83) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:172) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:183) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:83) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.concurrency.JobLauncherImpl.invokeConcurrentlyUnderProgress(JobLauncherImpl.java:61) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.concurrency.JobLauncher.invokeConcurrentlyUnderProgress(JobLauncher.java:48) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.visitPriorityElementsAndInit(LocalInspectionsPass.java:270) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.inspect(LocalInspectionsPass.java:193) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:115) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:56) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:400) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1137) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:393) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:392) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:368) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:172) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:183) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:366) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:188) 
2021-07-08 09:44:35,022 [  68010]   INFO -                         STDERR - 	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - Caused by: org.jaxen.UnresolvableException: No Such Function matches 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.SimpleFunctionContext.getFunction(SimpleFunctionContext.java:127) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.ContextSupport.getFunction(ContextSupport.java:242) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.Context.getFunction(Context.java:216) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:176) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.expr.DefaultFunctionCallExpr.evaluateParams(DefaultFunctionCallExpr.java:195) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:179) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.expr.DefaultPredicate.evaluate(DefaultPredicate.java:95) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.expr.PredicateSet.applyPredicate(PredicateSet.java:269) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.expr.PredicateSet.evaluatePredicates(PredicateSet.java:244) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.expr.DefaultNameStep.evaluate(DefaultNameStep.java:215) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:140) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:102) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:677) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:216) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	at net.sourceforge.pmd.lang.rule.xpath.JaxenXPathRuleQuery.evaluate(JaxenXPathRuleQuery.java:69) 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR - 	... 60 more 
2021-07-08 09:44:35,023 [  68011]   INFO -                         STDERR -  

Solution: uninstall the error reporting plug-in, restart idea, and it will return to normal
I’m a rookie, and I don’t understand why this is OK?

MacOS: How to Fix Intellij-IDEA main menu disappears Bug

I found a lot of blogs and tried them, but they didn’t work. I wasted a lot of time, such as preference  & gt;   keymap   & gt; Main menu has many methods. Finally, we found a solution on stackoverflow

idea-community version 2021.1

macOS 10.14

Follow these steps:

Step1: shortcut key shift + shift (or CMD + Shift + a)

Step 2: enter vmoptions to see the idea.vmoptions file

Step3: edit file, add at the end:

-Dapple.laf.useScreenMenuBar=false

Step 4: restart idea

Idea pop-up window out of memory, modify the parameters and start the no response solution

Today, in the process of development, suddenly idea pop-up prompt out of memory, I changed the parameters on the pop-up, click shutdown, and then I couldn’t start it.

I see that many people on the Internet say that they want to delete the idea folder under the user, but once this is deleted, all the settings of the idea may have to be redone.

Finally, it is found that the changed parameters are in Disk C/user /. Idea (different versions have different folder names)/idea.exe.vmoptions. Just replace this file with idea installation directory/bin/idea.exe.vmoptions.

If you start with idea64.exe, this configuration file is called idea64.exe.vmoptions. This file may be in Disk C/user /. Idea, or Disk C/user /. Idea/config. You can replace it with a file of the same name in the installation directory/bin.

[Solved] Intellij IDEA Error: Command line is too long

solve:

    1. find the workspace.xml configuration file in the. Idea folder of the project
    1. it may be hidden. You can set editor – > through idea; Remove. Idea from the ignore… Box at the bottom of file types. Locate the component name = “propertiescomponent” tag. Add a line at the bottom of the tag: property name = “dynamic. Classpath” value = “true”. Final effect
<component name="PropertiesComponent">
...other properties... 
 <property name="dynamic.classpath" value="true" />
</component>

[Solved] IDEA Import springboot Project Error: Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:<unknown>

Today, after pulling the springboot project from gitee, I found that idea directly reported an error. The error is as follows:

Cannot resolve plugin org.springframework. boot:spring-boot-maven-plugin :

At first, I thought it was an error in the project. Later, baidu found that the default Maven configuration file and the default local warehouse address were used in the configuration of the project.

resolvent:

Open file — & gt; Settings –> Build, Execution, Deploymen –> Build Tools –>   Maven, find the user Maven configuration file and local warehouse address, and modify it to the local configuration file path and warehouse address.

Before revision:

After modification:

Refresh Maven again and solve the problem

Springmvc Content type ‘application/json‘ not supported

In the practice of spring MVC, many people may encounter this annoying problem, it took a long time to solve, the code is right, but he just reported an error
content type ‘application/JSON’ not supported
I have found many articles on the Internet and used many methods, but they can’t solve this problem
finally, I remembered if I didn’t add the jar package required by JSON in lib, so I tried it… It was a success indeed
the following is my method

because I have added it, so here you can see that there are three jar packages in my lib package,
just add these three packages~~~

Report error when using microwave “must either be declared abstract” abstract method “getWXPayDomain()” in WXPayConfig

report errors:

Handler dispatch failed; nested exception is java.lang.AbstractMethodError:“must either be declared abstract   abstract method ‘getWXPayDomain()’ in ‘WXPayConfig

The payment can not work normally

 
 
solve:

You need to download the Java version of the SDK package officially, and then open the wxpayconfig file

Add a public to all the abstract methods, and then package and install them locally to solve the problem

 
 
After watching, Congratulations, I know a little more!!!

The more you know, the more you don’t know!  
~ Thank you for reading,   Your support is the biggest motivation for my study!   come on.  , Strangers work together and encourage each other!!

Note: if there is any improvement or mistake in this article, you are welcome to specify one or two~~

Intellij IDEA jetty-jmx.xml Error:Duplicate config file paths found

IntelliJ idea configuring jetty- jmx.xml report errors Error:Duplicate config file paths found

Note: IntelliJ idea version: 2016.3.7 for Mac, jetty version: jetty 8.2.0.v20160908.

reason:

When updating jetty version to jetty 8.2.0.v20160908 today, in configure, in addition to the default configuration file, check etc/jetty- jmx.xml and etc/jetty- ssl.xml when configuring and saving, idea reports an error: Error:Duplicate config File paths found and cannot be saved.

Process:

Try to untick etc/jetty- ssl.xml configuration file, the error remains. Instead, uncheck etc/jetty- jmx.xml , the error disappears. Make sure the error message comes from etc/jetty- jmx.xml configuration file.

solve:

Open the root path of jetty package and find start.ini file, open and pull to the bottom, you can see the list of configuration files that have been checked in the graphical interface, and the last two lines are my additional configuration. In the above heap of configurations in these two lines, you can see that the SSL configuration file has been annotated, but the JMX configuration file has not been annotated, so the configuration file is duplicated. Therefore, in the configuration file of idea, uncheck JMX and confirm start.ini There are no duplicate profiles in .

[error] error handling of IntelliJ idea

ClassNotFoundExceptionEmpty test suitejavalangNoClassDefFoundError


ClassNotFoundException

Error report:
once IntelliJ idea is running, it will report an error, and no class can be found
in the system java.lang.ClassNotFoundException

Solution:
open project structures (ALT + Ctrl + Shift + s) to check whether the directory set by project – out and module – path – out exists.
Generally, the module – path – out is set under the target directory, but if there is no target directory at the first run, it must be generated by Maven build, so either change the out path or run Maven build first.


Empty test suite

Error:
JUnit running times cannot find the test group
process finished with exit code 1
class not found:“ XXX.XXXTest ”Empty test suite.

Solution:
Run Maven test and download relevant jar packages

java.lang.NoClassDefFoundError

Error:
minaserver logger – & gt; error{ ContextLoader.java:336 }-Context initialization failed java.lang.NoClassDefFoundError : Lcom/cebbank/gage/dao/UserDao;

Solution:
if you want to change the project name, remember to delete all the configuration files (. IML,. Idea, etc.) and leave only the folder and folder of the project code pom.xml File, and then re import the Maven project.