HTTPURLConnection doesn’t work in the Portal

Hi,
We try to develop an web service on the SAP Portal 7.0 SP11, and we have the following behavior.
If we implement the following code through java console this works fine.
URL url = new URL("https://server/info?A030=M005&A001=2=0&C001=0");
System.out.println("Connecting to Host : [" + url.getHost() + "]");
System.setProperty("javax.net.ssl.keyStore", "2796.p12");
System.setProperty("javax.net.ssl.keyStorePassword", "PASSWORD");
System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoOutput(false); // true for POST, false for GET
connection.setDoInput(true);
connection.setRequestMethod("GET");
connection.setUseCaches(false);
connection.setAllowUserInteraction(true);
String aLine = null;
InputStreamReader inReader = new InputStreamReader(connection.getInputStream());
BufferedReader aReader = new BufferedReader(inReader);
while ((aLine = aReader.readLine()) != null)
     System.err.println(aLine);
aReader.close();
And, if we goes to an AbstractPortalComponent we have problems to connect to an https web site.
The application returns this errors
org.w3c.www.protocol.http.HttpException: Unable to contact target server
     iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure#
     at iaik.security.ssl.r.f(Unknown Source)#
Any ideas,
Jorge Neves

Hi Jorge,
the portal offers you the com.sap.portal.ivs.httpservice.
no javadoc, but you find it here...
usrsap[instance]JC[sysNr]j2eeclusterserver0appssap.comirjservlet_jspirjrootWEB-INFportalportalappscom.sap.portal.ivs.httpservice
maybe you try this way to create your connection.
Greetings Jens

Similar Messages

  • ID CS3 - text wrap doesn't work at the end of a long multi-columned text frame

    Did a search - don't think this specific issue has been addressed:
    We design large graphics often used on walls. When working with a text frame that that was 11 feet long and had 8 columns, text wrap would not work on an image placed in the last column. The same image with the same text wrap applied will work fine anywhere else in the text frame. I found that if I shortened the width of the text frame a little bit at a time eventually it would work, but there doesn't seem to be a specific cut-off width - sometimes the last column won't text wrap when the frame is 115 inches wide and sometimes it doesn't work when the frame is only 80 inches wide. Again, all of the other columns work fine. I have tried all of the obvious stuff, the only variable between the columns that wrap and the one that doesn't is it's position at the end of the text frame.
    We have gotten around this issue by using multiple threaded frames instead of one long frame with multiple columns, but I am curious if anyone else has run into this or might know what the issue is.
    thanks

    Did a search - don't think this specific issue has been addressed:
    We design large graphics often used on walls. When working with a text frame that that was 11 feet long and had 8 columns, text wrap would not work on an image placed in the last column. The same image with the same text wrap applied will work fine anywhere else in the text frame. I found that if I shortened the width of the text frame a little bit at a time eventually it would work, but there doesn't seem to be a specific cut-off width - sometimes the last column won't text wrap when the frame is 115 inches wide and sometimes it doesn't work when the frame is only 80 inches wide. Again, all of the other columns work fine. I have tried all of the obvious stuff, the only variable between the columns that wrap and the one that doesn't is it's position at the end of the text frame.
    We have gotten around this issue by using multiple threaded frames instead of one long frame with multiple columns, but I am curious if anyone else has run into this or might know what the issue is.
    thanks

  • Safari show all tabs doesn't work all the time

    It is annoying: safari show all tabs doesn't work all the time. The little icon to the right of the "New Tab" area sometimes works, and sometimes doesn't. The Shift Command Back-slash, sometimes works, and sometimes doesn't. I find no rhyme nor reason for this. I have a MacBook Pro, Mountain Lion, the latest updates. It doesn't matter if I am in Full Screen or not.
    I am quite confused regarding this.

    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type of copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that helped, empty the cache more often from your keyboard.
    Command + Option + E

  • BitmapData draw method doesn't work when the project is published as the .swf file of the web applic

    Hi,
            I am totally confused by this strange error. When I tried using the draw method of BitmapData to draw a movieclip symbol of my project, it seems to work fine locally. However, as I uploaded the published .swf file to my web server and launched it as the plugin of my web application, it failed. The source codes as follows,
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    message3 didn't show at all. Instead, the browser console shows "Uncaught Error: Error calling method on NPObject.". My understanding of this error message is that the .swf is calling something crashing, and I believe that bd.draw(stage)is the crashng method call.
    Also, here is my html embed tag:
        <embed src="/tests/videoplayer.swf" id="flash" quality="high" height="510" width="990" scale="exactfit" name="squambido" align="middle" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" style="margin: 0px auto;clear:both;position:relative;"/>
    Can someone help me?

    Thank you for your reply.
    I tried stageWidth and stageHeight, but it still doesn't work.
    The draw() methid is triggered when I clicked a screenshot button in my application as follows,
    ExternalInterface.addCallback("printscreenClicked", printscreenClicked);
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    Would you please give me an example of "waiting for Event.RESIZE is good, or just at least Event.ENTER_FRAME"?
    My real purpose in this application is to capture a snapshot of a streaming video. The video is contained in a movieclip object. I tried stage first since BirmapData.draw() doesn't work when drawing the movieclip on the web site. Do you have any suggestion for this situation? Also, is there any good method to find out what happened if the browser have "Uncaught Error: Error calling method on NPObject."?

  • How do I use my ipod in the car without it constantly charging?  I have to use a docking cable into the USB port because the 3.5 mm to 3.5mm jack I bought doesn't work on the ipod.

    How do I use my ipod in the car without it constantly charging?  I have to use a docking cable into the USB port because the 3.5mm to 3.5mm jack I bought doesn't work with the ipod (although it does work with an MP3 player).  My ipod is a 5th generation 80GB classic.

    I know this is old - but did you ever get this working. Thinking of getting a 780 ti card and I have an older mac with the mini-displayport too.

  • Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through j

    Certainly I realized that Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through jquery or javascript.
    e.g.
    In Felix Console , in Apache Sling JCR Resource Resolver configuration I have added following mapping.
    /content/myproject/-/
    So If any anchor tag is there like <a href="/content/myproject/en.html"> click me </a> then it will be mapped to "/en.html" automatically.
    But the problem is there in following scenario.
    I have an anchor tag as follows.
    <a href="#" id="test"> click here </a>
    And I am assigning the href to anchor through JQUERY.
    <script>
    $("#test").attr("href","/content/myproject/en.html");
    </script>
    Ideally this should have been mapped to "/en.html".
    But it is not mapping to "/en.html". It still shows "/content/myproject/en.html".
    How to resolve this.
    Thanks,
    Sai

    In a servlet you have access to the resourceResolver so if you know which attributes contain links then it's relatively easy to apply resourceResolver.map to those links.
    Your challenge is clearly how do you know which attributes are links and which aren't. Its is the same challenge that makes parsing the response and rewriting it on the way out difficult - the JSON doesn't have any semantic meaning so how do identify which attributes require rewriting. There really is no good answer ot that question in my experience - all the options have down sides.
    Create some convention - all attributes matching this pattern X get mapped before being converted to JSON (could be attributes whose name ends in link, or it could a convention applied to the value of the attribute - if the attribute is a string that starts with /content apply the resource resolver mapping. In this case you have train your developers to follow this convention which is the down side.
    Create some configurable list of attribute names that require mapping. This is brittle, requires training and is easy to break.
    Implement a client side version of the resource resolver mapping. It wouldn't be as full proof as server side mapping (because that takes into account but you could make it work for simple logic like stripping of /content/site/en. If ou are just trying to solve the simple version of this issue - stripping off the top of the repository path this might be your best option.
    Not worry about it and set up Apache 301 redirects that catch any long URLs and redirect them to short URLs (so configure apache to look for any URL matching /content/site/en and strip off /content/site/en and do a 301 redirect to the shortened URL. You end up with a lot of extra HTTP request because of all the 301s but it would work (I wouldn't recommend this option - but it is possible).

  • My Wifi doesn´t work. The Wifi icon on top menu bar states there is no hardware connected. How can I resolve this as previously Wifi connection worked perfectly. Is this something that to do with the computer hardware? Please advise.

    My Wifi doesn´t work. The Wifi icon on top menu bar states there is no hardware connected. How can I resolve this as previously Wifi connection worked perfectly. Is this something that to do with the computer hardware? Please advise.

    SkyDaughter29 wrote:
    My current situation: I have soooo many texts on my iphone and I haven't deleted many because I need the information contained in them for future reference and for legal purposes.  I would really like to find a means and way to save them other than on the phone itself. I've done searches for various apps yet I'm not finding what I think I would need.  It appears Apple does not sync the texts between the iphone and my MacBook Pro.
    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    Best of luck.

  • I have an iPod 4th gen and the bottom part of it doesn't work where the space, .?123, and the go buttons are I droped it yesterday but it started doing this an hour ago I can slide to get in but it's stops working after that someone tell me how I fix this

    I have an iPod 4th gen and the bottom part of it doesn't work where the space, .?123, and the go buttons are not working I droped it yesterday but it started doing this an hour ago I can slide to get in but it's stops working after that someone tell me how I fix this

    Try:
    - Reset the iOS device. Nothing will be lost       
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                                              

  • HT1725 I bought an App last month, doesn't work. consulted the manufacture they sent me to iTunes for refund, reported the problem to iTunes, they sending me back to Manufacturer.

    I bought an App last month, doesn't work. consulted the manufacture they sent me to iTunes for refund, reported the problem to iTunes, they sending me back to Manufacturer. Can someone please assist me on this, I need my refund for this non functional App. BSSoft and iTunes Stores do something here, when I go back to report it again, I get an error message stating "...this problem has been reported or too old to report..."

    Debit card? Are you sure?
    USA iTunes Store does not appear to accept debit cards - http://www.apple.com/legal/itunes/us/terms.html  "The iTunes Store, Mac App Store, App Store, and iBookstore services (“Services”) accept these forms of payment: credit cards issued by U.S. banks, payments through your PayPal account, iTunes Cards, iTunes Store Gift Certificates, Content Codes, and Allowance Account balances."

  • My external Apple USB Keyboard letters doesn't work, but the numbers do. Why and how can I fix this issue?

    My external Apple USB Keyboard letters doesn't work, but the numbers do. Why and how can I fix this issue? Also, When I open the Keyboard Viewer, the letters will highlight only if I hold the modifier key(s) "Control" or "Control and Option". I really need help with this. I don't have any other computer to try it on, so I will have to test it on a friends computer sometime. But perhaps solutions that I can try right now? Thanks.

    Hello there, IDuncan23.
    The following Knowledge Base article has some great troubleshooting steps you can follow to work on resolving your keyboard issue:
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    Thanks for reaching Apple Support Communities.
    Cheers,
    Pedro D.

  • Iam from Yemen we have CDMA carrier called Yemen mobile I bought an iPad from the US CDMA works with Verizon when I got to Yemen doesn't work with the carrier Yemen mobile and  both carriers verizon and Yemen mobile work by the CDMA system don't know whey

    Iam from Yemen we have CDMA carrier called Yemen mobile I bought an iPad from the US CDMA works with Verizon when I got to Yemen doesn't work with the carrier Yemen mobile and  both carriers verizon and Yemen mobile work by the CDMA system don't know whey can anyone help me please..

    A Verizon-model iPad can only work on CDMA with Verizon. You cannot use it with any other carrier. Apple, to my knowledge, has not released the iPad in Yemen, so there is no iPad you can use with any carrier there that works only on CDMA. You would need to find a GSM carrier and then get an unlocked GSM iPad.
    Regards.

  • Whenever I try to sync my ipod touch, it doesn't work.  The computer seems to get hung.  What could be happening?

    Whenever I try to sync my ipod touch, it doesn't work.  The computer seems to get hung during the back up stage.  It says it is backing up the ipod but nothing happens, for hours.  I eventually have to interrupt it and give up.

    I have the latest itunes.
    I tried resetting sync history.
    For this section:
    If the issue persists, and you know all your contacts, calendars, bookmarks and notes are on your iPhone, iPad, or iPod touch:
    Remove all of the contact and calendar information from Outlook.
    Select the device in iTunes and click the Info tab.
    Scroll down to the Advanced section, and under "Replace information on this iPhone/iPad/iPod touch" make sure Contacts and Calendars are not selected.
    Click Apply.
    This doesn't seem to make sense for my situation.  I don't sync anything between outlook and my ipod touch. 
    I have no other USB devices connected to my computer.
    I have no other Windows users on my computer - only me and I am the administrator.  However on my diagnostic, it said this user is not the administrator.  Weird.
    So I have tried to follow that you referred me to, but still I haven't got it working yet.  Do you have any further suggestions?

  • Iphone doesn't work in the dark?!

    This is really weird but my Iphone4 doesn't work in the dark. It works fine during the day but when it gets dark (e.g if I turn the lights off at night, in the movies, in a dark club) it stops working - When I push the home button or the on/off button the screen flashes normal and then just fades to black?? Can anyone shed some light on this?
    Thanks!

    Can you keep it closer to your body, to use body heat to help keep it a little warmer? All phones, iPhones or others, have operating temperature range. You would have to try and locate a more ruggedized phone that was built to operate in those temperature extremes.

  • Two-finger scroll doesn't work in the "comments list" in Adobe Reader

    Adobe Reader XI version 11.0.07, Mac 10.9.3
    Two-finger scroll works great in the main pane.  However it doesn't work in the comments list area (View -> Comments -> Annotations).
    Dealing with 500+ annotations that I have to approve.  Not being able to scroll through them easily is frustrating.
    Any suggestions?
    Thanks!
    Tom

    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    On Sun, Jun 8, 2014 at 12:30 PM, YesThatTom <[email protected]>

  • Why setting the download folder ton an external HDD doesn't work? the downloaded files goes to My Documents (Windows)?

    Why setting the download folder ton an external HDD doesn't work? the downloaded files goes to My Documents (Windows)?

    I did what you said and updated FF, now the download goes to the external HDD that I specified, but now FF bugs, it freezes (not responing) :s
    I reinstalled it but it doesn't fix the problem. I don't know what to do :(

Maybe you are looking for