HTTPS hostname wrong - wild card?

I have a simple https client that produced the following error message -
" java.io.IOException: HTTPS hostname wrong: should be <test.cat.com>, but cert says <*.cat.com> "
I thought that the * is the wild card,thus test.cat.com should be accepted. Any ideas?
Thanks, Jack

ok I did exactly that and it's good. However I suggest that you don't return true automatically since it bypass completely the protection. You can easily implement the check for the domain name (which is the current implementation in jsse) and then add the wildcard special cases.
Have fun
Francois

Similar Messages

  • Please help - HTTPS hostname wrong.

    Sorry for posting this message again. It may just be a quick help from any of you.
    I have a simple https client that produced the following error message -
    " java.io.IOException: HTTPS hostname wrong: should be <test.cat.com>, but cert says <*.cat.com> "
    I thought that the * is the wild card,thus test.cat.com should be accepted. Any ideas?
    Thanks, Jack

    I am not sure exactly what to do. Anyway the code is simple. It basically first connects to a site for logon and obtain certificate (?). And then try to connect to another site.
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    System.getProperties().put("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
    URL url = new URL("https://login.cat.com/cgi-bin/setcookie?username=liuj&password=test"); URLConnection connection = url.openConnection();
    BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
    String inputLine;
    while ((inputLine = in.readLine()) != null)
    System.out.println(inputLine);
    in.close();
    url = new URL("https://eddweb.cat.com/");
    connection = url.openConnection();
    The exception happens at the above line -
    java.io.IOException: HTTPS hostname wrong: should be <eddweb.cat.com>, but cert says <*.cat.com>
    I know I have other issues need to work out later on. Right now I need to first resolve this problem. Thank you. Jack

  • "HTTPS hostname wrong" for a hostname starts with a number

    Does anyone know about why HttpsClient throws the error for a hostname starts with a number. I have no problem with other hostname but only for the hostname starts with a number. The certificate works fine with Browser. I am sure the hostname in the certificate and in the request are exactly the same.
    I know how to skip the hostname verification, but I don't want to do that for security concern.
    Can sun develpoer shed some light how to verify the hostname in HttpsClient?
    java.io.IOException: HTTPS hostname wrong: should be
    <1company.mydomain.com>
    at sun.net.www.protocol.https.HttpsClient.b(DashoA6275)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA6275)
    at java.net.URL.openStream(URL.java:960)
    Thanks
    Al8079

    I looked at the RFCs you mention, and they do seem to indicate that host/domain names cannot start with digits...however if you look at RFC 1123 closely it says:
    RFC1123 APPLICATIONS LAYER -- GENERAL October 1989
    2. GENERAL ISSUES
    This section contains general requirements that may be applicable to
    all application-layer protocols.
    2.1 Host Names and Numbers
    The syntax of a legal Internet host name was specified in RFC-952
    [DNS:4]. One aspect of host name syntax is hereby changed: the
    restriction on the first character is relaxed to allow either a
    letter or a digit. Host software MUST support this more liberal
    syntax.
    Host software MUST handle host names of up to 63 characters and
    SHOULD handle host names of up to 255 characters.

  • HTTPS hostname wrong

    Hi everybody,
    I?m developing a client webservice throught https and I can`t connect to it, the exception thrown is:
    java.rmi.RemoteException: HTTP transport error: java.io.IOException:
    HTTPS hostname wrong:  should be <wservices.fundacioncan.com>; nested exception is:
    HTTP transport error: java.io.IOException: HTTPS hostname wrong:
      should be <wservices.fundacioncan.com>This service use a basic authentication using user and password, I used the following code to set it:
    System.setProperty("javax.net.ssl.trustStore","c:\\client.keystore");
    System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
    System.setProperty("javax.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol.https");
    java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
             // Get our port interface
           stub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, username);
            stub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, password);For calling this service I`m using a java class without a Tomcat server, and also, I have not
    implemented the web service. I only know that it is hosted at
    the next URL
    https://wservices.fundacioncan.com:9443 and the server certificate
    that i can get from the browser shows that the Subject is www.fundacioncan.com
    Can anybody tell me what I?m doing wrong? I have read old topics about the same but nothing works.
    Thanks in advance

    You can get problems connecting over HTTPS in IE if the name on the certificate does not match the name of the site. For example if a certificate for java.sun.com had the name www.sun.com you'd get a dialog popping up saying that the name of the certificate did not match the name of the site, but that otherwise it was ok. This seems to be the error you're getting here, but you don't get the option to proceed...
    I don't know whether there is a workaround for this, I only know from my experience developing my own web service that I had to ensure the server name matched the name on the certificate. It doesn't look like you have this luxury, so I'd suggest contacting the web service provider for more info, unless someone else has a workaround.
    Chris

  • Java.io.IOException: HTTPS hostname wrong:  should be localhost

    I'm having problems verifying an SSL client using Tomcat v5.x. I create a key in a particular keystore, let's call it C:\tomcat. I start tomcat specifying this file as the keystore to use. I then connect to the server on port 8443 with Internet Explorer and save the certificate returned from the server in a file. I then import the certificate into a keystore, let's say C:\tomcat_client. In my SSL client code I am specifiying the keystore to use with a System.setProperty("javax.net.ssl.trustStore", "C://tomcat_client"); However when I try to retrieve an output stream from a HttpURLConnection I receive the above exception. Any ideas what is happening ?
    Exception : java.io.IOException: HTTPS hostname wrong: should be <localhost>
    I have tried a variety of other options including importing the certificate into jssecacerts in the lib/security directory of the jre I am using to execute the SSL client, using the same keystore file for tomcat and the SSL client, etc.

    Hi Everybody!
    I've had a lot of problems with HTTPS connection. But finally I found a solution that works for me. So here is the Servlet:
    * File name: TestServlet.java
    * Created on 2005.01.21.
    package georgie.test.servlet;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.net.URL;
    import javax.net.ssl.HostnameVerifier;
    import javax.net.ssl.HttpsURLConnection;
    import javax.net.ssl.SSLSession;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    * @author Gy�rgy Nov�k
    public class TestServlet extends HttpServlet
        protected void doGet(HttpServletRequest request,
                HttpServletResponse response) throws ServletException, IOException
            try
                trustAllHttpsCertificates();
                String urlStr = request.getParameter("url");
                HttpsURLConnection.setDefaultHostnameVerifier(hv);
                URL url = new URL(urlStr == null ? "https://www.verisign.com/"
                        : urlStr);
                debug("URL READY");
                BufferedReader in = new BufferedReader(new InputStreamReader(url
                        .openStream()));
                debug("INPUT READY");
                int buff;
                while ((buff = in.read()) != -1)
                in.close();
                debug("EVERYTHING IS DONE!!!");
            catch (Exception e)
                e.printStackTrace();
        HostnameVerifier hv = new HostnameVerifier()
            public boolean verify(String urlHostName, SSLSession session)
                System.out.println("Warning: URL Host: " + urlHostName + " vs. "
                        + session.getPeerHost());
                return true;
        private void debug(String s)
            System.out.println("[DEBUG] -- TestServlet -- \n" + s);
        private static void trustAllHttpsCertificates() throws Exception
            //  Create a trust manager that does not validate certificate chains:
            javax.net.ssl.TrustManager[] trustAllCerts =
            new javax.net.ssl.TrustManager[1];
            javax.net.ssl.TrustManager tm = new miTM();
            trustAllCerts[0] = tm;
            javax.net.ssl.SSLContext sc =
            javax.net.ssl.SSLContext.getInstance("SSL");
            sc.init(null, trustAllCerts, null);
            javax.net.ssl.HttpsURLConnection.setDefaultSSLSocketFactory(
            sc.getSocketFactory());
        public static class miTM implements javax.net.ssl.TrustManager,
                javax.net.ssl.X509TrustManager
            public java.security.cert.X509Certificate[] getAcceptedIssuers()
                return null;
            public boolean isServerTrusted(
                    java.security.cert.X509Certificate[] certs)
                return true;
            public boolean isClientTrusted(
                    java.security.cert.X509Certificate[] certs)
                return true;
            public void checkServerTrusted(
                    java.security.cert.X509Certificate[] certs, String authType)
                    throws java.security.cert.CertificateException
                return;
            public void checkClientTrusted(
                    java.security.cert.X509Certificate[] certs, String authType)
                    throws java.security.cert.CertificateException
                return;
    }Wish You all the best:
    Georgie

  • Different "java.io.IOException: HTTPS hostname wrong:  should be ..." error

    Hi
         I am experiencing some problems using SSL with Java 1.4.2_12 which appear to be subtly different to the ones posted earlier in this forum.
         ProcessA is trying to establish an HTTPS connection with an Apache server but gets the following error whilst trying to open the stream:
         java.io.IOException: HTTPS hostname wrong: should be <nnn.nnn.nnn.n>
         ProcessA obtains the IP to connect to from local config and this exactly matches the IP the IOEXception says it should be! Consequently I am confused as to why JSSE complains.
         I checked the certificates in the local keystore and the CN is also identical to the supplied IP
         I do not have the authority to tinker with the Apache configuration so I can't try anything else out. I must have missed a step somewhere but I am at a loss as to what. If anyone can shed some light on what may be happening here, I'd be obliged.
         thanks

    Ejp: please accept my apologies for the hugely late response to this.
    The problem was indeed at the server end. I had already employed the HostnameVerifier but after some badgering of the server admin the problem was nailed as exactyly what you said.
    Thanks (and apologies) again.

  • HTTPS hostname wrong: should be myhostname

    WHen I connect from my SOAP client to a SOAP server via HTTP, everything works fine. But when I connect via HTTPS, I get an exception
    "HTTPS hostname wrong: should be <myhostname>"
    I browsed the forums for this and got the workaround
            HostnameVerifier hv = new HostnameVerifier() {
                public boolean verify(String urlHostName, SSLSession session) {
                    return true;
                public boolean verify(String urlHostName, String certHostname) {
                    return true;
            HttpsURLConnection.setDefaultHostnameVerifier(hv);
            SOAPConnectionFactory scf =  SOAPConnectionFactory.newInstance();
            connection = scf.createConnection(); //point-to-point connectionbut that doesn't work. Perhaps this workaround only works for url/socket connections and not for SOAP connections. Or is there a similar workaround for SOAP connections?

    Well, a
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());in addition helped. But I wonder how this host name check is done. I added a System.out with the values of urlHostName and session.getPeerHost() and after I changed my domain name to the IP address this error still occured without this workaround. So even though the urlHostName equals exactly the session.getPeerHost() string, the exception is still thrown.

  • HTTPS hostname wrong:  should be myhost

    Hello everybody:
    I developed some servlets using jre 1.5 and Tomcat 5.0. Now, I have to deploy them in Oracle IAS 10g 1.3.
    Everything is okay, except https connection, and I don't know what to do: It works fine in Tomcat 5.0 and OC4J (oc4j_extended_101300) but not in IAS 1.3.
    This is my code:
    // protocol handler uses this security provider
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    com.sun.net.ssl.HostnameVerifier hv=new com.sun.net.ssl.HostnameVerifier() {
    public boolean verify(String urlHostname, String certHostname) {
    System.out.println("WARNING: Hostname is not matched for cert.");//<-This is never shown
    return true;
    com.sun.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(hv);
    And this is the server response:
    06/02/27 12:50:42 java.protocol.handler.pkgs: com.sun.net.ssl.internal.www.protocol
    06/02/27 12:50:42 java.io.IOException: HTTPS hostname wrong: should be <myhost>
    06/02/27 12:50:42 at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:493)
    06/02/27 12:50:42 at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:418)
    06/02/27 12:50:42 at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:170)
    06/02/27 12:50:42 at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:836)
    06/02/27 12:50:42 at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getOutputStream(HttpsURLConnectionOldImpl.java:200)
    06/02/27 12:50:42 at aux.Conn.getHostResponse(Conn.java:255)
    06/02/27 12:50:42 at aux.Conn.responseProcess(Conn.java:366)
    06/02/27 12:50:42 at mymainclass.MyServlet.doPost(MyServlet.java:56)
    06/02/27 12:50:42 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    06/02/27 12:50:42 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    06/02/27 12:50:42 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
    06/02/27 12:50:42 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
    06/02/27 12:50:42 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
    06/02/27 12:50:42 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
    06/02/27 12:50:42 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
    06/02/27 12:50:42 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
    06/02/27 12:50:42 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    06/02/27 12:50:42 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303
    06/02/27 12:50:42 at java.lang.Thread.run(Thread.java:595)
    Thanks in advance

    you write your own little hostname verifier class (it is easy) and set it as the default. If you really dont care what the name of the servers URL is, then do this:
    HttpsURLConnection.setDefaultHostnameVerifier(new YourHostnameVerifier());
    YourHostNameVerifier simple has to implement HostnameVerifier interface, which is one method call. You can simply return true if you dont want it to check it (if the certificate is trusted enough, and URL does not matter).

  • OPP log shows java.io.IOException: HTTPS hostname wrong:

    Hi All -
    While running BI Publisher programs in R12.1.3 instance , we are getting below error.
    [11/14/11 10:02:33 PM] [UNEXPECTED] [82134:RT731346] java.io.IOException: HTTPS hostname wrong: should be <test0va1.mia.abc.com>
    Can anyone please help ?
    Regards

    The error is reported in these docs but I do not think it is helpful.
    Pdf Export On Worklist Throws HTTPS Hostname Wrong Exception [ID 1118694.
    E-IB: Getting "java.io.IOException: HTTPS hostname wrong: should be <*.*.*.*>, but cert says..." on Accessing External Web Service Node over HTTPS [ID 1163124.1]
    Encountering excpetion when calling an external Web Service: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed [ID 1029108.1]
    Please log a SR.
    Thanks,
    Hussein

  • Java.io.IOException: HTTPS hostname wrong

    Hello
    I was trying to open a connection to secure URL and post content to it.
    I got the following exception:
    java.io.IOException: HTTPS hostname wrong: should be <165.112.121.195>
    at sun.net.www.protocol.https.HttpsClient.b(DashoA12275)
    Its apparantly because the connection is
    com.sun.net.ssl.internal.www.protocol.https.DelegateHttpsURLConnection
    not
    sun.net.ssl.www.protocol.DelegateHttpsURLConnection
    I tried setting the system property
    System.setProperty("java.protocol.handler.pkgs","sun.net.www.protocol");
    to force JVM to use the newer Delegate.
    Its still doent work. I use JDK 1.4.2_05. I deploy my application in OC4J 9.0.4
    Interesting thing is, I use this code in two different applications, it works in
    one and doen't work in one. Both containers use same JDK. Both are OC4J
    containers.
    Any thoughts? I would appreciate.
    thanks
    Raghavan

    Do you mean?
    System.setProperty("java.protocol.handler.pkgs","sun.net.ssl.www.protocol");

  • Web service calling in HTTPS, certificate, hostname wrong

    Hi
    Im triying to call a web service running in WSO2 Carbon and I cant do it because I was geting a exception asking for a certificate.I had success importing a valid certificate, but now I get the following exception
    HTTPS hostname wrong: should be <10.36.15.100>
    this ip is the one where the WSO2 Carbon is running with the web service Im calling.
    When I consume services running in other places I gat no problem and I can consume the service running in the WsO2 with the SOAP UI, so I dont Know what happend?
    Thanks
    Ray

    Glad to help.
    I actually had a similar problem a few weeks ago. I created a remote enabled FM in our R/3 system that was called by a program in our SRM system. When I ran the FM in R/3 it worked, but from SRM, no joy.
    Eventually, I found that I had mispelled a parameter in the calling program. Since, the FM didn't exist in SRM, the calling program couldn't report any syntax error or give a dump. I corrected the spelling and it finally worked.
    Rob

  • Persona Q Wild Card Premium Edition Preorder

    I placed an order for Persona Q Shadow of the Labyrinth Wild Cards Premium Edition 3DS on 7/05/2014. Nearing the release of the game I decided to check on its status to see when it would be shipping and noticed that it was linking to the wrong version in my order history ( regular version, not Wildcard that I ordered ) I emailed BestBuy 11/03 asking why it was linking to the wrong version in my order history and I received the following response:
    "Hi Michael, Thank you for choosing Best Buy. I understand you would like to check the status of your order. I'll be happy to assist you. I was able to locate your order BBYXX-XXXXXXXXXXXX Persona Q Shadow of the Labyrinth The Wild Cards Premium Edition Nintendo 3DS using the email address [email protected] you used, and it appears that your pre-order status is pending release and scheduled to be shipped on December 2 2014."
    The response confirmed that I would be receiving the Wild Card Edition and when it would ship but didn't address why it was linking to the wrong item. I sent the following email back 11/07:
    "I'm confused as to why it says "Atlus Persona Q Shadow of the Labyrinth The Wild Cards Premium Edition Nintendo 3DS" in my order history but when I click on it it goes to the wrong version of the game. Do you have any idea why its doing that?"
    I then received the following response on 11/07:
    "After researching the issue, it appears that we have a system error issue with our Online Website. It's a site-wide issue and our technicians have already been made aware of it. We assure you our technicians are working full-time to immediately resolve the issue. We want you to know we have the most competent and technically gifted engineers working hand-in-hand in fixing the problem. Therefore, I should not take more than 24 hours for the said issue to be rectified."
    I waited 24 hours and checked and nothing had changed. As I wasn't receiving any help from BestBuy email support after numerous attempts I had to look online to find out what the issue was. After doing some searching I found other customers online had the same issue and were told by BestBuy customer service that BestBuy made a mistake with the SKU and that they were issuing $30 gift cards so people could get the correct version that they ordered. I emailed BestBuy back with this information 11/17 and was told:
    "Our technicians are still working to resolve it and we don't have an approximate time on when will it be resolve."
    and that I would receive a $10 gift card. For some reason the email support people seemed to have no idea about the SKU mistake ( even after I looked it up online and explained it to them ) or that BestBuy was sending $30 gift cards to customers so they could receive the item they ordered. While I appreciate any gift card a business offers me it was a bit confusing why everyone else was issued a $30 gift card ( http://forums.bestbuy.com/t5/Gaming-Support/Persona-Q-Premium-Edition-Preorder/td-p/838319 / CAG ) and those customers didn't have BestBuy mistakenly confirm that the Wildcard Edition would be sent to them.
    This has been extremely frustrating as I was erroneously told that I would receive the Wild Card Premium Edition, my order was changed without me receiving any notification at all, I was given the wrong information over and over and over again until I ultimately had to search online to find out what the issue was. I apologize for the length of this post but I needed to explain what happened and I wasn't getting any help at all from email support. I just want to either receive the game I ordered or a code / gift card so I can replace my order. Please help.

    Hi mike1942,
    I can see why you'd be concerned! Details on this issue have been provided to our phone and e-mail support teams, so it's disheartening to hear of the difficulties and conflicting information you've encountered in trying to find a solution.
    When this title was initially made available for pre-order on BestBuy.com, the standard edition was incorrectly listed as the Wild Cards edition. The SKU number was correct though, and our merchant team has since made sure SKU #7377002 properly reflects the standard edition online.
    I've sent you some information, so please make sure to check your private messages when you can. To check your PMs, simply sign into the forum and then click on the letter icon in the upper right-hand corner of the page.
    Aaron|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Just got new T530 with wrong wireless card. Which model of Intel 6300?

    Hey all, been surfing the google god for a few days but can't seem to find a secure answer that makes me happy. Just got a new T530 model 2359 laptop for my new job. Other then one stuck pixel that refuses to go away im pretty happy with it as I upgraded the CPU to the i5 3320 cpu model with the nvidia NVS 5400m GPU so it can power dual 24" monitors on my new Lenovo dock. 
    What sucks is that my manager got me the wrong wifi card, the standard thinkpad 1x1 b/g/n wireless card so I can't connect to 5ghz and or dual band routers like I have at my home which I really want for reliable and fast wireless cause I will be using it a lot around my work building as I do IT support for users so I wanna be able to use all the antenna's to help my range.
    I took the laptop apart and I do see a third wire not connected to the thinkpad 1x1 mini card so should be able to use 3 antenna's on my T530?  My big question is which 6300 card would the correct one for my T530? I know apparently there are "white label" cards from IBM that don't work in certain machines but considering I'm putting it into a IBM, I would think I would be ok?
    Also, I do have an HD webcam buit in and I've heard that apparently some Thinkpad models you can't use three antenna and have the webcam working? 
    I'm curious if this white label centrino 6300 is the one I need
    http://www.amazon.com/Wireless-Ultimate-n-6300agn-802-11a-572511-001/dp/B008UOQVYC/ref=sr_1_1?s=elec...
    Or is it this one?
    http://www.amazon.com/Intel-6235AN-HMWWB-Centrino-Advanced-N-Bluetooth/dp/B007QXLIWI/ref=sr_1_3?s=el...
    Thanks for any clarrification on this

    @Fr0stTr0n...
    You may wish to try the P/N that Z and Rich referenced here:
    http://www-304.ibm.com/shop/americas/webapp/wcs/stores/servlet/default/PromotionDisplay?promoName=pa...
    Regards.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Community Resources: Participation Rules • Images in posts • Search (Advanced) • Private Messaging
    PM requests for individual support are not answered. If a post solves your issue, please mark it so.
    X1C3 Helix X220 X301 X200T T61p T60p Y3P • T520 T420 T510 T400 R400 T61 Y2P Y13
    I am not a Lenovo employee.

  • Wild card search in existsNode function

    Hi,
    How can i do a wild card search for the below data?
    I have a table as follows:
    ID VARCHAR2(32 BYTE),
    MESSAGE_TYPE VARCHAR2(64 BYTE),
    MESSAGE_CONTENT XMLTYPE,
    REJECTED_REASON VARCHAR2(256 BYTE)
    And Sample XML as:
    <?xml version="1.0" encoding="US-ASCII"?>
    <MessageEnvelope>
    <Header>
    <Partner>Renault</Partner>
    <MessageType>Release</MessageType>
    <PartnerMessageType>S74</PartnerMessageType>
    <MessageTime>2001-12-17T09:30:47.0Z</MessageTime>
    <LinkToRawMessage>String</LinkToRawMessage>
    </Header>
    <Body>
    <Release>
    <Addresses>
    <DealerDestAddr>ABCD</DealerDestAddr>
    <DestAddr>ABCD</DestAddr>
    <NextDestAddr/>
    <StartAddr/>
    </Addresses>
    <Assignment/>
    <ClientStatus/>
    <Dates/>
    <HoldInfo>
    <HoldCode>HoldTest</HoldCode>
    </HoldInfo>
    <Message/>
    <Partner>
    <OrderGiverCode>CMR00BCV</OrderGiverCode>
    </Partner>
    <ToDo/>
    <Transport/>
    <Vehicle>
    <VIN>W0LGDM9A_Ran11115</VIN>
    </Vehicle>
    </Release>
    </Body>
    </MessageEnvelope>
    I am executing the foll query:
    select * from t_xml x where x.message_type='DBLVEH' and x.MESSAGE_CONTENT.existsNode('//*[*="Release"]')=1;
    This gives me correct result.
    But i need to search *Rel and it should give me the desired result. How can i accomplish that?
    I tried the foll and it did not work:
    select * from t_xml x where x.message_type='DBLVEH' and x.MESSAGE_CONTENT.existsNode('//*[contains(*,"Re")]')=1;
    Regards,
    Sprightee

    sprightee wrote:
    Hi,
    How can i do a wild card search for the below data?I am not sure how this can be achieved using existsNode function but does following work for you?
    SELECT *
      FROM t_xml
      WHERE
        XMLExists(
          'declare namespace ora = "http://xmlns.oracle.com/xdb"; (: :)
           $d//*
             [ora:matches(text(), "Re*")]'
          PASSING MESSAGE_CONTENT AS "d");

  • Wrong graphics card twice in a row

    I ordered a T420S laptop a month ago and received it in around two weeks. When I turned it on, I found that they have sent me the wrong graphics card. My specifications were: 
    NVIDIA Quadro NVS4200M Optimus technology (1GB)
    Which is the enhanced graphics option but I received a Intel(R) HD Graphics 3000.
    When I asked for a replacement, they sent me one after more than an hour of calling and waiting and I have just received the new one today. But once again, it is the Intel(R) HD Graphics 3000 and not the NVIDIA Quadro.
    Here is the screenshot I took of the new laptop I received today:
    ]http://i46.tinypic.com/x52phz.png
    What should I do? Call again and ask for a second replacement? (They might send the wrong one once again)
    Or just return it and find a new laptop to buy?
    Solved!
    Go to Solution.

    Thank you all very much for your responses.
    It seems that I was wrong to assume the computers didn't have the graphics card I order but it was only not activated.
    I wish the Lenovo support had explained it to me earlier when I called...
    In the end, I have still decided to keep the replacement. The original had padding blocking a part of the fans on the upper left which isn't there on the second which I'm assuming to be how it was designed.

Maybe you are looking for

  • Interface slow/buggy with two user accounts?

    I've recently created a second user account on my 2009 27" iMac and ever since I've been having weird things happening, such as flash videos in safari becoming unresponsive (literally frozen) untill I move the safari window, which gets the video to p

  • Using a Data Object in Place of a Database Connection

    <p>We've got about 2000 users that will need to access the same data set for an on-demand report.  We're using logic at report run time to restrict how much of that data set a given user can see.  We'd like to avoid the stress on our database server

  • HP 3015 all in one error msg

    Error msg NO PRINT CARTRIDGE even though there is a cartridge, I read all other help blogs. There is NO paper at all jammed. No small plastic parts loose Cartridge is in place and has been removed and reinserted many times. paper has been removed and

  • File sizes and bit rate slider

    Hi, I'm having two issues I'm hoping someone can help me with.. 1) My file sizes are much bigger than they're apparently supposed to be. A 10 second clip at 720x576 takes up 32 MB. I've tried both quicktime h.264 and various avi codecs with roughly t

  • My Ipod lock screen has disappeared!

    My iPod lock screen has disappeared and says the iPod is disabled. I had a passcode and I have tried turning it on and off and when I plug it into iTunes it says I need to unlock the iPod first! But the passcode 'slide to unlock' bar is gone! HELP!