Need source code or help for COMM_FAILURE 209

Hi,
Anyone know where I can get the source code for the com.sun.jndi.cosnaming package? I'm trying to debug this message WARNING: "IOP00410209: (COMM_FAILURE) Connection rebind". Only get this problem when connecting to solaris, fine on windows.
We run tnameserv and jdk1.4.2 on both. Also tried using jacorb, get same problem. The ORB's don't return any errors, error only on client side. Client is also jdk1.4.2 running on windows.
Ted.

Sorry,
but nobody here will do your homework for you. If you have problems with your code let us know and we try to help, but never ask for source code.
Phil

Similar Messages

  • Super 1.5 - source code level tracing for EJB, JSP and others

     

    Would you want to try new installation for Super 1.6?
    Please visit www.acelet.com
    Thanks.
    "Dominique Jean-Prost" <[email protected]> wrote:
    If only your installation tool was easy to use ...
    dom
    "Wei Jiang" <[email protected]> a écrit dans le message news:
    [email protected]...
    Super supports source code level tracing for Java and JSP!
    Announcement: Super 1.5 - an EJB/J2EE monitoring tool with
    SuperPeekPoke
    SuperLogging
    SuperStress
    SuperEnvironment
    It is free for development.
    You can anomyously down load it from:
    http://www.acelet.com.
    Super is a component based administration tool for EJB/J2ee.
    It provides built-in functionality as well as
    extensions, as SuperComponents. Users can install
    SuperComponents onto it, or uninstall them from it.
    Super has the following functions:
    * A J2EE/EJB monitor.
    * A gateway to EJB servers from different vendors.
    * A framework holding user defined SuperComponents.
    * A PeekPoke tool to read/write attributes from EJBs.
    * A full-featured logging/tracing tool for centralized, chronologicallogging.
    * A Stress test tool.
    * A global environment tool.
    It is written in pure Java.
    The current version support:
    * Universal servers.
    * Weblogic 5.1
    * Weblogic 6.0
    What is new:
    Version 1.50 August, 2001
    Enhancement:
    1. Source code level tracing supports EJB, JSP, java helper and other
    programs which are written in native languages (as long as you
    write correct log messages in your application).
    2. Redress supports JSP now.
    3. New installation with full help document: hope it will be easier.
    4. Support WebSphere 4.0
    Version 1.40 June, 2001
    Enhancement:
    1. Add SuperEnvironment which is a Kaleidoscope with TableView,TimeSeriesView
    and PieView for GlobalProperties.
    GlobalProperties is an open source program from Acelet.
    2. SuperPeekPoke adds Kaleidoscope with TableView, TimeSeriesView andPieView.
    Changes:
    1. The structure of log database changed. You need delete old installationand
    install everything new.
    2. The format of time stamp of SuperLogging changed. It is not localedependent:
    better for report utilities.
    3. Time stamp of SuperLogging added machine name: better for clusteringenvironment.
    Bug fix:
    1. Under JDK 1.3, when you close Trace Panel, the timer may not bestopped
    and
    Style Panel may not show up.
    Version 1.30 May, 2001
    Enhancement:
    1. Add ConnectionPlugin support.
    2. Add support for Borland AppServer.
    Version 1.20 April, 2001
    Enhancement:
    1. Redress with option to save a backup file
    2. More data validation on Dump Panel.
    3. Add uninstall for Super itself.
    4. Add Log Database Panel for changing the log database parameters.
    5. Register Class: you can type in name or browse on file system.
    6. New tour with new examples.
    Bug fix:
    1. Redress: save file may fail.
    2. Install Bean: some may fail due to missing manifest file. Now, itis
    treated
    as foreign beans.
    3. Installation: Both installServerSideLibrary and installLogDatabasecan
    be worked
    on the original file, do not need copy to a temporary directory anymore.
    4. PeekPoke: if there is no stub available, JNDI list would be emptyfor
    Weblogic5-6.
    Now it pick up all availble ones and give warning messages.
    5. Stress: Launch>Save>Cancel generated a null pointer exception.
    Changes:
    1. installLogDatabase has been changed from .zip file to .jar file.
    2. SuperLogging: If the log database is broken, the log methods willnot
    try to
    access the log database. It is consistent with the document now.
    3. SuperLogging will not read system properties now. You can put logdatabase
    parameters in SuperLoggingEJB's deployment descriptor.
    Version 1.10 Feb., 2001
    Enhancement:
    1. Re-written PeekPoke with Save/Restore functions.
    2. New SuperComponent: SuperStress for stress test.
    3. Set a mark at the highlighted line on<font size=+0> the Source Code
    Panel (as a work-a-round for JDK 1.3).</font>
    4. Add support for WebLogic 6.0
    Bug fix:
    1. Uninstall bean does physically delete the jar file now.
    2. WebLogic51 Envoy may not always list all JNDI names. This is fixed.
    Version 1.00 Oct., 2000
    Enhancement:
    1. Support Universal server (virtual all EJB servers).
    2. Add Lost and Found for JNDI names, in case you need it.
    3. JNDI ComboBox is editable now, so you can PeekPoke not listed JNDIname
    (mainly
    for Envoys which do not support JNDI list).
    Version 0.90: Sept, 2000
    Enhancement:
    1. PeekPoke supports arbitrary objects (except for Vector, Hashtable
    and alike) as input values.
    2. Reworked help documents.
    Bug fix:
    1. Clicking Cancel button on Pace Panel set 0 to pace. It causes
    further time-out.
    2. MDI related bugs under JDK 1.3.
    Version 0.80: Aug, 2000
    Enhancement:
    1. With full-featured SuperLogging.
    Version 0.72: July, 2000
    Bug fix:
    1. Ignore unknown objects, so Weblogic5.1 can show JNDI list.
    Version 0.71: July, 2000
    Enhancement:
    1. Re-worked peek algorithm, doing better for concurent use.
    2. Add cacellable Wait dialog, showing Super is busy.
    3. Add Stop button on Peek Panel.
    4. Add undeploy example button.
    Bug fix:
    1. Deletion on Peek Panel may cause error under JDK 1.3. Now it worksfor
    both
    1.2 and 1.3
    Version 0.70: July, 2000
    Enhancement:
    1. PeekPoke EJBs without programming.
    Bug fix:
    1. Did not show many windows under JDK 1.3. Now it works for both 1.2and
    1.3
    Changes:
    1. All changes are backward compatible, but you may need to recompilemonitor
    windows defined by you.
    Version 0.61: June, 2000
    Bug fix:
    1. First time if you choose BUFFER as logging device, message willnot
    show.
    2. Fixed LoggingPanel related bugs.
    Version 0.60: May, 2000
    Enhancement:
    1. Add DATABASE as a logging device for persistent logging message.
    2. Made alertInterval configurable.
    3. Made pace for tracing configurable.
    Bug fix:
    1. Fixed many bugs.
    Version 0.51, 0.52 and 0.53: April, 2000
    Enhancement:
    1. Add support to Weblogic 5.1 (support for Logging/Tracing and
    user defined GUI window, not support for regular monitoring).
    Bug fix:
    1. Context sensitive help is available for most of windows: pressF1.
    2. Fix installation related problems.
    Version 0.50: April, 2000
    Enhancement:
    1. Use JavaHelp for help system.
    2. Add shutdown functionality for J2EE.
    3. Add support to Weblogic 4.5 (support for Logging/Tracing and
    user defined GUI window, not support for regular monitoring).
    Bug fix:
    1. Better exception handling for null Application.
    Version 0.40: March, 2000
    Enhancement:
    1.New installation program, solves installation related problems.
    2. Installation deploys AceletSuperApp application.
    3. Add deploy/undeploy facilities.
    4. Add EJB and application lists.
    Change:
    1.SimpleMonitorInterface: now more simple.
    Version 0.30: January, 2000
    Enhancement:
    1. Add realm support to J2EE
    2. Come with installation program: you just install what you want
    the first time you run Super.
    Version 0.20: January, 2000
    Enhancement:
    Add support to J2EE Sun-RI.
    Change:
    1. Replace logging device "file" with "buffer" to be
    compliant to EJB 1.1. Your code do not need to change.
    Version 0.10: December, 1999
    Enhancement:
    1. provide SimpleMonitorInterface, so GUI experience is
    not necessary for developing most monitoring applications.
    2. Sortable table for table based windows by mouse
    click (left or right).
    Version 0.01 November., 1999:
    1. Bug fix: An exception thrown when log file is large.
    2. Enhancement: Add tour section in Help information.
    Version 0.00: October, 1999
    Thanks.

  • Source Code Editor Framework for Flex

    Dear Flex Forum members:
    As a Flex newbie a quite important question in relation to the "Flex frameworks world" still remains to me, even after some google search sessions:
    Does there exist any (preferably free) Flex framework or Flex component covering the functionality of a source code editor with syntax highlighting and syntax checking? -- Anything comparable to the Editor Framework within the Eclipse RCP (Rich Client Platform) or even to the Eclipse GEF (Graphical Editor Framework)?
    The background is as follows (and as described in more detail in my first post to this forum):
    An Online Shop Management Component shall offer the ShopManager to specify the products and offers in some declarative way and after a pre-defined grammar in place. The application frontend must be realized in Flex, and that's the reason why I'm now searching for:
    some kind of textual or graphical editor framework for realizing the Shop Manager's editor which shall support him/her in creating shop specifications/configurations in a grammar-conforming way through syntax color highlighting and syntax checking (error feedback), and
    this editor framework being intended for Flex (i.e., being a flex framework)
    In some way, much of the editing/modeling functionality is identical to the one offered by Flex Builder (Eclipse application), but in my case this functionality must be exposed as web application (Flex component running on the browser).
    Aps., would it also be possible to realize the Shop Management Component as AIR app, distribute it through a web page and run it locally on the Shop Managers client desktop???
    Which products/frameworks do you know for accomplishing this task?
    Thank you very much for any help.
    Best regards
    Alessandro

    Since people complain about Flex's basic rich text editor (which is a basic building block of the kind of framework you're discussing), I doub't you'll find what you need out of the box anywhere...

  • Getting an Object Identifier String given a line of source code? HELP!

    (forgot to close the code tag on that last one!)
    Hi there,
    I am in desparate need of getting the object identifier given a particular line of source code. I need this for the debugger I'm writing, and since the jdb forum never gets reponses; just more unanswered questions.
    Right so, here's my problem in more detail. I can find out when a method is called in the Java virtual machine, and what its name is, and arguments and values and such like - using the Java Debugging Interface. BUT: unfortunately I cannot get the object identifier used in the source code that generated this call. I can however get a unique long id that identifies this object .. if that helps?(thinking hashtables here maybe?!)
    So, I may know that the constructor of EddClass has been called, and this the following line generated this call:
    EddClass edd = new EddClass();.. so what I need is a fail safe way of finding out "edd" from this - given all types of method calls.
    This is quite tricky because there are loads of ways methods can be called e.g.
    tty.getClassExclusions(); // Here I would know getClassExclusions had been called, and I would need to find out the object identifier "tty" called it
    Temp a, b, c;
    a = b = c = new Temp(); // Here I would know the constructor for Temp had been called, but now I would just want to know "c"
    AnotherEg ae = (new Egg()).getAnotherEg(); // and in this last case if I had found out that the Egg constructor had been called, I don't want to find out any object identifier from this line of code - since the object is anonymous; however if I had found out that getAnotherEg() had been called I would want "ae"Ok, well - please help: I'm making a Java Animator that will be freely available - that serves to graphically animate the execution of another java program. It'd be cool if one of you guys could help make it really cool. Plus there are Dukes available!!
    - Edd.

    this is quite a complicated question I think!
    I'm not sure but you maybe need to know just about the whole java lang. spec to do this.
    I'm sure there are plenty of free java parsers around, so unless you have a lot of time available its probably best to download one, figure some way to feed it a single line from within a code block, and extract its symbol table.
    Once you have the symbol table, there will probably be some other data available from the parser to say which are identifiers.
    Its then up to your debugger to figure out which one is the interesting one!
    sorry this is so vague but I think you've asked for something that is quite involved!
    asjf

  • Need to create search help for parameter 2 based on values in parameter1

    hi Specialists,
    I need to create a search help for parameters field 2 ( Country ) based on the values the user inputs in parameters field 1 ( Currency ). The values of field  Currency & Country will come from T001 table.
    The logic is : Based on a unique currency value ( fetched from T001 table ) user needs to get/see all Countries on his selection -screen.
    Can you guys let me know which FM can I use for above & how to pass various values i.e. parameters into that FM. EXplanation with an example/code is highly appreciable.
    Thanks
    Abhinav.

    Hi Abhinav,
    Use this demo code, its working:-
    This code selects sale document item based on the user entry for sales document on the screen field.
    REPORT  ztg_f1f4.
    CALL SCREEN 1010.
    *&      Module  GET_F4_HELP  INPUT
    *       text
    MODULE get_f4_help INPUT.
      TYPES : BEGIN OF it,
                posnr TYPE zvbap-posnr,
              END OF it.
      DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
             tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
             vbeln TYPE zvbap-vbeln.
      CLEAR:   tb_dynpfields.
      REFRESH: tb_dynpfields.
      MOVE 'ZVBAP-VBELN' TO tb_dynpfields-fieldname. "screen field name
      APPEND tb_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                               = 'ZTG_F1F4'
          dynumb                               = '1010'
    *   TRANSLATE_TO_UPPER                   = ' '
    *   REQUEST                              = ' '
    *   PERFORM_CONVERSION_EXITS             = ' '
    *   PERFORM_INPUT_CONVERSION             = ' '
    *   DETERMINE_LOOP_INDEX                 = ' '
    *   START_SEARCH_IN_CURRENT_SCREEN       = ' '
    *   START_SEARCH_IN_MAIN_SCREEN          = ' '
    *   START_SEARCH_IN_STACKED_SCREEN       = ' '
    *   START_SEARCH_ON_SCR_STACKPOS         = ' '
    *   SEARCH_OWN_SUBSCREENS_FIRST          = ' '
    *   SEARCHPATH_OF_SUBSCREEN_AREAS        = ' '
        TABLES
          dynpfields                           = tb_dynpfields
    * EXCEPTIONS
    *   INVALID_ABAPWORKAREA                 = 1
    *   INVALID_DYNPROFIELD                  = 2
    *   INVALID_DYNPRONAME                   = 3
    *   INVALID_DYNPRONUMMER                 = 4
    *   INVALID_REQUEST                      = 5
    *   NO_FIELDDESCRIPTION                  = 6
    *   INVALID_PARAMETER                    = 7
    *   UNDEFIND_ERROR                       = 8
    *   DOUBLE_CONVERSION                    = 9
    *   STEPL_NOT_FOUND                      = 10
    *   OTHERS                               = 11
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE tb_dynpfields INDEX 1.
      IF sy-subrc EQ 0.
        vbeln = tb_dynpfields-fieldvalue.
      ENDIF.
      SELECT posnr FROM zvbap
        INTO TABLE itab
      WHERE
        vbeln = vbeln.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
    *   DDIC_STRUCTURE         = ' '
          retfield               = 'POSNR'
    *   PVALKEY                = ' '
         dynpprog               = 'ZTG_F1F4'
         dynpnr                 = '1010'
         dynprofield            = 'POSNR'
    *   STEPL                  = 0
    *   WINDOW_TITLE           =
    *   VALUE                  = ' '
       value_org              = 'S'
    *   MULTIPLE_CHOICE        = ' '
    *   DISPLAY                = ' '
    *   CALLBACK_PROGRAM       = ' '
    *   CALLBACK_FORM          = ' '
    *   MARK_TAB               =
    * IMPORTING
    *   USER_RESET             =
        TABLES
          value_tab              = itab
    *   FIELD_TAB              =
    *   RETURN_TAB             =
    *   DYNPFLD_MAPPING        =
    * EXCEPTIONS
    *   PARAMETER_ERROR        = 1
    *   NO_VALUES_FOUND        = 2
    *   OTHERS                 = 3
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " GET_F4_HELP  INPUT
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • Source Code Analysis tool for BPEL (and BPMN) 11g

    Hi,
    We are checking for the availablility of 'source code analysis' tools (analogy like findbug, checkstyle) for BPEL / BPMN Orchestrations.
    Any information/pointers to it is really valuable and appreciated.
    Thanks,
    Pavan.

    Hi AnujaMoharir,
    Welcome to MSDN.
    I am afraid that as Renee Culver said, these forums donot support VB6, you could refer to this thread:
    Where to post your VB 6 questions
    You could consider posting this issue in these forums below:
    These forums do not support Visual Basic 6, however there are many third-party support sites that do. If you have a VB6-related question please visit these popular forums:
    VB Forums
    VB City
    Thanks for your understanding.
    Best Regards,
    Youjun Tang
    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.

  • AWT SOURCE CODE---PLS HELP

    Can anyone help me on the how to develop GUI using only AWT..(the source code)
    FIRST SCREEN --> Opening Splash Screen "Application to view log details" with the sub topics "daily transmission Statistics and "Hourly Transmission Statistics" and a ok button at bottom.My own logo in a canvas should be displayed
    2nd screen---> Menu bar has 2 items such as file and help..If a button is pressed before using the File menu to open a file,then a dialog box should appear to tell the user to chose a file before selecting an option.

    Post your completly runnable demo program andget
    a
    complete solution,a runnable one!Alternatively, I will write it for you for $100.I'll lower the bid to $90 :-)I'm going to have to get nasty if you keep undercutting me like this.

  • Source code analysis tools for ActionScript 2?

    I have been tasked with performing source code analysis on a very large (>1000 files) AS2 codebase. 
    Not surprisingly, Googling is not yielding useful results.   Before declaring defeat, I felt it important to query this forum.
    Any guidance would be appreciated.

    We'd like to evaluate the hundreds of files using a static analysis tool, just as one would use lint for a C codebase.
    Thanks,
    M

  • Help! Need Abap code in Bex for Customer Exit

    Hi,
    I am new to abap, i need help in creating variable type customer exit.
    i want to create a variable type customer exit the reqmnt is to create a variable that will derive quarter(0CALQUARTER) from FINANCIAL_CLOSING variable.
    Really appreciate if one can provide me the coding for this logic.
    Thanks.

    Hi Yaser,
    Check this below.
    http://scn.sap.com/thread/278890
    Regards.

  • Match Codes / Search Helps for Duplicate Check Vendor are missing

    Hi Guys,
    I'm trying to enable the Duplicate Check for the Vendor solution we have here and I couldn't help, but notice that when I'm setting up the DB Search in "Define Search Application", the out of the box values for existing search helps are already preconfigured and the values are the following:
    BP MC_BP_ADDRESS Address Data
    BP MC_BP_BANK_DETAIL Bank Details
    BP MC_BP_GENERAL General Data
    BP MC_BP_ID_NUMBER Identification Numbers
    BP MC_BP_ROLES BP Roles
    Unfortunately, when I check in SE11 - those search helps do not exist in the system. How can I get them deployed? Are they part of a Business Set that I missed to install and activate?
    Thanks in advance,
    Boris

    Hi Boris
    Please check that the following is set in your system:
    Configure Duplicate check for entity types - BP need the following:
    Assign search object connector template to object types - BP need the following:
    Ensure that "Business Partner template for MDG" connector is created in ESH_COCKPIT
    Regards
    Danie

  • Need little Windows XP help for Satellite A215-S5849

    Hi,
    I have a notebook Toshiba Satellite A215-S5849 which came with Windows Vista home premium.
    Some time ago, I installed Windows XP SP3 and I also installed some drivers which i found here:
    [Page from where I downloaded drivers, click|http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp]
    I had to select model A210 coz there is no Satellite A215 available (but its probably simmilar, coz on my included Vista CD with drivers it also says its for A210/A215)
    Main problem is... is there any simple way to get all XP drivers for A215... [Thats an other page, where I searched drivers for exactly my notebook and WIN XP, its many for vista. Select to filter for XP... not a lot of drivers for me id say, click |http://www.csd.toshiba.com/cgi-bin/tais/su/su_sc_modItemList.jsp?moid=1998646&rpn=PSAFGU&ct=D L&BV_SessionID=@@@@1886836112.1220191695@@@@&BV_En gineID=cccfadefdejeidmcgfkceghdgngdgnn.0 ]
    I have this little problems id like to solve:
    1) Fn F5 doesnt work... I have 2 monitors and I cant use Fn F5 hotkey... I downloaded the driver... and other Fn keys work... but not F5... I've searched the forum and web and found something that I should have a "display devices change utility" installed, but this is only available for older notebooks (Ive searched, but i found only old driver for this). How do I make Fn F5 work in Win XP on A215?
    2) Also in my Device manager I have three "Base System Device" undentified as "Other devices". Is this ok... or do i need some drivers or something?
    3) And I have a question about this utility: [ link here, click|http://www.csd.toshiba.com/cgi-bin/tais/su/su_sc_dtlViewDL.jsp?soid=1903653&moid=1998646&rpn= PSAFGU&BV_SessionID=@@@@0768822790.1220188011@@@@& BV_EngineID=cccfadefdejeidmcgfkceghdgngdgnn.0&ct=D L&all_docs=false]
    Would this install all the available drivers for the notebook? If not, what does it do, maybe update?
    4) And also... the multimedia keys... is it possible to select play/pause, stop, next, prev buttons for other program than windows media player. Id like to run those keys on winamp, ive downloaded a plugin for winamp, and it did worked on Vista, but not on XP... in Toshiba controls utility I can only sellect programs to start with Internet button and CD/DVD button. Ive read its not possible, but it worked when I installed the plugin on Vista.
    Thank you for reading this and help.
    Just in case I added drivers that I installed below. Dont really need to read this I think, but i add...
    Drives that i installed:
    Hotkey Utility, Toshiba
    Common Module, Toshiba
    Controls, Toshiba
    Display Driver, ATI
    Power Saver, Toshiba
    Sound Driver, Realtek Semiconductor Corporation
    SD Utilities
    Wireless Lan Client Manager, Atheros
    Touch Pad Driver, Synaptics
    Processor driver, AMD
    atheros wlan driver
    Camera Software, Chicony
    The drivers available were pretty straightforward , coz there is only one available for LAN, audio, Hotkeys etc. So I had not much choice. I also checked for which hardware they were made and from wihich manifacturer they are (I found the right ones... for example, realtek drivers for my realtek audio device...)

    > I had to select model A210 coz there is no Satellite A215 available (but its probably similar, coz on my included Vista CD with drivers it also says its for A210/A215)
    The A215 is a US notebook series and you usually you should use the Toshiba US driver page in order to get all compatible XP drivers.
    There is no guarantee that the Toshiba XP drivers from the Toshiba European driver page would work correctly on the Toshiba US notebook.
    Regarding the point;
    1) You are right. The display device change utility controls the FN+F5 key combination and also the Hotkey Utility make the FN+F5 combination working.
    This tool is available for some A210 series like the PSAFGE series. But it does not work on all A210/A215 series.
    2) This could be a card reader. Check if its already installed. But note; after the XP installation you will still have yellow exclamation marks in device manager because some hardware will be only supported by Windows Vista. Therefore there is no Windows XP driver.
    3) In my opinion the Toshiba Software Upgrades for Windows Vista/XP reminds about some new available software updates which were released on the Toshiba page US page.
    4) I have the same issue and I think there is no way to change this in XP.
    The Toshiba controls Utility for XP is simply different as the version for Vista and in my eyes there is nothing to do.
    Regards

  • Code bug help for a beginner!!

    Ok, I've written this code so far. Everything was fine until I got to the IF condition. When I try compiling it it tells me that the 'a' variable in the IF condition expression may not have been initialised, which I don't really understand as it's been declared at the start of the program and even used fine beforehand in the switch statements.
    Any ideas?
    Thanks for any help. Here's the code.
    import javax.swing.JOptionPane;
    public class LetterProgram {
    public static void main (String args[]) {
       String pickALet;
       String output;
       char letter;
       int guess;
       int a;
       pickALet = JOptionPane.showInputDialog ("please enter a lower case letter from (a to e)");
       output = "you selected a letter " + pickALet;
       letter = pickALet.charAt(0);
       switch (letter) {
       case 'a':
       a = 1;
       output = "you entered an a";
       break;
       case 'b':
       a = 2;
       output = "you entered a b";
       break;
       case 'c':
       a = 3;
       output = "you entered a c";
       break;
       case 'd':
       a = 4;
       output = "you entered a d";
       break;
       case 'e':
       a = 5;
       output = "you entered an e";
       break;
       default:
       output = "i did not recognise your entry";
       break;
       JOptionPane.showMessageDialog(null, output, "your letter", JOptionPane.INFORMATION_MESSAGE);
       guess =(int)(Math.random()*5 +1 ) ;
       System.out.println(guess);
       if (guess==a)
          System.out.println("The computer guessed the correct letter");
       else
          System.out.println("The computer guessed the letter incorrectly");
       System.exit(0);

    It's better to add a default label to the switch; otherwise for most cases you will be setting the value twice, and it makes the intent of 'none of the above' clearer.
    Pete

  • Need step-by-step help for Azureus and AirPort Express

    Absolutely clueless on NAT Error and setup with Azureus, AirPort Express and System Preferences Sharing. Done a search here and Google it. Don't understand a single one of them. Download is a miserable 1 - 3 Kb/s and upload is IMPOSSIBLE. Even I tried turning off firewall in System Preferences, the results are the same. Help.
    Thanks in advance.

    You need to enable Port Mapping on the Express for the port you're using for BitTorrents. You can determine the port number in the Azureus preferences. To set up Port Mapping, open up the Express's configuration in Airport Admin Utility, click on the Port Mapping tab, and add an entry with your computer's IP address and the BitTorrent port number in both the public and private port number fields.

  • Need sample code in webdynpro for java

    Hi all
    actually i have one webdynpro form which is having multiple input elements. for example name,address,phoneno,price quantity and amount. and there is update button for that form.
    when i click the update button the multiplication of quantity and price value will be updated by in one input field which is part of the another webdynpro form is part of the same view.
    i want to update the input field in another form only when i change the value of either price or quantity otherwise the value of inputfield in another form should be same.
    now how do we retrieve the event of either price or quantity inputfield which only changes rather than changes of name or adreess.
    only when i modify the value of price or quantity in form and updated button then only the multiplication will be reflected in inputfield of another form.i dont want to reflect that inputfield of another form when i changes of other inputfields except price or quantity.
    please provide the sample code on the same...especially how to retrieve the event of that price or quantity in a form..
    Regards
    Suresh babu

    Hi Suresh,
    please post your issue to the Web Dynpro forum.
    Greetings,
    Carsten

  • Need source code to add image from a rolling camera onto a panel

    is there anyone who would be kind enough to tell me how i would get a moving camera image to appear on a specified panel.I am using Java awt

    Thankyou for responding. its important because i dont have a clue where to begin and i have a project idea that could help me exscape back into freedom

Maybe you are looking for