Problems with applet for displaying desktop app's output

I inherited a desktop C++ (VC6) application that uses the user's web browser for output. When the system first wants to display output it writes a temporary html file, fires up the web browser with an html page with an applet that opens a socket that listens for messages on a particular port. The C++ app then sends the temp file name through the socket for the applet to display. When new output comes along the new file name gets sent through the socket and the applet updates the web page (so all of this work is just so that you don't get a new web page for each output). It uses a similar mechanism to display help (sending the relevant section number through the socket). The relevant Java looks something like this:
     m_serverSocket = new ServerSocket(m_theApp.m_port);
and then later
     clientSocket = m_serverSocket.accept();
Recently the Sun decided that connecting to localhost is a security risk (see http://sunsolve.sun.com/search/document.do?assetkey=1-66-246387-1), so that this accept() now throws a security exception. I'm trying to fix this but I'm not getting anywhere. Here are the things I've tried and decided doesn't work (feel free to point out mistakes or misunderstandings on my side, I'm a noob at java):
1) I changed the C:\Program Files\Java\jre6\lib\security\java.policy file to add "accpet" for localhost:
          permission java.net.SocketPermission "localhost:1024-", "listen,accept";
this works, but I can't use this because a) it isn't safe, b) we don't want users to have to change their java.policy files and obviously the installer can't do it
for them.
2) I don't want to sign the applet because this will be really confusing to users (why should they be asked to trust anything from a desktop app that doesn't even do
anything over the net?)
3) I've tried passing a command line parameter to the applet in order for it to use an "application" specific policy file, but it seems that an applet can't take
the -Djava.security.policy command line parameter.
4) I've read that unsigned applets can (only) open sockets back to the server from which it was loaded, but I'm not using a webserver so there is no server URL (and
localhost doesn't work).
I'm out of ideas but would love to hear some!
Paul

Pay $150 or so to get your certificate signed by one of the major Certification Authorities. Signing your Jar will then stop the user being asked if he trusts the signer.

Similar Messages

  • Problem with Request for Permissions (mobile app)

    In my application I want to publish the results of the games on facebook. I used this tutorial: http://www.adobe.com/devnet/facebook/articles/flex_fbgraph_pt1.html
    Here is a fragment of my source code:
    <fx:Script>
            <![CDATA[
                import com.facebook.graph.FacebookMobile;
                import mx.events.Request;
                import valueObjects.GlobalVariables;
                protected var extendedPermissions:Array = ["publish_stream","user_website","user_status","user_about_me"];
               protected function initApp():void
                    FacebookMobile.init("app ID",loginHandler);
                protected function loginHandler(success:Object,fail:Object):void
                    if(success){   
                        currentState="loggedin";
                        nameLbl.text=success.user.name;
                        userImg.source=FacebookMobile.getImageUrl(success.uid,"small");
                        birthdayLbl.text=success.user.birthday;
                        FacebookMobile.api("/me/statuses",getStatusHandler);
                    else{   
                        this.login();
                protected function login():void
                    FacebookMobile.login(loginHandler, stage, []);
                protected function logout():void
                    FacebookMobile.logout();
                    currentState="loggedout";
                protected function getStatusHandler(result:Object, fail:Object):void
                    statusLbl.text=result[0].message;
                protected function submitPost():void
                    FacebookMobile.api("/me/feed",submitPostHandler,{message:GlobalVariables.d.toString()}, "POST");
                protected function submitPostHandler(result:Object,fail:Object):void
                    FacebookMobile.api("/me/statuses",getStatusHandler);
            ]]>
        </fx:Script>
    I have problem with permissions. After login I see a white screen instead of request for permission.  The desktop application does not have a problem with it. When I log for the first time to the desktop application and I will give the permissions applications, then in the mobile application everything works fine. But this is not a good solution. And so please help.

    The labelField of IconItemRenderer only supports single line text.  Try using the messageField instead:
    <s:List width="200" height="200">
        <s:dataProvider>
            <s:ArrayList>
                <s:DataItem desc="1 Hello World Hello World Hello World" />
                <s:DataItem desc="2 Hello World Hello World Hello World" />
                <s:DataItem desc="3 Hello World Hello World Hello World" />
            </s:ArrayList>
        </s:dataProvider>
        <s:itemRenderer>
            <fx:Component>
                <s:IconItemRenderer labelField="" messageField="desc">
                </s:IconItemRenderer>
            </fx:Component>
        </s:itemRenderer>
    </s:List>
    If you need more control you might need to subclass, this post might help: http://flexponential.com/2011/08/21/adding-multiline-text-support-to-labelitemrenderer/

  • Problem with Applet for Microsoft VM

    Hi there!
    I implemented an applet (first for SUN JVM 1.4.1_02) that has to communicate with a servlet via serialized objects. Therefore the applet sends a request and expects the response :
    //establish connection
    URLConnection l_con= l_url.openConnection();
    l_con.setUseCaches(false);
    l_con.setDoOutput(true);
    l_con.setDoInput(true);
    l_con.setRequestProperty("Content-Type", "application/x-java-serialized-object");
    //send request to servlet               
    ObjectOutputStream l_outputStream = new ObjectOutputStream(l_con.getOutputStream());     
    l_outputStream.writeObject(l_obj);                    
    l_outputStream.flush();               
    l_outputStream.close();
    //get response
    ObjectInputStream l_obInStr = new ObjectInputStream(l_con.getInputStream());
    l_response = (MyResponseClass)l_obInStr.readObject();
    l_obInStr.close();This works absolutely fine for the Sun VM. Now I have to use the Microsoft VM (because I don't want the users to install anything on their clients).
    I compiled the client classes like that:
    javac -target 1.1 classname.javaThe applet starts correctly but there is a problem with the communication that I recognized in the console:
    java.io.IOException: Cannot write output after reading input.
         at com/ms/net/wininet/http/HttpURLConnection.getOutputStream (HttpURLConnection.java)
         at myclass/MyApplet.callToServlet (MyApplet.java:109)
    Does anyone know what this error means ?
    Thanks a lot in advance.

    Hi there!
    I solved my problem by removing all the System.out.println-statements that I used for debugging issues.
    Anyway, I want to know if there are more restrictions concerning this matter for using the Microsoft VM instead of the Sun VM. (Because it HAS worked with the debugging statements with the Sun VM).
    Thank you.

  • Problem with RpClean for Rep Development 3.0.L.0

    Hello Forte Users :
    We are running Forte 3.0.L.0 we previously upgraded from 3.0.J.1, 20
    developer workspaces and a repository for both development and
    deployment.
    We are facing problems when we run an Rpclean for this Development
    Repository, this process aborts with a fatal error message, the log
    screen for this process issues the following messages
    the deletion objects is made,
    the repository compress is made,
    the rebuild of the index is made,
    but then when the process is creating back the repository it displays
    "fatal error" and issues a message that it cannot truncate the .btx
    file.
    the command executed is :
    rpclean -n Desarrollo -fr :/var/forte/repodesa -t /var/jaeb
    Any experience on this regard?. If any, would be highly appreciated.
    Jorge
    Do You Yahoo!?
    Get your free @yahoo.com address at http://mail.yahoo.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Jorge,
    How big is your repsitory. Because if you are running on Digital Unix
    you will have problems, when the repository is bigger then 1 gigabyte!
    During the rpclean process a 'copy' is build and the unix system cannot
    handle more than 2 gigabyte. I expect the maximum size of the repository
    will be different for each operating system, but this might be your
    problem!
    Hans van Drunen
    Origin DeskTop Business Solutions Rotterdam
    Admiraliteitskade 60, 3063 DC Rotterdam
    Telefoon : +31 10 - 242 81 00
    Fax : +31 10 - 242 81 81
    -----Original Message-----
    From: Jorge Espinoza [mailto:[email protected]]
    Sent: Wednesday, June 16, 1999 18:17
    To: [email protected]
    Subject: Problem with RpClean for Rep Development 3.0.L.0
    Hello Forte Users :
    We are running Forte 3.0.L.0 we previously upgraded from 3.0.J.1, 20
    developer workspaces and a repository for both development and
    deployment.
    We are facing problems when we run an Rpclean for this Development
    Repository, this process aborts with a fatal error message, the log
    screen for this process issues the following messages
    the deletion objects is made,
    the repository compress is made,
    the rebuild of the index is made,
    but then when the process is creating back the repository it displays
    "fatal error" and issues a message that it cannot truncate the .btx
    file.
    the command executed is :
    rpclean -n Desarrollo -fr :/var/forte/repodesa -t /var/jaeb
    Any experience on this regard?. If any, would be highly appreciated.
    Jorge
    Do You Yahoo!?
    Get your free @yahoo.com address at http://mail.yahoo.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Problem with Twitter for Mac notifications

    Hello,
    I have a strange problem with Twitter for Mac. On both my home and office Macs. New posts appear in app window but there aren't any notifications even though notifications are set in preferences to show in both dock and menubar. Perhaps anyone noticed similar strange behaviour? I didn't find anything similar on Twitter forums.
    Thanks in advance.

    Solved by
    Dr.AvituvOct 20, 2014 11:09 PM
    go to Terminal and post this:
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/support/lsregister -kill -seed
    if it doesn't have that specific directory try this:
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -seed
    once the scanning is done (can be short or long, depends on how heavy your system is) RESTART the computer.
    when you're back, go to Apple>system preferences>extensions.... guess who's there.
    I hope it helped.
    The Doctor.
    iMac, OS X Yosemite (10.10)
    To restore Actions extensions for good and other stuff
    THANKS!

  • Problem with GarageBand for iOS 6/7 Iphone 3gs / 4

    Problem with GarageBand for iOS 6/7 Iphone 3gs / 4
    Hello,
    On February 16, bought the GarageBand for iOS which was free and so I find and install it on my 3GS .
    Take the demo: Curtain Call Demo
    and within the instruments :
    audio Recorder
    Sampler
    Smart Drums
    Smart Strings
    Smart Bass
    Smart Keyboard
    Smart Guitar
    Keyboard
    Drums
    Guitar Amp
    1.4.1 is the latest version for ios 6.
    Configure my AppleID on a Iphone 4 and install the program , the version I have the Iphone 4 is the orange ( different from 3gs ) icon and put it on the AppStore : ios 2.0.1 for ios7.
    With these instruments :
    audio Recorder
    Sampler ( to download the instrument )
    Smart Drums ( to download the instrument )
    Smart Strings (Download the instrument )
    Smart Bass ( to download the instrument )
    Smart Keyboard ( to download the instrument )
    Smart Guitar
    Keyboard
    Drums
    Guitar Amp ( to download the instrument )
    and if I give what I need to restore tells me if I bought it I did not restore anything and tells me to buy :
    Complete collection of GarageBand instruments and sound at a price of : € 4.49
    As they are 2 different versions ? More than anything I say because I have to pay for the instruments in the 2.0.1 version of the Iphone 4 ... ?
    And besides not wearing demo Demo Curtain Call : (
    GarageBand 1.x If you are upgrading it using iTunes on a Mac or PC, you can restore the original collection of instruments and sounds. There is no need to buy this collection. Press "You've already purchased?" When displayed on iPhone, iPad or iPod touch.
    this puts on the AppStore but I have tried to restore as I wrote above, and does not work. There is nothing to restore.
    regards

    I've been having the same problem. However, I believe my problem is due to the 3G issues I've been having. I don't have internet access even when the 3G symbol appears, so probably my iphone keeps trying to connect to the network and has its battery drained! Have you been having the same issue?

  • I have problems with office for mac  screen resolution, specially with excel

    I have problems with office for mac  screen resolution, specially with excel ?

    For starters, make sure to Check for Updates on any of the Help menus, and make sure the product has all the latest patches. MS did come out with a patch addressing the display issues on Retina Macs. Latest patchlevel is 14.3.2.
    We are talking about Office:Mac 2011, right?

  • Problem with the synchronization by Desktop Software (6.1.0.35)

    Hi, i have a big problem with the  synchronization by Desktop Software (6.1.0.35).
    When I installed DS i set to folder sync photos not as
    ... Documents / BlackBerry / photo (created by default),
    but i chose
    ... Documents / Pictures / Photos from the BlackBerry (created by me).
    Basically now I try to change the import folder of images, but it appears the error that is
    "Can not set a folder to import to a higher level of import folder"
    I tried deleting / Photos from the BlackBerry, and not finding my DS it says:
    "The import folder is not available ... etc.." and tells me to change it or with the button or the Media tab of the Device menu> Options.
    I do it but the message is always the same: "Unable to set a higher level of import folder to import folder"
    I find it an absurd bug and ask to help me solve it. Thanks

    Well folks. I've had enough.
    The 9780 is a great phone, it's easy to use, practical and dependable. However, the Desktop Manager software has been giving me too many sleepless nights. On two occassions I must add: once at the end of last year when I bought it and only managed to solve it by myself after 4 weeks of trawling through online forums, blogs and other BB help sites and the recent one was last week when I tried to install it on my new Windows 7 notebook.
    I know this is not entirely the fault of RIM, Microsoft also has a part to play. But considering the state of technology these days, it shouldn't have to be so difficult. I want a phone and software that makes my life easier and not have to be a slave to it by trying days and nights to solve its problems.
    Hence, I have officially decom my phone and gotten an iPhone 4 instead. The switch ain't that difficult for me as I have always been platform neutral. As long it fits my needs, does it job well and doesn't give me too much headache, I'm cool with it.
    Ciao folks!

  • Problem with hotmail calendar display

    Problems with hotmail calendar display.

    I am almost a total computer novice and am having what I think is the same problem  Just got my first Apple computer (Macbook Pro).  MSN Hotmail is my email account.  All the events on my 'hotmail' account are now unreadble because they are squished to the left side of the screen and I don't find any instructions as to how to fix this in the system. This problem didn't exist when I first started using my MAC two days ago, but now I'm stuck.  Everything else in my 'hotmail' seems to work fine.  Don't know what Chrome or Firefox is or if there is a cost for them.  Also, have never downloaded a program if any kind.
    My calendar is critically important to me and I don't have a clue as to what to do now.  Hope you can help.
    Thanks.  Linda

  • Please Help?! Problems with Viber for iPhone 4s

    Please help!
    I have had problems with Viber for a while now and had given up! But now a few contacts only have viber and not other free messaging apps so I’m trying to use it again but still having problems.
    I have uninstalled and reinstalled a number of times and still have not received an access code. My main problem though is the messaging it would work fine and then I wouldn’t be able to send any messages and I would receive a message go into the app and the message would not appear.
    The other day I reinstalled it whilst at work and worked perfectly could send and receive messages easily. Then when I went home the problem stated again. I then uninstalled and reinstalled again and it worked perfectly, but now back at work I’m having the issues again! I can’t keep uninstalling and reinstalling is there a way this can be fixed?!
    If anyone is able to help me out it would be much appreciated! Thanks

    You activated "Find My Mac," which disables the built-in Guest account and adds a Safari-only "Guest User" pseudo-account. To get the Guest account back, you would have to disable FMM.

  • Windows App Certification Toolkit fails on Certification requirements for Windows desktop apps Point 5.5

    Using the latest Version 3.4 of Windows App Certification Toolkit to check Windows 8.1 compatibility our Installer was not approved on:
    Certification requirements for Windows desktop apps
    5.5 Your app installer must create the correct registry entries to allow successful detection and uninstalls
    But all necessary settings are done and after the installation of our application we will find all settings in the registry.
    We use an MSI Installer embedded in a bootstrapper exe. The MSI Installer is made with the WiX Toolset V3.6.
    The same Application Installer got approved on November, 2014.
    We checked this issue against the latest version of MSThreatModelingToolkit installer which also was made with WiX toolset and it fails, too.
    So is there a higher restriction or do we miss anything?

    Hi Wibudev,
    I would suggest you to double check if you have miss something in registry, per documentation mentioned, the installation module must create the following registry entries during installation:
    DisplayName
    InstallLocation
    Publisher
    UninstallString
    VersionMajor or MajorVersion
    VersionMinor or MinorVersion
    WACK 3.4 is the latest version, I don't think there would be any higher restriction but I will recommend you to test with another computer to see if the validate fails again. Sometimes the issue could be on the PC environment.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can we implement site catalyst for Remote desktop app like MS dynamics NAV?

    Can we implement site catalyst for Remote desktop app like MS dynamics NAV?
    please throw some insight

    Hi,
    Thank you for posting in Windows Server Forum.
    Does this happens for this particular application?
    For a test you can publish Notepad\WordPad as RemoteApp and check whether facing same issue. Please check the result and let us know. If it’s working normally then might seems there is some configuration issue with MS Dynamics App. 
    Does this happens for all user or specific users?
    Which version of RDP Client you are using for client system?
    Try to install RDP 8.1 for better feature.
    Update for RemoteApp and Desktop Connections feature is available for Windows
    http://support.microsoft.com/kb/2830477
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support

  • Has anyone in this Forum had problems with installing and running Adobe apps on the new MacPro?

    Has anyone in this Forum had problems with installing and running Adobe apps on the new MacPro?
    I have been trying to install Photoshop CS6 & CC and Acrobat Pro XI on my Mac Pro (late 2013). I keep getting a 'configuration' error message and wondered if the problem was wide spread.
    TIA,
    Jerry

    Thanks, Martin.
    Good to hear someone has had success. The lack of it here is frustrating and depressing.
    Thanks again,
    Jerry

  • Problem with mail for exchange after update on E72...

    Hi everyone,
      I updated Nokia E-mail to ver 3.9 on E72. Now I am facing  a problem with mail for exchange. I have configured gmail on mail for exchange. I recieve a warning that "unable to sync contact administrator if problem persist". It started to pop up just after the update was over and is very frustrating. Even previously i used to recieve mails instantly but now it generally takes half an hour for me to recieve them. I deleted and created mail for exchange several times but to no avail.
    Also i am not able to automatically recieve mails other emails which i have configured. every time I have to manually download them everytime.
    Can anybody suggest a way out.
    Thanks
    Anil

    It could be a problem if you're using your network's connections...
    I was on a Pay & Go tariff with o2 some time ago, and needed secure connections for various things, o2 told me they didn't provide secure connections on Pay & Go tariffs...
    Could be worth checking with them to make sure it's supported.
    Nokia History: 3110, 5110, 7110, 7110, 3510i, 6210, 6310i, 5210, 6100, 6610, 7250, 7250i, 6650, 6230, 6230i, 6260, N70, N70, 5300, N95, N95, E71, E72
    Android History: HTC Desire, SE Xperia Arc, HTC Sensation, Sensation XE, One X+, Google Nexus 5

  • Problem with facetime for mac

    hello guy! I've got a problem with facetime for mac.My sister has a I-pod touch fourth generation with factime but i cna't phone her a message come on my mac.It say "xxx can't receive facetime's calls"!Can you help me??

    Thanks, Dah•veed.
    I did see mention of using Google Public DNS while I was searching the forums prior to posting, but to be honest didn't think it was a DNS-related problem.
    However, to rule it out I've set the prefered DNS servers on my router to Google's, but FaceTime still disconnects after 4-5 seconds when calling between me and my brother-in-law.  It doesn't matter who initiates the call.
    As a test, before I made the changes to my router, I logged into FaceTime as him on my MBP and tried calling myself on my iMac, and that was successful.
    The same test between the two iMacs when they were here was unsuccessful, so now I'm definitely thinking it's something on the '08 iMac.
    Now I just need to figure out what...

Maybe you are looking for

  • Reading an external property file for adapter configurations (How-To)

    One thing that has bugged me is having to change an Adapter's property settings in the context file and then build and re-deploy the bundle to effect those changes. This really becomes a problem when you want to test a bundle in different server envi

  • Apple Care??? Is it worth it

    My iMac warrant is up in 7 days is the $179 really worth it for 2 more years, my mac has never had any issues.. thanks in advance for comments

  • Dynamically Add Configuration Views to 3D Images

    We have numerous Pro/Engineering drawings that we would like to convert to 3D PDF documents. This is easily accomplished with Adobe Reviewer. We would also like to include additional views (configurations) -- such as an "Exploded View" of the drawing

  • Politics for queues

    hi! i have two queues definied for server1 (default and MyExecute Queue) in weblogic 8.1 sp3. the queues are definied with the same priority (5). if there are one request both queues, which´s process first? What´s politics used and how i can config

  • Can i install mountain lion operating system in Macpro 2014 model.

    Hello, can i install mountain lion operating system in Macpro 2014 model? and currently operating system is mavrick.