Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for OutOfMemoryError (1.14 sec)

  1. src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java

            // OutOfMemoryError is an Error, not Exception, so it will not be caught
            // The test should expect the error to propagate
            try {
                purgeDocJob.execute();
                fail("Expected OutOfMemoryError to be thrown");
            } catch (OutOfMemoryError e) {
                assertEquals("Out of memory", e.getMessage());
            }
        }
    
        public void test_execute_verifyQueryToString() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

                    throw new OutOfMemoryError("Simulated OOM");
                }
            };
            ComponentUtil.register(mockSearchLogHelper, "searchLogHelper");
    
            // Execute the job - Error should NOT be caught since implementation only catches Exception
            try {
                aggregateLogJob.execute();
                fail("OutOfMemoryError should not be caught by Exception handler");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/GsaConfigExceptionTest.java

            // Test with Error (not Exception)
            Throwable errorCause = new OutOfMemoryError("Out of memory");
            GsaConfigException errorException = new GsaConfigException("GSA memory error", errorCause);
            assertNotNull(errorException);
            assertTrue(errorException.getCause() instanceof OutOfMemoryError);
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt

      /**
       * Returns the response as a byte array.
       *
       * This method loads entire response body into memory. If the response body is very large this
       * may trigger an [OutOfMemoryError]. Prefer to stream the response body if this is a
       * possibility for your response.
       */
      @Throws(IOException::class)
      fun bytes() = consumeSource(BufferedSource::readByteArray) { it.size }
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

          }
        }
      }
    
      private static String oldRepeat(String string, int count) {
        // If this multiplication overflows, a NegativeArraySizeException or
        // OutOfMemoryError is not far behind
        int len = string.length();
        int size = len * count;
        char[] array = new char[size];
        for (int i = 0; i < size; i += len) {
          string.getChars(0, len, array, i);
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/exception/InvalidQueryExceptionTest.java

            final NullPointerException npeCause = new NullPointerException("Null query parameter");
            final IllegalStateException iseCause = new IllegalStateException("Invalid parser state");
            final OutOfMemoryError oomCause = new OutOfMemoryError("Query too large");
    
            // Execute
            final InvalidQueryException npeException = new InvalidQueryException(messageCode, message, npeCause);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

          }
        }
      }
    
      private static String oldRepeat(String string, int count) {
        // If this multiplication overflows, a NegativeArraySizeException or
        // OutOfMemoryError is not far behind
        int len = string.length();
        int size = len * count;
        char[] array = new char[size];
        for (int i = 0; i < size; i += len) {
          string.getChars(0, len, array, i);
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/BloomFilterTest.java

            @Override
            protected Random initialValue() {
              return new Random();
            }
          };
    
      private static final int GOLDEN_PRESENT_KEY = random.get().nextInt();
    
      @AndroidIncompatible // OutOfMemoryError
      public void testLargeBloomFilterDoesntOverflow() {
        long numBits = Integer.MAX_VALUE;
        numBits++;
    
        LockFreeBitArray bitArray = new LockFreeBitArray(numBits);
        assertTrue(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

            @Override
            protected Random initialValue() {
              return new Random();
            }
          };
    
      private static final int GOLDEN_PRESENT_KEY = random.get().nextInt();
    
      @AndroidIncompatible // OutOfMemoryError
      public void testLargeBloomFilterDoesntOverflow() {
        long numBits = Integer.MAX_VALUE;
        numBits++;
    
        LockFreeBitArray bitArray = new LockFreeBitArray(numBits);
        assertTrue(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  10. guava/src/com/google/common/io/ByteStreams.java

        // read MAX_ARRAY_LEN bytes without seeing end of stream
        if (in.read() == -1) {
          // oh, there's the end of the stream
          return combineBuffers(bufs, MAX_ARRAY_LEN);
        } else {
          throw new OutOfMemoryError("input is too large to fit in a byte array");
        }
      }
    
      private static byte[] combineBuffers(Queue<byte[]> bufs, int totalLen) {
        if (bufs.isEmpty()) {
          return new byte[0];
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
Back to top