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

Similar Messages

  • 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

  • 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.

  • 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)

  • 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 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

  • 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...

  • Connectivity issue -unknown host

    Hi,
    We have an File to File interface from SAP ECC to Click .We are getting unknown host exception while trying to connect from PI .We checked with Click team they confirmed there server is up and running .
    Could you please advice what might be the issue?

    Hi,
    Check with Click team whether they have file server installed in there server machine or not?
    By the way did u tried connecting from front end tools like filezilla or by connecting from os level ?
    Regards
    Venkat

  • 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

  • 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.

  • Io exception: Unknown host specified

    hi all
    i installed oracle 10g successfuly but when i open enterprize manager and try to connect system as sysdba then follwoing error occure
    Io exception: Unknown host specified
    can any one help me
    thanks in advance

    i am giving the os username and pasword but the error is
    RemoteOperationException: ERROR: Wrong password for user

  • Io Exception: Unknown host specified; fails for cluster, OK for one server

    SQL Developer 1.2.1.3213, BUILD MAIN-32.13, downloaded today, fails to connect to a remote two server Oracle cluster, until one of the two server DNS names and the comma between them is removed.
    FYI: The known host value looks like: devrac1.mydomain.ca,devrac2.mydomain.ca
    Change it to: devrac1.mydomain.ca and the connection will work as expected in 1.2.1
    Error dialog: "Error Connecting" An error was encountered performing the requested operation.
    "Io Exception: Unknown host specified"
    "Vendor code 17002"
    On SQL Developer version 1.1.0.15, build MAIN-15.57 all databases connect normally.
    The correct operation or failure apply to either Oracle 9i or 10g, on Windows XP Professional, SP 2, with JDK 6 update 3.
    Yours truly,
    Mike Rainville
    Version details:
    Oracle 9i, 9.2.0.0.0. or
    Oracle 10g, Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    Microsoft Windows XP [Version 5.1.2600]
    java version "1.6.0_03"
    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
    Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
    (original post in thread: Re: Connecting to a remote database recreated here per your request)
    Mike Rainville
    Montreal, Canada

    You can also address both RAC nodes in your SQLDeveloper connection.
    Open the connection properties and select "Advanced" as "Connection Type".
    Use the following type of JDBC URL:
    jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=tcp)(HOST=devrac1.mydomain.ca)(PORT=1521))(ADDRESS=(PROTOCOL=tcp)(HOST=devrac2.mydomain.ca)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=devrac.mydomain.ca)))
    Best,
    Manfred

  • Problem in calling a web service hosted on tomcat from BEA WebLogic portal

    Hi,
    I have a wsdl file for my web service which is hosted on apache tomcat 5.5(running on port : 8080). The contents of the wsdl file are-
    *<?xml version="1.0" encoding="UTF-8"?>*
    *<wsdl:definitions targetNamespace="http://soa.tutorials.serg.edu" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://soa.tutorials.serg.edu" xmlns:intf="http://soa.tutorials.serg.edu" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">*
    *<!--WSDL created by Apache Axis version: 1.4*
    Built on Apr 22, 2006 (06:55:48 PDT)-->
    *<wsdl:types>*
    *<schema elementFormDefault="qualified" targetNamespace="http://soa.tutorials.serg.edu" xmlns="http://www.w3.org/2001/XMLSchema">*
    *<element name="getNums">*
    *<complexType>*
    *<sequence>*
    *<element name="n" type="xsd:int"/>*
    *<element name="m" type="xsd:int"/>*
    *</sequence>*
    *</complexType>*
    *</element>*
    *<element name="getNumsResponse">*
    *<complexType>*
    *<sequence>*
    *<element maxOccurs="unbounded" name="getNumsReturn" type="xsd:int"/>*
    *</sequence>*
    *</complexType>*
    *</element>*
    *<element name="getNums2">*
    *<complexType>*
    *<sequence>*
    *<element name="n" type="xsd:int"/>*
    *<element name="m" type="xsd:int"/>*
    *</sequence>*
    *</complexType>*
    *</element>*
    *<element name="getNums2Response">*
    *<complexType>*
    *<sequence>*
    *<element maxOccurs="unbounded" name="getNums2Return" type="xsd:int"/>*
    *</sequence>*
    *</complexType>*
    *</element>*
    *</schema>*
    *</wsdl:types>*
    *<wsdl:message name="getNums2Request">*
    *<wsdl:part element="impl:getNums2" name="parameters"/>*
    *</wsdl:message>*
    *<wsdl:message name="getNumsRequest">*
    *<wsdl:part element="impl:getNums" name="parameters"/>*
    *</wsdl:message>*
    *<wsdl:message name="getNums2Response">*
    *<wsdl:part element="impl:getNums2Response" name="parameters"/>*
    *</wsdl:message>*
    *<wsdl:message name="getNumsResponse">*
    *<wsdl:part element="impl:getNumsResponse" name="parameters"/>*
    *</wsdl:message>*
    *<wsdl:portType name="Echo">*
    *<wsdl:operation name="getNums">*
    *<wsdl:input message="impl:getNumsRequest" name="getNumsRequest"/>*
    *<wsdl:output message="impl:getNumsResponse" name="getNumsResponse"/>*
    *</wsdl:operation>*
    *<wsdl:operation name="getNums2">*
    *<wsdl:input message="impl:getNums2Request" name="getNums2Request"/>*
    *<wsdl:output message="impl:getNums2Response" name="getNums2Response"/>*
    *</wsdl:operation>*
    *</wsdl:portType>*
    *<wsdl:binding name="EchoSoapBinding" type="impl:Echo">*
    *<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>*
    *<wsdl:operation name="getNums">*
    *<wsdlsoap:operation soapAction=""/>*
    *<wsdl:input name="getNumsRequest">*
    *<wsdlsoap:body use="literal"/>*
    *</wsdl:input>*
    *<wsdl:output name="getNumsResponse">*
    *<wsdlsoap:body use="literal"/>*
    *</wsdl:output>*
    *</wsdl:operation>*
    *<wsdl:operation name="getNums2">*
    *<wsdlsoap:operation soapAction=""/>*
    *<wsdl:input name="getNums2Request">*
    *<wsdlsoap:body use="literal"/>*
    *</wsdl:input>*
    *<wsdl:output name="getNums2Response">*
    *<wsdlsoap:body use="literal"/>*
    *</wsdl:output>*
    *</wsdl:operation>*
    *</wsdl:binding>*
    *<wsdl:service name="EchoService">*
    *<wsdl:port binding="impl:EchoSoapBinding" name="Echo">*
    *<wsdlsoap:address location="http://localhost:8080/SOATest/services/Echo"/>*
    *</wsdl:port>*
    *</wsdl:service>*
    *</wsdl:definitions>*
    I created a client from the above wsdl file using ClientGen wizard in WebLogic. This client contains the follwoing classes-
    Echo.java
    EchoService.java
    EchoService_Impl.java
    Echo_Stub.java
    I created a JSP portlet and the jsp content of it is-
    String url = "http://localhost:8080/SOATest/services/Echo";
    Echo echo = new EchoService_Impl(url).getEcho();
    getNumsResponse = echo.getNums(getNums);
    I tried to call that web service from BEA weblogic portal through a JSP potlet. I got an error saying -
    *<An exception [javax.xml.rpc.ServiceException: Failed to parse WSDL http://localhost:8080/SOATest/services/Echo weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element] was thrown while rendering the content at [TestEcho.jsp].*
    *javax.servlet.ServletException: javax.xml.rpc.ServiceException: Failed to parse WSDL http://localhost:8080/SOATest/services/Echo weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextImpl.java:420)*
    *     at jsp_servlet.__testecho._jspService(__testecho.java:112)*
    *     at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)*
    *     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)*
    *     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)*
    *     Truncated. see log file for complete stacktrace*
    *javax.xml.rpc.ServiceException: Failed to parse WSDL http://localhost:8080/SOATest/services/Echo weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.wsee.jaxrpc.ServiceImpl.throwServiceException(ServiceImpl.java:174)*
    *     at weblogic.wsee.jaxrpc.ServiceImpl.loadWsdlDefinition(ServiceImpl.java:485)*
    *     at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:119)*
    *     at edu.serg.tutorials.soa.EchoService_Impl.<init>(Unknown Source)*
    *     at edu.serg.tutorials.soa.EchoService_Impl.<init>(Unknown Source)*
    *     Truncated. see log file for complete stacktrace*
    *weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:313)*
    *     at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:405)*
    *     at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:391)*
    *     at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:79)*
    *     at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:66)*
    *     Truncated. see log file for complete stacktrace*
    *java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:38)*
    *     at weblogic.wsee.util.dom.DOMParser.getWebLogicDocumentImpl(DOMParser.java:122)*
    *     at weblogic.wsee.util.dom.DOMParser.getDocument(DOMParser.java:65)*
    *     at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:311)*
    *     at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:405)*
    *     Truncated. see log file for complete stacktrace*
    *javax.xml.stream.XMLStreamException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:206)*
    *     at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:112)*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:73)*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:35)*
    *     Truncated. see log file for complete stacktrace*
    *Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.xml.babel.baseparser.BaseParser.parseProlog(BaseParser.java:417)*
    *     at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:328)*
    *     at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:195)*
    *     at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:112)*
    *     Truncated. see log file for complete stacktrace*
    My web service is using soap binding. I have tested it with eclipse and other tools also. It is working well and good. But when I tried to call a web service which is created and hosted on WebLogic server(running on port : 7001), I got the correct output.
    Can anyone help me out in calling a web service hosted on different server from WebLogic server.
    Thanks in advance,
    Tiijnar
    Edited by: user8715057 on Aug 13, 2009 1:11 AM

    Hi
    1. The way you are invoking the WebService deployed on Tomcat server is looks suspicious. It may be valid by adding extra ?wsdl etc into the url, but still I have not seen this way to invoke the webservice.
    2. So you used Weblogic ant task to generate client JARs by giving this WSDL. So looks like it generated the 4 classes (.java) and in addition any other classes for Request/Response xml objects.
    3. Look at the source code of EchoService.java. It should have one default empty constructor. Internally it uses the default wsdl defined in this class. You will see another constructor that takes WSDL URL as one of the parameters (QName) etc. Echo.java is the class corresponding to the Port. In the same EchoService you should see an instance method like getEcho() something like that. This Echo.java class will have methods for all the Operations defined on this Port. So the standard code snippet we use most of the times will be like this:
    EchoService myEchoService = new EchoService(); // Default it uses WSDL deployed on Tomcat at localhost:8080
    Echo myEchoPort = myEchoService.getEchoPort(); // Something along these lines.
    myEchoPort.xxxYYY(); // NOW this is the operation name that takes the input parameters and returns outputs defined as per the WSDL defintions. If the Input and Outputs are complex xml types, it will have corresponing .JAVA files with setters and getters.
    Now if this WebService is deployed on same Tomcat but on different machine or different port, you just give the full WSDL URL with that host and port in the constructor for new EchoService(...). You may need to instantiate QName object. But look at the methods generated in EchoService.java class.
    The way you are using with Impl and Stubs class may also work. I am not much famiiar with this APIs apporach. Still look at the methods generated in these classes.
    Also if you latest Sun JDK 1.6, it also has one command like wsimport. Infact if you install WLS 10.3 with Sun JDK, it should have C:\beawlp103\jdk160_05\bin\wsimport command. This will also generate client jar given a WSDL URL.
    Thanks
    Ravi Jegga

  • How to install Workshop for WebLogic and WebLogic Portal?

    Hi All,
    I am new to Weblogic Portal. I would like to start learning Oracle Weblogic Portals..
    Can anyone please guide me, how to install Workshop for WebLogic and WebLogic Portal?
    As per the ""Tutorials – Getting Started with WebLogic Portal"" (http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/tutorials/setup_dev_env.html)
    we need to install the Workshop for WebLogic and WebLogic Portal.
    Please suggest me where should i get the required environments/IDE?
    Thanks,
    Harish.

    Hi Harish
    1. If this is your first time with Weblogic Portal, I would recommend to download the latest Weblogic Portal Software Rel 10.3.2 from this bottom link. Check Accept Radio button, for windows download windows installer. Its about 1 GB file. This software includes Eclipse IDE, Weblogic Server and Weblogic Portal.
    http://www.oracle.com/technology/software/products/wlp/index.html
    2. During the installation process, make sure at one point you select Custom mode (NOT default Typical mode). In next following screens you will see all bundles checked EXCEPT for Samples. So make sure you check Samples Check box both under Weblogic Server and Weblogic Portal. Then proceed. This will install full Weblogic Workshop (Eclipse IDE), Weblogic Server and Weblogic Portal. This is the good installation package. Also it will install samples for Portal and Server. If you select all default typical mode, it will NOT install samples. You can install samples later on also, but its good at installation time itself you select custom and check Samples also.
    3. WLP 10.3.2 uses Eclipse IDE. If you are familiar with Eclipse IDE this should be helpful. Otherwise also, its ok.
    4. For learning WLP, in Eclipse IDE, you need to create Portal EAR Project, then Portal Web Project. Inside portal web project create simple jsp hello world portlets and a simple portal.
    5. For Deploying and Testing Portal application you need to create Portal Domain using config wizard. You can see this from Start -> Programs -> Oracle Weblogic Portal shortcut -> Weblogic Server -> Tools -> Configuration Wizard.
    6. You can start Workshop IDE from Start -> Program Files -> Oracle Weblogic Portal ...-> Eclipse For Weblogic 10.3.2
    Here are the links for quick start guide for portal development. Please do refer them.
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/tutorials/index.html
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/quickstart/newproject.html
    HTH
    Ravi Jegga

  • Reader XI - unknown software exception

    I have Acrobat Reader XI on a Windows XP SP3 PC.
    When I open a .pdf file by double clicking on it, before Reader XI runs I get the following error in a pop-up window:
    The exception unknown software exception (0xc0000409) occurred in the application at location 0x00411e0b. (The location address changes each time).
    From then on, I keep getting the same pop up appearing on top of other program windows even when I am not actively trying to access a .pdf file, but if a Windows Explorer window containing .pdfs is still open. It's even doing it as I try to type this....
    It seems random whether or not the box goes away if I click OK or Cancel.
    Bizarrely, every .pdf document I have tried has still opened in Reader XI fine after getting rid of the pop-up.
    I have uninstalled Reader XI completely (using the Windows "Add/Remove Programs dialogue) and reinstalled using a fresh download of the program from http://www.adobe.com/support/downloads/detail.jsp?ftpID=5507, but there is no improvement.
    I have found several previous mentions of this error on this forum (and it is all over Google) but have found no solution that works for me so far.
    Please assist if you can.

    As there have been no other suggestions, I tried uninstalling Reader XI and went back to Reader X.
    Now that comes up with an error message in a very similar way, except the message now reads:
    "Adobe Reader X- There was an error opening this document. This file cannot be found."
    It's infuriating when every .pdf I have tried DOES open and display fine, so these annoying error messages are actually wrong.
    But they still just keep popping up, even when I am simply working in another program, but just happen to have a Windows Explorer window open in the background showing the contents of a folder that includes one or more .pdf files.
    Surely someone from Adobe can advise????

Maybe you are looking for

  • How Do I Share iTunes with 2 Macs?

    Here is my setup: iMac G5 & Macbook AEBSn with a 500GB LaCie drive hooked up I have always had my iTunes on my iMac, but now that I have a Macbook I would like to share the library between the two. Basically making the library editable by both comput

  • Printing in tray1 - Smartforms

    Hi All, I have a requirement where I need to print to tray1 for a particular warehouse number, say 111. Form - Smartform I cannot use Resource name tab provided in smartfoms, as it will print in tray1 for all documents, while I need to print documnen

  • HT202063 tether 5d Mark iii to aperture 3?

    Has anyone successfully tethered 5d mark iii to Aperture 3? Aperture v 3.2.3 Apple Raw support for 5d mark iii Mac OSX 10.6.8 I can now see raw files in aperture (manual import), however when I go to tether, despite it detecting the 5d mark iii it wo

  • Can I use unlocked(simfree) iPhone 5 of Hong Kong's one in India?

    can I use unlocked(simfree) iPhone 5 of Hong Kong's one in India?

  • JRE 1.3.x & 1.4.x

    We have two applications. application1 initiates a JRE 1.3 download. I install 1.3 and the application runs fine. Now I launch application2 in a new browser, now the browser prompts a JRE1.4 download. I install it and the application2 works. I have l