Getting a remote file with Mac OS behind NTLM proxy

Hello
I need to get a file from a server, in this case using an Applet but I do not think it to be much pertinence to this case.
I have standard code that works perfectly in all OS except on Mac when it is behind a NTLM proxy.
The code is the following:
public String urlConnection(String url) {
          URL conf;
          StringBuilder sb = new StringBuilder();
          try {
               conf = new URL(url);
             URLConnection cc = conf.openConnection();
             BufferedReader in = new BufferedReader(
                                     new InputStreamReader(
                                     cc.getInputStream()));
             sb = new StringBuilder();
             String inputLine;
             while ((inputLine = in.readLine()) != null)
                 //System.out.println(inputLine);
                  sb.append(inputLine);
             in.close();       
          } catch (MalformedURLException e) {
               logger.error("MalformedURLException", e);
               return "Erro";
          } catch (IOException e) {
               logger.error("IOException", e);
               return "Erro";
        return sb.toString(); //Insted of returning bytes I do intend to return a string, but the return type of the method it is not the issue
     }As I stated, this code works perfectly for 95% of the users accessing the applet.
But behind the NTLM proxy I get a "liveconnect: Java: Returning a null"
Is there some other way to remotly access a file to see if I can go arround this situation?
Thank you
Brian

It is in fact HTTPs and not HTTP.
However, this does not has any problem in Windows and Linux, only on mac and only behind the NTLM proxy...
The stack trace is:
network: Connecting http://A/generic/javascript/java/lang/ObjectBeanInfo.class with proxy=DIRECT
network: Connecting http://A/generic/javascript/java/lang/ObjectBeanInfo.class with cookie "ASP.NET_SessionId=2kvabj55dmof3meqgsw2g445; Start=true;
liveconnect: Java: Obj is <applet.AppletTest>
liveconnect: Java: method is <public String urlConnection(String url)>
liveconnect: Java: method has 1 arguments.
liveconnect: JavaScript: caller and callee have same origin
liveconnect: JavaScript: default security policy = http://A/generic/javascript/index.htm
Ola
network: Connecting https://Cliente/config_final.xml with proxy=HTTP @ proxy.Cliente.pt/20.0.0.251:8080
network: Searching for authentication for protocol=https, siteName="proxy.Cliente.pt", port = 8080, scheme=ntlm, realm=, requestingURL="https://Cliente/config_final.xml, isProxy = yes
network: Found username=Cliente\utilizadorTeste
liveconnect: Java: Returning a null

Similar Messages

  • How to get the remote user IP address if behind the proxy or firewall

    Hi
    How do i get the remote user Ip address who is invoking the servlet behind from a firewall.
    When i use getRemoteHostAddr it gives the proxy ip address not the actuall user host address... Kindly let me know how to get the actual user ip address
    satish

    There is no reliable way to determine the original IP, and such information is not useful to you if the original IP is behind a firewall. What do you propose to use it for? There is probably an alternative way to do things that does not require the remote IP.

  • Hi I installed a new hard drive in my Mac mini osx lion an when I turn it on I get a flashing file with a question mark. I tried holding command and R keys when turning it on but the recovery fails to work. Does any one know how I can get it to recover?

    Hi I installed a new hard drive in my Mac mini osx lion an when I turn it on I get a flashing file with a question mark. I tried holding command and R keys when turning it on but the recovery fails to work. I can hold the option key at start up and choose my network, then Internet recovery shows up with an arrow pointing up. When I click on the arrow Internet recovery fails and all I get is a globe with a triangle on it with an exclamation mark on it, and under that it says
    apple.com/support
          -6002F
    Does any one know how I can fix this without a recovery disc? Thanks

    I just want to add to this, in case someone else searches for this error on Apple Support (google doesnt cover apple support.. how clever is that?)
    I had the same error. And i had a Computer that had worked, with a SSD drive and 16GB upgrade done by the owner himself.
    I tried swapping with a Mechinal Harddrive, no luck.
    Kept the Mechanical drive in, and tried with some other Ram, it worked..
    So for me this error and after reading the other responses can be boiled down to a Harddrive problem or Ram issue.
    It was Ram for me..

  • [javaSE + NetBeans] Pasing between remote file with local files

    I'm developing an application to achive this goals:
    1) connecting to remote host using the TCP protocol.
    2) parse a remote file with one in local (the 2 files have the same name)
    3) if this file is not equal with the one in local dowload this file and overwrite the old.
    How can I manage the parse with this files? How can I get the remote file?

    So if there is a file on the remote server under C:\Temp\ called TestFile.csv; should I be able to call that file in a function?
    When I do so, all I see is an error saying cannot find a drive with the name C.
    My thought on how to get the content of the CSV into the session is just to import it to a variable and then use that variable.  This is possible right?
    Thanks,
    Brian
    ------ Brian
    Yes - assuming the file is accessible to the account you are running with and you are in the remote session.
    ¯\_(ツ)_/¯

  • Getting empty log files with log4j and WebLogic 10.0

    Hi!
    I get empty log files with log4j 1.2.13 and WebLogic 10.0. If I don't run the application in the application server, then the logging works fine.
    The properties file is located in a jar in the LIB folder of the deployed project. If I change the name of the log file name in the properties file, it just creates a new empty file.
    What could be wrong?
    Thanks!

    I assume that when you change the name of the expected log file in the properties file, the new empty file is that name, correct?
    That means you're at least getting that properties file loaded by log4j, which is a good sign.
    As the file ends up empty, it appears that no logger statements are being executed at a debug level high enough for the current debug level. Can you throw in a logger.error() call at a point you're certain is executed?

  • Problem opening files with Mac OS Mavericks and Elements

    I have recently installed Mac OS 10.9.x Mavericks.  Since this I have had problems opening files in Elements 11.  I upgraded to Elements 12, blindly hoping the problem would fix itself, however it hasn't.   When I try to open a file the Finder window pops up then disappears immediately.  Occasionally it will stay open until I scroll down but then closes.   I keep the files on an external drive but the drive is working with all other applications, so I don't think it is that.  If anyone has had a similar problem and has any ideas I would be grateful as the program is unusable for now.  Thanks very much in anticipation

    Hi Sjmitc, I followed Barbara's instructions about only about 24 hours ago and since then my files have been opening perfectly.  I tried it again before replying to you and they are still opening fine.
    I did have to go through my files a couple of times to find all the Elements preferences, but the solution is working fine so far.  I will let you know if I have any further problems.  It is maddening when it happens, so I hope you can fix yours.
    Best of Luck 
    Date: Wed, 6 Nov 2013 18:23:28 -0800
    From: [email protected]
    To: [email protected]
    Subject: Problem opening files with Mac OS Mavericks and Elements
        Re: Problem opening files with Mac OS Mavericks and Elements
        created by sjmitc in Photoshop Elements - View the full discussion
    Henwen, Is this solution still working for you? I tried this same solution on mine a few days ago and had no luck. However, it actually let me open files this afternoon then when I went back in later today, it was doing the disappearing act again.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5821793#5821793
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5821793#5821793
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5821793#5821793. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Photoshop Elements at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How to get vlan tag programe with mac book air

    how to get vlan tag programe with mac book air,i'm using the usb ethernet adapter

    For prompt help contact TATA.
    For more on this: https://discussions.apple.com/thread/3680625?tstart=270

  • No video signal in remote connection with Mac mini when the display is off

    No video signal in remote connection with Mac mini when the display is off

    So you mean that Mac mini is different than other ordinary computer and is need an active display to avoid black screen in remote session!!!!!Oh my god, Steve would be embarrassed!

  • Is there a way to reach remote files with KDE? [Solved, I hope]

    I cant reach anything remote any longer. At first I noticed that Kate was unable to open remote files. But there is more, I cant even navigate on my own network. Before the update my network was almost as an internal disk and now its completely useless. The plasma 5 file navigator is a total joke. Network isn't even an option there, only local files.
    Is there a fix to this or will there be updates with a solution? I have tried various tips and installed kio-xxx.
    My current KDE version is 4.14.6.
    Last edited by johane (2015-03-30 07:28:53)

    You wrote that you're on KDE4 in your first post. This would mean you currently have a mix of qt4 and qt5 apps running.
    I know Kate was ported to qt5 already, as well as gwenview, not sure about others. Those won't be able to display the native dialog anymore, because they only include the latest version of the Qt dialog, while you need the older one.
    I remember reading about Kate not being able to read from network files because it needs the qt5 version of the framework to do so.
    The solution to get that and the native file dialogs would be to either
    - update to kde5
    - downgrade the affected apps to the last version which used qt4
    Personally, I currently froze all my kde packages at their kde4 versions, because kde5 was running less that stable on my test machine. This is usually frowned upon, because you're missing out on any security/bug fixes the newer versions might contain.
    But in case of kde5, I'd rather have a stable system that might or might not be vulnerable, than an unstable one.
    Also, updating to kde5 actually reverses the problem from what I remember: you will get the native dialog for all apps already ported to kde5 and the generic one for all that have not yet been ported.
    Last edited by Soukyuu (2015-03-20 23:49:48)

  • Can't download remote files with Adobe AIR

    Hi all,
    I have an adobe AIR application that tries to allow the user
    to directly download a remote file. Here's the current code:
    var fileRef:FileReference = new FileReference();
    // Bunch of Event listeners here
    var urlReq:URLRequest = new URLRequest("
    http://www.randomfilehere.com/hello.txt");
    fileRef.download(urlReq);
    Now, when I try to download any random file, let's say
    http://www.example.com/buca-di-beppo.gif,
    I will get a OS-specific download box that asks me where to save
    the file; I choose desktop and 'save' yet nothing happens (but when
    I trace the HTTP response through Fiddler I get HTTP/1.1 200 OK,
    and apparently all data has been successfully transferred to the
    host machine, it just is not saved as a file.
    A worse problem occurs with getting a file through HTTPS, as
    in https://www.example.com/secure-image.gif. Air will try to
    initiate approximately 3,940 http requests (plus or minus 3), that
    all return 200 OKs, before eventually stalling (and sometimes
    getting a 502).
    Does anyone have any idea how to resolve these problems? The
    AIR application is of course not a browser-based application so I
    didn't think the cross-domain.xml would be applicable here (and if
    it is, I don't know where to put it). Any help would be
    GREATLY appreciated! Thanks very much for your time.

    Hi,
    Take a look at
    http://kb.adobe.com/selfservice/viewContent.do?externalId=3637d5c3
    and see if it helps you.

  • Can't edit remote files with nemo/thunar/...

    Hi there,
    I've got two kinda-related problems:
    1) When I browse a remote server with any file manager (Nemo, but also Thunar and PCmanfm), and when i double-click to edit/view a file, the default program always opens empty, like it was called without any arg. If i try to open it in a terminal ("vim ftp://www.website.com/index.php"), it works without problem.
    2) When browsing remote servers, Nemo (and only Nemo, i don't have this bug with Thunar or PCmanfm) will try to open files with the wrong program. On local, php files are opened with Vim and jpg with Gpicview. But on a FTP, php files are opened with spacefm (!) and jpg with Gimp.
    Any ideas how i could fix that ?

    I suggest you make a symlink from that directory to your ~ and call it 'remote computing done properly'.
    I have the suspicion that software needs to be aware they are browsing on a remote computer. They get fed with probably invalid flile path's and thus open an empty window. I think that is not good. It should be transparent like the alternative method I just gave you. Gvfs should handle all the dirty details, that is what it's for.
    However it could still be bug (I HOPE!).

  • Using fusion and sharing files with mac

    I am getting a Mac Airbook and am going to be running Fusion from VMWare.  I have an external Western Digital drive that I want to use to transfer my files to the Mac.  Two questions:
    1.  Will the Passport software or at least the files - be recongnized by the Mac?
    2.  Does the Mac share the files with Fusion or do I need separate folders?

    Welcome to the Apple Support Communities
    1. Your Mac will recognize the external drive without any problem if it's formatted with FAT, NTFS or exFAT. Note that OS X can't write into NTFS drives.
    2. Your Mac can share files with a virtual machine if you install VMware Tools onto the virtual machine

  • How to delete pages in a pdf file with mac OSX Mavericks?

    Indeed i don't have Pages options in my tools window... Is that normal for the mac version? Please it's urgent...

    Sorry, it was my fault. When I searched on the Internet, I was reading the Acrobat help pages, without knowing it, because in my research I wrote "how to delete pages in a pdf file with Adobe reader", i was just automatically redirected toward Acrobat help but i didn't notice.
    So no incorrect information exist in the Reader Help pages.

  • Getting a large file with 2 small ones

    HI,
    I'm playing with final cut pro 5 ...
    I created a very basic project with 2 movies (quicktime movie 320x240, 8.9 and 9.9 MB) done with my coolpix 3100 camera
    I added a transition at the beginning, and one between the 2 movies. (5s each transition)
    I select the Render ALL, then I export it into a quicktime movie with "current settings" "include audio and video" and "make movie self contained"
    I get a final file which is 1'10 length, 720x576 and 253.5MB long !!! (Codecs is DV-PAL Integer)
    is that normal to have such a big file ??

    Did you create a sequence with settings that matched your source movies? It looks like you edited your 320x240 quicktimes into a standard PAL dv sequence. DV is about 5 minutes a gig.
    Create a new sequence preset that matches your source movies as far as pixel size. For the codec, you might want to match your source files or choose an alternative.

  • Help?! Can I edit MTS files with Mac OX 10.04

    I have tried several times do edit MTS files in Final cut pro 6, but it does not recognise the files.
    After that I tried do converte the files to AVI or MPEG-4 and still the finla cut stop, just watching the clip... Is it possible that the OX 10.4 does not suport this type of files to work on final cut pro 6??
    Best
    Cris

    Thanks for the information. My version does not allowed me to log and transfer the all folder from the camera.
    So, if I convert the files with the clipwrap, i will be hable to import it in final cut as a file? But still, my computer gives me a message to: - turning off unlimited RT, increase the speed of the system, lowering the compression data rate and others... So I thought that this OX 10.04 version is not enought to work with this files?

Maybe you are looking for

  • IE 8 Animated Gif Issue

    I've run into an interesting problem and wonder if anyone has an answer for me. I have created an animted gif of a banner ad in photoshop with 3 frames. The banner has been previewed in FF, Safari, and IE 8. For some reason in the IE 8 version the te

  • Unlocking orange uk

    am seriously considering my orange iphone 3gs, signal is very poor, can hardly, use the phone so am considering using my vodafone sim, in my iphone, now i know there are plenty of sights to unlock the iphone, but which one would you guys recomend ple

  • HT204389 Mail & Text Message Sounds Gone When Using Siri

    The confirmation "vwoop" or "swoosh" that would annunciate a message or text being sent by Siri stopped working. I am blind so this feature is important to me. I took my phone to an AT&T corporate store and they had a replacement sent to me. The prob

  • LR3/LR4 Develop Presets Behavior

    I'm a little bit confused about LR3 Develop Presets that do not include the Process Version information when applied to an image that is in PV2012. Let's assume a Develop Preset for Clarity +25. Here are the steps and the results: 1. Image PV2012 - a

  • Is there a way to convert all your music w/o it taking 10 hours?

    Hi, my brother got an ipod nano for xmas and i have a 60 gig. All my music right now is in apple lossless and takes up a bunch of space. i have about 50 gigs of music but he only has room for 4 gigs. Is there a program that u can just convert it all