Tag: executionexception

wie mit java.util.gleichzeitige.ExecutionException Ausnahme?

Anzahl der Antworten 3 Antworten
Einen Teil von meinem code ist das wegwerfen von java.util.gleichzeitige.ExecutionException Ausnahme. Wie kann ich das umgehen? Kann ich mit throws-Klausel? Ich bin ein bisschen neu für java. InformationsquelleAutor user811433 | 2012-07-25

Was ist der beste Weg, um eine ExecutionException zu behandeln?

Anzahl der Antworten 10 Antworten
Habe ich eine Methode, die führt einige tasks mit einem timeout. Ich benutze die ExecutorServer.submit() ein Future-Objekt, und dann rufe ich Zukunft.get() mit einem timeout. Dies ist in Ordnung, aber meine Frage ist der beste Weg, damit

Fehler beim Starten der Komponente [StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/ JDBC_DBO]]

Anzahl der Antworten 23 Antworten
Bekomme ich diese Tomcat-Fehler: Sep 09, 2012 4:16:54 PM org.apache.catalina.core.AprLifecycleListener init Information: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Products\jdk1.7.0_03\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Products/jdk1.7.0_03/jre/bin/client;C:/Products/jdk1.7.0_03/jre/bin;C:/Products/jdk1.7.0_03/jre/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Products\jdk1.7.0_03\jre\bin;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program