sbsdev / mdr2

Production Management Tool for DAISY Talking Books
GNU Affero General Public License v3.0
0 stars 0 forks source link

java.io.FileNotFoundException: (Too many open files) #49

Closed egli closed 9 years ago

egli commented 9 years ago

With large books we get the following exception:

2015-05-06 17:02:46,176 WARN  [org.hornetq.jms.client] (Thread-1526 (HornetQ-client-global-threads-1394208467)) HQ122001: Unhandled exception thrown from onMessage: java.lang.RuntimeException: Unexpected error handling message
        at org.projectodd.wunderboss.messaging.hornetq.JMSListener.onMessage(JMSListener.java:86) [mdr2-0.3.0-standalone.jar:]
        at org.hornetq.jms.client.HornetQJMSConsumer$MessageListenerWrapper.onMessage(HornetQJMSConsumer.java:190) [mdr2-0.3.0-standalone.jar:]
        at org.hornetq.jms.client.JMSMessageListenerWrapper.onMessage(JMSMessageListenerWrapper.java:103) [mdr2-0.3.0-standalone.jar:]
        at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:1116) [mdr2-0.3.0-standalone.jar:]
        at org.hornetq.core.client.impl.ClientConsumerImpl.access$500(ClientConsumerImpl.java:56) [mdr2-0.3.0-standalone.jar:]
        at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1251) [mdr2-0.3.0-standalone.jar:]
        at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:104) [mdr2-0.3.0-standalone.jar:]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_75]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_75]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_75]
Caused by: java.io.FileNotFoundException: /var/lib/mdr2/recorded/15700/aud882.wav (Too many open files)
        at java.io.FileInputStream.open(Native Method) [rt.jar:1.7.0_75]
        at java.io.FileInputStream.<init>(FileInputStream.java:146) [rt.jar:1.7.0_75]
        at org.apache.tika.io.TikaInputStream.<init>(TikaInputStream.java:444) [mdr2-0.3.0-standalone.jar:]
        at org.apache.tika.io.TikaInputStream.get(TikaInputStream.java:231) [mdr2-0.3.0-standalone.jar:]
        at org.apache.tika.io.TikaInputStream.get(TikaInputStream.java:365) [mdr2-0.3.0-standalone.jar:]
        at org.apache.tika.Tika.detect(Tika.java:287) [mdr2-0.3.0-standalone.jar:]
        at org.apache.tika.Tika.detect(Tika.java:270) [mdr2-0.3.0-standalone.jar:]
        at pantomime.mime$fn__5352.invoke(mime.clj:38) [mdr2-0.3.0-standalone.jar:]
        at pantomime.mime$fn__5337$G__5332__5342.invoke(mime.clj:24) [mdr2-0.3.0-standalone.jar:]
        at mdr2.dtb$wav_file_QMARK_.invoke(dtb.clj:19) [mdr2-0.3.0-standalone.jar:]
        at clojure.core$filter$fn__4264.invoke(core.clj:2605) [mdr2-0.3.0-standalone.jar:]
        at clojure.lang.LazySeq.sval(LazySeq.java:40) [mdr2-0.3.0-standalone.jar:]
        at clojure.lang.LazySeq.seq(LazySeq.java:49) [mdr2-0.3.0-standalone.jar:]
        at clojure.lang.RT.seq(RT.java:484) [mdr2-0.3.0-standalone.jar:]
        at clojure.core$seq.invoke(core.clj:133) [mdr2-0.3.0-standalone.jar:]
        at clojure.core$map$fn__4245.invoke(core.clj:2551) [mdr2-0.3.0-standalone.jar:]
        at clojure.lang.LazySeq.sval(LazySeq.java:40) [mdr2-0.3.0-standalone.jar:]
        at clojure.lang.LazySeq.seq(LazySeq.java:49) [mdr2-0.3.0-standalone.jar:]
        at clojure.lang.Cons.next(Cons.java:39) [mdr2-0.3.0-standalone.jar:]
        at clojure.lang.RT.next(RT.java:598) [mdr2-0.3.0-standalone.jar:]
        at clojure.core$next.invoke(core.clj:64) [mdr2-0.3.0-standalone.jar:]
        at clojure.core$every_QMARK_.invoke(core.clj:2495) [mdr2-0.3.0-standalone.jar:]
        at mdr2.dtb$audio_channels.invoke(dtb.clj:131) [mdr2-0.3.0-standalone.jar:]
        at mdr2.encode$sampling_rate.invoke(encode.clj:35) [mdr2-0.3.0-standalone.jar:]
        at mdr2.encode$encode.invoke(encode.clj:126) [mdr2-0.3.0-standalone.jar:]
        at mdr2.encode$encode_or_split.invoke(encode.clj:165) [mdr2-0.3.0-standalone.jar:]
        at mdr2.main$_main$fn__16341.invoke(main.clj:26) [mdr2-0.3.0-standalone.jar:]
        at immutant.messaging.internal$message_handler$fn__2216.invoke(internal.clj:113) [mdr2-0.3.0-standalone.jar:]
        at clojure.lang.AFn.applyToHelper(AFn.java:154) [mdr2-0.3.0-standalone.jar:]
        at clojure.lang.AFn.applyTo(AFn.java:144) [mdr2-0.3.0-standalone.jar:]
        at clojure.core$apply.invoke(core.clj:624) [mdr2-0.3.0-standalone.jar:]
        at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1862) [mdr2-0.3.0-standalone.jar:]
        at clojure.lang.RestFn.applyTo(RestFn.java:142) [mdr2-0.3.0-standalone.jar:]
        at clojure.core$apply.invoke(core.clj:628) [mdr2-0.3.0-standalone.jar:]
        at clojure.core$bound_fn_STAR_$fn__4140.doInvoke(core.clj:1884) [mdr2-0.3.0-standalone.jar:]
        at clojure.lang.RestFn.invoke(RestFn.java:408) [mdr2-0.3.0-standalone.jar:]
        at immutant.messaging.internal$message_handler$reify__2218.onMessage(internal.clj:121) [mdr2-0.3.0-standalone.jar:]
        at org.projectodd.wunderboss.messaging.hornetq.JMSListener.onMessage(JMSListener.java:78) [mdr2-0.3.0-standalone.jar:]
        ... 9 more