SolrCore java.io.FileNotFoundException - java

I have encounter the a FileNotFoundException exception occasionally when indexing, it's not occur every time. Anyone have some clue? Here is the traceback:
2012-10-14 11:37:28,105 ERROR core.SolrCore - java.io.FileNotFoundException: /home/admin/run/deploy/solr/core_p_shard2/data/index/_cwo.fnm (No such file or directory)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:216)
at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:218)
at org.apache.lucene.store.NRTCachingDirectory.openInput(NRTCachingDirectory.java:232)
at org.apache.lucene.codecs.lucene40.Lucene40FieldInfosReader.read(Lucene40FieldInfosReader.java:47)
at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:101)
at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:55)
at org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:120)
at org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:267)
at org.apache.lucene.index.IndexWriter.applyAllDeletes(IndexWriter.java:2928)
at org.apache.lucene.index.DocumentsWriter.applyAllDeletes(DocumentsWriter.java:180)
at org.apache.lucene.index.DocumentsWriter.postUpdate(DocumentsWriter.java:310)
at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:386)
at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1430)
at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:210)
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:432)
at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:315)
at org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:230)
at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:157)
at org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:92)
at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1656)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:454)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:275)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Except above exception, there is a auto commit error, here is detail
2012-10-15 01:37:10,722 ERROR update.CommitTracker - auto commit error...:java.io.FileNotFoundException: _5.fdt
at org.apache.lucene.store.FSDirectory.fileLength(FSDirectory.java:266)
at org.apache.lucene.store.NRTCachingDirectory.fileLength(NRTCachingDirectory.java:177)
at org.apache.lucene.index.SegmentInfo.sizeInBytes(SegmentInfo.java:103)
at org.apache.lucene.index.IndexWriter.prepareFlushedSegment(IndexWriter.java:2126)
at org.apache.lucene.index.DocumentsWriter.publishFlushedSegment(DocumentsWriter.java:495)
at org.apache.lucene.index.DocumentsWriter.finishFlush(DocumentsWriter.java:474)
at org.apache.lucene.index.DocumentsWriterFlushQueue$SegmentFlushTicket.publish(DocumentsWriterFlushQueue.java:201)
at org.apache.lucene.index.DocumentsWriterFlushQueue.innerPurge(DocumentsWriterFlushQueue.java:119)
at org.apache.lucene.index.DocumentsWriterFlushQueue.tryPurge(DocumentsWriterFlushQueue.java:148)
at org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:435)
at org.apache.lucene.index.DocumentsWriter.flushAllThreads(DocumentsWriter.java:551)
at org.apache.lucene.index.IndexWriter.prepareCommit(IndexWriter.java:2657)
at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:2793)
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:2773)
at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:531)
at org.apache.solr.update.CommitTracker.run(CommitTracker.java:214)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
And I have found that there lots of segment in index directory, and most of them is empty, like . totoal file number is 35314 in index directory.
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3n.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3o.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3o.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3p.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3p.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3q.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3q.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3r.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3r.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3s.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3s.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3t.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3t.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3u.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3u.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3v.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3v.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3w.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3w.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3x.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3x.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3y.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3y.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3z.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3z.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k40.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k40.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k41.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k41.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k42.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k42.fdx

Related

Cannot generate allure report from allure docker

I have tested with testng.xml and got the folder called allure-results on my linux host. This folder has many .json files
-rw-rw-r-- 1 root root 202 Jan 27 03:20 038526c0-e53c-4907-a04b-7061eff12e91-container.json
-rw-rw-r-- 1 root root 548 Jan 27 03:20 17bd74ad-1f5e-4ef9-9f21-b2ec85cfca47-container.json
-rw-rw-r-- 1 root root 419 Jan 27 03:20 1bd85195-ab0d-4e17-ab12-800e5037405f-container.json
-rw-rw-r-- 1 root root 195 Jan 27 03:20 1f6a2505-8c58-452d-a564-e7ffa9512599-container.json
-rw-rw-r-- 1 root root 837 Jan 27 03:20 4fb8431a-162a-4f33-889b-2e5ee5c01843-result.json
-rw-rw-r-- 1 root root 415 Jan 27 03:20 990031d8-60eb-4379-8864-aee237fed175-container.json
The docker-compose file I used to create a container is as below.
version: '2'
services:
allure:
image: "frankescobar/allure-docker-service"
environment:
CHECK_RESULTS_EVERY_SECONDS: 1
KEEP_HISTORY: 1
ports:
- "5050:5050"
volumes:
- $PROJECT_PATH/allure-results:/app/allure-results
- $PROJECT_PATH/allure-reports:/app/default-reports
The project name I created in allure-docker is test.
To generate allure report, I request this URL.
http://192.168.100.58:5050/allure-docker-service/generate-report?project_id=test but got nothing in there.
I can see the same .json files in the container's path as they are correctly mounted as a volume.
allure#0ff7067fedb0:/app/allure-results$ ll
total 36
drwxrwxr-x 2 root root 4096 Jan 27 03:20 ./
drwxr-xr-x 1 allure allure 4096 Dec 14 10:03 ../
-rw-rw-r-- 1 root root 202 Jan 27 03:20 038526c0-e53c-4907-a04b-7061eff12e91-container.json
-rw-rw-r-- 1 root root 548 Jan 27 03:20 17bd74ad-1f5e-4ef9-9f21-b2ec85cfca47-container.json
-rw-rw-r-- 1 root root 419 Jan 27 03:20 1bd85195-ab0d-4e17-ab12-800e5037405f-container.json
-rw-rw-r-- 1 root root 195 Jan 27 03:20 1f6a2505-8c58-452d-a564-e7ffa9512599-container.json
-rw-rw-r-- 1 root root 837 Jan 27 03:20 4fb8431a-162a-4f33-889b-2e5ee5c01843-result.json
-rw-rw-r-- 1 root root 415 Jan 27 03:20 990031d8-60eb-4379-8864-aee237fed175-container.json
allure#0ff7067fedb0:/app/allure-results$
Question What am I missing to get the allure report?
I found the answer myself.
To generate a report, actually, I don't have to generate it manually as this allure-docker generates reports automatically if new results in the results directory are detected.
To get the report, remove allure-docker-service from URL request. Hence, it should be like,
http://192.168.100.58:5050/generate-report?project_id=test

Accessing folder outside user.home is returning false in Linux

I have installed tomcat and deployed a java web application in that in Redhat.
My System property user.home is pointing to /opt/tomcat.
This application tries to access a file path like this
root = new File(rootPath);
if (!root.isDirectory()) {
throw new IllegalArgumentException("Root is not a directory!");
}
Now i want to access any folder outside /opt like a sibling to /opt, it results false in root.isDirectory(). But if a folder is inside /opt/tomcat then it is properly returning as true.
Both the folders /opt and /nasdata(folder which i want to access) have same permissions.
UPDATED
ls -la /opt
drwxr-xr-x. 8 root root 4096 Jul 21 16:15 .
dr-xr-xr-x. 21 root root 4096 Jul 21 20:53 ..
drwxr-xr-x 10 tomcat tomcat 4096 Jul 26 21:20 tomcat
ls -la /opt/tomcat
drwxr-xr-x 10 tomcat tomcat 4096 Jul 26 21:20 .
drwxr-xr-x. 8 root root 4096 Jul 21 16:15 ..
drwxr-x--- 2 tomcat tomcat 4096 Jul 21 16:15 bin
-rw-r----- 1 tomcat tomcat 18949 Jun 28 01:46 BUILDING.txt
drwxr-x--- 3 tomcat tomcat 4096 Jul 23 09:20 conf
-rw-r----- 1 tomcat tomcat 6210 Jun 28 01:46 CONTRIBUTING.md
drwxr-x--- 2 tomcat tomcat 4096 Jul 21 20:14 lib
-rw-r----- 1 tomcat tomcat 57092 Jun 28 01:46 LICENSE
drwxr-x--- 2 tomcat tomcat 4096 Jul 28 04:58 logs
lrwxrwxrwx 1 root root 9 Jul 26 21:20 nasdata -> /nasdata/
-rw-r----- 1 tomcat tomcat 2333 Jun 28 01:46 NOTICE
drwxr-x--- 2 tomcat tomcat 4096 Jul 23 09:20 .oracle_jre_usage
-rw-r----- 1 tomcat tomcat 3372 Jun 28 01:46 README.md
-rw-r----- 1 tomcat tomcat 6898 Jun 28 01:46 RELEASE-NOTES
-rw-r----- 1 tomcat tomcat 16507 Jun 28 01:46 RUNNING.txt
drwxr-x--- 2 tomcat tomcat 4096 Jul 23 09:34 temp
drwxr-x--- 9 tomcat tomcat 4096 Jul 23 09:37 webapps
drwxr-x--- 3 tomcat tomcat 4096 Jul 21 16:28 work
ls -la of my root folder. I am trying to access nasdata folder and giving /nasdata as the path.
dr-xr-xr-x. 21 root root 4096 Jul 21 20:53 .
dr-xr-xr-x. 21 root root 4096 Jul 21 20:53 ..
-rw-r--r-- 1 root root 0 Feb 4 20:43 .autorelabel
lrwxrwxrwx. 1 root root 7 Feb 4 20:39 bin -> usr/bin
dr-xr-xr-x. 5 root root 4096 Feb 4 20:52 boot
drwxr-xr-x 19 root root 3220 Jul 21 14:04 dev
drwxr-xr-x. 89 root root 4096 Jul 21 21:00 etc
drwxr-xr-x. 2 root root 4096 Feb 4 20:39 home
drwxr-xr-x 3 root root 4096 Jul 21 16:55 home2
lrwxrwxrwx. 1 root root 7 Feb 4 20:39 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 Feb 4 20:39 lib64 -> usr/lib64
drwxr-xr-x. 5 root root 1024 Jul 21 16:58 localhome
drwx------. 2 root root 16384 Feb 4 20:38 lost+found
drwxr-xr-x. 2 root root 4096 Dec 14 2017 media
drwxr-xr-x. 2 root root 4096 Dec 14 2017 mnt
drwxrwxr-x 2 root 9999 4096 Jul 26 16:58 nasdata
drwxr-xr-x. 8 root root 4096 Jul 21 16:15 opt
dr-xr-xr-x 150 root root 0 Jul 21 14:04 proc
dr-xr-x---. 7 root root 4096 Jul 21 16:26 root
drwxr-xr-x 30 root root 980 Jul 21 16:46 run
lrwxrwxrwx. 1 root root 8 Feb 4 20:39 sbin -> usr/sbin
-rw-r--r-- 1 root root 127599309 Jul 21 20:53 sk
drwxr-xr-x. 2 root root 4096 Dec 14 2017 srv
dr-xr-xr-x 13 root root 0 Jul 21 14:04 sys
drwxrwxrwt. 14 root root 4096 Jul 28 03:43 tmp
drwxr-xr-x. 14 root root 4096 Jul 21 16:08 usr
drwxr-xr-x. 20 root root 4096 Feb 4 20:46 var
Best Regards,
Saurav

java.lang.NoClassDefFoundError: javax/mail/Authenticator in javaMail

I Create a java application that uses send mail, and it working in eclipse when I run. but when i make it jar and run in Terminal(I am Using Ubuntu) java -jar EmailApp.jar it give Following Error :
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Authenticator
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: javax.mail.Authenticator
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
My META-INF/MANIFEST.MF :
Manifest-Version: 1.0
Main-Class: com.abc.client.xyz.EmailSender
Class-Path: lib/javax.mail-1.3.3.01.jar
lib/mail-1.4.7.jar
lib/activation-1.1.1.jar
lib/commons-logging-1.1.jar
lib/log4j-1.2.12.jar
lib/commons-collections.jar
lib/commons-dbcp-1.2.1.jar
lib/commons-dbutils-1.0.jar
lib/commons-email-1.1.jar
lib/commons-io.jar
lib/commons-lang-2.5.jar
lib/commons-pool-1.2.jar
lib/commons-pool-20030825.183949.jar
lib/jtds-1.2.5.jar
lib/mysql-connector.jar
lib/idc-dgps4-egn-1.0-SNAPSHOT.jar
The Result of $ ls -al ./lib
total 17100
drwxrwxr-x 2 xyz xyz 4096 Oct 7 15:21 .
drwxrwxr-x 10 xyz xyz 4096 Oct 7 14:26 ..
-rw-rw-r-- 1 xyz xyz 69409 Oct 5 19:20 activation-1.1.1.jar
-rw-rw-r-- 1 xyz xyz 575389 Oct 16 2014 commons-collections.jar
-rw-rw-r-- 1 xyz xyz 107631 Oct 16 2014 commons-dbcp-1.2.1.jar
-rw-rw-r-- 1 xyz xyz 26687 Oct 16 2014 commons-dbutils-1.0.jar
-rw-rw-r-- 1 xyz xyz 30651 Oct 16 2014 commons-email-1.1.jar
-rw-rw-r-- 1 xyz xyz 52543 Oct 16 2014 commons-exec-1.1.jar
-rw-rw-r-- 1 xyz xyz 83613 Oct 16 2014 commons-io.jar
-rw-rw-r-- 1 xyz xyz 279193 Oct 16 2014 commons-lang-2.5.jar
-rw-rw-r-- 1 xyz xyz 52915 Oct 16 2014 commons-logging-1.1.jar
-rw-rw-r-- 1 xyz xyz 42492 Oct 16 2014 commons-pool-1.2.jar
-rw-rw-r-- 1 xyz xyz 38815 Oct 16 2014 commons-pool-20030825.183949.jar
-rw-rw-r-- 1 xyz xyz 865430 Oct 16 2014 idc-dgps4-egn-1.0-SNAPSHOT.jar
-rw-rw-r-- 1 xyz xyz 355030 Jul 11 2015 javax.mail-1.3.3.01.jar
-rw-rw-r-- 1 xyz xyz 708951 Oct 16 2014 js-1.6R5.jar
-rw-rw-r-- 1 xyz xyz 302284 Oct 16 2014 jtds-1.2.5.jar
-rw-rw-r-- 1 xyz xyz 358085 Oct 16 2014 log4j-1.2.12.jar
-rw-rw-r-- 1 xyz xyz 521157 Oct 7 15:20 mail-1.4.7.jar
-rw-rw-r-- 1 xyz xyz 397032 Sep 29 11:06 mysql-connector.jar
-rw-rw-r-- 1 xyz xyz 12598097 Oct 16 2014 tools.jar
NOTE : All the .Jar file in /lib folder.
My Application Structure :
Please Help Me.
Add following jar to your classpath http://repo2.maven.org/maven2/javax/mail/mail/1.4.7/mail-1.4.7.jar

Intellij 15 Error: could not find libjava.dylib

I installed Intellj 15 in my macos. While running it throws following error.
$ /Applications/IntelliJ\ IDEA\ 15\ CE.app/Contents/MacOS/idea
2016-05-21 18:07:53.774 idea[1307:51782] Value of IDEA_JDK: (null)
2016-05-21 18:07:53.778 idea[1307:51795] fullFileName is: /Applications/IntelliJ IDEA 15 CE.app/Contents/bin/idea.vmoptions
2016-05-21 18:07:53.778 idea[1307:51795] fullFileName exists: /Applications/IntelliJ IDEA 15 CE.app/Contents/bin/idea.vmoptions
2016-05-21 18:07:53.778 idea[1307:51795] Value of IDEA_VM_OPTIONS is (null)
2016-05-21 18:07:53.778 idea[1307:51795] Processing VMOptions file at /Applications/IntelliJ IDEA 15 CE.app/Contents/bin/idea.vmoptions
2016-05-21 18:07:53.779 idea[1307:51795] Done
Error: could not find libjava.dylib
Failed to GetJREPath()
2016-05-21 18:07:53.779 idea[1307:51795] JNI_CreateJavaVM (/Applications/IntelliJ IDEA 15 CE.app/Contents/jre/jdk) failed: 4294967295
I have JAVA_HOME set as
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/"
I have libjava.dylib in /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/.
Also, I have libjava.dylib in /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/
$ ll /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/
total 251384
drwxrwxr-x 2 root wheel 68 Feb 1 22:02 applet
-rw-rw-r-- 1 root wheel 1378 Dec 22 18:26 calendars.properties
-rw-rw-r-- 1 root wheel 3133473 Dec 22 18:26 charsets.jar
-rw-rw-r-- 1 root wheel 72450 Dec 22 18:26 classlist
drwxrwxr-x 7 root wheel 238 Feb 1 22:02 cmm
-rw-rw-r-- 1 root wheel 5916 Dec 22 18:26 content-types.properties
-rw-rw-r-- 1 root wheel 4122 Dec 22 18:26 currency.data
drwxrwxr-x 24 root wheel 816 Feb 1 22:02 deploy
-rw-rw-r-- 1 root wheel 2218758 Dec 22 18:28 deploy.jar
drwxrwxr-x 13 root wheel 442 Feb 1 22:02 ext
-rw-rw-r-- 1 root wheel 4116 Dec 22 18:26 flavormap.properties
-rw-rw-r-- 1 root wheel 3058 Dec 22 18:26 fontconfig.bfc
-rw-rw-r-- 1 root wheel 8087 Dec 22 18:26 fontconfig.properties.src
drwxrwxr-x 11 root wheel 374 Feb 1 22:02 fonts
-rw-rw-r-- 1 root wheel 13962 Dec 22 18:26 hijrah-config-umalqura.properties
drwxrwxr-x 3 root wheel 102 Oct 6 2015 images
-rw-rw-r-- 1 root wheel 55 Dec 22 16:03 javafx.properties
-rw-rw-r-- 1 root wheel 471677 Dec 22 18:28 javaws.jar
-rw-rw-r-- 1 root wheel 114950 Dec 22 18:26 jce.jar
drwxrwxr-x 4 root wheel 136 Feb 1 22:02 jfr
-rw-rw-r-- 1 root wheel 560452 Dec 22 18:26 jfr.jar
-rw-rw-r-- 1 root wheel 33930 Dec 22 16:03 jfxswt.jar
drwxrwxr-x 3 root wheel 102 Feb 1 22:02 jli
-rwxrwxr-x 1 root wheel 15136 Dec 22 18:26 jspawnhelper
-rw-rw-r-- 1 root wheel 633834 Dec 22 18:26 jsse.jar
-rw-rw-r-- 1 root wheel 624 Dec 22 18:26 jvm.cfg
-rw-rw-r-- 1 root wheel 4226 Dec 22 18:26 jvm.hprof.txt
-rw-rw-r-- 1 root wheel 45120 Dec 22 18:26 libAppleScriptEngine.dylib
-rw-rw-r-- 1 root wheel 16068 Dec 22 18:26 libattach.dylib
-rw-rw-r-- 1 root wheel 552948 Dec 22 18:26 libawt.dylib
-rwxrwxr-x 1 root wheel 721004 Dec 22 18:26 libawt_lwawt.dylib
-rwxrwxr-x 1 root wheel 9164 Dec 22 18:26 libbci.dylib
-rw-rw-r-- 1 root wheel 186456 Dec 22 18:26 libdcpr.dylib
-rwxrwxr-x 1 root wheel 62900 Dec 22 16:03 libdecora_sse.dylib
-rw-rw-r-- 1 root wheel 166872 Dec 22 18:28 libdeploy.dylib
-rw-rw-r-- 1 root wheel 25616 Dec 22 18:26 libdt_socket.dylib
-rw-rw-r-- 1 root wheel 419360 Dec 22 18:26 libfontmanager.dylib
-rwxrwxr-x 1 root wheel 174156 Dec 22 16:03 libfxplugins.dylib
-rw-rw-r-- 1 root wheel 380580 Dec 22 16:03 libglass.dylib
-rwxrwxr-x 1 root wheel 1185040 Dec 22 16:03 libglib-lite.dylib
-rw-rw-r-- 1 root wheel 1537888 Dec 22 16:03 libgstreamer-lite.dylib
-rw-rw-r-- 1 root wheel 212872 Dec 22 18:26 libhprof.dylib
-rw-rw-r-- 1 root wheel 142392 Dec 22 18:26 libinstrument.dylib
-rw-rw-r-- 1 root wheel 41124 Dec 22 18:26 libj2gss.dylib
-rw-rw-r-- 1 root wheel 15092 Dec 22 18:26 libj2pcsc.dylib
-rw-rw-r-- 1 root wheel 70692 Dec 22 18:26 libj2pkcs11.dylib
-rw-rw-r-- 1 root wheel 8852 Dec 22 18:26 libjaas_unix.dylib
-rw-rw-r-- 1 root wheel 216684 Dec 22 18:26 libjava.dylib
-rw-rw-r-- 1 root wheel 28896 Dec 22 18:26 libjava_crw_demo.dylib
-rwxrwxr-x 1 root wheel 38524 Dec 22 16:03 libjavafx_font.dylib
-rwxrwxr-x 1 root wheel 776700 Dec 22 16:03 libjavafx_font_t2k.dylib
-rwxrwxr-x 1 root wheel 250956 Dec 22 16:03 libjavafx_iio.dylib
-rw-rw-r-- 1 root wheel 8652 Dec 22 18:26 libjawt.dylib
-rw-rw-r-- 1 root wheel 304248 Dec 22 18:26 libjdwp.dylib
-rw-rw-r-- 1 root wheel 25328 Dec 22 18:26 libjfr.dylib
-rw-rw-r-- 1 root wheel 240840 Dec 22 16:03 libjfxmedia.dylib
-rwxrwxr-x 1 root wheel 214088 Dec 22 16:03 libjfxmedia_avf.dylib
-rwxrwxr-x 1 root wheel 53104 Dec 22 16:03 libjfxmedia_qtkit.dylib
-rw-rw-r-- 1 root wheel 38159152 Dec 22 16:03 libjfxwebkit.dylib
-rw-rw-r-- 1 root wheel 180468 Dec 22 18:26 libjpeg.dylib
-rw-rw-r-- 1 root wheel 14628 Dec 22 18:26 libjsdt.dylib
-rw-rw-r-- 1 root wheel 15744 Dec 22 18:26 libjsig.dylib
-rw-rw-r-- 1 root wheel 74872 Dec 22 18:26 libjsound.dylib
-rw-rw-r-- 1 root wheel 374428 Dec 22 18:26 libkcms.dylib
-rwxrwxr-x 1 root wheel 333072 Dec 22 18:26 liblcms.dylib
-rw-rw-r-- 1 root wheel 53576 Dec 22 18:26 libmanagement.dylib
-rw-rw-r-- 1 root wheel 834796 Dec 22 18:26 libmlib_image.dylib
-rw-rw-r-- 1 root wheel 90964 Dec 22 18:26 libnet.dylib
-rw-rw-r-- 1 root wheel 61444 Dec 22 18:26 libnio.dylib
-rw-rw-r-- 1 root wheel 198936 Dec 22 18:28 libnpjp2.dylib
-rw-rw-r-- 1 root wheel 15684 Dec 22 18:26 libnpt.dylib
-rw-rw-r-- 1 root wheel 55364 Dec 22 18:26 libosx.dylib
-rw-rw-r-- 1 root wheel 110948 Dec 22 18:26 libosxapp.dylib
-rw-rw-r-- 1 root wheel 14424 Dec 22 18:26 libosxkrb5.dylib
-rw-rw-r-- 1 root wheel 36068 Dec 22 18:26 libosxui.dylib
-rwxrwxr-x 1 root wheel 54732 Dec 22 16:03 libprism_common.dylib
-rwxrwxr-x 1 root wheel 62236 Dec 22 16:03 libprism_es2.dylib
-rwxrwxr-x 1 root wheel 67968 Dec 22 16:03 libprism_sw.dylib
-rwxrwxr-x 1 root wheel 10104 Dec 22 18:26 libresource.dylib
-rw-rw-r-- 1 root wheel 77036 Dec 22 18:26 libsaproc.dylib
-rw-rw-r-- 1 root wheel 348848 Dec 22 18:26 libsplashscreen.dylib
-rw-rw-r-- 1 root wheel 161704 Dec 22 18:26 libsunec.dylib
-rw-rw-r-- 1 root wheel 310336 Dec 22 18:26 libt2k.dylib
-rw-rw-r-- 1 root wheel 102100 Dec 22 18:26 libunpack.dylib
-rw-rw-r-- 1 root wheel 49472 Dec 22 18:26 libverify.dylib
-rw-rw-r-- 1 root wheel 36600 Dec 22 18:26 libzip.dylib
-rw-rw-r-- 1 root wheel 2455 Dec 22 18:26 logging.properties
drwxrwxr-x 6 root wheel 204 Feb 1 22:02 management
-rw-rw-r-- 1 root wheel 381 Dec 22 18:26 management-agent.jar
-rw-rw-r-- 1 root wheel 2107 Dec 22 18:26 meta-index
-rw-rw-r-- 1 root wheel 3070 Dec 22 18:26 net.properties
drwxrwxr-x 5 root wheel 170 Feb 1 22:02 nibs
-rw-rw-r-- 1 root wheel 944069 Dec 22 18:28 plugin.jar
-rw-rw-r-- 1 root wheel 2796 Dec 22 18:26 psfont.properties.ja
-rw-rw-r-- 1 root wheel 10393 Dec 22 18:26 psfontj2d.properties
-rw-rw-r-- 1 root wheel 3502025 Dec 22 18:26 resources.jar
-rw-rw-r-- 1 root wheel 66604445 Dec 22 18:26 rt.jar
drwxrwxr-x 11 root wheel 374 Feb 1 22:02 security
drwxrwxr-x 5 root wheel 170 Feb 1 22:02 server
drwxrwxr-x 3 root wheel 102 Feb 1 22:02 shortcuts
-rw-rw-r-- 1 root wheel 1210 Dec 22 18:26 sound.properties
-rw-rw-r-- 1 root wheel 102332 Dec 22 18:26 tzdb.dat
I copied the file to IntelliJ/jre, still no luck.
$ ll /Applications/IntelliJ\ IDEA\ 15\ CE.app/Contents/jre/jdk/Contents/MacOS/
total 552
-rw-r--r-- 1 root admin 216684 May 21 18:22 libjava.dylib
-rwxr-xr-x# 1 root admin 61704 Jan 5 22:29 libjli.dylib
I'd the exact same issue but with another version of the application being launched.
When you launch applications such as IntelliJ, Eclipse, etc, they wont use the environment variables even though you set them to something specific. so setting JAVA_HOME to one particular version doesn't help at all.
You need to check what is the default version of Java on MacOS.
You can check that using the following:
$ /usr/libexec/java_home -V
Matching Java Virtual Machines (5):
11.0.1, x86_64: "... 11.0.1" /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
9.0.4, x86_64: "Java SE 9.0.4" /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
1.8.0_162, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home
1.8.0_152, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home
1.8.0_144, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
The last line points to the default version of Java.
So for me, this was pointing to JDK 11.
Starting from Jdk9 onwards, the location of libjava.dylib is under /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/libjava.dylib.
Also this seems to be broken for JDK-12
Since this was not working for the default version of Java, I disabled both JDK 9 and 11 so that the default version is JDK8.
This can be done by renaming the Info.plist to Info.plist.disabled in <jdk_version>/Contents directory.
sudo mv /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Info.plist /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Info.plist.disabled
sudo mv /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Info.plist /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Info.plist.disabled
Ran /usr/libexec/java_home -V again which now points to jdk1.8.0_162.
The Application is now launching fine.
libjava.dylib is in the jre's lib directory. On my machine, it installed into (I have build 92 installed):
/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/libjava.dylib
In your case, files in /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/ is not going to make any difference. Intellij does not run as an applet -- that directory is only for the browser plugin used to run Java Applets.
In any case, you should consider downloading and reinstalling the latest build of the JDK from Oracle. If your install is missing libraries, other things may be messed up as well.
Upgrading my gradle to the latest version and setting JAVA_HOME and ANDROID_HOME properly worked for me.
here is my bash_profile:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
Gradle Version that worked for me was 6.0.1
maybe you can kill intellij process and restart it

maven is install error

I use windows7 64-bit
reference site : enter link description here
This problem isn't solve
[INFO] Final Memory: 44M/175M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8.1:jar (module-javadocs) on project hadoop-common: ArchiverException: Error while creating archive: Problem creating jar: C:\hdfs\hadoop-common-project\hadoop-common\target\hadoop-common-2.2.0\bin\hadoop.dll (Access is denied) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] [enter link description here][1]
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :hadoop-common
please help me
Same problem here... :-(
EDIT : It works !!
Chmod the cygdrive with
chmod a+rw /cygdrive/c/hdfs/hadoop-2.2.0-src/hadoop-common-project/hadoop-common/target/hadoop-common-2.2.0/bin/*
I've seen is this :
ls -al C:\hdfs\hadoop-common-project\hadoop-common\target\hadoop-common-2.2.0\bin
drwxr-xr-x 1 AM341772 Domain Users 0 Mar 21 18:19 .
drwxr-xr-x 1 AM341772 Domain Users 0 Mar 21 17:05 ..
-rwxr-xr-x 1 AM341772 Domain Users 4993 Mar 21 17:05 hadoop
-rw-r--r-- 1 AM341772 Domain Users 7770 Mar 21 17:05 hadoop.cmd
-rwxr-xr-x 1 AM341772 Domain Users 50176 Mar 21 17:04 hadoop.dll
-rw-r--r-- 1 AM341772 Domain Users 6881 Mar 21 17:04 hadoop.exp
-rw-r--r-- 1 AM341772 Domain Users 11878 Mar 21 17:04 hadoop.lib
-rw-r--r-- 1 AM341772 Domain Users 347136 Mar 21 17:04 hadoop.pdb
-rw-r--r-- 1 AM341772 Domain Users 204944 Mar 21 17:04 libwinutils.lib
-rwxr-xr-x 1 AM341772 Domain Users 1837 Mar 21 17:05 rcc
-rwxr-xr-x 1 AM341772 Domain Users 40448 Mar 21 17:04 winutils.exe
-rw-r--r-- 1 AM341772 Domain Users 371712 Mar 21 17:04 winutils.pdb
ls -al /cygdrive/c/hdfs/hadoop-2.2.0-src/hadoop-common-project/hadoop-common/target/hadoop-common-2.2.0/bin
total 1044
drwxrwxrwx+ 1 AM341772 Domain Users 0 Mar 21 18:19 .
drwxr-xr-x+ 1 AM341772 Domain Users 0 Mar 21 17:05 ..
-rwxrwxrwx 1 AM341772 Domain Users 4993 Mar 21 17:05 hadoop
-rwxrwxrwx 1 AM341772 Domain Users 7770 Mar 21 17:05 hadoop.cmd
---------- 1 AM341772 Domain Users 50176 Mar 21 17:04 hadoop.dll
---------- 1 AM341772 Domain Users 6881 Mar 21 17:04 hadoop.exp
---------- 1 AM341772 Domain Users 11878 Mar 21 17:04 hadoop.lib
---------- 1 AM341772 Domain Users 347136 Mar 21 17:04 hadoop.pdb
---------- 1 AM341772 Domain Users 204944 Mar 21 17:04 libwinutils.lib
-rwxrwxrwx 1 AM341772 Domain Users 1837 Mar 21 17:05 rcc
---------- 1 AM341772 Domain Users 40448 Mar 21 17:04 winutils.exe
---------- 1 AM341772 Domain Users 371712 Mar 21 17:04 winutils.pdb
It's a cygwin problem ?
You probably have a process running that has a lock on that file.
Make sure all Java processes (and anything else that may be using that file, e.g. Winzip, command prompt windows) are stopped and to be sure you could restart your machine
Had the same problem, fixed by running chmod command from the Windows SDK command prompt:
chmod -R 777 <hadoop-common-folder>

Categories