Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 90 for UnknownHostException (0.2 sec)

  1. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                        ioe.printStackTrace(log);
                    }
                    throw new UnknownHostException(name.name);
                }
    
                if (response.received && response.resultCode == 0) {
                    return response.addrEntry;
                }
            } while (--n > 0 && request.isBroadcast);
    
            throw new UnknownHostException(name.name);
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/UniAddress.java

         * @throws UnknownHostException if the host cannot be resolved
         */
        public static UniAddress[] getAllByName(final String hostname, final boolean possibleNTDomainOrWorkgroup) throws UnknownHostException {
            Object addr;
            int i;
    
            if (hostname == null || hostname.length() == 0) {
                throw new UnknownHostException();
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
  3. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

        unknownHostException.initCause(failure)
    
        for (i in 1 until failures.size) {
          unknownHostException.addSuppressed(failures[i])
        }
    
        throw unknownHostException
      }
    
      @Throws(Exception::class)
      private fun readResponse(
        hostname: String,
        response: Response,
      ): List<InetAddress> {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/AddressTest.java

        }
    
        @Test
        @DisplayName("toInetAddress should handle UnknownHostException")
        void testToInetAddressWithException() throws UnknownHostException {
            // Given
            when(mockAddress.toInetAddress()).thenThrow(new UnknownHostException("Host not found"));
    
            // When & Then
            assertThrows(UnknownHostException.class, () -> {
                mockAddress.toInetAddress();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/UniAddressTest.java

        void getAllByNameRejectsNullOrEmptyHostname() {
            assertThrows(UnknownHostException.class, () -> UniAddress.getAllByName("", false),
                    "getAllByName should throw UnknownHostException for empty string");
            assertThrows(UnknownHostException.class, () -> UniAddress.getAllByName(null, false),
                    "getAllByName should throw UnknownHostException for null name");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/netbios/NbtAddress.java

            checkData(tc);
            return this.groupName;
        }
    
        @Override
        public int getNodeType(final CIFSContext tc) throws UnknownHostException {
            checkData(tc);
            return this.nodeType;
        }
    
        @Override
        public boolean isBeingDeleted(final CIFSContext tc) throws UnknownHostException {
            checkNodeStatusData(tc);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/netbios/UniAddress.java

         * Perform DNS SRV lookup on successively shorter suffixes of name
         * and return successful suffix or throw an UnknownHostException.
         * import javax.naming.*;
         * import javax.naming.directory.*;
         * public static String getDomainByName(String name) throws UnknownHostException {
         * DirContext context;
         * UnknownHostException uhe = null;
         *
         * try {
         * context = new InitialDirContext();
         * for ( ;; ) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  8. android-test/src/test/kotlin/okhttp/android/test/AndroidLoggingTest.kt

    package okhttp.android.test
    
    import android.util.Log
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.containsOnly
    import assertk.assertions.isNull
    import java.net.UnknownHostException
    import okhttp3.ConnectionSpec
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.internal.platform.AndroidPlatform
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/conn/IdnDnsResolverTest.java

            // Test empty brackets - should be treated as invalid hostname
            try {
                resolver.resolve("[]");
                fail("Should throw UnknownHostException for empty brackets");
            } catch (UnknownHostException e) {
                // Expected behavior
            }
        }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 06 07:24:43 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

    import static org.junit.jupiter.api.Assertions.fail;
    import static org.mockito.Mockito.when;
    
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
Back to top