Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    If the directory ../.foo/bar/ doesn't exist, you can't create a file there, so make sure you create the directory first.

    File f = new File("somedirname1/somedirname2/somefilename");
    if (!f.getParentFile().exists())
        f.getParentFile().mkdirs();
    

Solutions on the web

via Oracle Community by 2791315, 1 year ago
via GitHub by timwr
, 2 years ago
via cloudera.com by Unknown author, 2 years ago
Too many open files
via cloudera.com by Unknown author, 2 years ago
via cloudera.com by Unknown author, 1 year ago
java.io.IOException: Too many open files at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(File.java:883) at org.apache.lucene.store.SimpleFSLock.obtain(SimpleFSLockFactory.java:124) at org.apache.lucene.store.Lock.obtain(Lock.java:73) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1565) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1121) at com.liferay.portal.search.lucene.IndexWriterFactory.getWriter(IndexWriterFactory.java:191) at com.liferay.portal.search.lucene.LuceneUtil.getWriter(LuceneUtil.java:414) at com.liferay.portal.search.lucene.LuceneUtil.getWriter(LuceneUtil.java:408) at com.liferay.portal.search.lucene.LuceneIndexWriterImpl.addDocument(LuceneIndexWriterImpl.java:56) at com.liferay.portal.search.lucene.LuceneIndexWriterImpl.updateDocument(LuceneIndexWriterImpl.java:106) at com.liferay.portal.search.lucene.messaging.LuceneWriterMessageListener.doReceive(LuceneWriterMessageListener.java:91) at com.liferay.portal.search.lucene.messaging.LuceneWriterMessageListener.receive(LuceneWriterMessageListener.java:43) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:70) at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:54) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662)