Using Native Window

I am new to Flex and I am trying to do a very simple thing but I keep getting Access of undefined property error.
I am trying to create a native window using the following code
[AS]
import flash.display.NativeWindowInitOptions;
import flash.display.NativeWindowSystemChrome;
import flash.display.NativeWindowType;
import flash.display.NativeWindow;
import  flash.display.StageAlign;
import  flash.display.StageScaleMode;
var options:NativeWindowInitOptions = new NativeWindowInitOptions();
// sets the type to NORMAL
options.type = NativeWindowType.NORMAL;
// creates a new NativeWindow and activates it
var  window:NativeWindow = new NativeWindow( options );
window.active();
Now I keep getting this error
Access of undefiined property options
Access of undefiined property window
I have also included all the classes required
Thanks in advance

Usually code like that should be in some function and not just after a bunch of imports.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

Similar Messages

  • Feature Request -  use native Windows file browsing dialog

    I'm not sure if this has been brought up before. I wasn't able to find anything with a search in the forum, so I'll post it here.
    An enhancement request for SQL Developer would be to have it use the native file browsing dialogs in Windows. I'm using Windows 7, and it would be nice to have a native Windows dialog pop up when I go to open or save a file, rather than the ugly (I think) default one, which must be a generic Java file browsing construct. The native dialog would allow it to include all the links to Windows 7 libraries, favorites, and other things like Dropbox, Google Drive, etc. if those were installed.
    I'd be curious to hear what others think about this idea.
    Thanks,
    Brian

    At the risk of starting a Windows/Linux/Mac flame war, or pissing off Java developers, I'm not really into the whole Java write once, run anywhere approach. Particularly when it comes to look and feel. There are merits to cross-platform development when it comes to application functionality, but look and feel is a bit trickier. Windows has specific features that Windows users are used to seeing and using. Mac the same. Linux the same. I think this is especially true when it comes to dealing with the file system. So applications should adjust to the native environment nicely and not introduce elements that don't "fit in". Just MY $0.02. :-)
    I'm not a Java developer, but IvanG pointed out that it SHOULD be pretty easy to invoke a native Windows dialog box from Java. That would be my choice.
    Thanks!

  • Use Native Windows Dialogs in Firefox 10

    I like to set Firefox 10 to use the original Native Windows Dialogs when Open, Save, Save as, etc. are called.
    I use Direct Folders to quickly navigate to any folder I need, this has been working fine until now, but not with this new version.
    I need to know what to set in "about:config" to use the old Windows Dialog boxes

    Hi,
    Firefox uses the Windows native dialog boxes by default. You can try to check this in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode].
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
    Safe mode disables the installed '''Extensions''', and themes ('''Appearance''') in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons'''. Hardware acceleration is also temporarily disabled - the manual setting is '''Tools''' > '''Options''' > '''Advanced''' > '''General''' > '''Use hardware acceleration when available'''. [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel?as=u Options > Advanced]. All these settings/add-ons can also be individually or collectively disabled/enabled/changed in Firefox normal mode to check if an extension, theme or hardware acceleration is causing issues.
    [https://support.mozilla.org/en-US/kb/Options%20window Options]
    If the problem persists, you may have to change the settings in Direct Folders or any other Windows enhancement/theme software.

  • Native Windows Authentication in Java?

    I'm maintaining a Java web app that runs on a Windows server and needs to use native Windows authentication to do a pass/fail validation of a client's user/pass/domain credentials.
    Currently, the app uses JNI to make a simple LogonUserW call, however JNI is causing a variety of headaches. I was wondering if Java can do Windows authentication with JAAS or Java SSO technology. I'm new to Java security APIs so any pointers are greatly appreciated.
    Thanks!

    I'm maintaining a Java web app that runs on a Windows server and needs to use native Windows authentication to do a pass/fail validation of a client's user/pass/domain credentials.
    Currently, the app uses JNI to make a simple LogonUserW call, however JNI is causing a variety of headaches. I was wondering if Java can do Windows authentication with JAAS or Java SSO technology. I'm new to Java security APIs so any pointers are greatly appreciated.
    Thanks!

  • Pasting HTML to the clipboard to be used by Windows native apps

    I'm having problems creating a DataFlavor that will allow me to write a
    string to the clipboard in html format so that a windows native app (e.g.
    MS Word) can recognise this format and allow me the option of
    pasting as html rather than just plain text.
    I've found that if I alter my code to first get the contents off the
    clipboard (some html I copy from an Internet Explorer-viewed web page), I
    can extract the html DataFlavor from the Transferable object that IE has
    placed on the clipboard. If I then use this "stolen" DataFlavor to write my
    contents to the clipboard, I find that I can successfully paste as HTML in a
    windows native app.
    However, since I can't rely on grabbing some html from IE just to get a
    suitable DataFlavor each time I need to use my copy function, I have been
    attempting to construct my own DataFlavor to match the characteristics of
    the IE example flavour.
    The problem is that, having set the representation class, MIMEType and human
    presentable name to match the IE flavor, when I call DataFlavor.equals() to
    compare the two flavours it returns false, and my constructed flavour
    subsequently fails to show up as a paste option in any native apps. Having
    compared every possible property of both flavours, I've concluded that the
    only difference between the two is that the IE flavour has the charset
    parameter set as utf-8, whereas my constructed flavour has no charset
    parameter specified. I have found no way to manually set the charset. So
    calling getMimeType() on each flavour gives:
    IEDataFlavor.getMimeType() = text/html; class=java.io.InputStream; charset=utf-8
    MyOwnDataFlavor.getMimeType() = text/html; class=java.io.InputStream
    Using the Windows Clipboard viewer I have observed that my constructed
    DataFlavor does exist on the clipboard, however whereas the IE flavour's
    visible name is "HTML Format", mine is "JAVA_DATAFLAVOR: text/html;
    class=java.io.InputStream"
    and I think this is the reason that native windows apps are failing to
    recognise my DataFlavor as a valid option for display.
    I'm using jdk 1.3.1
    If anyone has ever encountered this problem or can think of a solution I'd
    be extremely grateful for your help.
    Thanks,
    Steve White

    I have a similar problem:
    IE actually put the "HTML Format"(CF_HMTL) flavor into the clipboard, with some additional info, such as SourceURL as the description.
    see
    http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/clipboard/htmlclipboard.asp
    How will this information be available to Java clipboard?
    Main question, for HTML data pasted by IE into the clipboard, how to get the source url.
    I know some Windows native apps could get that info nicely.
    Thanks!

  • I want to use Native System Center Software Center Notification box or Windows Update dialogue box to force a reboot.

    I'm installing software that will require a reboot. I would like to use the Windows Update dialogue box to prompt users to reboot.
    Or a reboot dialogue box that mimics System Center Software Center Notification box
    Does anyone know of a way to use the System Center Client notification or the Windows update box to force a reboot. This is familiar to my users and will not freak them out 

    The Coretech Shutdown Tool is free, excellent and would satisfy your requirement.
    http://blog.coretech.dk/kea/new-version-of-the-coretech-shutdown-tool/
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • Unable to load php file into native window..

    Hi Guys,
    Im using flash cs3 as my development environment. what i was trying to do is creating a small login application using Air. I must say im still a newbie to flash air. as far as my login system concern i have managed following tasks,
    1. send username ans password using post and validate through php
    2. get the result back to flash application and open up a new native air window if the login is success.
    3. close the login window.
    now what i want to do is load my PHP application inside that newly open native window. How can i do it. I tried using Loader() method but it only worked for images not for php or html files.
    heres how I tried to use the loader method,
    var url:String = "http://localhost/Flash/login/welcome.php";
    var fileLoader:Loader = new Loader();
    fileLoader.load(new URLRequest(url));
    win.stage.addChild(fileLoader);
    This failed.
    Does anyone know how to load a PHP file into a Native window? Your help highly appreciate it.
    Just in case for the people who wants to know who I did the above mentioned tasks heres the code,
    Posting data to PHP server
    function sendLoginData() {
         if(txtUserName.text=='')
              txtBox.text = 'Username is empty';
         else if(txtPassword.text=='')
              txtBox.text = 'Password is empty';
         else
              var variables:URLVariables = new URLVariables();
              variables.UserName = txtUserName.text;
              variables.Password = txtPassword.text;
              var request:URLRequest = new URLRequest("http://localhost/Flash/login/login.php"); 
              var loader:URLLoader = new URLLoader(); 
              loader.dataFormat = URLLoaderDataFormat.TEXT; 
              request.data = variables; 
              request.method = URLRequestMethod.POST; 
              loader.addEventListener(Event.COMPLETE, handleComplete); 
              loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError); 
              loader.load(request);
    Handdle the returned data
    function handleComplete(event:Event):void
         var variables:URLVariables = new URLVariables(event.target.data); 
         if(variables.errorcode==0)
              var url:String = "http://localhost/Flash/login/welcome.php";
              try {                             
                   //Native window
                   var options:NativeWindowInitOptions = new NativeWindowInitOptions();
                   options.systemChrome = NativeWindowSystemChrome.STANDARD;
                   options.transparent = false;
                   options.maximizable=false;
                   var win:NativeWindow = new NativeWindow(options);
                   win.title = 'welcome page';
                   //win.width = 900;
                   //win.height = 900;
                   /*var fileLoader:Loader = new Loader();
                   fileLoader.load(new URLRequest(url));
                   win.stage.addChild(fileLoader);*/
                   win.maximize();
                   win.activate();
                   stage.nativeWindow.close();
              } catch (e:Error) {
                trace("Error occurred!");
         else
              txtBox.text = 'Invalid logins';
    function onIOError(event:IOErrorEvent):void
         trace("Error loading URL."); 
    PHP code
    <?php
    $username = addslashes($_POST['UserName']);
    $password = addslashes($_POST['Password']);
    //do your database checking here. this is an example
    if($username=='niroshan' && $password=='123456')
         echo "errorcode=0"; 
    else
         echo "errorcode=1"; 
    ?>
    Call the function when pressing the submit
    cmdButton.addEventListener(MouseEvent.CLICK,readySendLoginData);
    function readySendLoginData(evt:MouseEvent){    
      sendLoginData();
    Thanks,
    best regards,
    Niroshan

    Thats right, HTMLLoader should solve the issue as Loader used for JPEG, PNG OR GIF files loading as per my knowledge

  • How do i make a pure actionscript as simple native window?

    Hello @all anythings,
    I ask about a sample pure framework by Flex for Adobe Air.
    An Example: Window with customizable buttons - If i use boolen  for visible or invisible buttons like this:
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part6_ProgAS_1.html
    For Example:
    NativeWindowPanel:
    <sm:NativeAirWindow icon="true" closable="true" minimizable="true" resizable="false">
    </sm:NativeAirWindow>
    How do i know that code with AS3. I want to build custom window for native window - Non-FlexChrome?
    Sorry my Language is same problematy...
    But I want to learn about pure actionscript for creating sample frameworks & components.... That is new native Language for German?
    Thanks and best regards...
    Snake Media Inc

    <code>
    [http://example.com text]
    </code>

  • Embedding Applet in native Windows Application

    Hi!
    I need to integrate applet into my windows application (MSVC).
    The problem is displaying applet(s) within the application's main window (just like in browser).
    Is there a way to do it? Using WebBrowser (IE) ActiveX component is unacceptable.
    Perhaps there is documentation how to use JRE browser plugin, but googling yielded no results :(

    <offtopic>Apparently my login no longer working, re-registered</offtopic>
    ActiveX bridge won't do, I have to load an applet from any .jar
    The idea is to write kind of applet loader, which may be able to load jar and display applet.
    To start with, I need to know the way of paiting Java application GUI (i.e. JFrame) inside the native window.
    There is one way I've found. First, create borderless JFrame with some unique title, then use FindWindow in C++ Application to obtain HWND (window handle), and then call SetParent. I know there is more elegant way using JAWT to obtain HWND, the main problem is that Java window is rendered separately and only then becomes a part of native window, because HWND could be get on visible window only. This results unneccessary mess and flicking on screen for user.
    So, how can I render Java GUI directly to native window?
    I used search and haven't found solution.
    Thank you!
    PS found http://forum.java.sun.com/thread.jspa?forumID=52&threadID=5124062
    but this guy haven't said how he ded that :(
    Edited by: deniska25 on Oct 15, 2007 1:52 PM

  • Netscape.javascript.JSException: Native Window is destroyed

    Supposedly this code closes the window in which the applet is displayed.
    try{
         JSObject win = (JSObject) JSObject.getWindow(this);
         win.eval("self.close();");
    catch(JSException ex){
         System.out.println(ex.getWrappedException().toString());
    catch(Exception ex){
         System.out.println(ex.toString());
    }But I am getting "netscape.javascript.JSException: Native Window is destroyed" every time I run it. I Googled this exception, and to my surprise, I got 0 results. Does anyone know what is causing this or how to avoid it?
    I tried adding the method "close_window()" to the page, and calling that function with win.eval(), but I get the same error.
    The browser in question is Firefox on Windows XP. It is running an applet in a "bare bones" windows, with no toolbars or status bars.

    I've never used that exact call, what about a slightly different method:
    try{
         JSObject win = (JSObject) JSObject.getWindow(this);
         win.call("close", new Object[0]);
    catch(JSException ex){
         System.out.println(ex.getWrappedException().toString());
    catch(Exception ex){
         System.out.println(ex.toString());
    }

  • Resize a native window content mantain the aspect ratio..

    Hello,
    I'm using this code top open a native window and load an external SWF into it.
    var tableWindow:NativeWindow;
    var options:NativeWindowInitOptions = new NativeWindowInitOptions();
    options.systemChrome = NativeWindowSystemChrome.STANDARD;
    options.type = NativeWindowType.UTILITY;
    tableWindow = new NativeWindow(options);
    tableWindow.title = 'MyWin';
    tableWindow.width = 600;
    tableWindow.height = 500;
    tableWindow.stage.color = 0x000000;
    tableWindow.stage.scaleMode = StageScaleMode.NO_SCALE;
    tableWindow.stage.align = StageAlign.TOP_LEFT;
    tableWindow.addEventListener(NativeWindowBoundsEvent.RESIZING, resizeDisplay, false, 0, true);
    tableWindow.addEventListener(Event.CLOSE, closeWin);
    tableWindow.activate();
    after opening a window i load the swf into it:
    var loader:Loader = new Loader();
    var context:LoaderContext;
    context = new LoaderContext();
    context.allowCodeImport = true;
    context.applicationDomain = new ApplicationDomain();
    loader.load(new URLRequest("app:/myswf.swf"), context);
    loader.contentLoaderInfo.addEventListener(Event.INIT, loadFlash);
    I have several problems.. if i use a ScaleMode different than NO_SCALE in main swf and/or in the loaded SWF the file is shown wrong. I have a correct window but the swf is displayed HUGE into the window.. so i've decided to use NO_SCALE as ScaleMode
    Is there a way to mantain the aspect ratio of the window AND (more important) resize ALSO the swf loaded into it?
    Thank you

    I rarely do Flex but I've done a lot of AIR for AS projects and I find their windows to have this bizarre behavior as well.
    I think 2 things are important in my limited experience. To keep aspect ratio I set it to NO_BORDER. This maintains the aspect ratio but also allows resizing.
    Second on my main class I explicitly set the main SWF to a height and width:
    e.g.
    package yada {
         [SWF(width=xxx,height=xxx)]
         public class MyApp extends.....
    If I didn't set that in the AS3 code explicitly (the XML didn't matter at all) the SWF would be the original size. Now your content should be at the size you specify in your window and allow resize.
    Lastly, you're already paying attention to resizing:
    tableWindow.addEventListener(NativeWindowBoundsEvent.RESIZING, resizeDisplay, false, 0, true);
    I think you need to handle that manually. As the user intends to grow or shrink the window you need to override their resize and set the height and width explicitly based on what they try to do, forcing the outer windows size to always be a proper aspect ratio.

  • Making JFrame Window Lose Focus to a Native Window

    How can i from within the same JFrame code or another class with the JFrame reference make JFrame lose focus to another native window on the desktop.
    Any tips

    In the core java API you can not make a native window take focus, you would have to use native code (JNI).
    The best you could do would be minimize the JFrame.

  • Error 16828 when update from native Windows installer

    Dears,
    I have noticed error 16828 when I tried to update AIR application.
    Steps to reproduce (AIR 2.5.1):
    1. Prepare AIR
    2. Prepare Native windows installer (*.exe)
    3. Install application from native windows installer
    4. Run application updater
    5. Download new application air file and start install
    6. You will get 16828 error.
    Does anybody know how to solve this problem?
    I know (too late) that updating native application with build-in updater (air.update.ApplicationUpdaterUI) is not possible and I have to use NativeApplicationUpdater library.
    Unfortunately we have many users with installed Windows native application with buggy updater class. Each time when they tried to update they will get this an error with so misleading error description.
    thanks in advance
    Adam

    Hi, Brad
    I was able to run .exe renewal in accordance with "extendedDesktop"
    The principle of the following
    <Code>
    airFile = File.applicationStorageDirectory.resolvePath(folderUpdate + '/updateCode.exe');
    private function StartUpdate () : void {
                        var npsi : NativeProcessStartupInfo = new NativeProcessStartupInfo();
                        npsi.executable = airFile;
                        var nativeProcess : NativeProcess = new NativeProcess();
                        nativeProcess.start(npsi);
                        Reboot.CloseApp();
    Close Apllication function
    public static function CloseApp () : void {
                var mgr:ProductManager = new ProductManager("airappinstaller"); 
                NativeApplication.nativeApplication.exit(); 
    </Code>
    Run .exe through the console and close the application. If you do not close the updates will not start because of the running application.
    Everything works, but for me the way the data is not suitable.
    Another disadvantage is that the way to run an application can only Windows.

  • Using Native MDT to build images - then deploy using SCCM

    Greetings,
      I recently watched a webcast from the MS deployment guys and they were insistent that images were built using native MDT, not SCCM. This requires a separate standalone WSUS which is not a real problem.
      For people who agree with this, I was interested in your experience of the advantages of doing this.
      These are some that have been stated here (http://bit.ly/QSHqt3):
    "Using MDT 2013 Lite Touch is simply faster in most cases"
      I dont understand this one - why should it be faster?
    "You can use the same image for every type
    of OS deployment (VDI, SCVMM, MDT, ConfigMgr, WDS, and more)"
      Can't the WIM file generated by SCCM built images be used everywhere?
    "You don’t need to worry about any challenges
    related to running everything in the LocalSystem context"
      What does this mean exactly (examples please)?
    "You don’t need to worry about the ConfigMgr
    task sequence suppressing UI interaction"
      What do they mean here?
     And are software updates really that much of a pain with SCCM built images?
    Lastly - do people always build images from scratch or do they feed the output wim back into the next build process and just add the changes required (like
    software updates)?
    Thanks
    David Z

    "Using MDT 2013 Lite Touch is simply faster in most cases"
      I dont understand this one - why should it be faster?
    You can stand up an instance of MDT, import the necessary media, and produce an image more quickly than you can do the same in ConfigMgr.  Actual image creation time can vary due to a number of factors, but in my experience the actual time to run the
    Task Sequence is often also shorter.
    "You can use the same image for
    every type of OS deployment (VDI, SCVMM, MDT, ConfigMgr, WDS, and more)"
      Can't the WIM file generated by SCCM built images be used everywhere?
    Yes, it can...though bear in mind the image built with ConfigMgr does have the ConfigMgr client installed in the image where the MDT image does not.
    "You don’t need to worry about any
    challenges related to running everything in the LocalSystem context"
      What does this mean exactly (examples please)?
    This is not as much of an issue as it used to be. When the MDT Task Sequence runs post-Windows Setup, it is running as the local Administrator account.  When ConfigMgr runs this portion, it's running in the Local System context.  This can be problematic
    with some application installs that rely on certain user environment conditions, but the bigger reason was always the CopyProfile feature in the unattend.xml (and moreso with the UpdateServerProfileDirectory entry in the unattend.txt for WinXP). This took
    whatever customizations were made under the local Administrator profile and copied them (mostly) into the Default User profile.  This made for an easy way to customize the Default User.  This is *not* currently considered a best practice by
    any means, even though it is still an available option in the Win8.1 unattend.xml file (Specialize pass).
    "You don’t need to worry about the
    ConfigMgr task sequence suppressing UI interaction"
      What do they mean here?
    ConfigMgr suppresses virtually any prompts, dialogs or notifications that are not generated by the Task Sequence engine itself, whether it's intended to be shown by design or generated by an error condition from an app or command line being run. 
    For example, the default max run time for apps is generally 2 hours. If the application decides to throw up a notification window for some reason, it will not be visible and the Task Sequence engine will wait the full 2 hours before timing out and finally
    failing.
    And are software updates really that much of a pain with SCCM built images?
    No, and in fact Software Updates are one of the biggest arguments against using MDT if you're already using ConfigMgr for Software Update deployment.  Because MDT doesn't have the ConfigMgr client, it can't recognize the availability of Software Updates
    deployed in ConfigMgr, and it's really a bad idea to try and use the same instance of WSUS that ConfigMgr is using to deploy updates directly from WSUS.  So you end up having to maintain Software Updates in two places: ConfigMgr and standalone WSUS. 
    Lastly - do people always build images from scratch or do they feed the output wim back into the next build process and just add the changes required
    (like software updates)?
    I recommend doing a clean build and capture every time, whether ConfigMgr or MDT.  If you have a solid Task Sequence developed and a consistent revisioning process in place, it's just a matter of firing up a VM and kicking off the TS, then importing
    the captured WIM into ConfigMgr, distributing and testing.
    Hope that answers your questions!

  • RenewTGT using native cache with KRB5  Message stream modified

    I have implemented the Jass tutorial JassAcn.java and it works fine when username and password are entered.
    However,when I try to use the ticket from the native cache I get the following error :
         Ticket could not be renewed : Message stream modified (41)     
    and then get prompted to enter the username followed by the password. If I enter the user name
    and password the authentication is successfull.
    I am using a Windows XP SP2 client and JDK 1.5 and a Win2000 server.
    The registry key "allowtgtsessionkey" on the client has been set to 0x01 as recommended by
    C:\jdk15help\docs\guide\security\jgss\tutorials\Troubleshooting.html
    The "Message stream modified" error seems to imply that
    checksum used to verify the data packet didn't match what was expected or some packets are being corrupted.
    I tried different default_checksum but to no avail.
    Has anyone encountered this before?
    My config file is as follows:
    JaasSample {
    com.sun.security.auth.module.Krb5LoginModule required
                        useTicketCache=true
                        renewTGT = true
                        debug=true;
    and the debug log
    Debug is true storeKey false useTicketCache true useKeyTab false doNotPrompt false ticketCache is null KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    Acquire TGT from Cache
    Ticket could not be renewed : Message stream modified (41)
    Principal is null
    null credentials from Ticket Cache
    Kerberos username [myname]:
    Kerberos password for myname: mypassword
              [Krb5LoginModule] user entered username: myname
    principal is [email protected]
    Acquire TGT using AS Exchange
    EncryptionKey: keyType=3 keyBytes (hex dump)=0000: 38 1A 02 C8 EA 5B EA 67
    EncryptionKey: keyType=1 keyBytes (hex dump)=0000: 38 1A 02 C8 EA 5B EA 67
    EncryptionKey: keyType=16 keyBytes (hex dump)=0000: D5 F1 D5 DF AD 67 37 5D 3B AB A2 AE 89 1F 13 F1 .....g7];.......
    0010: FB EA AB AB D3 52 40 D6
    Commit Succeeded

    I have implemented the Jass tutorial JassAcn.java and it works fine when username and password are entered.
    However,when I try to use the ticket from the native cache I get the following error :
         Ticket could not be renewed : Message stream modified (41)     
    and then get prompted to enter the username followed by the password. If I enter the user name
    and password the authentication is successfull.
    I am using a Windows XP SP2 client and JDK 1.5 and a Win2000 server.
    The registry key "allowtgtsessionkey" on the client has been set to 0x01 as recommended by
    C:\jdk15help\docs\guide\security\jgss\tutorials\Troubleshooting.html
    The "Message stream modified" error seems to imply that
    checksum used to verify the data packet didn't match what was expected or some packets are being corrupted.
    I tried different default_checksum but to no avail.
    Has anyone encountered this before?
    My config file is as follows:
    JaasSample {
    com.sun.security.auth.module.Krb5LoginModule required
                        useTicketCache=true
                        renewTGT = true
                        debug=true;
    and the debug log
    Debug is true storeKey false useTicketCache true useKeyTab false doNotPrompt false ticketCache is null KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    Acquire TGT from Cache
    Ticket could not be renewed : Message stream modified (41)
    Principal is null
    null credentials from Ticket Cache
    Kerberos username [myname]:
    Kerberos password for myname: mypassword
              [Krb5LoginModule] user entered username: myname
    principal is [email protected]
    Acquire TGT using AS Exchange
    EncryptionKey: keyType=3 keyBytes (hex dump)=0000: 38 1A 02 C8 EA 5B EA 67
    EncryptionKey: keyType=1 keyBytes (hex dump)=0000: 38 1A 02 C8 EA 5B EA 67
    EncryptionKey: keyType=16 keyBytes (hex dump)=0000: D5 F1 D5 DF AD 67 37 5D 3B AB A2 AE 89 1F 13 F1 .....g7];.......
    0010: FB EA AB AB D3 52 40 D6
    Commit Succeeded

Maybe you are looking for