The following is working as a Java application but not as a DynPro App

Hello,
Please have a look at the following code:
URL testURL = new URL("http://<host>/error.txt");
HttpURLConnection c = (HttpURLConnection)(testURL.openConnection());
c.setDoInput(true);
c.setDoOutput(true);
c.setRequestProperty("Connection","Keep-Alive");
c.setRequestProperty("Proxy-Connection","Keep-Alive");
c.setRequestMethod("GET");
c.setUseCaches(false);
c.connect();
int cl = c.getContentLength();
DataInputStream dis = new DataInputStream(c.getInputStream());
This code is working well when I run it as an independent Java application but when I "plant" this code on a DynPro application I receive an I/O Exception at this line:
DataInputStream dis = new DataInputStream(c.getInputStream());
Can anyone please tell me why?

503 error means a bit different thing. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
<i><b>10.5.4 503 Service Unavailable</b>
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
      Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.
</i>
Can you track requests from both stand-alone Java and WD application via some HTTP tunneling tool to check differences in headers, encoding, etc?
VS

Similar Messages

  • Did download OS X Mountain Lion and see the features in my applications, but not reflecting in my APPS purchases.

    did download OS X Mountain Lion and see the features in my applications, but not reflecting in my APPS purchases.
    also this takes huge amount of time, almost 10 hours to download, even using 3G Net connection.

    Hi kiwirudy,
    I've had the same problem more than once since I started trying to download my 14 April purchase of OS X Mountain Lion.
    I found a property list called manifest.plist in my ~/Library/Application Support/AppStore folder which had a Boolean property called failed checked. I unchecked it and afterwards I was able to resume my download.
    Here are some steps I've found useful:
    Close the Mac App Store.
    make a copy of the  ~/Library/Application Support/AppStore folder. For some strange reason the Mac App Store likes to just delete it in some circumstances, which will mean that one has to start one's download again from the very beginning.
    Double click on the manifest.plist in one's ~/Library/Application Support/AppStore folder.
    This should open it in Property List Editor.
    Expand all the nodes (holding down the alt key and clicking on the highest collapsed node should do it.
    Find a key called failed of type Boolean and uncheck it.
    Save the manifest.plist and close it.
    Open the Mac App Store.
    The red message "an error has occured" should now be gone and one should be able to resume one's download.
    In the event that the ~/Library/Application Support/AppStore folder gets deleted:
    start the download again (it will start from the beginning), pause it and close the Mac App Store.
    copy your backup copy of the pkg file back to its sub-folder (it's a numbered folder in the ~/Library/Application Support/AppStore folder).
    Open the Mac App Store and resume your download.
    It should continue from where it left off.
    This has worked for me so far. I'm holding my breath. Don't know if I'll still be alive when it's finished.
    Regards
    Nic
    Message was edited by: n c h

  • The autofill feature worked on my iPad 2, but not on the New iPad. Anyone know why?

    The autofill feature worked on my iPad 2, but not on the New iPad. Anyone know why?

    Go to Settings>Safari>Auto Fill>On .... Names and Passwords>On .... Use Contact Info>On. Make sure that your contact information is correct.
    Then quit Settings and Safari completely and restart the iPad.
    Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    See if that helps.

  • Code source works fine from console application but not from SharePoint interface

    Hi;
    Please can you help
    me to understand why my code below works fine from console application (VS 2010) and not working from interface of my SharePoint collection site :
    From console application : the subsite is created and I can to open without any problem
    From Sharepoint GUI : the subsite is created but impossible
    to open subsite : error 404 page not found ?
    The subsite creation is very long (2 minutes) and in concole application When I try to open the subsite just after its creation I have page not found and I must waits (several refresh) more time to open the subsite correctly.
    Can be I must to display a PoPup to show the progress creation ?
    using System;
    using System.Security.Permissions;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Security;
    using Microsoft.SharePoint.Utilities;
    using Microsoft.SharePoint.Workflow;
    namespace CreateSubSiteClients.EventReceiver1
        public class EventReceiver1 : SPItemEventReceiver
            public override void ItemAdded(SPItemEventProperties properties)
                     base.ItemAdded(properties);
                     try
                         SPWeb web = properties.OpenWeb();
                         if (properties.List.Title == "REFCLIENTS")
                             SPListItem curItem = properties.ListItem;
                             string name = properties.ListItem["SITE"].ToString();
                             curItem["SiteUrl"] = web.Url + "/" + name;
                             SPWeb rootWeb = web.Site.RootWeb;
                             SPWebTemplateCollection webTemplates = rootWeb.GetAvailableWebTemplates(1036);
                             SPWebTemplate webTemplate = null;
                             String webTemplateName = "ModeleSiteCourrier";
                             String webTemplateSearchName = "";
                             for (int i = 0; i < webTemplates.Count; i++)
                                 webTemplateSearchName = webTemplates[i].Name.ToString();
                                 if (webTemplateSearchName.Contains(webTemplateName))
                                     webTemplate = webTemplates[webTemplateSearchName];
                                     break;
                           SPWeb newSite = web.Webs.Add(name, name, name, Convert.ToUInt16(1036), webTemplate, false, false);
                            newSite.Navigation.UseShared = true;
                            newSite.Update();
                            newSite.Close();
                            Console.WriteLine("Le site suivant a été crée", name);
                     catch (Exception ex)
                         properties.Status = SPEventReceiverStatus.CancelWithError;
                         properties.ErrorMessage = ex.Message.ToString();
                         properties.Cancel = true;
    Regards

    Hi,
    To create subsite using event receiver in SharePoint Empty Project, you can refer to:
    Sharepoint 2010 event handler to create subsites
    To display a PoPup to show the progress creation, you can use:  MessageBox.Show("Hello, world.");
    More information:
    MessageBox.Show Method (String)
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • My flashdrive only works on one of the usb port.  the other usb works with my iphone charger, but not my usb. any suggestions? should i take it in? its a brand new laptop.

    My flashdrive only works on one of the usb port.  it will not work on the other usb port. however, the other usb works with my iphone charger.
    any suggestions? should i take it in? its a brand new laptop.

    Reset the SMC and PRAM
    SMC Reset:
    Shut down the MacBook Pro.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 
    PRAM:
    Shut down the MacBook Pro.
    Locate the following keys on the keyboard: Command, Option, P, and R.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • HI I have an Iphone 3GS and the microphone jack works when I play music but not when making phone calls.   please help as I use it for conference calls

    Hi   I use my phone for conference calls and use the microphone jack to connect to speakers.      It doesnt work when making phone calls but when i play music on the phone the jack works with the external speaker.   

    Happy to have been of help. Hope all goes smoothly.
    BTW, for the sake of others who may help you here, it's usually most polite if you mark the post that answered your question as being the one that "solves" it, not your own post. That's how people get points here, if a questioner marks their post as either "helpful" or "solving". It's not an issue for me, but for those just starting out in the forums it may be important to them. See:
    https://discussions.apple.com/static/apple/tutorial/mark.html
    and
    https://discussions.apple.com/static/apple/tutorial/reputation.html
    Regards.

  • Why does the @font-face work in a Private Tab, but not in a normal Tab?

    I consistently find that the @font-face does not work in Firefox unless I use a Private Tab, but I prefer to use a regular Tab so that I can keep track of what pages I have visited. In a Private Tab the Android app displays Hebrew with cantillation marks as nicely as Windows does using the very same font. This is probably an unintended bug, as I cannot imagine why you would want Private Tabs to work better than the regular ones. The css function in question is:
    @font-face {
    font-family: 'Shlomo LB';
    src: url('../ShlomoLightBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    }

    Hello,
    Thank you for bringing this up. There is an open issue in Bugzilla - [https://bugzilla.mozilla.org/show_bug.cgi?id=769194 src:local() @font-face rules doesn't work on Android]. But in this case you are mentioning a src:url, so I don't know if they are related.
    Also, can you please confirm if you are using NoScript or any other plugin on your browser and if there are settings that differ for the normal tabs vs. private tabs (noscript has an option to block @font-face).
    Would it be possible for you to create a sample for testing this?
    Thank you

  • The following error was submitted a while ago but not sure how to find out if a solution was found?

    Microsoft VBScript runtime error '800a01a8' Object required /include/SiteSecurity.asp
    This is for Next Web Security. This is the only one that shows this error and I have a dozen bookmarks. I contacted the company and they don't have any issues at their end and my link is: http://www.nextwebsecurity.com/Contact.asp.
    I tried using Opera browser and still get the same error.
    Can this be fixed and why is it not working any more (stopped working in early Dec 2012) and I used it to do voluntary work for this website.

    Can you see that page via Google Translate?
    *http://translate.google.com/?hl=en&ie=UTF-8&sl=fr&tl=en&text=http://www.nextwebsecurity.com/Contact.asp
    Try to boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.
    See also:
    *http://kb.mozillazine.org/Error_loading_websites

  • How do I enable auto-complete for gmail password? I have five accounts and it works for 3 of them but not the other 2.

    I have five gmail accounts. Three of them have the auto-complete feature enabled for the password. The two most recent accounts do not auto-fill so I must type in my password every time. The auto-fill works fine on my laptop but not on my desk-top. My operating system is Windows XP.

    You don't have to do anything with the first iPod that you don't use anymore. If you are planning on keeping it, put in a drawer in your house and forget about it.
    You don't need a second account to use with the new iPod. I use one Appl e ID and iTunes library for two iPods, and two iPad. I have different content on all four devices. You can select exactly what you want to sync to each device and it can be different content on all devices.

  • After Safari 5.1 update the following plugin is missing: Switchable Java Plug-in for WebKit

    Hi, after Safari 5.1 update the following plugin is missing: Switchable Java Plug-in for WebKit Java Switchable Plug-in (Cocoa) — von der Datei “JavaPluginCocoa.bundle”. How can I add this plugin manually? Because some applets are not working now! I restored the OS to Safari 5.0.5,
    now everything works fine. Is there any bugfix planned for Safari 5.1?

    Thanks, already managed to fix it with Time Machine Back-Up, however, you need only to restore the Safari.app file (can be found in Applications in Time Machine at a date before the last software upgrade to Safari 5.1)
    So, practically,
    go to Enter Time Machine
    -> browse (using the arrows at right hand bottom) to a date when everthing was still working
    -> go to Finder
    -> go to the hard drive (probably named Macintosh HD)
    -> go to Applications
    -> go to Safari.app
    -> highlight Safari.app by clicking on it
    -> hold 'ctrl' key and click again
    -> select from the drop menu that appears 'Get Info'
    -> next verify that is written 'version 5.0.5'
    -> close Info drop menu
    -> make sure the file Safari.app is still highlighted and click on 'Restore' under the arrows at righthand bottom of screen in Time Machine.
    Now you can leave Time Machine by clicking on Cancel on lefthand bottom
    Safari 5.0.5 will be added to the Applications under Safari.app (Safari 5.1 will also still be there and has the word (original) written behind it) drag this (original) marked file to the trash.
    That's all, works very good and means the whole system does not have to be re-installed.
    Hopefully Apple will cure this 5.1 version quickly - Make sure always to make a Time Machine Back-up before updating software!
    Hope this works for you all!

  • Using the xbox 360 controller in my java application

    Wanted to know if there is a way to get the xbox 360 controller or the nintendo wii to work with my java application. Has anyone been able to access either controller using java.
    Thanks
    GradStudent

    nope. you can use jinput to use game controllers... but only game controllers
    that can be plugged in and have a driver.
    i dont have any game systems, do the controllers have a usb attachment and computer drivers?
    xbox mod:
    http://www.fury-tech.com/en/Guides/Xbox-Controller-PC-Conversion-Mod
    jinput:
    https://jinput.dev.java.net/

  • I have consolidate my folders related to the video I am in the progress of working on.  Premiere elements does not follow their new location.  How do I syn them back up all at once so premiere doesn't ask me for their location when I open the project

    I have consolidate my folders related to the video I am in the progress of working on.  Premiere elements does not follow their new location.  How do I syn them back up all at once so premiere doesn't ask me for their location when I open the project

    This is the Photoshop Elements forum, not the Premiere Elements forum, located here:
    https://forums.adobe.com/community/premiere_elements
    When you open the project, it should ask you where the first file is located. After you tell it where it is, it should be able to find the rest of them if they are located near the first one.  Then save the file.  If you move the files again, you will have to relink them again.

  • We have a requirement to print the w2 forms for employees using java application, how can i implement this. Please give some suggestion.

    We have a requirement to print the w2 forms for employees using java application, how can i implement this. Please give some suggestion.

    Anyone any ideas to help please?

  • HT1926 When I try to open ITUNES I get the following messages: Runtime Error R6034 - "An application has made an attempt to load the C runtime library incorrectly" . I have 15,000 songs in my library. Will I lose them if I uninstall as suggested by Apple?

    When I try to open ITUNES I get the following messages: Runtime Error R6034 - "An application has made an attempt to load the C runtime library incorrectly" . I have 15,000 songs in my library. Will I lose them if I uninstall as suggested by Apple??

    Exactly the same problem.  But it gets worse.  iTunes has now disappeared from my list of installed programs so I can't uninstall anyway.  Appalling problem.  This update clearly didn't get proper testing before release.
    In answer to your question about your song library, I seem to remember uninstalling and reinstalling iTunes a few years ago and the uninstall didn't remove the library then - I can't see why it would.  Of course there have been a lot of updates since then, so it is definitely worth asking the question.  Personally, I would be inclined to make a copy (if you have the space) of the iTunes folder just to be sure.
    I certainly hope they get this fixed soon.  I use iTunes mainly for podcasts on my iPod and I can't download anything right now.

  • Will the following code work.

    will the following code work??
    XYZ class
    package abc.def;
    public class XYZ {
    PQR class
    package mno;
    import abc.*;
    class PQR
    def.XYZ x = new def.XYZ(); //is this line ok!
    }

    That means whenever we import packages, then only the classes in that package are resolved.
    Package names are not resolved.
    I took it as a file system, whenever we are in a directory, then all file names and subdirectory names are resolved (although contents of subdirectory are not resolved).
    Thanks! I got my answer!

Maybe you are looking for

  • Why is it taking so long to download. Is this normal?

    Why is it taking so long to download. Is this normal?

  • Problem in compiling JSP(JSPG0059E)

    Hi I have 2 JSPs navleft.jsp and navSupplier.JSP In my navLeft scrpitlet I have boolean disputeSubLinks = PppNavigator.openDisputeSubLinks(amtAction); and in navSupplier.JSP i use this value <% if (disputeSubLinks) { %> <%@ include file="navSupplierD

  • To Create Time stamp in dump file during export

    Hi All , While exporting table thDIRECTORY=USER_DATA_PUMP_DIR DUMPFILE=expdp_tables%U.dmp LOGFILE=expdp_tables.log CONTENT=ALL PARALLEL=4 ESTIMATE=STATISTICS SCHEMAS=<Schema name > When i ran the shell file i am getting dump file generated as expdp_t

  • Cross tab Header display..problem!

    I have cross tab report in that we wanted to give user drag and drop option,but when the user drags and drops a new object the name of that object will not come automatically. i have tried in other ways to get that but unable to.Could somebody sygges

  • Icons blank

    Certain icons on my sons ipod touch have gone blank.  The text still appears, and the games still work, but the picture is gone. I've read some fourms where this problem occurs after "jailbreaking" an ipod; however, that is not the case with his. Any