IntelliJ cannot import maven projects - java

I am using IntelliJ IDEA community edition and got the latest version around two months ago. I have this huge problem that whenever I try to import or make a maven project I get the unhelpful message "Unable to import maven project: See logs for details" from the editor.
What really stumps me and those I have asked for help so far is that this issue seems completely isolated to me and everyone else around me importing the same projects can do so with ease. The logs haven't been helpful to me at all either and when I tried following some other solutions for this on Stack Overflow nothing happened.
I have also tried re-installing IntelliJ it fixed it but only for that particular time i used IntelliJ.
I have the logs but the dump in it is far too long to put into a question.
So, do any of you have any idea what I should do?
Putting partial dump here in any case just to try. Just the first part.
2017-09-26 12:09:12,894 [ 47064] WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: Main.java
2017-09-26 12:09:12,894 [ 47064] WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: Vinir.json
2017-09-26 12:09:12,895 [ 47065] WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: Friends.java
2017-09-26 12:09:12,895 [ 47065] WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: Books.java
2017-09-26 12:09:12,895 [ 47065] WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: Borrowers.java
2017-09-26 12:09:12,895 [ 47065] WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: Bækur.json
2017-09-26 12:09:17,655 [ 51825] INFO - ellij.project.impl.ProjectImpl - 18 project components initialized in 52 ms
2017-09-26 12:55:48,767 [2842937] INFO - stubs.SerializationManagerImpl - START StubSerializationManager SHUTDOWN
2017-09-26 12:55:48,768 [2842938] INFO - stubs.SerializationManagerImpl - END StubSerializationManager SHUTDOWN
2017-09-26 12:55:48,768 [2842938] INFO - il.indexing.FileBasedIndexImpl - START INDEX SHUTDOWN
2017-09-26 12:55:48,788 [2842958] INFO - il.indexing.FileBasedIndexImpl - END INDEX SHUTDOWN
2017-09-26 12:55:48,789 [2842959] INFO - org.jetbrains.io.BuiltInServer - web server stopped
2017-09-26 12:55:48,801 [2842971] INFO - Types.impl.FileTypeManagerImpl - FileTypeManager: 0 auto-detected files
Elapsed time on auto-detect: 0 ms
2017-09-26 12:55:48,808 [2842978] INFO - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 0
2017-09-26 12:55:48,811 [2842981] INFO - newvfs.persistent.PersistentFS - VFS dispose started
2017-09-26 12:55:48,819 [2842989] INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2017-09-26 12:55:48,822 [2842992] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
2017-09-26 12:55:48,824 [2842994] INFO - org.jetbrains.io.BuiltInServer - web server stopped
2017-09-27 12:13:07,909 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2017-09-27 12:13:07,919 [ 10] INFO - #com.intellij.util.ui.JBUI - User scale factor: 1.25
2017-09-27 12:13:07,919 [ 10] INFO - #com.intellij.util.ui.JBUI - System scale factor: 1.25 (IDE-managed HiDPI)
2017-09-27 12:13:07,953 [ 44] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IC-172.4155.36, 11 Sep 2017 19:07)
2017-09-27 12:13:07,953 [ 44] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64)
2017-09-27 12:13:07,953 [ 44] INFO - #com.intellij.idea.Main - JRE: 1.8.0_152-release-915-b11 (JetBrains s.r.o)
2017-09-27 12:13:07,953 [ 44] INFO - #com.intellij.idea.Main - JVM: 25.152-b11 (OpenJDK 64-Bit Server VM)
2017-09-27 12:13:07,975 [ 66] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djb.vmOptionsFile=D:\download\IntelliJ IDEA Community Edition 2017.2.4\bin\idea64.exe.vmoptions -Xbootclasspath/a:D:\download\IntelliJ IDEA Community Edition 2017.2.4\lib\boot.jar -Didea.platform.prefix=Idea -Didea.jre.check=true -Didea.paths.selector=IdeaIC2017.2 -XX:ErrorFile=C:\Users\Grimur\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\Grimur\java_error_in_idea.hprof
2017-09-27 12:13:07,975 [ 66] INFO - #com.intellij.idea.Main - ext: D:\download\IntelliJ IDEA Community Edition 2017.2.4\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]
2017-09-27 12:13:07,975 [ 66] INFO - #com.intellij.idea.Main - JNU charset: Cp1252
2017-09-27 12:13:08,047 [ 138] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 71 ms
2017-09-27 12:13:08,070 [ 161] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2017-09-27 12:13:08,071 [ 162] INFO - #com.intellij.idea.Main - Using "FocusKiller" library to prevent focus stealing.
2017-09-27 12:13:10,577 [ 2668] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor duplicates-groovy.xml
2017-09-27 12:13:11,447 [ 3538] INFO - llij.ide.plugins.PluginManager - 32 plugins initialized in 1383 ms
2017-09-27 12:13:11,452 [ 3543] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: Android Support (10.2.3), Ant Support (1.0), Bytecode Viewer (0.1), CVS Integration (11), Copyright (8.1), Coverage (172.4155.36), Eclipse Integration (3.0), EditorConfig (172.4155.36), Git Integration (8.1), GitHub (172.4155.36), Gradle (172.4155.36), Groovy (9.0), I18n for Java (172.4155.36), IDEA CORE (172.4155.36), IntelliLang (8.0), JUnit (1.0), Java Bytecode Decompiler (172.4155.36), JavaFX (1.0), Kotlin (1.1.4-release-IJ2017.2-3), Maven Integration (172.4155.36), Plugin DevKit (1.0), Properties Support (172.4155.36), Settings Repository (172.4155.36), Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TestNG-J (8.0), UI Designer (172.4155.36), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML (172.4155.36), hg4idea (10.0)
2017-09-27 12:13:18,972 [ 11063] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=705
2017-09-27 12:13:19,124 [ 11215] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: D:\download\IntelliJ IDEA Community Edition 2017.2.4\bin\fsnotifier64.exe
2017-09-27 12:13:19,172 [ 11263] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2017-09-27 12:13:23,116 [ 15207] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2017-09-27 12:13:23,180 [ 15271] INFO - figurations.GeneralCommandLine - Cannot run program "D:\download\IntelliJ IDEA Community Edition 2017.2.4\jre64\bin\java.exe": CreateProcess error=2, The system cannot find the file specified
java.io.IOException: Cannot run program "D:\download\IntelliJ IDEA Community Edition 2017.2.4\jre64\bin\java.exe": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:420)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:387)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:45)
at com.intellij.execution.process.CapturingProcessHandler.<init>(CapturingProcessHandler.java:38)
at com.intellij.execution.util.ExecUtil.execAndGetOutput(ExecUtil.java:101)
at com.intellij.util.JdkBundle.getJDKNameArchVersionAndUpdate(JdkBundle.java:230)
at com.intellij.util.JdkBundle.createBundle(JdkBundle.java:103)
at com.intellij.util.JdkBundle.createBoot(JdkBundle.java:137)
at com.intellij.util.JdkBundle.createBoot(JdkBundle.java:124)
at com.intellij.ide.SystemHealthMonitor.checkRuntime(SystemHealthMonitor.java:101)
at com.intellij.ide.SystemHealthMonitor.initComponent(SystemHealthMonitor.java:79)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:492)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:118)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$createComponents$9(ApplicationImpl.java:474)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:548)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
at com.intellij.openapi.application.impl.ApplicationImpl.createComponents(ApplicationImpl.java:481)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:102)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:433)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:419)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:203)
at com.intellij.idea.MainImpl$1.lambda$null$0(MainImpl.java:49)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:345)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 40 more
Thank you very much if you know what's going on. If this can't be resolved I might have to fail a course simply due to being unable to do the projects I need to do.

I have got the same problem with my IntelliJ Ultimate 17. The problem was that JDK for importer (maven in that case) was set to IntelliJ's internal.
Go to Settings (shortcut: CTRL+ALT+S)
Then, Build, Execution, Deployment -> Build Tools -> Maven -> Importing
Choose other JDK than the internal one for JDK for importer.
Check if works, eventually - restart IntelliJ.
Picture with settings:

Related

Android studio project build error: Linking CXX shared FAILED

I'm asking for help in building a project for Android (my knowledge in this tends to 0).
There is a rather old project. I'm trying to build it in AndroidStudio, I get the following error:
Build command failed.
Error while executing process C:\Users\User\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C C:\Users\User\IdeaProjects\1\stouch-task-hardware-upgrade-investigation\app.cxx\RelWithDebInfo\2a9512e2\armeabi-v7a stouch}
ninja: Entering directory `C:\Users\User\IdeaProjects\1\stouch-task-hardware-upgrade-investigation\app.cxx\RelWithDebInfo\2a9512e2\armeabi-v7a'
[1/1] Linking CXX shared library ........\build\intermediates\cxx\RelWithDebInfo\2a9512e2\obj\armeabi-v7a\libstouch.so
I tried different versions of studio, java, gradle but the result is always the same.
How do I fix it?
Update:
2023-01-12 23:41:37,079 [e-1136-b06] WARN -
ea.gradle.project.sync.SdkSync - Replacing invalid NDK path
C:\Users\User\AppData\Local\Android\Sdk\ndk-bundle with
C:\Users\User\AppData\Local\Android\Sdk\ndk-bundle 2023-01-12
23:41:37,079 [e-1136-b06] INFO - e.project.sync.GradleSyncState -
Started sync with Gradle for project 'stouch'. 2023-01-12
23:41:37,080 [e-1136-b06] INFO - idea.project.IndexingSuspender -
Consuming IndexingSuspender activation event: SYNC_STARTED 2023-01-12
23:41:37,080 [e-1136-b06] INFO - idea.project.IndexingSuspender -
Starting batch update for project: Project
'C:\Users\User\IdeaProjects\AS\9\stouch' stouch 2023-01-12
23:41:37,087 [thread 116] INFO - s.plugins.gradle.GradleManager -
Instructing gradle to use java from C:/Program Files/Android/Android
Studio/jre 2023-01-12 23:41:37,088 [thread 116] INFO -
s.plugins.gradle.GradleManager - Instructing gradle to use java from
C:/Program Files/Android/Android Studio/jre 2023-01-12 23:41:37,101
[thread 116] INFO - xecution.GradleExecutionHelper - Passing
command-line args to Gradle Tooling API: -Didea.version=3.2
-Djava.awt.headless=true -Pandroid.injected.build.model.only=true -Pandroid.injected.build.model.only.advanced=true -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.build.model.only.versioned=3 -Pandroid.injected.studio.version=3.2.1.0 -Pandroid.builder.sdkDownload=false --init-script C:\Users\User\AppData\Local\Temp\ijinit17.gradle 2023-01-12
23:41:37,770 [thread 116] INFO - .project.GradleProjectResolver -
Gradle project resolve error org.gradle.tooling.BuildException: Could
not run build action using Gradle distribution
'https://services.gradle.org/distributions/gradle-4.2-all.zip'. at
org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:51)
at
org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)
at
org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:41)

IntelliJ : Compile one single java class is taking a lot of time

I'm using Intelij Community Edition.
I want to get hot code replace using spring-loaded as described here :
http://mindthegab.com/2014/08/07/rapid-development-and-hot-reloading-for-your-maven-project-in-eclipse-and-idea-for-free-yes-with-spring-loaded-and-tomcat7-virtualwebapp/
To do this with Intellij, when I change code in a java file, I need to have an up-to-date .class file, so I need to recompile it (Ctrl+Shild+F9). If I do so, everything works fine.
What I don't understand is that recompile on the java file (Ctrl+Shift+F9) is taking a lot of time (~10s) while Eclipse is able to generate the class file in less than 1 second. Is there a reason why IntelliJ can't do as good as Eclipse?
build.log:
2019-01-24 17:36:27,568 [ 0] INFO - etbrains.jps.cmdline.BuildMain - ==================================================
2019-01-24 17:36:27,569 [ 1] INFO - etbrains.jps.cmdline.BuildMain - Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2018.3.3/lib/jps-launcher.jar;D:/projets/products/java/v1.8.0_73-x64/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2018.3.3/lib/optimizedFileManager.jar
2019-01-24 17:36:27,926 [ 358] INFO - etbrains.jps.cmdline.BuildMain - Connection to IDE established in 319 ms
2019-01-24 17:36:28,122 [ 554] INFO - jps.cmdline.JpsModelLoaderImpl - Loading model: project path = XXX
2019-01-24 17:36:28,495 [ 927] INFO - serialization.JpsProjectLoader - External project config dir is used: XXX
2019-01-24 17:36:28,519 [ 951] INFO - serialization.JpsProjectLoader - External project config dir is used for modules: XXX
2019-01-24 17:36:29,299 [ 1731] INFO - jps.cmdline.JpsModelLoaderImpl - Model loaded in 1177 ms
2019-01-24 17:36:29,300 [ 1732] INFO - jps.cmdline.JpsModelLoaderImpl - Project has 144 modules, 529 libraries
2019-01-24 17:36:29,732 [ 2164] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=602
2019-01-24 17:36:29,897 [ 2329] INFO - .incremental.IncProjectBuilder - Building project; isRebuild:false; isMake:false parallel compilation:false
2019-01-24 17:36:29,899 [ 2331] INFO - kotlin.jps.build.KotlinBuilder - is Kotlin incremental compilation enabled for JVM: true
2019-01-24 17:36:29,899 [ 2331] INFO - kotlin.jps.build.KotlinBuilder - is Kotlin incremental compilation enabled for JS: false
2019-01-24 17:36:29,907 [ 2339] INFO - kotlin.jps.build.KotlinBuilder - is Kotlin compiler daemon enabled: true
2019-01-24 17:36:29,907 [ 2339] INFO - kotlin.jps.build.KotlinBuilder - Label in local history: build started a31f9eb8
2019-01-24 17:36:30,495 [ 2927] INFO - .incremental.IncProjectBuilder - Cleaned output directories in 98 ms
2019-01-24 17:36:34,532 [ 6964] INFO - kotlin.jps.build.KotlinBuilder - KotlinTargetsIndex created in 3368 ms
2019-01-24 17:36:34,555 [ 6987] INFO - kotlin.jps.build.KotlinBuilder - Total Kotlin global compile context initialization time: 3394 ms
2019-01-24 17:36:34,630 [ 7062] INFO - s.incremental.java.JavaBuilder - Compiling 1 java files; module: <MODULE_NAME>
2019-01-24 17:36:36,784 [ 9216] INFO - brains.jps.incremental.Builder - Dependency analysis found 0 affected files
2019-01-24 17:36:36,962 [ 9394] INFO - rains.jps.cmdline.BuildSession - Build duration: Builder 'Maven Resources Compiler' took 144 ms; 0 sources processed
2019-01-24 17:36:36,962 [ 9394] INFO - rains.jps.cmdline.BuildSession - Build duration: Builder 'Java' took 2 s 129 ms; 1 sources processed (2129 ms per file)
2019-01-24 17:36:36,964 [ 9396] INFO - s.incremental.java.JavaBuilder - javac 1.8.0_73 was used to compile [<MODULE_NAME>]
2019-01-24 17:36:38,487 [ 0] INFO - etbrains.jps.cmdline.BuildMain - ==================================================
2019-01-24 17:36:38,488 [ 1] INFO - etbrains.jps.cmdline.BuildMain - Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2018.3.3/lib/jps-launcher.jar;D:/projets/products/java/v1.8.0_73-x64/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2018.3.3/lib/optimizedFileManager.jar
2019-01-24 17:36:38,911 [ 424] INFO - etbrains.jps.cmdline.BuildMain - Connection to IDE established in 380 ms
2019-01-24 17:36:38,953 [ 466] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2019-01-24 17:36:38,992 [ 505] INFO - jps.cmdline.JpsModelLoaderImpl - Loading model: project path = XXX, global options path = XXX
2019-01-24 17:36:39,404 [ 917] INFO - serialization.JpsProjectLoader - External project config dir is used: XXX
2019-01-24 17:36:39,433 [ 946] INFO - serialization.JpsProjectLoader - External project config dir is used for modules: XXX
2019-01-24 17:36:40,132 [ 1645] INFO - jps.cmdline.JpsModelLoaderImpl - Model loaded in 1140 ms
2019-01-24 17:36:40,132 [ 1645] INFO - jps.cmdline.JpsModelLoaderImpl - Project has 144 modules, 529 libraries
2019-01-24 17:36:40,669 [ 2182] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=602
2019-01-24 17:36:44,092 [ 5605] INFO - etbrains.jps.cmdline.BuildMain - Pre-loaded process ready in 5607 ms

How to run nutch 1.9 in eclipse on windows?

I want to run Nutch 1.9 in Eclipse on Windows. I followed the tutorial from http://wiki.apache.org/nutch/RunNutchInEclipse and opened the project in Eclipse.
But when I run Nutch, I get the following error:
2014-09-19 17:45:48,039 INFO crawl.Injector (Injector.java:inject(283)) - Injector: starting at 2014-09-19 17:45:48
2014-09-19 17:45:48,043 INFO crawl.Injector (Injector.java:inject(284)) - Injector: crawlDb: K:/kumar/Nutch/apache-nutch-1.9/crawlresult
2014-09-19 17:45:48,043 INFO crawl.Injector (Injector.java:inject(285)) - Injector: urlDir: K:/kumar/Nutch/apache-nutch-1.9/urls
2014-09-19 17:45:48,043 INFO crawl.Injector (Injector.java:inject(294)) - Injector: Converting injected urls to crawl db entries.
2014-09-19 17:45:48,207 INFO jvm.JvmMetrics (JvmMetrics.java:init(71)) - Initializing JVM Metrics with processName=JobTracker, sessionId=
2014-09-19 17:45:48,252 WARN mapred.JobClient (JobClient.java:configureCommandLineOptions(661)) - No job jar file set. User classes may not be found. See JobConf(Class) or JobConf#setJar(String).
2014-09-19 17:45:48,268 INFO mapred.FileInputFormat (FileInputFormat.java:listStatus(192)) - Total input paths to process : 1
2014-09-19 17:45:48,485 INFO mapred.JobClient (JobClient.java:monitorAndPrintJob(1275)) - Running job: job_local_0001
2014-09-19 17:45:48,487 INFO mapred.FileInputFormat (FileInputFormat.java:listStatus(192)) - Total input paths to process : 1
2014-09-19 17:45:48,526 INFO mapred.MapTask (MapTask.java:runOldMapper(347)) - numReduceTasks: 0
2014-09-19 17:45:48,565 INFO plugin.PluginRepository (PluginManifestParser.java:parsePluginFolder(87)) - Plugins: looking in: K:\Nutch\apache-nutch-1.9\plugins
2014-09-19 17:45:48,566 WARN plugin.PluginRepository (PluginManifestParser.java:parsePluginFolder(101)) - java.io.FileNotFoundException: K:\Nutch\apache-nutch-1.9\plugins\creativecommons\plugin.xml (The system cannot find the file specified)
It seems that Hadoop is the causing error. I don't know how to solve this problem. I know Nutch requires Unix environment. But, I want to run Nutch in Eclipse on Windows.
Can anybody help me to solve this?
Download cygwin, then add that to your path of the environment variables. I think your problem is caused by the fact that windows can't invoke a unix native command. That is what I did however as soon as i got past that problem, I encountered other problems.

SonarQube 4.3 - 0 files indexed

I'm trying to run a sonar analysis on my jave code. There are no files indexed.
INFO: Runner configuration file: C:\Program Files\Development\Tools\sonar-runner-2.4\conf\sonar-runner.properties
INFO: Project configuration file: C:\Program Files\Development\Tools\sonar-runner-2.4\Projects\sonar-project.properties
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Work directory: C:\Program Files\Development\Tools\sonar-runner-2.4\bin\.\.sonar
INFO: SonarQube Server 4.3
09:41:48.340 INFO - Load batch settings
09:41:49.535 INFO - User cache: C:\Users\z003bw5a\.sonar\cache
09:41:49.580 INFO - Install plugins
09:41:55.230 INFO - Install JDBC driver
09:41:55.272 INFO - Create JDBC datasource for jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8
09:42:00.687 INFO - Initializing Hibernate
09:42:15.950 INFO - Load project settings
09:42:16.125 INFO - Apply project exclusions
09:42:16.812 INFO - ------------- Scan skuska 1
09:42:16.842 INFO - Load module settings
09:42:20.400 INFO - Language is forced to java
09:42:21.177 INFO - Loading technical debt model...
09:42:21.241 INFO - Loading technical debt model done: 64 ms
09:42:21.246 INFO - Loading rules...
09:42:22.359 INFO - Loading rules done: 1113 ms
09:42:22.430 INFO - Configure Maven plugins
09:42:22.730 INFO - Compare to previous analysis (2014-06-18)
09:42:22.767 INFO - Compare over 30 days (2014-05-19, analysis of 2014-06-18 09:12:14.0)
09:42:22.926 INFO - Loaded quality gate 'SonarQube way'
09:42:24.118 INFO - Base dir: C:\Program Files\Development\Tools\sonar-runner-2.4\bin\.
09:42:24.122 INFO - Working dir: C:\Program Files\Development\Tools\sonar-runner-2.4\bin\.\.sonar
09:42:24.126 INFO - Source encoding: UTF-8, default locale: en_US
09:42:24.137 INFO - Index files
09:42:24.228 INFO - 0 files indexed
09:42:24.238 INFO - Quality profile for java: Sonar way
09:42:24.254 INFO - JaCoCo report not found.
09:42:24.269 INFO - JaCoCo IT report not found.
09:42:24.274 INFO - JaCoCo reports not found.
09:42:24.328 INFO - Sensor QProfileSensor...
09:42:24.454 INFO - Sensor QProfileSensor done: 126 ms
09:42:24.458 INFO - Sensor InitialOpenIssuesSensor...
09:42:24.493 INFO - Sensor InitialOpenIssuesSensor done: 35 ms
09:42:24.498 INFO - Sensor ProfileEventsSensor...
09:42:24.581 INFO - Sensor ProfileEventsSensor done: 83 ms
09:42:24.585 INFO - Sensor ProjectLinksSensor...
09:42:24.612 INFO - Sensor ProjectLinksSensor done: 27 ms
09:42:24.615 INFO - Sensor VersionEventsSensor...
09:42:24.886 INFO - Sensor VersionEventsSensor done: 271 ms
09:42:24.890 INFO - Sensor FileHashSensor...
09:42:24.894 INFO - Sensor FileHashSensor done: 4 ms
09:42:24.905 INFO - Sensor CpdSensor...
09:42:24.908 INFO - SonarEngine is used for java
09:42:24.919 INFO - Sensor CpdSensor done: 14 ms
09:42:26.614 INFO - Execute decorators...
09:42:27.719 INFO - Store results in database
09:42:28.073 INFO - ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/skuska
09:42:28.629 INFO - Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob
09:42:28.739 INFO - -> Keep one snapshot per day between 2014-05-21 and 2014-06-17
09:42:28.753 INFO - -> Keep one snapshot per week between 2013-06-19 and 2014-05-21
09:42:28.781 INFO - -> Keep one snapshot per month between 2009-06-24 and 2013-06-19
09:42:28.785 INFO - -> Delete data prior to: 2009-06-24
09:42:28.856 INFO - -> Clean skuska 1 [id=3]
09:42:28.905 INFO - <- Clean snapshot 19
09:42:29.430 INFO - Executing post-job class org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob
09:42:29.435 INFO - Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
Total time: 56.892s
Final Memory: 11M/212M
INFO: ------------------------------------------------------------------------
My sonar settings look like this:
# Section 1: required metadata
sonar.projectKey=skuska
sonar.projectName=skuska 1
sonar.projectVersion=0.1
# Section 2: project directories
# path to source directories (required)
sonar.sources=C:\Program Files\Development\Tools\sonar-runner-2.4\Projects\skuska
# path to test source directories (optional)
#sonar.tests=
# path to project binaries (optional), for example directory of Java
# bytecode
#sonar.binaries=
# Section 3: Java and libraries settings
# optional comma-separated list of paths to libraries. Only path to JAR file
# and path to directory of classes are supported.
#libraries=path/to/library.jar
# Uncomment those lines if some features of java 5 or java 6 like
# annotations, enum, ...
# are used in the source code to be analysed
#sonar.java.source=1.5
#sonar.java.target=1.5
# Section 4: Advanced parameters
# Uncomment this line to analyse a project which is not a java project.
# The value of the property must be the key of the language.
sonar.language=java
# Advanced parameters
#sonar.my.property=value
sonar.sourceEncoding=UTF-8
Analysis is successful, but the web server is only the name of the project and no data about metrics and code coverage.
Please help me!
As you can read in the documentation, you should put the sonar-project.properties file at the root of your project and launch the analysis from this folder, and therefore replace the "sonar.sources" property with a relative path instead of an absolute one.

Stuck Installing Selenium Server for Python

I am trying to use the Selenium standalone server with Python. However, when I type
"C:\Program Files (x86)\Java\jre7\bin\Java.exe" -jar selenium-server-standalone-2.32.0.jar
into the command prompt, the setup gets stuck displaying
May 22, 2013 3:38:18 PM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
15:38:18.388 INFO - Java: Oracle Corporation 23.21-b01
15:38:18.389 INFO - OS: Windows 7 6.1 x86
15:38:18.394 INFO - v2.32.0, with Core v2.32.0. Built from revision 6c40c18
15:38:18.473 INFO - RemoteWebDriver instances should connect to: http://127.0.0.
1:4444/wd/hub
15:38:18.474 INFO - Version Jetty/5.1.x
15:38:18.475 INFO - Started HttpContext[/selenium-server/driver,/selenium-server
/driver]
15:38:18.475 INFO - Started HttpContext[/selenium-server,/selenium-server]
15:38:18.476 INFO - Started HttpContext[/,/]
15:38:18.498 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler#166faa
c
15:38:18.499 INFO - Started HttpContext[/wd,/wd]
15:38:18.501 INFO - Started SocketListener on 0.0.0.0:4444
15:38:18.502 INFO - Started org.openqa.jetty.jetty.Server#144752d
I'm not sure how to get around this problem, any help would be much appreciated.
I don't think you have a problem - that looks to me like the selenium server has started successfully, and is now running. Do you have a problem connecting to it and running a script?

Categories