Regarding URL Connection Creation.

Hi,
I am trying to create a URL Connection in JDev 11.1.2, and using the following JDev RSS URL:
http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/132361.xml
However, when I am testing the connection, its saying "Specified URL Connection is not accessible.".
However, the same link when I access from the browser, its accessible.
I have tried setting the proxy as well but same result.
Is this a known issue or am I missing something?
Thanks,
Lalit.

Lalit,
It is almost certainly a problem with your proxy configuration, as it works fine for me (with no proxy in between).
John

Similar Messages

  • ADF mobile url Connection

    Not able to make connection for the rest urls of the webcenter spaces(like rest urls to fetch activities list , discussion)
    Ex: Tried Connecting the url :http://localhost:8888/rest/api/resourceIndex with the basic authentication ,but got an exception message as:"Specified url is not accessible"
    Edited by: user12780347 on Nov 14, 2012 8:43 PM

    Hi, ADF Mobile uses the same URL Connection creation wizard as any other ADF application, so its behavior is not mobile specific. That said, you may want to try the following:
    - append "/" to the end and see if that helps
    - If using WLS security with basic HTTP Authentication, ensure the "Realm" field is populated correctly based on your WLS setup.
    The error message indicates that it's able to resolve "localhost" but just can't connect to this REST service. If you are getting proxy server issue, then you will probably get "host not reacheable" error.
    One thing to double check is whether you get the basic HTTP auth challenge when you use a browser to hit this link.
    Lastly, you probably don't want to use localhost in the URL data control. Only iOS simulators can resolve "localhost" when the iOS simulator and the WLS server are running in the same machine. Android can't. Recommendation is to set up your WLS so it can be accessed with the machine's actual IP address, and you would create your URL data control to against that real IP. This would ensure both emulators and devices can hit the JSON service.
    Thanks,
    Joe Huang

  • Map Viewer URL Connection Issue

    Hi,
    I have an UI project, for which i have created a Deployment Profile named 'adfXXXXXUI' nothing but created a adflibrary for that UI project.
    While creating the adf jar, i have come across an Option called 'Connections' .
    Here i have selected Connection Names Only ... means i will be getting all the names of the connections i have created & those will be reflected in my local connection.xml file.
    After configuring the rest of the params, i deployed my UI project to "deploy -> adfXXXXXUI.jar".
    And we have used this jar to integrate with another UI application ... And the taskflows avilable in the jar will be used in the other UI application.
    Now here is my problem ... Actually my connections.xml file has a URL Connection. This is how it looks like....
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <References xmlns="http://xmlns.oracle.com/adf/jndi">
    <Reference name="MapServer" className="oracle.adf.model.connection.url.HttpURLConnection" xmlns="">
    <Factory className="oracle.adf.model.connection.url.URLConnectionFactory"/>
    <RefAddresses>
    <XmlRefAddr addrType="MapServer">
    <Contents>
    <urlconnection name="MapServer" url="http://sbsys1.intra.schneider.com:8109/mapviewer"/>
    </Contents>
    </XmlRefAddr>
    </RefAddresses>
    </Reference><Reference name="snibuilddb" className="oracle.jdeveloper.db.adapter.DatabaseProvider" credentialStoreKey="snibuilddb" xmlns="">
    <Factory className="oracle.jdeveloper.db.adapter.DatabaseProviderFactory"/>
    <RefAddresses>
    <StringRefAddr addrType="subtype">
    <Contents>oraJDBC</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="user">
    <Contents>sni_guest</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="port">
    <Contents>3720</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="hostname">
    <Contents>uxsys186v</Contents>
    </StringRefAddr>
    <SecureRefAddr addrType="password"/>
    <StringRefAddr addrType="serviceName">
    <Contents>snit0.world</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="DeployPassword">
    <Contents>true</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="oraDriverType">
    <Contents>thin</Contents>
    </StringRefAddr>
    </RefAddresses>
    </Reference>
    </References>
    All the taskflows avaialble in my jar using the URL connection which mentioned above. But the adflibray jar got created with a file named 'jar-connection.xml', where i can see <Reference/> as an empty Tag. Because i have selected connections name only as an option when creating the adflibrary for my UI.
    Hence it is appearing so ... But when i added this jar to the other application, i have dragged & dropped the taskflows as a region on to the JSPX page. And i started running the page. On the page .... i can see only the data which is not making use of MapServer connection defiition. Along with that, some maps needs to rendered .. but that is not happening. Rest of the page with the filter critieria is being displayed properly.
    Now i have selected Include Connection Details as an option, by editing the adfLibrary Deployment profile of the UI & redeployed & found the same thing. Like, though i specify the Include Connection Details as an option ... i did not see those URL connection details in my jar-connection.xml file.Still it is not working.
    All the taskflows inside the jar are trying to use this URL connection from jar-connection.xml, which is avaiable inside the adfLibUI.jar.
    I tried with a scenorio some thing like ... For the application to which i have added this adfUILibrary, there itself i created a URLConnection ... but it did not worked as well.
    Requesting you to let me know how can i get avail of my URL connection in to my jar ...
    Thanks & Regards,
    Kiran Konjeti

    This is purely ssl issue. You can try adding the below logic first.. This code basically sets ssl properties for us.
    import java.security.Security;
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    Properties properties = System.getProperties();
    String handlers = System.getProperty("java.protocol.handler.pkgs");
    if (handlers == null) {
        // nothing specified yet (expected case)
        properties.put("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
    else {
        // something already there, put ourselves out front
        properties.put("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol|".concat(handlers));     
    System.setProperties(properties);
    Below you start your code....

  • Http Request through URL Connection?

    Hi ,
    Iam using an Applet (under JRE 1.3.0). Iam trying to send a Http Request using URL Connection. It is working fine . However, if the response time of the server is more than 3 minutes , the Response is not coming back to the server and the Applet is in a loop trying to read from the Server. I have observed that the request is sent to the server and it is processed successfully.
    When I test it in my local devp. machine it is working fine till 15 minutes which is my requirement.
    Can anybody suggest what should be the possible reasons and any workaround for it?
    Regards,
    TejoKiran.Y

    Iam copying the code fragments for the Applet Iam using . Is it a problem with the code? I heard that the URLConnection never times out . How is that it is not able to read the Response?
    <CODE >
    <HttpMessage>
    public class HttpMessage {
    URL servlet = null;
    Hashtable headers = null;
    public HttpMessage(URL servlet) {
    this.servlet = servlet;
    public InputStream sendGetMessage(Properties args) throws IOException {
    String argString = ""; // default
    if (args != null) {
    argString = "?" + toEncodedString(args);
    URL url = new URL(servlet.toExternalForm() + argString);
    // Turn off caching
    URLConnection con = url.openConnection();
    con.setUseCaches(false);
    // Send headers
    sendHeaders(con);
    return con.getInputStream();
    private void sendHeaders(URLConnection con) {
    if (headers != null) {
    Enumeration enum = headers.keys();
    while (enum.hasMoreElements()) {
    String name = (String) enum.nextElement();
    String value = (String) headers.get(name);
    con.setRequestProperty(name, value);
    </HttpMssage>
    <Code used to Read the Response.>
                        URL url = new URL(getDocumentBase(),"/ccls/test/delay.jsp");
                        HttpMessage msg = new HttpMessage(url);
                        InputStream in = msg.sendGetMessage(null);
                             char[] buff = new char[2048];
                             int bytesRead;
                             int ch;
                             StringBuffer sbtextbox = new StringBuffer("");
                             DataInputStream data = new DataInputStream(
                                                           new BufferedInputStream(in));
                             String line;
                        while ((line = data.readLine()) != null) {
                                  sbtextbox.append(line+"\r\n");
    </Code used to Read the Response.>
    </CODE>

  • JNDI connection creation timeouts

    Hi,
    I've a question concerning connection creation timeouts. The Tutorial (http://java.sun.com/products/jndi/tutorial/ldap/connect/create.html) says "By default, this timeout period is the network (TCP) timeout value, which is in the order of a few minutes. " But which exact tcp-value is it? tcp_keepalive_time? I need to know the default value of this.
    Thanx for any hints.
    Regards,
    Ingo

    Hi,
    Please let me know if you found the answer. I have the same query. Also, is there any way using JNDI to avoid closing the connection due to TCP timeout as a firewall may time-out after a specified period of inactivity.? That is, If a long-running query is established with LDAP server, can the application keep the session active by sending a keep-alive across the connection?
    Thanks in advance.

  • Want to  hide middleware selection in connection creation

    Hi all,
    I want hide or remove the middle ware drivers in Middleware selection during connection creation  for business objects client version. I dont want my users to use some middlewares in the connection creation.
    Thanks in advance.

    Hi,
    You can disable the middleware driver by going onto the BO server:
    Go to "Add/Remove Programs" > select "Modify" > Go to "Database Access" > here you can diable all the drivers you don't need
    Regards
    Remi

  • How set up URL Connection Factory/Resource?

    Hi,
    How to set up URL connection Factory, Exactly like JDBC connection Pool i.e. specifying
    Max. No. of Connection, Intial capacity etc.
    I'm able to find this much only.
    <WebServer URLResource="weblogic.httpd.url.myURL=http://localhost:7701/blah"
    />
    But If i want to set Max. Capacity/ Intial capacity for URL Connection Factory,
    Where to specify it?
    Will you please help me?
    Regards,
    Devendra

    Hi,
    The Simplest Way to Load a Property file (Which is outside of your Application) ..is.
    Just Place the Property file in the Server Classpath...or in the "C:\bea103\user_projects\domains\7001_Domain\lib" folder of your Domain. It means somehow the Property file should be available in the Server Classpath...
    Now Please write the following code in your Application to read the Property file:
    java.util.Properties prop = new java.util.Properties();
    java.io.InputStream stream=this.getClass().getClassLoader().getResourceAsStream(“my.properties”);
    prop.load(stream);
    String hostProperty = p.getProperty(“host.name”);
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com/generalweblogic/   (WebLogic Wonders Are Here)

  • Could not contact the agent. check wheather the url connected to the agent.

    i am having the problem with the error message " could not contact the agent. check wheather the url connected to the agent is null". This error occurs while login with credentials, and because of this i cant open the em page, please help me to solve this problem

    Hi,
    Can you please confirm the following:
    1. Are you trying to login to Grid Control, when you are getting this error?
    2. If yes, what was the version of Grid Control?
    3. Provide the output of commands:
    ./emctl status oms -details
    ./emctl status agent
    Best Regards,
    Venkat

  • Junit : how to create JDBC URL connection

    hi folks,
    I am implementing JUnit in my application , for that I have seen srdemo application every thing is fine but i havent get how to configure JDBC URL connection 'SRServiceLocalTesting' ? can any body tell me how to do it.
    Thanks in advance
    Regards
    Pravin

    Hi,
    Have a look,
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/odi_project_xml-to-table/odi_project_xml-to-table.htm
    Thanks,
    Guru

  • Big headache with URL connection

    Hi, guys.
    i wrote an applet that measures response time of some html components, like gifs! The applet should return this wasted time by the actionperform method be executed, since this method opens a url connection with a html component. So it might return the final response time, but the result is always 0 !!! Please, could anybody help me?
    Regards Euclides.
    public void actionPerformed(java.awt.event.ActionEvent actionEvent) {
    long valor;
    Integer valornovo;
    String valor1,tam1,tarefa1;
    JTextField aux;
    tam1 = (String)ivjJComboBox1.getSelectedItem();
    tarefa1 = (String)ivjJComboBox2.getSelectedItem();
    valor = mandabala(tam1,tarefa1);
    valor1 = Long.toString(valor);
    //delayField = new JTextField(Long.toString(delay), 6);
    //valor1 = Long.toString(valor);
    ivjJTextField1.setEnabled( true );
    ivjJTextField1.setText(valor1);
    validate();
    public long mandabala(String param, String param1) {
    long time;
    long time1;
    BufferedInputStream in;
    java.net.HttpURLConnection conn;
    java.net.URL url;
    url = null;
    if (param == "100")
    byte[] buffer = new byte[99990000];
    try {
    url = new java.net.URL("http://10.0.135.15/teste.gif");
    // url = constructURL("http://10.0.135.15/performance/teste.gif");
    conn = (HttpURLConnection)url.openConnection();
    time = System.currentTimeMillis();
    //conn("http://www.dataprev.gov.br/performance/teste.gif");
    //conn("http://10.0.135.15/performance/teste.gif");
    conn.connect();
    time1 = System.currentTimeMillis();
    in = new BufferedInputStream(conn.getInputStream());
    int x = 0;
    while((x = in.read(buffer))!=-1)
    timedif = System.currentTimeMillis() - time;
    in.close();
    catch(Exception e) {
    System.out.println("Erro de conexao");

    I read it really quickly, so I apologize if you've checked this already...
    Your while loop is not executing the statement you are using to compute the timediff variable. The while loop in.read() method returns with a value of say '63000' when the .gif file is read. Since 63000!=-1 the loop exits immediately without executing the statement (System.currentTime()) in the middle.
    To correct this, you should do the following.
    long timediff=0;
    long starttime=System.currentTimeInMillis();
    int character=0;
    while( (character=in.read()) != -1 );
    timediff = System.currentTimeINMillis() - starttime;
    //return timediff;

  • Close URL Connection netstat

    hello all,
    I hope you can help me.
    Please have a look at my code below
    I open an URL Connection but I can't close it.
    If i type in a DOS Box netstat I see a lot of connection.
    Now my question is how can I close the connection.
    m_http.disconnect() seems not to work.
    public class Unbenannt1 extends Applet
      Button button1 = new Button();
      private HttpURLConnection m_http = null;
      private URL m_MyAlarmURL = null;
      private URLConnection m_MyURLConnection = null;
      private long m_TimeAlarmXML = 0;
      private boolean m_TimeUpdate = true;
      /**Das Applet initialisieren*/
      public void init()
        String a_str = "http://"+ getCodeBase().getHost() + "/x.xml";
        try
          m_MyAlarmURL = new URL( a_str );
        catch ( MalformedURLException ie )
        try
          jbInit();
        catch(Exception e)
          e.printStackTrace();
      /**Initialisierung der Komponenten*/
      private void jbInit() throws Exception
        button1.setLabel("button1");
        button1.setBounds(new Rectangle(27, 28, 78, 27));
        button1.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(ActionEvent e) {
            button1_actionPerformed(e);
        setLayout(null);
        setBackground(java.awt.Color.lightGray);
        setSize(426,266);
        this.add(button1, null);
      void button1_actionPerformed(ActionEvent e)
        int a_int = 0;
        try
            m_MyURLConnection = m_MyAlarmURL.openConnection();
            m_http = (HttpURLConnection)m_MyURLConnection;
            m_http.setRequestMethod( "HEAD" );
            m_http.setUseCaches(false);
            m_http.connect();
            a_int = m_http.getResponseCode();
            m_http.disconnect();
            m_http = null;
            m_MyURLConnection = null;
            System.gc();
          catch ( java.io.IOException ioe  )
            a_int = 404;
    }Thanks a lot
    Prediger

    Usually those connections linger around for some time, and will then be closed by the OS once a certain timeout has been reached. I don't know how to change that timeout, though.
    Btw: the docs don't claim that the connection will be closed. The description for disconnect() is "Indicates that other requests to the server are unlikely in the near future"
    If you still see the connection after a while, then something is wrong, but I've seen connections like that hang around for several minutes even after the JVM was terminated.
    Thomas

  • How to make pool of  url connections in wls?

    Hi, i have a project in which i have to make a http post to multiple web
              servers to retrieve
              XML files in response to user requests. Right now i just open the
              url for each request.
              Is there any way to pool URL connections in weblogic
              thanks
              wasiq
              

    Are u using Custom Connection Pool or some App Servers Conn Pool for LDAP Connection?
    If you are opening LDAP Connection in your program code and wondering how to monitor, then it needs to be done on the LDAP Server side. Not from the application.

  • Set timeout for URL connection in java1.4

    hi
    I want to set timeout for URL connection in java 1.4..
    java 5.0 provides with a setTimeout(int ) method but how should it be done in 1.4 environment
    Thanks in advance
    sneha

    sun.net.client.defaultConnectTimeout (default: -1)
    sun.net.client.defaultReadTimeout (default: -1)
    See the [Networking Properties|http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html].

  • Encrypting authentication details - HTTP URL Connection

    Hi,
    We have a Java application which retreives HTML content from intranet page using HTTPURLConnection, displays the portion of the content. The site to which we are connecting using HTTPURLConnection requires baisc user authentication and we are passing the user name and passowrd using BASE 64 encoding in the request header. Now this intranet site is going to be hosted externally. Just wanted to know the different options on how to send the user name and password in ecnrypted format.Is the recommendation is just to enable HTTPS for that site and pass user name and password using HTTP URL Connection API? Or are there any other options? Appreciate any inputs.
    Thanks.

    http://java.sun.com/javase/6/docs/technotes/guides/net/http-auth.html

  • HttpsURLConnection URL connection issue

    Hi All,
    I need to create URL connection with HTTPS URL. I can run Main java class successfully in machine which hosted in SAP Java server, but fail to run integrate it with e-commence application. When depployed in to SAP Java server cannot open HttpsURLConnection and always return CalssCastexception. However same code run as Java Main class
    Is this can be a (SSL) Handshake? or is this SSL issue?
    MyCode:
    String httpsURL = "https://encrypted.google.com/";
        URL myurl = new URL(httpsURL);
        HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection();
        InputStream ins = con.getInputStream();
        InputStreamReader isr = new InputStreamReader(ins);
        BufferedReader in = new BufferedReader(isr);
        String inputLine;
        while ((inputLine = in.readLine()) != null) {
          System.out.println(inputLine);
        in.close();
    Thank You

    This is purely ssl issue. You can try adding the below logic first.. This code basically sets ssl properties for us.
    import java.security.Security;
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    Properties properties = System.getProperties();
    String handlers = System.getProperty("java.protocol.handler.pkgs");
    if (handlers == null) {
        // nothing specified yet (expected case)
        properties.put("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
    else {
        // something already there, put ourselves out front
        properties.put("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol|".concat(handlers));     
    System.setProperties(properties);
    Below you start your code....

Maybe you are looking for

  • Support desk queries on solution manager

    Hi All I have few queries on solution manager support desk functionality. 1.Is this the only way to create support desk message HELP-CREATE support desk Message from each individual system?? 2.In our scenario,when we are creating the message we would

  • IPod nano no longer syncs with iTunes

    Lately when I attempt to sync my 2nd generation nano to iTunes, the iPod will not show as being recognized and the software becomes unresponsive. I do get the "do not disconnect" message on the iPod, but I must disconnect because there is no other op

  • How do I continue to be able to download Adobe pdf files with FF4.0 as I was able to with all previous version?

    With FF 4.0 I can no longer download Adobe pdf files. At any website when I click the pdf icon something is displayed about a plugin-handler and nothing further happens - there is either no download or the download stops. Sometimes a partial frame of

  • How & where to use Java script to create new button in object detail page

    Hi All, I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD. Thanks in advan

  • Clip Art Suggestions?

    Does anyone know of any good clip art collections other than Art Explosion? I have an older Art Explosion and I'm not too happy with it - bland images and too many duplicates. I would like to find a clip art package that has decent, Macintosh-friendl