WTK http stack implementation bug: malformed URL

Hi
the WTK emulators dont parse URLs correctly. The following code throws an "java.lang.IllegalArgumentException: malformed URL" exception. It works on most phones and the SonyEricsson J2ME SDK tho.
c = (HttpConnection) Connector.open("http://www.4950.net");
The stack trace is
java.lang.IllegalArgumentException: malformed URL
     at com.sun.midp.io.HttpUrl.isIPv4Address(+88)
     at com.sun.midp.io.HttpUrl.parseAfterScheme(+568)
     at com.sun.midp.io.HttpUrl.<init>(+36)
     at com.sun.midp.io.j2me.http.Protocol.connect(+18)
     at com.sun.midp.io.ConnectionBaseAdapter.openPrim(+52)
     at javax.microedition.io.Connector.openPrim(+299)
     at javax.microedition.io.Connector.open(+15)
     at javax.microedition.io.Connector.open(+6)
     at javax.microedition.io.Connector.open(+5)
I interpret the error as the http stacks recognizing this url as a numbered notation (e.g. http://123.234.34.24) instead of a text notation (e.g. http://www.google.com).
I tried to look into the midp sources but the ones that are online do not contain the method com.sun.midp.io.HttpUrl.isIPv4Address from reading the source available it seems that the midp2.0fcs sources dont contain this error.
Can anyone in sun fix this?

an URL cannot start with a number after the www !

Similar Messages

  • URL object with https string throws malformed url exception: unknown protocol: https

    In WebLogic I am trying to connect to an HTTPS url by passing that url
    string into the contructor for URL object. This throws a Malformed URL
    Exception : unknown protocol: https.
    When i run this same block of code outside of weblogic (in a stand-alone
    app), it runs perfectly. (not exceptions when creating the URL object).
    why do i get this exception in weblogic?
    could weblogic be loading its own URL class rather than the java.net.URL
    class (which supports ssl)? if so how do i override that classloading?
    is there a weblogic security "feature" that prevents opening an ssl
    connection?
    thanks for any help
    mike
    [email protected]

    You need to modify your weblogic.policy file to allow you to change the
    the property java.protocol.handler.pkgs ... and any other properties
    that you may probably change using JSSE (for example:
    javax.net.ssl.trustStore for storing certificates of servers that you
    want to connect to from WLS )
    Regards,
    John Salvo
    Michael Harrison wrote:
    >
    thanks for the help dennis, but still get the "unknown protocol https".
    the URL object sees that the URLStreamHandler ==null and get the value for
    java.protocol.handler.pkgs (which should be
    com.sun.net.ssl.internal.www.protocol) then it tries to load that class. i
    believe that the GetPropertyAction("java.protocol.handler.pkgs","") is not
    returning com.sun.net.ssl.internal.www.protocol. therefore the class is not
    getting loaded
    i think that my classpath is set up properly for classpath and
    weblogic_classpath so i think that i me calling
    System.setProperty("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol"); is not effective.
    do you know anyway i can trouble shoot this.
    thanks
    mike
    Dennis O'Neill <[email protected]> wrote in message
    news:39d23c28$[email protected]..
    Https is an add-in so to speak. Try this before you create your url:
    System.setProperty ("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol");
    // add the default security provider (again, in JSSE1.0.1)
    int iap = java.security.Security.addProvider(new
    com.sun.net.ssl.internal.ssl.Provider() );
    dennis

  • Segmentation Error : Server returned HTTP response code: 500 for URL

    Hi,
    when we do customer segmentation in Applet Java Builder, we create a target group using 2 or more criterion, then it prompts us an error "Communication Error" - Server returned HTTP response code: 500 for URL: http//xxxxxxxxxxx/bc/bsp/sap/CRM_MKTTG_SEGAP/communication.do
    we're in CRM 7.0 SP 6.
    What we have done
    - activated the service CRM_MKTTG_SEGAP
    - implement sap note 1481289, 1359890, 1161753
    any info is really appreciated.
    Thanks
    JD

    HI ,
    Communication error occurs because of two active versions of segment builder jar files are appearing , deletion of older version resolves this issue .
    Go to SE80 u2013 Select the BSP Application - CRM_MKTTG_SEGAP and check segmentbuilder.jar Segment Builder Applet under MIME folder and check the size and delete the older version .
    Regards,
    Satish Bondu

  • How to verify that SSL(HTTPS) is implemented on JBOSS or not?

    Hi Everybody,
    I had recently implemented SSL(HTTPS) on JBOSS-4.0.3 server. My application is working perfectly fine with HTTPS. Now my query is how I can ensure that it is working on HTTPS except from viewing the "https://" in the URL.
    Is there any other way to check whether HTTPS is implemented or not.
    Any help will be highly appreciated.
    Regards
    Rinku Garg

    hat about trying to connect a client that is configured to only
     support SSLv3?
    -> Can provide more insight on this?
    here are also many third party tools (even scripts) that allow for scanning SSL on your server. 
    -> I saw that there is openssl, but it is not that friendly on Windows. Need to install dependencies before it works.
    You could also use network monitor (or wireshark or alike) to capture some network traffic and check the
    SSL handshake. The server HELO will contain information on the supported protocol and ciphers.
    -> i have tried both wireshark and Network Monitor and it seems that i can view SSL handshake on wireshark,
    but not on Network Monitor. but it could be that I do not know the filter to search. Do you know of any filter that I should use?
    Thanks and best regards, Kim Seng This posting is provided &quot;AS IS&quot; with no warranties or guarantees , and confers no rights.

  • Error in jsr180 sip stack implementation in WTK2.5.2?

    Hi,
    I encountered error in the SIP stack implementation used in the WTK2.5.2.
    When I create a SIP message and fill all the header and add to the request a Route header
    when the created message is sent to the next hop it is send according to the Request URI
    value but not the Route header.
    I try to register my application and force SIP proxy by inserting Route header.
    This done according to RFC 3261 where Route header forces the sip transation to
    forwarded according to the 'highest' value.
    Waiting for Your feedback
    Kind regards
    Tomasz

    I am having exactly the same problem!!!!
    In fact I developed days ago an application with SUBSCRIBE and NOTIFY messages, with the J2ME client as the receiver of NOTIFY requests... the requests arrived, but the responses, once sent, never get to the NOTIFY sender.
    I asked this same question in the following forum:
    http://forum.java.sun.com/forum.jspa?forumID=82
    but at this moment nobody replies...
    Today I was checking the SIPDemo implementation in SWTK2.5, and what was my surprise when I worked out that the implementation gave the same problem... I have tried several settings modifications in the SWTK preferences and settings, but no success.
    Please, is anybody aware of how to resolve this problem??, I really need the answer.
    Ashgar... do you know where can the problem be??

  • Server returned HTTP response code: 400 for URL

    Hi,
    I am trying to send a POST via https. But I am getting the error:
    java.io.IOException: Server returned HTTP response code: 400 for URL: https://148.91.92.44:443/TPIS-VALEACCENTURE-Incident
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1149)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
         at lerxml.ConectaUrl05.main(ConectaUrl05.java:67)My code:
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.PrintWriter;
    import java.net.URL;
    import java.net.URLConnection;
    import java.net.URLEncoder;
    import javax.net.ssl.HostnameVerifier;
    import javax.net.ssl.HttpsURLConnection;
    import javax.net.ssl.SSLSession;
    public class ConectaUrl05 {
        public ConectaUrl05() {
        public static void main(String[] args) {
            ConectaUrl05 conectaUrl05 = new ConectaUrl05();
            try
                        trustAllHttpsCertificates();
                        HostnameVerifier hv = new HostnameVerifier()
                            public boolean verify(String urlHostName, SSLSession session)
                                System.out.println("Warning: URL Host: " + urlHostName + " vs. "
                                        + session.getPeerHost());
                                return true;
                        HttpsURLConnection.setDefaultHostnameVerifier(hv);
                        URL url = new URL("https://148.91.92.44:443/TPIS-VALEACCENTURE-Incident");
                        URLConnection conn = url.openConnection();
                        HttpsURLConnection urlConn = (HttpsURLConnection) conn;
                        urlConn.setRequestProperty("Content-Type", "text/xml");
                        urlConn.setRequestProperty("Content-transfer-encoding", "UTF-8");
                        urlConn.setRequestProperty("Content-length", "36");
                        urlConn.setRequestMethod("POST");
                        urlConn.setDoOutput(true);
                        urlConn.setDoInput(true);
                        conectaUrl05.debug("URL READY");
                        String data = URLEncoder.encode("key1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8");
                        data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8");
                        OutputStreamWriter wr = new OutputStreamWriter(urlConn.getOutputStream());
                        wr.write(data);
                        wr.flush();
                        // Write to the output stream for server
                        PrintWriter out = new PrintWriter(urlConn.getOutputStream());
                        out.println("<test><from>my test client</from></test>");
                        out.close();
                        BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
                        conectaUrl05.debug("INPUT READY");
                        String str;
                        while( (str=in.readLine()) != null) {
                                System.out.println(str);
                        in.close();
                        conectaUrl05.debug("EVERYTHING IS DONE!!!");
                    catch (Exception e)
                        e.printStackTrace();
        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());
    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;
    }Thanks a lot.

    I've created new, empty project. It fails while running on Tomcat. Debugger console message is:
    init:
    deps-module-jar:
    deps-ear-jar:
    deps-jar:
    library-inclusion-in-archive:
    library-inclusion-in-manifest:
    compile:
    compile-jsps:
    do-dist:
    dist:
    debug:
    In-place deployment at C:\Projects\justATesst\build\web
    Server returned HTTP response code: 400 for URL: http://localhost:8084/manager/deploy?config=file:/C:/DOCUME~1/nikita/LOCALS~1/Temp/context63755.xml&path=/justATesst
    C:\Projects\justATesst\nbproject\build-impl.xml:396: Deployment failed.
    build-impl.xml:396 stands for: <nbdeploy debugmode="true" clientUrlPart="${client.urlPart}"/>

  • BIP notification E-mail has malformed URL; user can't see his output

    We're using the standalone BI Publisher 10.1.3.2.
    When a user schedules a job, he can set a notification E-mail to tell him when the job is completed (and alternately if it has a warning or error). Inside the completion E-mail is a URL that is supposed to take the user to his output.
    Unfortunately, the notification E-mail is plain text, and the address, because of the names of our reports and folders, has spaces in it. Outlook takes its best guess at changing this into a URL, but stops converting as soon as it hits the first space character.
    This malformed URL tries to take the user to a folder to which he does not have access, and instead of seeing his report, he get's an "Unauthorized Access" error.
    Is there a way to configure the notification E-mail to use HTML, or else substitute the "%20" string for the blanks so the link becomes functional? I don't want to have to go back through all our reports and folders and insert a bunch of unsightly underscores just to correct this.

    Hi,
    You can use the following inside the xapi:message element to format the Email as HTML:
          <xapi:email server="${C_XX_SMTP_SERVER}" port="${C_XX_SMTP_PORT}" from="${C_XX_FROM_EMAIL}" reply-to="${C_XX_FROM_EMAIL}">
            <xapi:message id="email_mem_card_letters" to="${C_TO_EMAIL_ADDR}" attachment="true" content-type="text/html" subject="Card Letters"><![CDATA[
                        <html>
                             <head>
                                  <style type="text/css">
                                       body {font-family:Arial}
                                  </style>
                             </head>
                        <body>
                        <img src="http://www.somedomain.co.uk/main/library/w-home_title.gif"/><br/><br/>
    <h1>Card Letters</h1>
    Attached are the Card Letters from XML Publisher.<br/><br/>
    Regards<br/><br/>
    Letter Generation Team
    </body></html>]]></xapi:message>
          </xapi:email>I hope this helps.
    Regards,
    Cj

  • Oracle Application Test Suite Agent (Malformed URL)

    Hi I am trying to connect to a remote monitoring agent so i can collect some performance data for a Test. I am trying to connect to an apache box which has the agent installed and listening on port 9001.
    The problem i am having is with the Connection between the Apache Agent and the OATS Agent.
    When the connection is attempted i am receiving the following error in the log:
    Output From: wls_oats.log
    2012-03-20 10:47:01,864 ERROR [DataCollectorManager] <DataSourceAlertMessage tsid="t3://OAT01:8088/oats/ds0" alertid="1" alertState="true" message="Malformed URL: Number of Retries: {1}." timestamp="1332240421
    Anyone received this before?
    Thanks

    Hello
    You probably hit a bug.
    You should open a SR on support.oracle.com
    JB

  • Help me! digester has error MalForme URL ".." unknown protocol: classloader

    I have used validator which link to digester and error occured like this..
    13-04-07 08:18:59.840 ERROR - java.lang.IllegalArgumentException: Malformed URL
    'classloader:/org/apache/commons/digester/xmlrules/digester-rules.dtd' : unknown protocol: classloader :(ValidatorOperator.java:71)[HttpRequestHandler-5984162]
    13-04-07 08:18:59.855 DEBUG - ******************************************* :(ValidatorOperator.java:72)[HttpRequestHandler-5984162]
    this line comes from new ValidatorResources(inputstream in)
    which I already checked that inputstream is not null
    Please help!!

    I just think that it's related to what an URL is and that whatever you provided there isn't a valid one because there is no such protocol as "classloader". Which the error message already said.
    From the URL API docs:
    Protocol handlers for the following protocols are guaranteed to exist on the search path :-
    http, https, ftp, file, and jar
    Further:
    Protocol handlers for additional protocols may also be available.
    In other words, if there actually is a protocol named "classloader", you will have to have some JAR in the classpath that'll provide that information. Read the Digester docs to find out which one that might be.

  • How to fix error malformed URL?

    How to fix error malformed URL?

    Can you give more details where you see this error message?
    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Content file download failed. Reason: HTTP status 404: The requested URL does not exist on the server.

    Hi,
    I am getting this error in most of our WSUS servers.
    Content file download failed.
    Reason: HTTP status 404: The requested URL does not exist on the server.
    Source File: /Content/FB/134501186F4C81089054E4EC3376E74EEC895EFB.exe 
    Destination File: d:\wsus\WsusContent\FB\134501186F4C81089054E4EC3376E74EEC895EFB.exe
     After few minutes, getting below error as well. But i could see the synchronization has completed successfully.
    Log Name:      Application
    Source:        Windows Server Update Services
    Date:          12/19/2014 4:45:55 PM
    Event ID:      10032
    Task Category: 7
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      ******
    Description:
    The server is failing to download some updates.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Windows Server Update Services" />
        <EventID Qualifiers="0">10032</EventID>
        <Level>2</Level>
        <Task>7</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-12-19T08:45:55.000000000Z" />
        <EventRecordID>496887</EventRecordID>
        <Channel>Application</Channel>
        <Computer>*****</Computer>
         <Data>The server is failing to download some updates.</Data>
    This error is happening everyday. Please advise for a fix.

    Reason: HTTP status 404: The requested URL does not exist on the server.
    Source File: /Content/FB/134501186F4C81089054E4EC3376E74EEC895EFB.exe 
    Destination File: d:\wsus\WsusContent\FB\134501186F4C81089054E4EC3376E74EEC895EFB.exe
    Source:        Windows Server Update Services
    Description:
    The server is failing to download some updates.
    This error is happening everyday. Please advise for a fix.
    If this is happening on an UPSTREAM server it is because you have approved updates that are no longer available from Microsoft. Almost always this involves approvals of *EXPIRED* updates (which have been pulled from the catalog and cannot be downloaded).
    If this is happening on a DOWNSTREAM server it's because something/someone deleted the files from the upstream server. It can also happen if the entire upstream ~\WSUSContent folder has gone amuk.
    For an upstream server, find the expired updates, remove the approvals, cancel the downloads, and then decline the updates.
    For a downstream server, figure out what the affected updates are and fix the upstream server.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Limits & Specifications for the NRM HTTP Stack in NetWare

    I need some docs that are more complete than what appears to be currently
    available regarding the specifications & limitations of the NRM HTTP Stack
    API functions in NetWare. Referring to the existing documentation "sparse"
    is a gross understatement, and there's some very specific information I need
    to know regarding a few scenarios in which the HTTP stack may be expected to
    fail, and how the failures are handled.
    Very specifically, I need to know what the HTTP stack does in terms of
    receiving very large data streams from a client that has done an HTTP "PUT"
    with a large file attached. When my registered callback function is called
    by the NRM HTTP Stack, I call HttpReturnPostDataBuffer() to get a pointer
    pointer to a data buffer and the length of that buffer. Once I parse out
    the data at the start of the buffer that identifies the information about
    the file upload, the remainder of the buffer should contain the contents of
    the file that was attached.
    What I'm concerned about is that this is all happening in Ring 0, there's no
    virtual memory involved, and there's the possibility of a file being
    uploaded that's larger than the available physical memory. There's also
    nothing in the docs to indicate if HttpReturnPostDataBuffer() is to be
    called multiple times in a loop until it returns an error to retrieve the
    data in manageable portions, or if all of the posted data is supposed to be
    contained within a single buffer. If I want to receive an upload of a 2 GB
    DVD ISO image from a client and write it to a file on my NetWare server, I
    can't reasonably expect that 2 GB of posted data to fit within a single
    buffer when my server only has 512 MB of memory.
    How exactly is this situation to be handled?
    There's nothing in the NDK docs about maximum limits on received data, nor
    about scenarios where certain functions need to be called iteratively to
    continue the receipt of large amounts of data [e.g. like the iterative
    methods used when reading from eDir using the NWDS*() functions].
    TIA,
    Chuck
    Chuck Chopp
    ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
    RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
    103 Autumn Hill Road 864 801 2774 fax
    Greer, SC 29651
    Do not send me unsolicited commercial email.

    Welcome back to NetWare - we have not heard from you for a year or two! Its
    pretty quiet here on the developer front, most of the newsgroups are no
    longer functional, but a few of us are still lurking around. Answers are
    hard to come by from Novell, [email protected] just returns an automated
    response.
    John
    "Chuck Chopp" <[email protected]> wrote in message
    news:[email protected]...
    > I need some docs that are more complete than what appears to be currently
    > available regarding the specifications & limitations of the NRM HTTP Stack
    > API functions in NetWare. Referring to the existing documentation
    "sparse"
    > is a gross understatement, and there's some very specific information I
    need
    > to know regarding a few scenarios in which the HTTP stack may be expected
    to
    > fail, and how the failures are handled.
    >
    > Very specifically, I need to know what the HTTP stack does in terms of
    > receiving very large data streams from a client that has done an HTTP
    "PUT"
    > with a large file attached. When my registered callback function is
    called
    > by the NRM HTTP Stack, I call HttpReturnPostDataBuffer() to get a pointer
    > pointer to a data buffer and the length of that buffer. Once I parse out
    > the data at the start of the buffer that identifies the information about
    > the file upload, the remainder of the buffer should contain the contents
    of
    > the file that was attached.
    >
    > What I'm concerned about is that this is all happening in Ring 0, there's
    no
    > virtual memory involved, and there's the possibility of a file being
    > uploaded that's larger than the available physical memory. There's also
    > nothing in the docs to indicate if HttpReturnPostDataBuffer() is to be
    > called multiple times in a loop until it returns an error to retrieve the
    > data in manageable portions, or if all of the posted data is supposed to
    be
    > contained within a single buffer. If I want to receive an upload of a 2
    GB
    > DVD ISO image from a client and write it to a file on my NetWare server, I
    > can't reasonably expect that 2 GB of posted data to fit within a single
    > buffer when my server only has 512 MB of memory.
    >
    > How exactly is this situation to be handled?
    >
    > There's nothing in the NDK docs about maximum limits on received data, nor
    > about scenarios where certain functions need to be called iteratively to
    > continue the receipt of large amounts of data [e.g. like the iterative
    > methods used when reading from eDir using the NWDS*() functions].
    >
    >
    > TIA,
    >
    > Chuck
    > --
    > Chuck Chopp
    >
    > ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
    >
    > RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
    > 103 Autumn Hill Road 864 801 2774 fax
    > Greer, SC 29651
    >
    > Do not send me unsolicited commercial email.
    >
    >

  • Java.io.IOException: Server returned HTTP response code: 405 for URL

    I'm trying write to a file using a combination of CGI and Java. I am following this website:
    http://www.webdeveloper.com/java/java_jj_read_write.html
    However, when I try to write out to the file, I keep getting the error in the title: HTTP response code: 405 for URL: .....
    I was wondering if anyone knew what this mean? I searched the forum and found a post from 2 years ago that was exactly the same problem I was having, only thing is that there were no responses to it. Hopefully I'll have a bit more luck.

    http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

  • IOException  :server returned http response code:505 for url url

    hi,
    my program creates IOException server returned http response code:505 for url <some url>
    I close the i/p stream.I dont know ,where is the problem.plz let me know.Thanks in advance.
    Here is the code:
    public class CallApplicationURL
    private static final String className = "[CallApplicationURL] ";
    private MailAlert ma = new MailAlert();
    public String callURL(String purl, RequestObject ro, Debug log)
         URL url = null;
         String URLResponse = "No response from Provider";
         ProxySetter ps = new ProxySetter();
         try
              ps.setProxy(ro, log);
              url = new URL (purl);
         catch (Exception e)
         URLResponse = className+"Exception while URL assignment \n"+purl+"\n, Exception is "+e;
         return (URLResponse);
         try
         HttpURLConnection h = (HttpURLConnection) url.openConnection();
         h.connect();
         BufferedReader br = new BufferedReader( new InputStreamReader( h.getInputStream() ) );
         URLResponse = br.readLine();
         br.close();
         catch (Exception e)
              URLResponse = className+"Exception while calling URL "+purl+", Exception is "+e;
         return (URLResponse);
         return (URLResponse);
    }

    http response 505: http://libraries.ucsd.edu/about/tools/http-response-codes.html
    This would indicate nothing is wrong with your applet but with your http server (not supporting http 1.1??)
    A full trace might help:
    To turn the full trace on (windows) you can start the java console, to be found here:
    C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
    In the advanced tab you can fill in something for runtime parameters fill in this:
    -Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
    if you cannot start the java console check here:
    C:\Documents and Settings\userName\Application Data\Sun\Java\Deployment\deployment.properties
    add or change the following line:
    javaplugin.jre.params=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    The trace is here:
    C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log
    When you catch the exception you should print the stacktrace: (e.printStackTrace()).

  • Server returned HTTP response code: 503 for URL

    I was deploy my webcenter application and was working fine, but I updated my Webcenter Framework plugin in Jdeveloper to version 11.1.2.0.091030.1847 and now when I try deploy my application error 503 occurr:
    [05:06:55 PM] Weblogic Server Exception: weblogic.deploy.api.internal.utils.DeployerHelperException: The source 'C:\Users\nmaia\AppData\Local\Temp\app8.ear' for the application 'app8#V2.0' could not be loaded to the server 'http://it7-srv-lnx-wcenter:7002/bea_wls_deployment_internal/DeploymentService'.
    Server returned HTTP response code: 503 for URL: http://it7-srv-lnx-wcenter:7002/bea_wls_deployment_internal/DeploymentService
    [05:06:55 PM] See server logs or server console for more details.
    [05:06:55 PM] weblogic.deploy.api.spi.exceptions.ServerConnectionException: [J2EE Deployment SPI:260041]Unable to upload 'F:\Desenvolvimento\JDev\Application8\deploy\app8.ear' to 't3://it7-srv-lnx-wcenter:7002'
    [05:06:55 PM] #### Deployment incomplete. ####
    [05:06:55 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    My Weblogic is version 11g(10.3), can anyone help me?
    Thanks,

    To solve my problemn I do these steps:
    - Uninstall jdeveloper;
    - Delete jdeveloper folder;
    - Install Jdeveloper, version 11.1.1.2;
    - Downloaded the plugin to Webcenter: http://download.oracle.com/otn/java/jdeveloper/1112/extensions/oracle.webcenter.framework_bundle.zip
    - Remove my proxy from Jdev ( Tools -> Preferences -> Web Browser and Proxy)
    And works fine.
    Thks anyway.
    []'s

Maybe you are looking for

  • QUERIES ON KERNEL VERSION UPDATES

    can any one comment on this. Uprade current kernel from RHAS 2.4.9-e.25enterprise to RHAS 2.4.9-e.49enterprise or 2.4.9-e.49enterprise We need answers to the following questions: 1. What are the requirements/impact in Oracle RAC when RHEL AS 2.1 vers

  • Flash Video Encoder - Sizing Video

    Hello I have an uncompressed video at 720x486. I need to encode it to Flash video at 640x480. When I import it into Flash Video Encoder, I use the custom settings to output a 640x480 movie at 30fps and 550kbps using the VP6 codec. Flash video outputs

  • Is pagination possible with jmx metrics on OEM?

    Hi, I implemented a MXBean interface which returns a list of objects (say, 100 rows of data). On oem, the list of 100 row data is displayed. However, I want to paginate that 100 rows, say 25 rows per display. Is this possible? I actually tried to hav

  • Need to move employees to another organizational unit

    Hi, Can any one explain and write down steps required while moving employees from one organisational unit to other organisational unit. Points will be given Thanks in advance

  • I send a '*IDN?' command to instrument. and he says...

    Hi. I am studying physics at the University of Seoul. I want to use Keithley 224 Current Source with Labview. I send a '*IDN?' command to Keithley224, then I receive strange message. 'NDCI+0.0000E+0,V+3.0000E+0,W+5.0000E-2' I think, this is the initi