Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,922 for try (0.02 sec)

  1. src/main/java/org/codelibs/fess/app/web/api/admin/scheduler/ApiAdminSchedulerAction.java

                    throwValidationErrorApi(messages -> {
                        messages.addErrorsFailedToStartJob(GLOBAL, entity.getName());
                    });
                }
                try {
                    entity.start();
                } catch (final Exception e) {
                    throwValidationErrorApi(messages -> {
                        messages.addErrorsFailedToStartJob(GLOBAL, entity.getName());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/NamingTest.java

        }
    
    
        private void runFilenameTest ( String... names ) throws CIFSException, UnknownHostException, MalformedURLException {
            try ( SmbFile d = createTestDirectory() ) {
                try {
    
                    for ( String name : names ) {
                        try ( SmbResource tf = new SmbFile(d, name) ) {
                            tf.createNewFile();
                        }
                    }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jun 06 10:48:05 UTC 2020
    - 7K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java

                    // sleep for 10ms just in case this is windows holding a file lock
                    try {
                        Thread.sleep(10);
                    } catch (InterruptedException e) {
                        // ignore
                    }
                    metadataFile.delete(); // if this fails, forget about it, we'll try to overwrite it anyway so no need
                    // to delete on exit
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/AbstractCrawlerClientTest.java

            client.checkMaxContentLength(responseData);
    
            responseData.setContentLength(1000001L);
            try {
                client.checkMaxContentLength(responseData);
                fail();
            } catch (MaxLengthExceededException e) {
                // ok
            }
    
            responseData.setContentLength(1000000000L);
            try {
                client.checkMaxContentLength(responseData);
                fail();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

     * unhealthy.
     *
     * @param source the source used to read bytes from the socket.
     */
    internal fun Socket.isHealthy(source: BufferedSource): Boolean {
      return try {
        val readTimeout = soTimeout
        try {
          soTimeout = 1
          !source.exhausted()
        } finally {
          soTimeout = readTimeout
        }
      } catch (_: SocketTimeoutException) {
        true // Read timed out; socket is good.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/io/DefaultModelReader.java

            Objects.requireNonNull(input, "input cannot be null");
    
            try (Reader in = input) {
                return read(in, null, options);
            }
        }
    
        @Override
        public Model read(InputStream input, Map<String, ?> options) throws IOException {
            Objects.requireNonNull(input, "input cannot be null");
    
            try (InputStream in = input) {
                return read(input, null, options);
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

                CommonPoolUtil.execute(() -> {
                    try {
                        CloseableUtil.closeQuietly(p.getInputStream());
                    } catch (final Exception e) {
                        logger.warn("Could not close a process input stream.", e);
                    }
                });
                CommonPoolUtil.execute(() -> {
                    try {
                        CloseableUtil.closeQuietly(p.getErrorStream());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/auth/chain/CommandChain.java

            } finally {
                if (mt != null) {
                    mt.setFinished(true);
                    try {
                        mt.interrupt();
                    } catch (final Exception e) {
                        // ignore
                    }
                }
                if (currentProcess != null) {
                    try {
                        currentProcess.destroy();
                    } catch (final Exception e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/CopyUtil.java

            assertArgumentNotNull("in", in);
            assertArgumentNotNull("out", out);
    
            final FileInputStream is = InputStreamUtil.create(in);
            try {
                final FileOutputStream os = OutputStreamUtil.create(out);
                try {
                    return copyInternal(is, os);
                } finally {
                    CloseableUtil.close(os);
                }
            } finally {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  10. cmd/dynamic-timeouts_test.go

    		}
    	}
    }
    
    func TestDynamicTimeoutAdjustExponential(t *testing.T) {
    	timeout := newDynamicTimeout(time.Minute, time.Second)
    
    	rand.Seed(0)
    
    	initial := timeout.Timeout()
    
    	for try := 0; try < 10; try++ {
    		testDynamicTimeoutAdjust(t, timeout, rand.ExpFloat64)
    	}
    
    	adjusted := timeout.Timeout()
    	if initial <= adjusted {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 14 10:08:40 UTC 2022
    - 5.4K bytes
    - Viewed (0)
Back to top