Unknown host exception when weblogic is a https client to another server

Hi,
I have weblogic 6.1 sp2. My program connects as a client using https protocol.
For this the classes provided by wls are used .
The key , cert and ca files are of weblogic available in wlserver6.1\config\mydomain
demokey.pem, democert.pem and ca.pem, installed during weblogic installation
When this code is exceuted it gives a Unknown host exception at the point when
trying to connect to the url.
Are there any settings required in weblogic ?
Regards
Lata

Hi,
I have weblogic 6.1 sp2. My program connects as a client using https protocol.
For this the classes provided by wls are used .
The key , cert and ca files are of weblogic available in wlserver6.1\config\mydomain
demokey.pem, democert.pem and ca.pem, installed during weblogic installation
When this code is exceuted it gives a Unknown host exception at the point when
trying to connect to the url.
Are there any settings required in weblogic ?
Regards
Lata

Similar Messages

  • InetAddress posting Unknown Host Exception

    Hello,
    I am relatively new to java and I am running into an Unknown Host Exception when attempting to return the IP's for valid host names. The strange part is that the first host name returns an address however every entry after the first returns the Unkown Host Exception. Here is the snippet of code that the problem is occuring in.
    Inet address as declared earlier in the code:
         private InetAddress Address = null;Code reporting errors:
              StringBuffer sb0 = new StringBuffer();
              int chr;
              // Read until the end of the stream     
              while ((chr = inputStream0.read()) != -1)
                      sb0.append((char) chr);
              String display = sb0.toString();
              String temp = display.replace("Giant ", "g0");
              String[] words = temp.split("\\|");
              StringBuffer db = new StringBuffer();
              for (int i=0; i < words.length; i++)
                      String many = (words[i] +"wu1");
                      try
                              Address = InetAddress.getByName(many);
                   db.append(words[i] + "wu1|" + Address);
                      catch(NullPointerException e)
                              db.append(words[i] + "wu1 - Null Pointer - ");
                      catch(UnknownHostException e)
                              db.append(words[i] + "wu1 - Unknown Host - ");
              String yay = db.toString();
              log.append(yay);
                                    catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
                                    catch (IOException e)
              // TODO Auto-generated catch block
              e.printStackTrace();
              }I have attempted setting Address back to null after the address was appended but it didn't make any difference.
    Edited by: mudbuggle on Aug 4, 2008 7:19 PM

    I made the adjustments however I am still experiencing the same problem.
    www.yahoo.com returns an ip address but the rest return Unknown Host Exceptions.
    www.yahoo.comjava.net.UnknownHostException:
    forums.sun.com
         at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
         at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
         at java.net.InetAddress.getAddressFromNameService(Unknown Source)
         at java.net.InetAddress.getAllByName0(Unknown Source)
         at java.net.InetAddress.getAllByName(Unknown Source)
    forums.sun.com     at java.net.InetAddress.getAllByName(Unknown Source)
         at java.net.InetAddress.getByName(Unknown Source)
         at IP$1.actionPerformed(IP.java:83)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    java.net.UnknownHostException:
    www.google.com
         at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
         at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
         at java.net.InetAddress.getAddressFromNameService(Unknown Source)
         at java.net.InetAddress.getAllByName0(Unknown Source)
         at java.net.InetAddress.getAllByName(Unknown Source)
         at java.net.InetAddress.getAllByName(Unknown Source)
         at java.net.InetAddress.getByName(Unknown Source)
         at IP$1.actionPerformed(IP.java:83)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

  • Tunneling and problem with unknown host exception

    hello! i've got a problem with https. i use jdk 1.5.0, jboss-4.0.4.ga-patch1, soap.
    and i'm going crasy.. i've testet my client code at our network and it works fine. but if i want to get jobs from the server of our customer, my client throw an "unknown host exception: firm".
    i wonder why it hasn't the full host. the url may look like this: https://firm.sub.com:443/ and while the client connects to the server, i depugged it and the host is correct: firm.sub.
    but after the connection, when the client want to get something from the server (when it wants to communicate with the server over soap) it crashs.
    my client code looks like this:
    private ClientInterfaceEndpoint getClientInterface() throws ServiceException {
    QName serviceQName = new QName(DOCSERVER_NAMESPACE, CLIENT_INTERFACE_SERVICENAME);
    URL wsdlUrl = getClientInterfaceWsdlUrl();
    log.info("*******WSDLURL host: " + wsdlUrl.getHost()); // out: firm.sub
    log.info("*******WSDLURL port: " + wsdlUrl.getPort()); // out: 443
    URL mapping = getClass().getClassLoader().getResource("META-INF/DocumentServer_Mapping.xml");
    log.info("*******MappingURL path: " + mapping.getPath());
    if (wsdlUrl.toString().toLowerCase().contains("https")) {
    if (null == getConfig().getTruststore() || getConfig().getTruststore().equalsIgnoreCase("")) {
    throw new RuntimeException("No or incorrect TruststorePath in the docclient-config");
    File tmp = new File(getConfig().getTruststore());
    if (!tmp.isFile() || !tmp.canRead()) {
    throw new RuntimeException("The truststore at the 'TruststorePath' isn't a file or can't be read.");
    System.setProperty(SYS_PROPERTY_KEY_TRUST, getConfig().getTruststore());
    System.setProperty(SYS_PROPERTY_KEY_TRUST_PW, config.getTruststorePass());
    ServiceFactoryImpl factory = null;
    factory = (ServiceFactoryImpl) ServiceFactory.newInstance();
    Service clientInterfaceService = null;
    try {// create the service for the ClientInterface
    clientInterfaceService = factory.createService(wsdlUrl, serviceQName, mapping, new URL(config.getServerURL())); //, new URL(config.getServerURL())
    log.info("*******ClientInterFaceService WSDL URL Host: " + clientInterfaceService.getWSDLDocumentLocation().getHost()); // out:firm.sub
    log.info("*******ClientInterFaceService WSDL URL Port: " + clientInterfaceService.getWSDLDocumentLocation().getPort()); // out: 443
    } catch (ServiceException e) {
    log.error(e.getMessage());
    throw new RuntimeException(e.getMessage());
    } catch (MalformedURLException e) {
    log.error(e.getMessage());
    throw new RuntimeException(e.getMessage());
    } catch (Exception e) {
    log.error(e.getMessage());
    throw new RuntimeException(e.getMessage());
    }// getting the ClientInterfaceEndpoint
    ClientInterfaceEndpoint clientInterface = (ClientInterfaceEndpoint) clientInterfaceService.getPort(ClientInterfaceEndpoint.class);
    return clientInterface;
    protected URL getClientInterfaceWsdlUrl() {
    URL url = null;
    String urlString = getConfig().getServerURL() + CLIENT_INTERFACE_URI + "?wsdl";
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    Properties properties = System.getProperties();
    String handlers = System.getProperty(SYS_PROPERTY_KEY_PKGS);
    if (handlers == null) {
    properties.put(SYS_PROPERTY_KEY_PKGS, SYS_PROPERTY_VALUE_PKGS);
    else {
    properties.put(SYS_PROPERTY_KEY_PKGS, SYS_PROPERTY_VALUE_PKGS.concat("|").concat(handlers));
    try {
    url = new URL(urlString);
    log.info("*******URL host: " + url.getHost());
    log.info("*******URL port: " + url.getPort());
    log.info("*******URL path: " + url.getPath());
    } catch (MalformedURLException e) {
    log.fatal("DocumentProvider SOAP configured incorrectly. DocServer URL malformed: " + urlString);
    throw new RuntimeException("DocumentProvider SOAP configured incorrectly. DocServer URL malformed: " + urlString, e);
    System.setProperties(properties);
    return url;
    }if it's usefull: the customer use a apache server (not tomcat) where a the server is and the client at another system the jboss.
    The customer told me: if i want to connect the client via http i have to tunnel.. maybe i have to tunnel using https too?
    have i to generate the endpoint classes a second time, extra for https?
    or doesn't soap like host like "firm.sub"?
    can anyone help me please?!
    sorry, my english isn't very well...

    sorry, it's not the same error. The output is: Unable to connect to any host due to exception: java.net.socket.exception: java.net.socket.exception: Unregcognized windows socket error: 10106: create.

  • Try/Catch Unknown Host Exception

    I need to validate for an error of Unknown Host Exception, in case someone tries connected to a server that doesn't exist, or types the wrong host name, so i can display a message. how do I do that, with a try catch block.
    I thought i would do:
    try{
          my code here such as...
          DatagramSocket socket = new DatagramSocket();
          // send request
          InetAddress address = InetAddress.getByName(args[0]);
          DatagramPacket packet = new DatagramPacket(buf, buf.length, address, 4445);
          socket.send(packet);
        ...and so on, more code...
           socket.close();
    } catch (IOException e) {
           e.printStackTrace();
           System.out.println("Unknown host " + args[0]);
    }

    thanks, i also had to take out the e.printStackTrace(); and replace that with
    my error message and System.exit(0); and I got what i needed!

  • Unknown SQL Exception 0 occurred. Additional error information from SQL Server is included below.

    Log Name:      Application
    Source:        Microsoft-SharePoint Products-SharePoint Foundation
    Event ID:      5586
    Task Category: Database
    Level:         Error
    Keywords:     
    User:          DOMAIN\SA account
    Unknown SQL Exception 0 occurred. Additional error information from SQL Server is included below.
    The target principal name is incorrect.  Cannot generate SSPI context.
    This is the error, if often find in my WFE's. I googled for the error and granted DB owner roles for the service account as specified in TechNet, but no luck.
     Even same error logs generated on SharePoint logs.
    SqlError: 'The target principal name is incorrect.  Cannot generate SSPI context.'   
    Source: '.Net SqlClient Data Provider' Number: 0 State: 0 Class: 11 Procedure: 'GenClientContext' LineNumber: 0 Server: 'servername\SHAREPOINT,4101'       
    f2cbcc9c-ac65-7084-fcab-4d2943cdfdea
    Unknown SQL Exception 0 occurred. Additional error information from SQL Server is included below. 
    The target principal name is incorrect.  Cannot generate SSPI context.         
    f2cbcc9c-ac65-7084-fcab-4d2943cdfdea
    System.Data.SqlClient.SqlException (0x80131904): The target principal name is incorrect. 
    Cannot generate SSPI context.     at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions
    userOptions, DbConnectionInternal& connection)    
    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)    
    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)    
    at System.Data.ProviderBase.DbConnecti...            
    f2cbcc9c-ac65-7084-fcab-4d2943cdfdea
    Thanks.
    Badri

    For SharePoint to recognize the SQL server name we provide its name and instance while installing SharePoint. When we are using SQL alias to connect to SQL, we need to configure the same alias on SharePoint server so that SharePoint recognize alias over
    the network. 
    Having SharePoint connect to a SQL Alias instead of the NetBIOS name is always a good idea. The main benefit is, if you ever have to switch the SQL Server or connect to a SQL Cluster VIP address, you just change the Alias to point to the SQL Cluster name
    on the SharePoint Server and restart the SharePoint Timer Service and you are good to go.
    Please check this blog.
    http://blogs.msdn.com/b/priyo/archive/2013/09/13/sql-alias-for-sharepoint.aspx
    http://technet.microsoft.com/en-us/library/hh292622(v=office.15).aspx
    Thank You, Pallav S. Srivastav ----- If this helped you resolve your issue, please mark it Answered.

  • Unknown SQL Exception 208 occurred. Additional error information from SQL Server is included below.Invalid object name 'Webs'.

    SP 2013 Server + Dec 2013 CU. Upgrading from SharePoint 2010.
    We have a web application that is distributed over 7-8 content databases from SharePoint 2010. All but one database are upgradable. However, one database gives:
    Invalid object name 'Webs'.
    while running Test-SPContentDatabase or Mount-SPContentDatabase.
    EventViewer has the following reporting 5586 event Id:
    Unknown SQL Exception 208 occurred. Additional error information from SQL Server is included below.Invalid object name 'Webs'.
    After searching a bit, these links do not help:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/fd020a41-51e6-4a89-9d16-38bff9201241/invalid-object-name-webs?forum=sharepointadmin
    we are trying PowerShell only.
    http://blog.thefullcircle.com/2013/06/mount-spcontentdatabase-and-test-spcontentdatabase-fail-with-either-invalid-object-name-sites-or-webs/
    In our case, these are content databases. This is validated from Central Admin.
    http://sharepointjotter.blogspot.com/2012/08/sharepoint-2010-exception-invalid.html
    Our's is SharePoint 2013
    http://zimmergren.net/technical/findbestcontentdatabaseforsitecreation-problem-after-upgrading-to-sharepoint-2013-solution
    Does not seem like the same exact problem.
    Any additional input?
    Thanks, Soumya | MCITP, SharePoint 2010

    Hi,
    “All but one database are upgradable. However, one database gives:
    Invalid object name 'Webs'.”
    Did the sentence you mean only one database not upgrade to SharePoint 2013 and given the error?
    One or more of the following might be the cause:
    Insufficient SQL Server database permissions
    SQL Server database is full
    Incorrect MDAC version
    SQL Server database not found
    Incorrect version of SQL Server
    SQL Server collation is not supported
    Database is read-only
    To resolve the issue, you can refer to the following article which contains the causes and resolutions.
    http://technet.microsoft.com/en-us/library/ee513056(v=office.14).aspx
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • "Unauthorized Host" error when you try to connect to the admin server

    "Unauthorized Host" error when you try to connect to the admin server
    <p>
    If you see this error message when you try to connect to a Netscape
    administration server:<P>
    Internal Error
    The administration server was unable to fulfill your request.
    Reason: Unauthorized host
    --------------------------<P>
    Here is how to solve the problem and gain access. First you should
    temporarily open access to all sites, and then once you make sure that
    this lets you get into your administration server, try again to set up
    the domain name or IP address access restrictions you want.<P>
    For all 2.x/3.x Netscape servers on Windows NT and Unix, or for Commerce and
    Communications servers (1.x) on Unix:<P>
    <OL>
    <LI>Open the "ns-admin.conf" file with a text editor. You can
    find this file in the "admserv" directory under your Netscape
    server root. The directory is named "admin-serv" in 3.x servers.<P>
    <LI>Delete the "Hosts" and "Addresses" lines you see there (either one
    of them might not be present). Don't confuse the "Addresses" line,
    which you should delete, with the "Address" line, which you should NOT
    delete.<P>
    <LI>Save the file, then restart your administration server (on Unix run
    "stop-admin" then "start-admin"; on Windows NT go into the Services
    control panel and stop/start the "Netscape Admin Server" service).<P>
    </OL><P>
    For Commerce Server or Communications Server (1.x) on Windows NT:<P>
    <OL>
    <LI>Go into the registry editor. On Windows NT 4.0, run the command
    "regedit". On Windows 3.51, run the command
    "regedt32".<P>
    <LI>Navigate down to the section
    "HKEY_LOCAL_MACHINE\SOFTWARE\Netscape\Administration".<P>
    <LI>Delete the "Hosts" and "Addresses" entries you see there (either one
    of them might not be present). Don't confuse the "Addresses" entry,
    which you should delete, with the "Address" entry, which you should NOT
    delete.<P>
    <LI>Close the registry editor, then restart your administration server
    by going into the Services control panel and stopping then starting the
    "Netscape Administration" service.<P>
    </OL>
    Now try again to access your administration server. Remember, the URL
    will be something like "http://servername:12345/", where
    "12345" is where the administration server's port number goes.<P>
    If you still get the same "Unauthorized host" error, then make sure that
    your "ns-admin.conf" file really doesn't contain any "Hosts" or
    "Addresses" lines any more, and try stopping your administration server
    again then starting it back up.<P>
    Once you have access to your administration server, you can try again to
    set up the access controls you want.<P>
    <UL>
    <LI>For the administration server on a 3.x server installation, select
    "Admin Preferences" from the General Administration page (the first page
    you see when you connect to the admin server), then click on "Superuser Access
    Control" and enter hostname and IP address restrictions. If you want
    allow access to multiple clients, you'll have to use wildcard patterns
    (separate the subsrings with a pipe character, like
    "(host1|host2|host3)"); the substrings must be enclosed in parentheses, as shown.
    If you're setting up hostname restrictions, you'll need to make sure that
    your DNS can resolve those hostnames -- it's generally safer to stick
    with IP address restrictions. When you're finished configuring this,
    click "OK" then restart your admin server.<P>
    <LI>For the administration server on a 2.x server installation, select
    "Configure Administration" from the Server Selector page (the first page
    you see when you connect to the admin server), then click on "Access
    Control" and enter hostname and IP address restrictions. If you want
    allow access to multiple clients, you'll have to use wildcard patterns
    (separate the subsrings with a pipe character, like
    "(host1|host2|host3)"); the substrings must be enclosed in parentheses, as shown.
    If you're setting up hostname restrictions, you'll need to make sure that
    your DNS can resolve those hostnames -- it's generally safer to stick
    with IP address restrictions. When you're finished configuring this,
    click "OK" then restart your admin server.<P>
    <LI>For the administration server on a 1.x server installation, select
    "Configure Administration Server" from the bottom of the Server Manager
    page, then enter hostname and IP address restrictions. If you want
    allow access to multiple clients, you'll have to use wildcard patterns
    (separate the substrings with a pipe character, like
    "(host1|host2|host3)"); the substrings must be enclosed in parentheses, as shown.
    If you're setting up hostname restrictions, you'll need to make sure that your
    DNS can resolve those hostnames -- it's generally safer to stick with IP address
    restrictions.
    When you're finished configuring this, click "Make These Changes" then
    restart your admin server.<P>
    </UL><P>
    If you still find yourself getting an "Unauthorized host" error message,
    you can use the above steps to open up access and try different
    settings.<P>

    "Unauthorized Host" error when you try to connect to the admin server
    <p>
    If you see this error message when you try to connect to a Netscape
    administration server:<P>
    Internal Error
    The administration server was unable to fulfill your request.
    Reason: Unauthorized host
    --------------------------<P>
    Here is how to solve the problem and gain access. First you should
    temporarily open access to all sites, and then once you make sure that
    this lets you get into your administration server, try again to set up
    the domain name or IP address access restrictions you want.<P>
    For all 2.x/3.x Netscape servers on Windows NT and Unix, or for Commerce and
    Communications servers (1.x) on Unix:<P>
    <OL>
    <LI>Open the "ns-admin.conf" file with a text editor. You can
    find this file in the "admserv" directory under your Netscape
    server root. The directory is named "admin-serv" in 3.x servers.<P>
    <LI>Delete the "Hosts" and "Addresses" lines you see there (either one
    of them might not be present). Don't confuse the "Addresses" line,
    which you should delete, with the "Address" line, which you should NOT
    delete.<P>
    <LI>Save the file, then restart your administration server (on Unix run
    "stop-admin" then "start-admin"; on Windows NT go into the Services
    control panel and stop/start the "Netscape Admin Server" service).<P>
    </OL><P>
    For Commerce Server or Communications Server (1.x) on Windows NT:<P>
    <OL>
    <LI>Go into the registry editor. On Windows NT 4.0, run the command
    "regedit". On Windows 3.51, run the command
    "regedt32".<P>
    <LI>Navigate down to the section
    "HKEY_LOCAL_MACHINE\SOFTWARE\Netscape\Administration".<P>
    <LI>Delete the "Hosts" and "Addresses" entries you see there (either one
    of them might not be present). Don't confuse the "Addresses" entry,
    which you should delete, with the "Address" entry, which you should NOT
    delete.<P>
    <LI>Close the registry editor, then restart your administration server
    by going into the Services control panel and stopping then starting the
    "Netscape Administration" service.<P>
    </OL>
    Now try again to access your administration server. Remember, the URL
    will be something like "http://servername:12345/", where
    "12345" is where the administration server's port number goes.<P>
    If you still get the same "Unauthorized host" error, then make sure that
    your "ns-admin.conf" file really doesn't contain any "Hosts" or
    "Addresses" lines any more, and try stopping your administration server
    again then starting it back up.<P>
    Once you have access to your administration server, you can try again to
    set up the access controls you want.<P>
    <UL>
    <LI>For the administration server on a 3.x server installation, select
    "Admin Preferences" from the General Administration page (the first page
    you see when you connect to the admin server), then click on "Superuser Access
    Control" and enter hostname and IP address restrictions. If you want
    allow access to multiple clients, you'll have to use wildcard patterns
    (separate the subsrings with a pipe character, like
    "(host1|host2|host3)"); the substrings must be enclosed in parentheses, as shown.
    If you're setting up hostname restrictions, you'll need to make sure that
    your DNS can resolve those hostnames -- it's generally safer to stick
    with IP address restrictions. When you're finished configuring this,
    click "OK" then restart your admin server.<P>
    <LI>For the administration server on a 2.x server installation, select
    "Configure Administration" from the Server Selector page (the first page
    you see when you connect to the admin server), then click on "Access
    Control" and enter hostname and IP address restrictions. If you want
    allow access to multiple clients, you'll have to use wildcard patterns
    (separate the subsrings with a pipe character, like
    "(host1|host2|host3)"); the substrings must be enclosed in parentheses, as shown.
    If you're setting up hostname restrictions, you'll need to make sure that
    your DNS can resolve those hostnames -- it's generally safer to stick
    with IP address restrictions. When you're finished configuring this,
    click "OK" then restart your admin server.<P>
    <LI>For the administration server on a 1.x server installation, select
    "Configure Administration Server" from the bottom of the Server Manager
    page, then enter hostname and IP address restrictions. If you want
    allow access to multiple clients, you'll have to use wildcard patterns
    (separate the substrings with a pipe character, like
    "(host1|host2|host3)"); the substrings must be enclosed in parentheses, as shown.
    If you're setting up hostname restrictions, you'll need to make sure that your
    DNS can resolve those hostnames -- it's generally safer to stick with IP address
    restrictions.
    When you're finished configuring this, click "Make These Changes" then
    restart your admin server.<P>
    </UL><P>
    If you still find yourself getting an "Unauthorized host" error message,
    you can use the above steps to open up access and try different
    settings.<P>

  • Unknown host exception in Workshop 4 Weblogic including a XSD in a WSDL

    Hi All,
    Im facing a bug in W4W as it throws unknownhostexception when im including a LOCAL schema in a WSDL.
    Im using Linux (Ubuntu). In windows, this bugs does not happen.
    Is it a known bug? Is there a patch for it?
    Thanks in advance!,
    Daniel
    Edited by danielamadei at 10/11/2007 6:15 AM

    Hi,
    I have exactly the same kind of issue.
    I'm working with:
    BEA version: 9.2.2
    build id: 952826
    I've imported a WSDL file from my file system into a package, right click on the WSDL file and then choosed "Web Service/Generate web service..."
    Workshop starts working and stops with the following error "UnknowHostException: opt" (FYI: I've installed WorkShop in /opt/bea)
    Doing exactly the same thing on Windows works.
    Jean-Marc
    Stack trace generated trying to generate a WebControl from the WSDL file (I guess this is the same kind of exception):
    com.bea.wlw.controls.service.ui.except.TypesAnalysisFailedException: weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.net.UnknownHostException: opt
    at com.bea.wlw.controls.service.ui.util.ProcessServiceInfo.run(ProcessServiceInfo.java:100)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.net.UnknownHostException: opt
    at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:313)
    at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:362)
    at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:352)
    at weblogic.wsee.wsdl.WsdlImport.parse(WsdlImport.java:93)
    at weblogic.wsee.wsdl.WsdlDefinitions.parseChild(WsdlDefinitions.java:462)
    at weblogic.wsee.wsdl.WsdlExtensible.parse(WsdlExtensible.java:98)
    at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:405)
    at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:362)
    at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:50)
    at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:73)
    at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:38)
    at com.bea.wlw.controls.service.ui.util.WsdlAnalyzer.load(WsdlAnalyzer.java:27)
    at com.bea.wlw.controls.service.ui.util.WsdlAnalyzer.analyzeWsdl(WsdlAnalyzer.java:21)
    at com.bea.wlw.controls.service.ui.util.ProcessServiceInfo.run(ProcessServiceInfo.java:93)
    ... 1 more
    Caused by: java.net.UnknownHostException: opt
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
    at java.net.Socket.connect(Socket.java:519)
    at java.net.Socket.connect(Socket.java:469)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
    at sun.net.NetworkClient.openServer(NetworkClient.java:118)
    at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)
    at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)
    at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)
    at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:352)
    at weblogic.wsee.util.dom.DOMParser.getWebLogicDocumentImpl(DOMParser.java:149)
    at weblogic.wsee.util.dom.DOMParser.getDocument(DOMParser.java:59)
    at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:311)
    ... 14 more
    Edited by desmo999r at 11/12/2007 10:49 AM
    Edited by desmo999r at 11/12/2007 10:56 AM

  • Exception when running a JAX-WS client against a JAX-RPC service

    I have a JAX-WS client invoking a JAX-RPC web service on Weblogic 10.3. The service was originally built for Weblogic 9.2, it's been rebuilt and runs fine on 10.3.
    Some operations work fine, but invoking one operation results in the following exception:
    at secsvc.client.GetRolesForUserInApplicationResponse$JaxbAccessorF_role.get(Unknown Source)
         at com.sun.xml.internal.bind.v2.runtime.reflect.NullSafeAccessor.get(Unknown Source)
         at com.sun.xml.internal.bind.v2.runtime.reflect.Accessor.getUnadapted(Unknown Source)
         at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$7.get(Unknown Source)
         at com.sun.xml.internal.ws.client.sei.ResponseBuilder$DocLit$PartBuilder.readResponse(Unknown Source)
         at com.sun.xml.internal.ws.client.sei.ResponseBuilder$DocLit.readResponse(Unknown Source)
         at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
         at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
         at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source)
         at $Proxy29.getRolesForUserInApplication(Unknown Source)
    This operation works fine if invoked by an RPC client.
    Any idea what's going on?
    Mikey

    Hi Jitu,
    I changed the wsdl. And so I don�t get the warning anymore. My Webservice also runs well, now. Thanks anyway for the reply.
    There is a nice tech article on the sun network, which solved my problem. The basic idea is to split the wsdl into 2 wsdl documents. one containing all the porttypes messages and so on. And the other wsdl contains the binding and service elements.
    If you are interested check out this link:
    http://java.sun.com/developer/technicalArticles/xml/jaxrpcpatterns/index2.html
    thanks,
    footman

  • Unknown Host Exception while starting weblogic 6.0

    Hi,
    While starting weblogic 6.0 on win 95, i get following error.
    [java.net.UnknownHostException: default]
    weblogic.utils.NestedError: Local host not known?! - with nested exception:
    I have tried to change ports from 7001 and 7002, error is still there. I work on
    a desktop, dont have any proxy settings.
    What else can be done?

    Hi.
    Again, this is not a supported platform. I also believe this is some kind of network
    setup issue on your win95 machine. Try comparing the tcp/ip setup differences between
    your win98 machine and your win95 machine. If you are using dhcp you should try to
    change your settings to support a static ip.
    Good luck.
    Michael
    Tarang wrote:
    Hi,
    I am attaching complete error message, may be you can throw more light. I tried the
    same installation on win 98, it is working fine. On my machine, variable is defined
    as localhost only.
    [java.net.UnknownHostException: default]
    weblogic.utils.NestedError: Local host not known?! - with nested exception:
    [java.net.UnknownHostException: default]
    at weblogic.rjvm.JVMID.setLocalID(JVMID.java:86)
    at weblogic.rjvm.JVMID.localID(JVMID.java:67)
    at weblogic.rjvm.LocalRJVM.getID(LocalRJVM.java:130)
    at weblogic.i18ntools.L10nLookup$Logger.<init>(L10nLookup.java:282)
    at weblogic.i18ntools.L10nLookup.<init>(L10nLookup.java:114)
    at weblogic.i18ntools.L10nLookup.init(L10nLookup.java:70)
    at weblogic.i18ntools.L10nLookup.getL10n(L10nLookup.java:58)
    at weblogic.logging.LogManager.initialize(LogManager.java:66)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:322)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    Tarang
    Michael Young <[email protected]> wrote:
    Hi.
    The port is not the problem, it's something with your network setup - localhost
    is
    not properly defined. I'm not sure about the error you posted below, but
    FWIW it
    should be defined as localhost, not 'local host' (note the space).
    In the bigger picture, however, you should try running WLS on a supported
    platform.
    See the following link for this:
    http://edocs.bea.com/wls/platforms/index.html
    Regards,
    Michael
    Tarang wrote:
    Hi,
    While starting weblogic 6.0 on win 95, i get following error.
    [java.net.UnknownHostException: default]
    weblogic.utils.NestedError: Local host not known?! - with nested exception:
    I have tried to change ports from 7001 and 7002, error is still there.I work on
    a desktop, dont have any proxy settings.
    What else can be done?--
    Michael Young
    Developer Relations Engineer
    BEA Support
    Michael Young
    Developer Relations Engineer
    BEA Support

  • No Route to Host Exception when trying to connect to OpenMQ?

    Hi,
    I'm trying to connect to an OpenMQ server running on another machine with code like the following:
            com.sun.messaging.ConnectionFactory f = new com.sun.messaging.ConnectionFactory();
            String host = "192.168.181.181";
            int timeOut = 10 * 1000;
            boolean reachable = InetAddress.getByName(host).isReachable(timeOut);
            System.out.println("reachable=" + reachable);
            f.setProperty(ConnectionConfiguration.imqAddressList,             host );
            f.setProperty(ConnectionConfiguration.imqAddressListBehavior, "RANDOM");
            f.setProperty(ConnectionConfiguration.imqConsumerFlowLimit,   "10");
            f.setProperty(ConnectionConfiguration.imqReconnectEnabled,    "true");
            Connection myConnection = f.createConnection();This tells me that the machine is not reachable (via my print) and throws a NoRouteToHostException. My problem is that the machine is reachable. It responds to pings and I can use telnet to see the OpenMQ server is running:
    curt@ccox-u1:~$ telnet 192.168.181.181 7676
    Trying 192.168.181.181...
    Connected to 192.168.181.181.
    Escape character is '^]'.
    101 DEV_MQ_Cluster 4.2
    portmapper tcp PORTMAPPER 7676 [imqvarhome=/var/opt/sun/mq,brokerid=bossnode1,imqhome=/opt/sun/mq,sessionid=8595155628813678592]
    cluster_discovery tcp CLUSTER_DISCOVERY 32811
    jmxrmi rmi JMX 0 [url=service:jmx:rmi://foo.com/stub/rO0ABXNyAC5qYXZheC5tYW5hZ2VtZW50LnJlbW90ZS5ybWkuUk1JU2VydmVySW1wbF9TdHViAAAAAAAAAAICAAB4cgAaamF2YS5ybWkuc2VydmVyLlJlbW90ZVN0dWLp/tzJi+FlGgIAAHhyABxqYXZhLnJtaS5zZXJ2ZXIuUmVtb3RlT2JqZWN002G0kQxhMx4DAAB4cHc6AAtVbmljYXN0UmVmMgAADzE5Mi4xNjguMTgxLjE4MQAAgCwTQLe4tsgNM+WcbkQAAAEggVyr4oABAHg=]
    admin tcp ADMIN 32814
    jms tcp NORMAL 32813
    cluster tcp CLUSTER 32815
    Connection closed by foreign host.Can anyone tell me why this fails or give me some troubleshooting hints?
    Thanks,
    Curt
    PS -- Here's what I'm running:
    curt@ccox-u1:~$ java -version
    java version "1.6.0_10"
    Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
    Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)
    curt@ccox-u1:~$ cat /proc/version
    Linux version 2.6.27-11-generic (buildd@vernadsky) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) ) #1 SMP Wed Apr 1 20:57:48 UTC 2009

    There are two problems here. The first is a firewall problem. Although the Open MQ port mapper running on port 7676 wasn't being blocked, the port that mq tcp port was. I was able to solve this by creating an ssh tunnel and specifying a mqtcp connection.
    "Table 18–2 Message Broker Addressing Schemes"
    http://docs.sun.com/app/docs/doc/820-4916/6ngbm6hp4?a=view#gbnnt
    f.setProperty(ConnectionConfiguration.imqAddressList,"mqtcp://" + host + ":32782/jms");This solution is less than ideal, since the mq tcp port can change. In fact, if you reference the original post, you can see it has already changed on me. I could write code to determine what the port is and create my own tunnel, but that doesn't seem worth the effort just yet.
    The second problem is the lack of helpful error message. It's the sort of problem where you can't really blame any one party too much. Open MQ and Java are both just reporting the error message that they are given by the operating system. They should do a bit more than that.

  • Unknown Host Exception

    Hi,
    I keep getting an UnknownHostException with my JavaMail code. I think the trouble is that my SMTP host is a computer name. Does anyone have any idea is JavaMail doesn't allow computer names as SMTP hosts. I know the host is there, as I have sent email through it using ASP pages before.
    Here's the code just incase it helps. But I know it's correct as I got it off the internet.
    package Gomez;
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.event.*;
    import javax.mail.internet.*;
    public final class MailerBean extends Object implements Serializable {
         /* Bean Properties */
         private String to = null;
         private String from = null;
         private String subject = null;
         private String message = null;
         public static Properties props = null;
         public static Session session = null;
         static {
              /*     Setting Properties for STMP host */
              props = System.getProperties();
              props.put("mail.smtp.host", "\\\\svaaoffnot17\\");
              session = Session.getDefaultInstance(props, null);
         /* Setter Methods */
         public void setTo(String to) {
              this.to = to;
         public void setFrom(String from) {
              this.from = from;
         public void setSubject(String subject) {
              this.subject = subject;
         public void setMessage(String message) {
              this.message = message;
         /* Sends Email */
         public void sendMail() throws Exception {
              if(!this.everythingIsSet())
                   throw new Exception("Could not send email.");
              try {
                   MimeMessage message = new MimeMessage(session);
                   message.setRecipient(Message.RecipientType.TO,
                        new InternetAddress(this.to));
                   message.setFrom(new InternetAddress(this.from));
                   message.setSubject(this.subject);
                   message.setText(this.message);
                   Transport.send(message);
              } catch (MessagingException e) {
                   throw new Exception(e.getMessage());
         /* Checks whether all properties have been set or not */
         private boolean everythingIsSet() {
              if((this.to == null) || (this.from == null) ||
                 (this.subject == null) || (this.message == null))
                   return false;
              if((this.to.indexOf("@") == -1) ||
                   (this.to.indexOf(".") == -1))
                   return false;
              if((this.from.indexOf("@") == -1) ||
                   (this.from.indexOf(".") == -1))
                   return false;
              return true;
    }

    You need to find the name of the server, and that isn't it. So use ASP to send an e-mail to some address where you can look at the headers. One of these headers will say something like "sent from mail.svaaoffnot17", and that's the name you want to use. Or you could ask the server's administrator...

  • Got "Unknown error occured" when access to the Approval page in Project Server 2013

    So long time find the solution, but cn't. Pls. help me

    Hi,
    Let's verify the following:
    Whether the issue exists in all of the users? Done a test with a user with full control permission, compare the results. 
    What is the current SP\CU version installed on Server? deploy the latest CU, compare the results.
    Whether the issue exists in other browsers, done a test in another browser, compare the results.
    Whether all resources experiencing this error.
    "An Unknown Error has occurred" is a generic error message. Please check ULS log for more detail information about the issue.
    In addition, as this issue is related to project server, I suggest you create a new thread on project server, more experts will assist you:
    https://social.technet.microsoft.com/Forums/projectserver/en-US/home?category=project
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Exception when trying to manipulate Data in an ADAM server

    Hi all,
    I'm having problems with trying to manipulate data in the ADAM instance on my machine. Currently I can bind to the ADAM instance (took me a while to figure out that ADAM isn't like other normal LDAP servers... you need to bind as a user which is a member of the Administrators group. So currently my url is ldap://localhost:389/O=Microsoft,C=US, user is cn=Mary,cn=Roles,o=Microsoft,c=US for example), but using java code all I can do is search for data and retrieve the results. However when it comes to modifying, adding and the like I keep getting a NameNotFoundException:
    org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001D2, problem 2001 (NO_OBJECT), data 0, best match of:
         'O=Microsoft,C=US'
    What is wrong? Why can I do searches but not anything else? Since this looks like a permissions issue with ADAM I haven't included any of my source code. Also this org.springframework.ldapNameNotFoundException is the same as JNDI NameNotFoundException, so even if you don't know anything about spring framework this isn't a cause for concern.
    Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I am having problem retrieving the users from the AD, can anyone help me with this with an example plz!

  • How to restrict disk space when using time machine for client backup on server?

    We have 10 OS X SL Clients backing up on xserve SL with TM. Now 1 TB disk space is used and disk is full. The clients get the massage that the latest backup could not be finished due to target disk full. Clients run just OS X Standard Software plus Parallels with windows (max. 50 GB per client)
    Why does TM not delete oldest backups like with external USB HD?
    How can we restrict disk space on server to eg. 750 GB for total backup space for all clients?

    johndave, did anyone ever respond to your post?

Maybe you are looking for

  • Photos doesn't save to camera roll.

    I have the new ipad 3 just updated to iOS 6 and when i try to save a photo from facebook, emails, or safari it doesn't want to save to my camera roll. How can i fix this problem ?

  • After Airport Extremem Updates - Multiple Hard Drives Won't Appear

    After the most recent firmware updates (I'm currently at 7.2.3, but I noticed the symptoms with the one released a few weeks ago, too.) I'm noticing some serious problems with my external harddrives, connected to my airport extreme. I hae a USB hub c

  • IPod 80 gb not recognized by my computer

    when i sync my iPod 80 gb,an error message shows that it is not recognized by my computer, how can i fix this?

  • Satellite P300-1DA - Battery with more capacity

    The standard battery on my Satelite P300-1DA gives me 1.5h working time. Does batteries with lager capacity exsist?

  • Table name in from clause

    Hi Gurus, Each day I am creating a table dynamically and the table name is stored in log table. End of the day I want to see that tables data(want to create a report based on that table). select * from ( select table_name from my_log where created_on