Problem verifying if a given URL exists

Hi,
I have migrated from Java 1.2.2 to 1.3 (Windows NT version), and a big problem has arosen.
I used to verify if a given URL existed with this piece of code:
try {
URL url = new URL(path);
url.openStream();
} catch (Exceptions ....) {}
But right now, I get sometimes a "FileNotFoundException" when the file DOES EXIST.
Is this possible? It only occurs sometimes. Why?
I also tried this, but this piece of code never throws an exception:
URLConnection conn = url.openConnection();
conn.connect();
Thanks.

I had the same problem and solved it with this:
  public boolean exists(URL url) {
  try {
    HttpURLConnection con = (HttpURLConnection)url.openConnection();
    con.connect();
    int responseCode = con.getResponseCode();
    con.disconnect();
    return responseCode == HttpURLConnection.HTTP_NOT_FOUND;
  catch (IOException e) {
    e.printStackTrace();
    return false;
  }The code comes from these threads:
http://forum.java.sun.com/thread.jsp?forum=31&thread=206582
http://forum.java.sun.com/thread.jsp?forum=31&thread=249739

Similar Messages

  • FireFox images not loading in local folders (firebug error-Failed to load given URL)

    I am having difficulty when developing websites in local folders (Windows7 computer). The webpages I make are showing images in IE9 & Chrome but not FireFox (nor Safari nor Opera).
    In FireFox I get Firebug "Failed to load given URL" prompt.
    I am using html5 & external linked css stylesheet & the html/html5 & css code validates.
    I have tried using rel path ie images/image.gif & absolute path references ie C:/RPD_Programming/RPD WEB/amwcsnew/index.html
    and have tried using % to eliminate whitespace in references but I cannot get FireFox to display images!!
    This has been a problem for me for around 2 weeks now & is very frustrating. Some website code/templates I have downloaded from the internet display the websites properly (ie load images fine) when I open them locally in FireFox. Why does my code not allow the images to load in FireFox (paths/permissions/other issue??). How can I fix this?
    Here is example css & html5 not displaying images from local directory in FireFox (fine in IE9 & Chrome):
    style.css
    /* CSS Document */
    /*Basic Reset*/
    margin:0;
    padding:0;
    html{
    /* HTML5 display-role reset for older browsers */
    article, aside, details, figcaption, figure,
    footer, header, hgroup, menu, nav, section {
    display: block;
    body{
    width:1200px;
    margin:0 auto;
    header{
    height:450px;
    background:url("C:/RPD_Programming/RPD WEB/amwcsnew/images/header.gif");
    background-repeat:no-repeat;
    #mid{height:750px;
    background:url('C:/RPD_Programming/RPD_WEB/amwcsnew/images/mid.gif')no-repeat;
    footer{height:286px;
    background:url('C:/RPD_Programming/RPD WEB/amwcsnew/images/footer.gif')no-repeat;
    index.html
    <!doctype html><!-- simplified doctype works for all previous versions of HTML as well -->
    <!--html5 template from www.impressivewebs.com_modified by RPD-->
    <!-- Paul Irish's technique for targeting IE, modified to only target IE6, applied to the html element instead of body -->
    <!--[if lt IE 7 ]><html lang="en" class="no-js ie6"><![endif]-->
    <!--[if (gt IE 6)|!(IE)]><!--><html lang="en" class="no-js"><!--<![endif]-->
    <head>
    <!-- simplified character encoding -->
    <meta charset="utf-8">
    <title>amwcs-new</title>
    <meta name="description" content="amwcs">
    <meta name="author" content="rpd">
    <!-- Delete these two icon references once you've placed them in the root directory with these file names -->
    <!-- favicon 16x16 -->
    <link rel="shortcut icon" href="/favicon.ico">
    <!-- apple touch icon 57x57 -->
    <link rel="apple-touch-icon" href="/apple-touch-icon.png">
    <!-- Main style sheet. Change version number in query string to force styles refresh -->
    <!-- Link element no longer needs type attribute -->
    <!-- <link rel="stylesheet" type="text/css" media="all" href="css/style.css" />-->
    <link rel="stylesheet" href="css/style.css?v=2">
    <!-- Modernizr for feature detection of CSS3 and HTML5; must be placed in the "head" -->
    <!-- Script tag no longer needs type attribute -->
    <script src="js/modernizr-1.6.min.js"></script>
    <!-- Remove the script reference below if you're using Modernizr -->
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    </head>
    <!-- If possible, use the body as the container -->
    <!-- The "home" class is an example of a dynamic class created on the server for page-specific targeting
    <body class="home">-->
    <body>
    <!-- ******************************************************************** -->
    <!-- The content below is for demonstration of some common HTML5 elements -->
    <!-- More than likely you'll rip out everything except header/section/footer and start fresh -->
    <!-- First header has an ID so you can give it individual styles, and target stuff inside it
    <header id="hd1"> No way Hosay-not by default! Default is <header> tag (RPD edit) -->
    <header>
    <!-- "hgroup" is used to make two headings into one, to prevent a new document node from forming -->
    <hgroup>
    <h1>amwcs</h1>
    <h2>tagline</h2>
    </hgroup>
    <!-- Main nav, styled by targeting "#hd1 nav"; you can have more than one nav element per page -->
    <nav>
    <ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Services</a></li>
    <li><a href="#">Contact</a></li>
    </ul>
    </nav>
    </header><!--End header & or #hd1 header div id if used-->
    <!-- This is the main "div" that wraps the content generically; don't use "section" for this -->
    <div id="mid">
    <!-- The first of two "section" elements for demo purposes; optional class added for styling (hs1 = "home section 1") -->
    <section class="hs1">
    <!-- Each section should begin with a new h1 (not h2), and optionally a header -->
    <!-- You can have more than one header/footer pair on a page
    <header>
    <h1>This is a Page Sub Title</h1>
    </header> -->
    <p>Some content...</p>
    <!-- The h2 below is a sub heading relative to the h1 in this section, not for the whole document -->
    <h2>Demonstrating EM and STRONG</h2>
    <!-- "strong" is used for SEO and contextual hierarchy -->
    <p><strong>This text will have more importance (SEO-wise and contextually)</strong></p>
    <!-- "b" is used for stylistic offset of text that's NOT important contextually -->
    <p><b>This text has visual importance but has no contextual or SEO importance</b></p>
    <!-- "em" is used for colloquial-style emphasis -->
    <p>This is a <em>very</em> colloquial expression.</p>
    <!-- There can be multiple footers on each page -->
    <!-- Secondary headers and footers don't necesarily need ids; they can be targeted via context (i.e. ".hs1 footer")
    <footer>
    <!-- incite a riot: http://24ways.org/2009/incite-a-riot
    <p>Author: <cite>Louis Lazaris</cite></p>
    </footer> -->
    </section><!-- .hs1 -->
    <!-- This is another section; doesn't have header/footer because it's not required -->
    <section class="hs2">
    <h1>This is another section</h1>
    <p>This is some dummy content</p>
    </section><!-- .hs2 -->
    </div><!-- #mid -->
    <!-- The "aside" element could be a sidebar (outside an article or section) -->
    <!-- Or it could reference other tangentially-related content within an article or section
    <aside id="sidebar">
    <p>Sidebar content</p>
    </aside>-->
    <!-- The main footer has an ID for targeting, similar to the main header -->
    <footer >
    <p>copyright &copy; year</p>
    </footer>
    <!-- Remote jQuery with local fallback; taken from HTML5 Boilerplate http://html5boilerplate.com -->
    <!-- jQuery version might not be the latest; check jquery.com -->
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    <script>!window.jQuery && document.write(unescape('%3Cscript src="js/jquery-1.4.4.min.js"%3E%3C/script%3E'))</script>
    <!-- Below is your script file, which has a basic JavaScript design pattern that you can optionally use -->
    <!-- Keep this and plugin scripts at the bottom for faster page load; combining and minifying scripts is recommended -->
    <script src="js/general.js"></script>
    <!-- asynchronous analytics code by Mathias Bynens; change UA-XXXXX-X to your own code; http://mathiasbynens.be/notes/async-analytics-snippet -->
    <!-- this can also be placed in the <head> if you want page views to be tracked quicker -->
    <script>
    var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
    (function(d, t) {
    var g = d.createElement(t),
    s = d.getElementsByTagName(t)[0];
    g.async = true;
    g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    s.parentNode.insertBefore(g, s);
    })(document, 'script');
    </script>
    </body>
    </html>
    I am most grateful for help & look forward to replies & fixing this-thanks
    NB
    Is there a FireFox guide/manual in pdf format available anywhere? I have not found one yet & a FireFox reference might be useful!

    You need to use file:// as the protocol instead of C:/. The latter may never work (C:\ might).
    Where is the main HTML located ?
    Easiest if to store the images in a sub folder of the location because you can't go back via ../ beyond that root location for security reasons.
    See:
    *http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • PPoint OWA there was a problem verifying the certificate

    Hi, I installed Lync 2013 FE, edge and ARR. Recently, with your help, I finally made it work for web based meetings. People have A/V/Whiteboard/ but they are unable to use Share screens and PPoint. 
    I read that I need Office Web Application Server in order to make PPoint work so I followed online tutorial and installed it. As a certificate I at first used self signed but later as I added owa as SAN, I exported it from edge server and imported it in
    OWA Server. I am not sure if this is the way to do that.
    Error for share screen is that it is due to the network issues,
    Error for PPoint is "There was a problem verifying the certificate". Remote user use web browser in order to access meeting, upload the file without any problem, and it says Loading ..... , on the other side I have domain machine with lync client
    that receives notification to accept meeting content, after which error appears.
    Any ideas? 

    Hi all and thanks for your reply. 
    I used this command to create farm (didn't define internal fqdn)
    New-OfficeWebAppsFarm -ExternalURL https://lynweb.domain.com -CertificateName "ExternalCert"
    Everything went smoothly, I can access 
    https://owa.domain.local/hosting/discovery (but cert is shown as unsecured since url is not the same as in cert (Lyncweb.domain.com).
    Because I have split DNS, in my DNS I created lyncweb for the domain.com CNAME entry and I can successfully open https://lyncweb.domain.com/hosting/discovery form LAN.
    I found several mistakes in my config (at least I think so):
    1. In LyncFE I had under discoveryURL domain.local path, so this is why cert error was showing. It was able to access but because of the different URLs name that didn't match certificate name, I was getting an ssl error. - I changed it to lyncweb.domain.com/.....
    2. I didn't have external DNS name for lyncweb.domain.com. In fiddler I saw that it is trying to access to this URL and since it wasn't defined- therefor not able to access. - I created A host record.
    3. Firewall, since lyncweb was defined in ARR I needed to craete FW rule to let access OWA Server. - I added FW rule.
    Current situation is this:
    -- When I access through meeting.domain.com/Lync Client and start PPoint, on the remote client (teleworker where I started PPoint) presentation pops up on teleworker, I can go through the slides, but inside the LAN (second participant) on Lync Client or
    via meet.domain.com I am just getting "Loading ...." and nothing appears. (I tried disabling Firewall but didn't help - so it is not about firewall, especially since OWA and LyncCLient are in the same subnet)
    -- On the other hand when teleworker starts presentation and guest joins (both outside LAN), both can see  presentation.
    I thought that it is because I didn't have internal URL, so I added
    -InternalURL: https://lyncweb.domain.com
    Now I have both internal and external URL that is the same. But it didn't change the situation.
    Any suggestions?

  • Is it possible to dwnload a file from web with given URL into our local sap

    Hi every Body!
    Is it possible to download a file from web with given URL into local PC with abap.
    thanks
    vikram.c

    hi
    good
    go through this link, i hope this ll help you solve your problem
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f5d3c40a-0801-0010-55b7-9e3b01745a40
    thanks
    mrutyun^

  • Firefox is not redirecting to given url it is in ideal stage

    firefox is not redirecting to given url it is in ideal stage

    You can check for problems with preferences and try to rename or delete the prefs.js file and possible numbered prefs-##.js files and a possible user.js file to reset all prefs to the default values.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences
    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 or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can try to reset Firefox.
    *https://support.mozilla.org/kb/reset-firefox-easily-fix-most-problems
    If you reset Firefox then a new profile is created and some of your data (bookmarks, passwords, cookies, form data) is automatically imported and your current profile will be moved to the desktop (Old Firefox Data).
    You can recover more data from the old profile (be cautious with doing that).
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • List all the directories on a given url on remote server

    Could any body help me in Listing the files on a given URL directory on a remote server using Java.
    I have done this:
    File dir = new File("http://www.abc.com/web/data/sos/zip/tm/");
    String[] children = dir.list();
    if (children == null) {
    out.println("CANNOT FIND ANY FILE");    // IT IS ALWAYS GOING IN THIS CONDITION AND FAILING THEREFORE.
    // Either dir does not exist or is not a directory
    } else {
    for (int i=0; i<children.length; i++) {
    // Get filename of file or directory
    String filename = children;
    out.println("HI");

    kus wrote:
    There is a solution but not a very portable one, i.e. you can't use it to get a listing of files from any server that you happen to look at. But here are the steps you need to take:
    1. Use a browser (firefox, opera, etc.) to view the file listing and then view the source.
    2. Duplicate the retrieval of data from the given URL in Java (new URL(...), etc.)
    3. Parse the HTTP response and/or the HTML that the server returns to you to extract what you need.
    Step #3 is the biggest piece of work and the format you need to parse will depend on whatever the remote server hands to you. It's intended for humans, not machines; every server can decide how to format this and it even depends on the server's configuration how this data is presented to you. In any case, it's entirely up to you to make sense of whatever the server happens to throw back at you and if the server happens to present you a nice, picturesque page rather than a listing of files then your completely out of luck.He actually wasn't talking about http at all, so most of this thread has been a wild goose chase.

  • Is Exercise 9 Linux-Compatible? Having problems verifying Derby DB.

    I'm setting up the server side of this exercise, and am
    having a problem verifying (via verify.cfm) the data source,
    however, the data source verifies successfully in the CF admin.
    Here's the error that verify.cfm throws:
    quote:
    Error Executing Database Query.
    The conglomerate (96) requested does not exist.
    The error occurred in
    /var/www/apps/wwwroot/ex9_CF/reservations/verify.cfm: line 1
    1 : <cfquery name="testdb" datasource="reservations">
    2 : SELECT *
    3 : FROM RESERVATIONS
    SQLSTATE XSAI2
    SQL SELECT * FROM RESERVATIONS WHERE 0=0
    VENDORERRORCODE 30000
    DATASOURCE reservations
    Resources:
    * Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    * Search the Knowledge Base to find a solution to your
    problem.
    Browser Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3)
    Gecko/2008101315 Ubuntu/8.10 (intrepid) Firefox/3.0.3
    ColdFire/1.1.51.59
    Remote Address 127.0.0.1
    Referrer
    http://general.localhost/ex9_CF/reservations/
    Date/Time 10-Nov-08 04:09 PM
    Stack Trace
    at
    cfverify2ecfm564280480.runPage(/var/www/apps/wwwroot/ex9_CF/reservations/verify.cfm:1)
    at
    cfverify2ecfm564280480.runPage(/var/www/apps/wwwroot/ex9_CF/reservations/verify.cfm:1)
    java.sql.SQLException: The conglomerate (96) requested does
    not exist.
    at
    org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown
    Source)
    at
    org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown
    Source)
    at
    org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown
    Source)
    at
    org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown
    Source)
    at
    org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown
    Source)
    at
    org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown
    Source)
    at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown
    Source)
    at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown
    Source)
    at
    coldfusion.server.j2ee.sql.JRunStatement.execute(JRunStatement.java:348)
    at
    coldfusion.sql.Executive.executeQuery(Executive.java:1220)
    at
    coldfusion.sql.Executive.executeQuery(Executive.java:1008)
    at coldfusion.sql.Executive.executeQuery(Executive.java:939)
    at coldfusion.sql.SqlImpl.execute(SqlImpl.java:325)
    at
    coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:831)
    at
    coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:521)
    at
    cfverify2ecfm564280480.runPage(/var/www/apps/wwwroot/ex9_CF/reservations/verify.cfm:1)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
    at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
    at
    coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
    at
    coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:175)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at
    coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
    at
    coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    Caused by: java.sql.SQLException: The conglomerate (96)
    requested does not exist.
    at
    org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
    Source)
    at
    org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
    Source)
    ... 45 more

    I re-copied the zip contents to my web root, and now it's
    working, for whatever reason.

  • I use Firefox 16.0.2 on Leopard. Problem: after using succesfully an url on a site, original site(with url) has disappeared.

    I use Firefox 16.0.2 on Apple Leopard. Problem: when I use an url on a site, I am correctly transfered to the site of the url. But I can't go back again to the original site, on which the url was mentioned. the site has disappeared. Thanks in advance for your help!

    You can also open the links in a new tab with a middle click on the link.<br />
    That way you do not need to use the Back button, but can simply close a tab or otherwise return to the previous tab.<br />
    Also make sure that you have the cache enabled and that the cache is working.<br />
    Check the current cache usage on the about:cache page.
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • When i go to unistall i get, this pack package can not be open.Verify that the pack package exists a

    When i go to unistall i get, this pack package can not be open.Verify
    that the pack package exists and that u can acess it.Or contact the application
    vendor, to verify that this is a valid windows installer patch package.

    I am using a new hp laptop that is running windows 7

  • "Unable to find report specified by URL,Please verify that both Server URL and Report URL are correct". Performance Point Dashboard Designer (SP 2013), SSRS 2012 Report.

    Hello Everybody,
    I am using Sharepoint server 2013 , SQL Server 2012 SP1, PerfomancePoint and Reporting Services in SharePoint integrated mode.
    I built one report in SSDTusing an Analysis Services Cube. This report has 3 parameters. So the idea is use Dashboard Designer to use this SSRS Report and connect it with some PP Filters.
    The issue is that I am always obtaining "Unable to find report specified by URL,Please verify that both Server URL and Report URL are correct".
    I have the following settings in the PP Report:
    Server Mode: SharePoint Integrated
    SharePoint Site: http://MySharrepointSite:PortNumber/sites/bicenter
    Document library : Documents (selected from drop down, my report is deployed to document library)
    Report : report.rdl
    When I select the report from drop down list its giving the error in a pop up message box as "Unable
    to find report specified by URL,Please verify that both Server URL and Report URL are correct".
    I have tried to use the most simple report, only with one parameter, but is always displaying the error above.
    When I open the report directly from documents library its working fine and even it is working fine (
    when I deployed the report) but the issue is parameters are not showing.
    Any idea? Please help.
    Thanks in Advance.

    "Unable to connect to the server at CALYSTO\ReportService.
    Hello Tom,
    It should be "ReportServer" in the URL, not "ReportService".
    In "Reporting Service Configuration Manager" look up the correct URL. Open Internet Explorer with right-mouse click => "Run as Administrator" and open the URL, this should work. Navigate to "Side setting" (on top right side),
    go to tab "Security" and add your account with role "System Administrator". Afterwards you should be able to open the URL without running IE as admin.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • An IOException was thrown trying to access the WSDL at the given URL.

    Hello
    I deployed webservices on weblogic 8.1.5. I defined Security policy on webservices. The server is allowed to access from both inside and outside our domain. When I access with internal ip address, trying to test methods from Launch Test Page from Admin console. When I test a method, it prompts for user name and password. I enter username and password, the invocation is successful.
    After I access Launch Test Page with external ipaddress (from outside the domain), trying to test method, the server did not ask me username and password, I get following exception. The only port open to external world is 80. The apache is configured with wlplugin and divert all trafic to port 7001.
    I was wondering if any one has seen this and how did you fix. Please advise. I appriciate your help.
    Thank you,
    Balaji
    <Apr 18, 2006 5:50:12 AM CDT> <Info> <WebService> <BEA-220094> <An IOException was thrown trying to access the WSDL at the given URL.>
    <Apr 18, 2006 5:50:12 AM CDT> <Info> <WebService> <BEA-220034> <A stack trace associated with message 220094 follows:
    java.io.FileNotFoundException: Response: '403: Forbidden' for url: 'http://XXX.XXX.XX.XX:80/eventws/EventManagementService?WSDL'
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:425)
    at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:28)
    at weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefinition(DefinitionFactory.java:126)
    at weblogic.webservice.tools.wsdlp.WSDLParser.<init>(WSDLParser.java:76)
    at weblogic.webservice.WebServiceFactory.createFromWSDL(WebServiceFactory.java:108)
    at weblogic.webservice.WebServiceFactory.createFromWSDL(WebServiceFactory.java:84)
    at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:295)
    at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:343)
    at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:266)
    at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158)
    at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:254)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    >
    <Apr 18, 2006 5:51:32 AM CDT> <Info> <WebService> <BEA-220094> <An IOException was thrown trying to access the WSDL at the given URL.>
    <Apr 18, 2006 5:51:32 AM CDT> <Info> <WebService> <BEA-220034> <A stack trace associated with message 220094 follows:
    java.io.FileNotFoundException: Response: '403: Forbidden' for url: 'http://XXX.XXX.XX.XX:80/eventws/EventManagementService?WSDL'
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:425)
    at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:28)
    at weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefinition(DefinitionFactory.java:126)
    at weblogic.webservice.tools.wsdlp.WSDLParser.<init>(WSDLParser.java:76)
    at weblogic.webservice.WebServiceFactory.createFromWSDL(WebServiceFactory.java:108)
    at weblogic.webservice.WebServiceFactory.createFromWSDL(WebServiceFactory.java:84)
    at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:295)
    at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:343)
    at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:266)
    at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158)
    at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:254)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    >
    <Apr 18, 2006 5:54:57 AM CDT> <Info> <WebService> <BEA-220094> <An IOException was thrown trying to access the WSDL at the given URL.>
    <Apr 18, 2006 5:54:57 AM CDT> <Info> <WebService> <BEA-220034> <A stack trace associated with message 220094 follows:
    java.io.FileNotFoundException: Response: '403: Forbidden' for url: 'http://XXX.XXX.XX.XX:80/eventws/EventManagementService?WSDL'
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:425)
    at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:28)
    at weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefinition(DefinitionFactory.java:126)
    at weblogic.webservice.tools.wsdlp.WSDLParser.<init>(WSDLParser.java:76)
    at weblogic.webservice.WebServiceFactory.createFromWSDL(WebServiceFactory.java:108)
    at weblogic.webservice.WebServiceFactory.createFromWSDL(WebServiceFactory.java:84)
    at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:295)
    at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:343)
    at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:266)
    at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158)
    at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:254)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)<pre></pre><pre></pre>urlurl

    Hi Francois,
    The JAR file generated by the <clientgen> Ant task, has a static WSDL inside it.
    To get your JAX-RPC client to use it, write code that looks like this:
    MyService_Impl service = null;
    MyServicePort port = null;
    try
    // There are two constructors for every XXX_Impl class.
    // The one that accepts a wsdlURL (as a String) will
    // request the WSDL from the service provider. The
    // no-arg one will just use the statis WSDL in the
    // client.jar generated by the <clientgen> Ant task.
    service = new MyService_Impl();
    port = service.getMyServicePort();
    MyObject response = port.myServiceOperation();
    Again, this will cause the WLS client-side JAX-RPC classes, in the webserviceclient.jar,
    to use the static WSDL (in the client.jar generated by the <clientgen> Ant task)
    to invoke the target web service. It will not send a request to the target web
    service to retrieve it's WSDL, because it already has it.
    Regards,
    Mike Wooten
    Francois Staes <[email protected]> wrote:
    >
    Hello,
    I'm trying to access some simple web services which are implemented using
    some Perl module (don't ask ....).
    After I've gotten their WSDL file, I can successfully generate stubs
    using
    the clientgen ant task.
    However, when I try to access the webservice from within my EJB's, I
    get the
    following error message:
    An IOException was thrown trying to access the WSDL at the given URL.
    java.io.FileNotFoundException: Response: '411: Length Required' for url:
    'http://petest01:8082/cgi-bin/WebStore.cgi'
    It seems as if the perl SOAP implementation doesn't allow me to check
    their
    WSDL file. Just sending the SOAP POST messages works fine.
    I explicitly specified the 'saveWSDL' option to the clientgen task, but
    it
    still tries to access the WSDL file at runtime. Any way to resolv this
    issue?
    Regards,
    Francois Staes.

  • Provide steps to send Root CA certificate to the Lync client, getting error" There was a problem verifying certificate from the server"

    Hi,
      I Build an Lync 2013 set up with FEpool, Director pool and Exchange server is integrated. I have windows 8 client machine, with Lync client installed. When I try to login to the lync client, I am getting error like"There was a problem verifying
    certificate from the server".
    When I installed ROOT CA cert  manually on client machine I am able to login to the lync client. similarly if I add my client machine in my domain, I am able to login to the Lync client.
    Now is there any other way to send the certificate automatically to the client machine (Which are NOT part of the DOMAIN) from the server, instead of manual installation process.
    Please help me troubleshoot this problem

    Agree with S Guna, there is no easy way to push a certificate automatically to a client that you don't control other than building an installer package and asking them to run it.  In this situation, if there are a lot of non-domain joined machines
    a third party certificate is the way you need to go.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications

  • Lync 2010 Certificate Issue - "There was a problem verifying your certificate from the server"

    Greetings.
    My Issue:
    Lync 2010 client does not connect to server;error displayed "Cannot sign into Lync. There was a problem verifying the certificate from the server."
    Description:
    The client is running on my Windows 7 box, and my CA server is a Windows Server 2003 box. I have installed the hotfix on the Server 2003 box to update the Web Enrollment portion of CA to allow for newer clients (Vista and 7) to receive certificates from
    this server. 
    Lync server is running on Server 2008 R2 STD, installation was a success.
    The Windows 7 box is a part of the domain.
    I have manually exported the Root CA from my Enterprise CA server from
    Trusted Root Certification Authorities -> Certificates and imported into the same location on my Windows 7 box. 
    If I look at the certification path on the Root CA, on my Windows 7 box,  it says "The certificate is OK." The same goes for the servers involved. 
    Still nothing.
    I have read the other forum posts on here about people having success once they manually import the Root CA from the Enterprise CA server, but this is not my case here. 
    All certificates are successfully assigned on the Lync server box; however, I did have to manually import the Root CA into Lync server's
    Trusted Root Certification Authorities -> Certificates before I could successfully assign them. Had to do this on another deployment I completed, so I didn't think anything of it.
    To recap: it seems that even with my Root CA imported into my Windows 7 box I can still not connect to my Lync server with the client, and I get the error message "There was a problem verifying the certificate from the server."

    Solved
    Solution :  Export certificate from Lync Server Start > Administrative Tools > IIS > Server Certificate > Export >   abc.pfx   save it,  Copy and place the certificate where Ms Lync 2010 client is installed or getting certificate
    error.  Follow these steps on client machine to install certificate 
    Run > mmc > add or remove snap in > certificates > computer account > local computer >finish > ok > expand Certificate > Trusted Root Certification Authorities > Certificate > All task > Import > copy abc.pfx certificate
    and delete unnecessary certificate from there.
    Restart Client machine and open microsoft Lync client 2010 and open option menu > Personal > Advanced > choose Auto Configuration > save ok

  • Problem in creating new versions for existing DIR using CV01N

    I am working in SAP ERP 6.0 EHP 4.0 system.
    I have problem in creating new versions for existing DIR using CV01N
    I create a DIR version 00 with functional location and mpd cycles. Then when i try to create a new version by copying the contents created from already created document.I change the MPD cycles in the new version and save it.
    once when i display the first document created the mpdcycle specified in version 01 is copied to the 00 version.
    The document is inconsistent where versioning of document doesnot work properly wrt MPDCYCLE and MP HEADER.
    The problem which i found was the document identification guid remains the same for all the document versions getting created.
    The same is working fine in SAP ERP6.0 EHP3.0 sytem.
    Please someone help me in resolving the above issue.
    Regards,
    Prasad.B

    There is a change in the standard code.The reason for the above problem was  because of a missing Enhancemnet point in a standard function module 'CV110_DOC_CREATE_WITH_TEMPLATE'.
    IS-ADEC-MPD  - Enhancement to copy MPD data
    ENHANCEMENT-POINT CV110_DOC_CREATE_WTEMPL_01 SPOTS ES_SAPLCV110.
    +*$*$-Start: CV110_DOC_CREATE_WTEMPL_01----------------------------------------------------------$*$*+
    +**ENHANCEMENT 1  ZSF_AD_MPD_SAPLCV110.    "active version**+
    +*** copy MPD relevant data from templ. doc to current doc**+
      +**CALL FUNCTION 'MPD02_COPY_MPD_DATA'**+
        +**EXPORTING**+
          +**is_draw = ls_draw**+
        +**TABLES**+
          +**ct_drad = lt_drad.**+
    +*ENDENHANCEMENT.**$*$-End:   CV110_DOC_CREATE_WTEMPL_01----------------------------------------------------------$*$*+
    Created a custom enhancement point similar to SAP ECC6.0 EHP 3.0 system.
    The reason was the buffer was not getting cleared previously.After inserting the above code the DIR's are getting created withot any issues.
    Regards,
    Prasad.B

  • [help]how to know whether the given column exists in the table or not????

    Hi all, can anyone tell me how to write a C# code help me to know whether the given field exists.
    If it doesnt exists then i want to alter the table to include this column also
    I am able to write the code for alter table but i m not sure how do i check for its existence/nonexistence
    My Altering code
    {color:#800000}cmd.CommandText = "alter table " + row.ToString() + " add(" + sQuality + " varchar2(50), " +
    sTimeStamp + " varchar2(50), " +
    sValue + " varchar2(50))";
    cmd.CommandType = CommandType.Text;
    cmd.ExecuteReader();
    {color}

    Just iterate the datatable after completion and check for your column.
            public static DataTable MaterializeTableStructure(string _connectionString, string _tableName)
                DataSet ds = null;
                using (OracleConnection _oraconn = new OracleConnection(_connectionString))
                    try
                        _oraconn.Open();
                        string sql = "SELECT COLUMN_NAME, DATA_TYPE, NULLABLE, DATA_LENGTH, DATA_PRECISION, DATA_SCALE FROM user_tab_columns where table_name='" + _tableName + "'";
                        using (OracleCommand cmd = new OracleCommand(sql, _oraconn))
                            cmd.CommandType = CommandType.Text;
                            using (OracleDataAdapter da = new OracleDataAdapter(cmd))
                                ds = new DataSet("MaterializeTableStructure");
                                da.Fill(ds);
                    catch (OracleException _oraEx)
                        throw (_oraEx); // Actually rethrow
                    catch (System.Exception _sysEx)
                        throw (_sysEx); // Actually rethrow
                    finally
                        if (_oraconn.State == ConnectionState.Broken || _oraconn.State == ConnectionState.Open)
                            _oraconn.Close();
                if (ds != null)
                    return ds.Tables[0];
                else
                    return null;
            }r,
    dennis

Maybe you are looking for

  • Migo-Cancelation of good receipt.

    Hi gurús:             Im trying to do a  cancellation of a good receipt. The material have active the inspecction setup in the material master record. The system, during good receipt, create an inspection lot, but the material doesnt have an inspecti

  • Page 1 missing Currency Symbol

    Hello Guys, I have a financial report, and I need to show currency symbol once on every page (first line on every page). I go to the Number tab on the field format, click Customize, then select the "Currency Symbol" tab and check 2 options - "Enable

  • ICal events have duplicated, now disappearing in front of my very eyes? What's up

    Yesterday I opened iCal on my MacBook Pro to find that all my events were duplicated; today, some of them are totally gone and some are disappearing in front of my very eyes. Today, there is a new calendar listed at the left for my .me account, a dup

  • DIP profile

    Hi I want to configure the DIP profile for project system - costumer order project so please send the details I have tried to create the DIP profile and assigned to doc. type IN in sales B and also assigned WBS in acct. assignment tab when i run DP81

  • Cannot overwrite query

    Hi All, Did anyone face the same problem, when user want to save a query and overwrite the existing query, the SAP system automatically shut down. I did try to restart the SAP, but the same thing happen. Try on another user PC also have the same prob