Problems with a result in a switch/case control statement

I am having troubles with a switch/case statement in which I am trying to get a result returned from different operators. The problem is that the result always returns 0 no matter what I put in the driver class.
The class where the result needs to be returned looks like this:
public class Calculator
     private int num1;
     private int num2;
     private char operator;
     private int result;
     public Calculator(int num1, char operator, int num2)
          this.num1 = num1;
          this.operator = operator;
          this.num2 = num2;
     } // end constructor
     public int getNum1()
          return num1;
     public char getOperator()
          return operator;
     public int getNum2()
          return num2;
     public int getResult()
          return result;
     public int calculate()
          switch(operator)
               case '+':
                    int result = num1 + num2;
                    break;
               } // end case '+'
               case '-':
                    int result = num1 - num2;
                    break;
               } // end case '-'
               case '*':
                    int result = num1 * num2;
                    break;
               } // end case '*'
               case '/':
                    int result = num1 / num2;
                    break;
               } // end case '/'
               case '%':
                    int result = num1 % num2;
                    break;
               } // end case '%'
          } // end switch
          return result;
     public String toString()
          String message = (num1) + " " + (operator)
                              + " " + (num2) + " " + "=" + " " + result + "\n";
          return message;
} // end class
The driver class looks like this:
import javax.swing.JOptionPane;
import java.lang.StringBuffer;
public class CalculatorApp
     public static void main (String[] args) // begin main
          String choice = "";
          while (!(choice.equalsIgnoreCase("x"))) // begin while loop
               String number1 = JOptionPane.showInputDialog(
                              "Enter a positive integer: ");
               String operatorInput = JOptionPane.showInputDialog(
                              "Enter operator (+, -, *, /, %): ");
               String number2 = JOptionPane.showInputDialog(
                              "Enter another positive integer: ");
               int num1;
               char operator;
               int num2;
               num1 = Integer.parseInt(number1);
               operator = operatorInput.charAt(0);
               num2 = Integer.parseInt(number2);
               Calculator calculator = new Calculator(num1, operator, num2);
               String message = calculator.toString() + "\n"
                                   + "Press Enter to conitnue or 'x' to exit.";
               choice = JOptionPane.showInputDialog(message);
          } // end while loop
          System.exit(0);
     } // end main
any help would be wonderful! I don't know why the result returned is always 0 but it is. Thanks!
dragwit

The previous poster is correct. You never call the calculate method. If you don't call it, no one's going to call if for you. This stuff doesn't work by magic. I think you've misunderstood your prof's intent in this regard.
However, it still won't work with the changes previously suggested, because declaring an int result in the calculate method will hide the instance field of the same name, which is what your getResult() method retrieves. Don't delare result at all in your calculate method.
That said, it would be architecturally a lot better if the calculate method returned the result rather than storing it back into the instance.

Similar Messages

  • I have problem with my iphone 5 lock switch..as lock switch not working properly..and my iphone is not in warrenty.. so plz tell me what i do...

    i have problem with my iphone 5 lock switch..as lock switch not working properly..and my iphone is not in warrenty.. so plz tell me what i do...

    The iPhone 5 is less than a year old, so all of them should still be in warranty unless they have been jailbroken or physically damaged. If you have a hardware problem as you describe the only option is to get the phone replaced by Apple or repaired by a non-authorized shop. The Apple replacement will be free at any Apple store in the country where the phone was purchased. If Apple determines that the phone was physically damaged or jailbroken it will cost $229.

  • Problems with shutdown, expose and window switching

    Hi there,
    Recently I've been having a few issues with OS X. First of all it wasn't shutting down properly -- the menu bar would disappear and it would look like it was going to shutdown, but it never did. I could move down to the dock (on auto-hide) and it would re-appear, at which point I can bring up a terminal window and use 'shutdown' to do the job. On startup I'd reset the PRAM, and then do a disk-check, but the problem keeps coming back.
    Subsequently, I've also been having problems with expose and switching windows (i.e. command-tab). Namely, neither of them work. Expose won't fire from either hot corners or the keyboard, and if I re-launch the app from the Apps folder (without trying to kill it first, I should say), it does nothing. Cmd-tab gets interpreted as just tab, and the keyboard shortcut for dashboard also fails (although I can start the dashboard from the dock).
    I read in another post about an invalid jpeg in the downloads folder being able to cause the Expose problem (seems like a most unlikely bug?). Anyway, I cleared all pictures from my downloads folder and functionality came back, but now it's gone again. It's really very frustrating as it makes moving between windows a lot more hassle.
    Any thoughts would be gratefully received.
    TIA,
    Mat

    This sounds interesting.
    Can you post a copy for the rest of us to see?
    As for actually helping you, and not just satisfying our curiousity, if you start cutting pieces of the code you will probably end up finding the source of the problem (and we won't have too big a program to handle). Since DSC is a likely suspect, you may want to start there.
    Also, are you creating an installer and using that to install? If not, you may wish to try that.
    Try to take over the world!

  • Problem with the result of multiple queries in Web Intelligence (BO XI R2)

    We have a problem with Web Intelligence reports. Behavior of the results is like if we selected the function Count in Designer the properties indicators. Same queries separated one for one report give correct results and together 7 queries in one report give correct results only for the first query and for others (6 others) same results for each date (if report is monthly) or the same result for each hour (if the result is daily) for all Queues tested (other which were not tested have result 0). Even the function Sum inserted into the report structure behaves weird u2013 we have the same result as in the filed (it is a copy of that result, not a sum). We tested queries together in SQL Developer and they give correct results, while in BO big query which contains script from Query 3, Query 2  and Query 1 cannot be completely executed (it executes without end).
    We use Business Objects XI R2 SP3.
    Thanks in advance.

    Hi Peter,
    I guess it is the problem due to the merged dimension and different granurality level in the BO queries. From the document properties uncheck the option of auto-merge common dimension objects or manually unmerge all the common dimensions
    than give it a try.
    I guess this would solve your problem. If not can you provide more query details like what objects you have used in the query.

  • Problems with iPhone Result of Bad Music???

    In the last few weeks I've been experiencing problems with my iPhone. I did a lot of research online, and figured that it is NOT this "dead strip" that others have been having problems with; however, 75% of the time, the slide bar will not respond for the first 7-8 times I try and answer a call or turn off an alarm.
    As time went on, the problem got more frequent and more involved. The phone might work fine all day, but as soon as someone tried to call, it starting going nuts, even after the call was over. None of the applications would respond to my touch and in the rare case that they opened, they would run incredibly slow and crash. The phone would freeze and need to be restarted. In the more recent days, during the restart, in which the only buttons I'm holding are the sleep/wake and home, my music would spontaneously start playing, starting alphabetically with the first artist on my list with no controls for me to stop it.
    Most of the time, after a restart, the phone would continue to work fine, until a call comes in and starts the process all over...
    After failing an attempt to fix the problems by deleting many songs and videos to clear up some room on the hard drive, I decided to restore my iPhone, as I have done once before, but this time not syncing with previously backed up data. I allowed iTunes to erase all the contents of my phone and then manually put most things back on. Since then, the phone has been working flawlessly. However, there is one problem remaining...I have not put any of my music back on the phone.
    And now I am afraid to!! Even though all that same music has been on my phone for 3 months, and only now have I begun to experience problems, is it possible that the iPhone operating system is more fragile and more vulnerable to bad files that might otherwise work fine on my computer? I have no viruses on my computer, and I have never installed any of these problematic third party applications on my phone. And if it's not the music, what else could be causing these problems???

    This is exactly what apple care is for. Why delay and torture yourself when you can take it in and either have it fixed or have it replaced?
    Take it in to Apple

  • Problem with JDBC results calling simple stored procedure in VC 7.0

    Hi all,
    I am building a simple VC model which calls a stored procedure on a JDBC database. I have created the system in the portal, defined the alias and user mapping, the connection test is fine and the VC "find data" lists my bespoke stored procedure.
    The stored procedure is :
    CREATE PROCEDURE dbo.dt_getBieUsers
    AS
    select * from dbo.emailuserlink
    GO
    When I test it using query analyser, it returns 3 records each with the two fields I expect - user and email address.
    I drag the model onto the workspace in VC and create an input form ( with just a submit button ). i drag the result port out to create a table. This has no fields in it.
    I build and deploy as flex and the app runs, I click the submit button and SUCCESS! I get 3 records in my table each with 2 fields. The data is all correct. The problem with this is the fields are determined at runtime it seems.
    I go back to the table and add 2 columns "email" and "address".
    i build and deploy and run the app. Again I get 3 records, but this time the contents of all of the rows is not data, but "email" and "address". The data has been replaced by the header texts in all of the rows.
    Can anyone help? Why isn't the data being put in my columns as I would expect?
    I tried to build and deploy the app as Web Dynpro rather than Flex to see if it was a bug in Flex. The application starts but when I click the submit button to run the JDBC stored procedure I get a 500 Internal Server Error
    com.sap.tc.wd4vc.intapi.info.exception.WD4VCRuntimeException: No configuration is defined for the entry JDBCFunction
        at com.sap.tc.wd4vc.xglengine.XGLEngine.createComponentInternal(XGLEngine.java:559)
        at com.sap.tc.wd4vc.xglengine.XGLEngine.getCompInstanceFromUsage(XGLEngine.java:362)
        at com.sap.tc.wd4vc.xglengine.XGLEngine.getCompInstance(XGLEngine.java:329)
        at com.sap.tc.wd4vc.xglengine.wdp.InternalXGLEngine.getCompInstance(InternalXGLEngine.java:167)
        at com.sap.tc.wd4vc.xglengine.XGLEngineInterface.getCompInstance(XGLEngineInterface.java:165)
    The JDBC connection I am using has a connection URL of jdbc:sap:sqlserver://localhost;DatabaseName=BIEUSERS
    and a driver class of com.sap.portals.jdbc.sqlserver.SQLServerDriver
    Can anyone solve my wierd problems?
    Cheers
    Richard

    Hi Richard,
    After you drag and drop the data service, right click on it and choose "Test data service". Then click on "Execute" and after you see the result on the right, click on "Add fields" button (inside the same window). Now you'll see that the fields are on the tabel. This is required only for JDBC data services, since this data (how the resultset is built) is not know in DT and it needs to be run firest - then analysed and only then you have to add the fields to the table).
    Regards,
    Natty

  • Problems with Old and New Appraisals (switch HAP00 / REPLA)

    Hello Experts,
    I'm working on a HCM Global implementation and my country is joining now, and there are others countries that have already been there since 2002.
    Through of switch HAP00/REPLA (transaction OOHAP_SETTINGS_PA), it is possible enable the use of Appraisal Systems subcomponent (Old Version) or Objective Setting and Appraisals subcomponent (New Version).
    The others countries are using the Old version and we need use the New version.
    When I activated of switch to flag u201CXu201D and after I tried create appraisals to employees through transactions APPCREATE or PHAP_PREPARE_PA, I could see only the new appraisals forms templates that Iu2019ve created through transaction HAP_CATALOG_PA and I could not see the old ones  that I created through transaction OOB1.
    After this problem I have tested activation of switch HAP00/REPLA and the screen in infotype 24, tab Appraisals where appraisee changed after the switch was activated, in other hands all the Appraisals on tab  u201CAppraisals where appraiseeu201D disappeared and the columns are totally  different comparing to old version.
    My question is how can I activate (flag X) the switch HAP00/REPLA and without losing the existing Appraisals on TAB u201CAppraisals where appraiseeu201D in Infotype 0024?
    Thanks in advance

    Hi Lima,
    The old appraisal system only supports appraisal templates with object type BA where as the new template uses object type VA. It is therefore you cannot view both of the appraisals in one tab 'Appraisals where Appraisee' or 'Appraisals where Appraiser'.
    I suggest either use new or the old appraisal because by the time you run APPCREATE report for creating appraisals, the SAP systems queries the table OOHAP_SETTINGS_PA to identify which appraisal system is used. Based on the selection made in this table, the system opts for the settings.
    I've went through your issue but cannot find the solution to it. It seems to be impossible.
    Thanks,
    Irfan Malik
    SAP HR Consultant
    SIEMENS Engineering Co. Ltd Pakistan

  • MORNING HAVING A PROBLEM WITH MY Z10 WHEN I SWITCH ON IT SHOWS THE LOADING LOGO AND NEVER COMPLETES .YOUR HELP WOULD BE APPRECIATED THANKS

    MORNING HAVING A PROBLEM WITH MY Z10 WHEN SWITCH ON IT SHOWS THE LOADING LOGO AND NEVER COMPLETES THE LOADING PROCESS.YOUR HELP WOULD BE APPRECIATED

    Checkout this thread: http://supportforums.blackberry.com/t5/BlackBerry-Z10/Z10-stuck-on-loading-logo-on-starting-up/td-p/2517909

  • Problem with quiz results.

    Hey guys, i have a problem with a quiz that i need to do, i've been using this template: http://www.permadi.com/tutorial/flashMXQuiz/index.html
    But what i need and it doesnt include is how to put a message at the end of the game which tells you that you won or lost depending if you had at least two questions right or less than two right.
    I´ve been searching and have not found any code that i could just add to my ActionScript.
    I also have been trying with variables like this:
    if(numofQuestionsAnsweredCorrectly>=2){gotoAndPlay(3)}
    else
    {gotoAndPlay(6)}
    ..and stuff like that. I'm sorry if that's completely wrong..I'm just starting to learn.
    I hope anybody can help me with this.
    Thanks

    Page 3 of the tutorial shows you the SummaryScreen. They calculate the percent correct there:
    userScore=(numOfQuestionsAnsweredCorrectly * 100) / (numOfQuestionsAnsweredIncorrectly + numOfQuestionsAnsweredCorrectly);
    It's right there you should stick your code to change to the frame you desire. Make sure you're changing the correct clips playhead.
    Do note they're using a lot of frame labels (and they're using flash player 6 with some ancient ActionScript 1.0 coding). There's a chance this quiz won't work in the future. Even ActionScript 2.0 has been depreciated and is currently unsupported by the latest version, Flash CC. It doesn't mean the browser plugin doesn't support it but eventually it may. It's long overdue..
    For the 1.0 code though, at the point I mentioned you should be able to do it with what you have (if you want to switch the main timeline to those frames via _root.
    if (numofQuestionsAnsweredCorrectly >= 2)
              _root.gotoAndPlay(3)
    else
              _root.gotoAndPlay(6)
    If you want "some other" clip to move to that frame then add the instance name after _root, e.g. _root.myClip.gotoAndPlay(3);, etc..

  • Early 2011 Mac Book Pro (MBP) problem with sporadic AMD GPU automated switching system

    I have an early 2011 Mac Book Pro (MBP) - specs are listed below. I have read online about other 2011s having an automatic shutdown problem & sporadic failure re the graphics AMD Radeon HD 6490M GPU automated switching system (among other problems with this "innovation" by Apple). I am having this problem: Shuts down by itself. Restarts - in the middle of the restart shuts down again. Fans are operating just fine. The problem has occurred if a video is playing, if I try to edit a video. It has occurred while using Skype (if the other party puts on their video camera), Firefox & Safari & Google Chrome. It has occurred even if I was working in Word if I was connected to the internet. I am working in a developing country and I have done a PRAM SMC Disk Utility Repair disk had a diagnostic run which showed no problems, etc.There is no temporary fix. Apple now hear this: This is going to morph into a logic board problem and you still haven't done anything about it??? This is an APPLE defect and I am very disappointed in Apple not acknowledging this defect and fixing the problem or issuing notification of a recall. I am outside of Apple Care and I have never had a mac give trouble until the 5 year mark. A 2GB RAM white iMac I gave my Mom is still operating perfectly! I am in the middle of a  climate change mitigation project and a I cannot finish my work due to this problem and I cannot afford to pay for another MBP $2400 doorstop. What is going on here? Steve dies so there is no one to put the fear of God in anyone at Apple anymore and now no one cares  about customer service? Where is the product recall? I have been a loyal Apple customer since 1983. Yes, 1983. DO SOMETHING NOW APPLE & NOTIFY US OF IT - We all registered our computers on YOUR website so you know who we are. Has anyone filed a class action yet?
    Hardware Overview:
      Model Name:    MacBook Pro
      Model Identifier:    MacBookPro8,2
      Processor Name:    Intel Core i7
      Processor Speed:    2 GHz
      Number of Processors:    1
      Total Number of Cores:    4
      L2 Cache (per Core):    256 KB
      L3 Cache:    6 MB
      Memory:    4 GB
      Boot ROM Version:    MBP81.0047.B27
      SMC Version (system):    1.69f4
      Hardware UUID:    9DCDDE07-1E9D-5E1B-81EF-DDAC9000FF
    Storage Capacity: 500 GB

    I had a 13" mid-2012 that had three logic boards fail in less than a year of purchase. My symptoms were it would freeze while using it or after it was put to sleep. When it froze while being used, it would flash pixels in groups in different colors and would become unresponsive to everything but forcing it to shut down. If it froze while sleeping, it wouldn't wake up and it would get extremely hot to the touch. Apple covered the repairs every time but they sent me receipts and each time, it was a $480 logic board plus labor so it would cost about $530 overall. It sounds to me it's your hard drive because I also experienced two hard drive failures. First time was from an accidental drop. I would get a loading bar on startup and once it finished, it would shut down. I couldn't boot into recovery mode at or do anything. But before that would happen, I would get an error in disk utility after performing a disk repair saying it couldn't repair the disk and to back up as much data as I could. Luckily I have the Time Capsule so my data was always safe.

  • Problem with execution results (Control Center)

    Hi,
    I have created a mapping with output parameters.
    Unfortunately, when i run the mapping, i can't see the values in
    the output parameters through the job details reporting (control center).
    Is there any patch that correct this problem ?
    TIA,
    Stéphan

    Hi,I have also somewhat similar problem in creating content selector using e-business control center.The problem is that in the Window titled "Select Customer Segments", there are no radio buttons for specifying whether Qualifying visitors may belong to Any or all of these segments. Although it is mentioned in the documentation yet not available in actual.So when we try to save it the following error appears"Atleast one selected clause has not been completed. Offending clauses: [Action clause has not been completed.].Please tell me what to do?Regards,Atif

  • Problem with 6.1 6700 [I think volume control unit]

    Hi, I've a volume problem with my Inspire 6.1 6700. The volume sometime turn to be loud or weak automatically. I think that the problem depends from the volume control unit. How i can resolve this problem? I tried to find another volume control unit, but I findn' it...
    Can you help me?
    Thanks.

    kenz wrote:
    Hi,
    I've a volume problem with my Inspire 6.1 6700. The volume sometime turn to be loud or weak automatically. I think that the problem depends from the volume control unit. How i can resolve this problem? I tried to find another volume control unit, but I findn' it... Can you help me? Thanks.
    I have the same product (from 3 years)... and I had the same problem!... it's the faulty volume control! I changed it 2 times... the first replaced was broken ,5 years ago... the second (different from the original) 6 month ago... :smileysurprised:

  • Hi, I'm having a problem with my first gen. iPad switching back to the apps page by itself.  This started after upgrading to ios5.  It will do this from safari or kindle.  I have turned it off manually as suggested by a tech rep. without any improvement.

    Hi,
    My 1stgen iPad keeps. Switching back to the apps. Pages by itself after installing ios5.  I have shut it down manually as suggestedby a tech rep but the problem still exists.
    Thanks,  Jim

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • Having a problem with PEAP and Cisco 2960 Switch

    Hi All,
        I am attempting to use PEAP with a LDAP backend on FreeRadius witht he MS Supplicant.  I have it all working, in debug on the Radius server I see it sending all the information, the tunnel, medium etc. but with PEAP the Cisco switch is not changing VLANS.  If I install the Cisco or Juniper client it works just fine if I use eap-mschapv2 but peap-mschapv2 does not switch the port to the right vlan.  Is there something extra on the switch I need to do to allows PEAP or is there something on the FreeRadius? 
        The only difference between the PEAP and EAP versions that I can tell is that the PEAP authenticates ands the information is sent once(according to the debug on the Radius server) where as with the EAP the connection information is sent several times, that is I will see the Tunnell and medium info sent more then once in the Radius log for just one login.
    Any ideas?

    Thought I mentioned the client in the first post, I am using the 3 different types of clients with a goal of getting the MS client to work.  I am using the Juniper Odyssey client, Cisco CSSC client and the MS built-in client.  I mentioned the EAP-MSChanpV2 because I tested that login so I could compare the Radius output with that of PEAP-MSChapV2.  I did not release logs from the Radius server because it seems to be centered with something on the switch changing Vlans but if you want output I can give that..
    CSSC Client pops out:
    14:25:08.453  Network Connection requested from user  context.
    14:25:08.468  Connection authentication started using the logged in  user's credentials.
    14:25:08.468  Port state transition to  AC_PORT_STATE_CONNECTING(AC_PORT_STATUS_STARTED)
    14:25:08.796  Port state  transition to  AC_PORT_STATE_UNAUTHENTICATED(AC_PORT_STATUS_8021x_FORCED_UNAUTH)
    14:25:09.828   Port state transition to  AC_PORT_STATE_AUTHENTICATING(AC_PORT_STATUS_8021x_ACQUIRED)
    14:25:09.843   Identity has been requested from the network.
    14:25:09.875  Identity has been  sent to the network.
    14:25:09.890  Authentication started using method type  EAP-PEAP, level 0
    14:25:09.890  The server has requested using authentication  type: EAP-PEAP
    14:25:09.890  The client has requested using authentication  type:  EAP-PEAP
    14:25:09.968  Profile does not require server  validation.
    14:25:10.031  Identity has been requested from the  network.
    14:25:10.031  Identity has been sent to the  network.
    14:25:10.046  Authentication started using method type  EAP-MSCHAP-V2, level 1
    14:25:10.046  The server has requested using  authentication type: EAP-MSCHAP-V2
    14:25:10.046  The client has requested  using authentication type:  EAP-MSCHAP-V2
    14:25:10.078  Port state transition  to AC_PORT_STATE_AUTHENTICATED(AC_PORT_STATUS_EAP_SUCCESS)
    14:25:10.078  The  authentication process has succeeded.
    *************************Raidus Ouptut for PEAP:**************************
    [ldap] user RadiusUser authorized to use remote access
    rlm_ldap: ldap_release_conn: Release Id: 0
    Waking up in 0.7 seconds.
    Waking up in 0.7 seconds.
    Waking up in 0.1 seconds.
    Waking up in 3.7 seconds.
    Waking up in 0.1 seconds.
    Ready to process requests.
    Waking up in 0.9 seconds.
    Ready to process requests.
    Waking up in 0.9 seconds.
    [ldap] performing user authorization for anonymous
    rlm_ldap: ldap_get_conn: Checking Id: 0
    rlm_ldap: ldap_get_conn: Got Id: 0
    rlm_ldap: object not found or got ambiguous search result
    [ldap] search failed
    rlm_ldap: ldap_release_conn: Release Id: 0
    [pap] WARNING! No "known good" password found for the user.  Authentication may fail because of this.
    Waking up in 0.9 seconds.
    Waking up in 0.9 seconds.
    Waking up in 0.9 seconds.
    Waking up in 0.8 seconds.
    Waking up in 0.8 seconds.
    Waking up in 0.8 seconds.
    [ldap] performing user authorization for RadiusUser
    rlm_ldap: ldap_get_conn: Checking Id: 0
    rlm_ldap: ldap_get_conn: Got Id: 0
    [ldap] Added the eDirectory password Whatever in check items as Cleartext-Password
    [ldap] No default NMAS login sequence
    [ldap] looking for check items in directory...
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 == "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 == IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 == VLAN
    [ldap] looking for reply items in directory...
    rlm_ldap: radiusServiceType -> Service-Type = Authenticate-Only
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 = "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 = IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 = VLAN
    [ldap] user RadiusUser authorized to use remote access
    rlm_ldap: ldap_release_conn: Release Id: 0
    Waking up in 0.8 seconds.
    [ldap] performing user authorization for RadiusUser
    rlm_ldap: ldap_get_conn: Checking Id: 0
    rlm_ldap: ldap_get_conn: Got Id: 0
    [ldap] Added the eDirectory password Whatever in check items as Cleartext-Password
    [ldap] No default NMAS login sequence
    [ldap] looking for check items in directory...
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 == "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 == IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 == VLAN
    [ldap] looking for reply items in directory...
    rlm_ldap: radiusServiceType -> Service-Type = Authenticate-Only
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 = "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 = IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 = VLAN
    [ldap] user RadiusUser authorized to use remote access
    rlm_ldap: ldap_release_conn: Release Id: 0
    Waking up in 0.8 seconds.
    [ldap] performing user authorization for RadiusUser
    rlm_ldap: ldap_get_conn: Checking Id: 0
    rlm_ldap: ldap_get_conn: Got Id: 0
    [ldap] Added the eDirectory password Whatever in check items as Cleartext-Password
    [ldap] No default NMAS login sequence
    [ldap] looking for check items in directory...
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 == "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 == IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 == VLAN
    [ldap] looking for reply items in directory...
    rlm_ldap: radiusServiceType -> Service-Type = Authenticate-Only
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 = "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 = IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 = VLAN
    [ldap] user RadiusUser authorized to use remote access
    rlm_ldap: ldap_release_conn: Release Id: 0
    Waking up in 0.8 seconds.
    Waking up in 0.7 seconds.
    Waking up in 3.7 seconds.
    Ready to process requests.
    Waking up in 0.9 seconds.
    Ready to process requests.
    **************************Radius ouput for EAP******************************
    [ldap] user Radiususer authorized to use remote access
    rlm_ldap: ldap_release_conn: Release Id: 0
    Waking up in 0.7 seconds.
    Waking up in 0.7 seconds.
    Waking up in 0.1 seconds.
    Waking up in 3.7 seconds.
    Waking up in 0.1 seconds.
    Ready to process requests.
    Waking up in 0.9 seconds.
    Ready to process requests.
    Waking up in 0.9 seconds.
    [ldap] performing user authorization for Radiususer
    rlm_ldap: ldap_get_conn: Checking Id: 0
    rlm_ldap: ldap_get_conn: Got Id: 0
    [ldap] Added the eDirectory password Whatever in check items as Cleartext-Password
    [ldap] No default NMAS login sequence
    [ldap] looking for check items in directory...
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 == "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 == IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 == VLAN
    [ldap] looking for reply items in directory...
    rlm_ldap: radiusServiceType -> Service-Type = Authenticate-Only
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 = "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 = IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 = VLAN
    [ldap] user Radiususer authorized to use remote access
    rlm_ldap: ldap_release_conn: Release Id: 0
    Waking up in 0.9 seconds.
    [ldap] performing user authorization for Radiususer
    rlm_ldap: ldap_get_conn: Checking Id: 0
    rlm_ldap: ldap_get_conn: Got Id: 0
    [ldap] Added the eDirectory password Whatever in check items as Cleartext-Password
    [ldap] No default NMAS login sequence
    [ldap] looking for check items in directory...
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 == "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 == IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 == VLAN
    [ldap] looking for reply items in directory...
    rlm_ldap: radiusServiceType -> Service-Type = Authenticate-Only
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 = "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 = IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 = VLAN
    [ldap] user Radiususer authorized to use remote access
    rlm_ldap: ldap_release_conn: Release Id: 0
    Waking up in 0.9 seconds.
    [ldap] performing user authorization for Radiususer
    rlm_ldap: ldap_get_conn: Checking Id: 0
    rlm_ldap: ldap_get_conn: Got Id: 0
    [ldap] Added the eDirectory password Whatever in check items as Cleartext-Password
    [ldap] No default NMAS login sequence
    [ldap] looking for check items in directory...
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 == "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 == IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 == VLAN
    [ldap] looking for reply items in directory...
    rlm_ldap: radiusServiceType -> Service-Type = Authenticate-Only
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 = "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 = IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 = VLAN
    [ldap] user Radiususer authorized to use remote access
    rlm_ldap: ldap_release_conn: Release Id: 0
    Waking up in 0.9 seconds.
    [ldap] performing user authorization for Radiususer
    rlm_ldap: ldap_get_conn: Checking Id: 0
    rlm_ldap: ldap_get_conn: Got Id: 0
    [ldap] Added the eDirectory password Whatever in check items as Cleartext-Password
    [ldap] No default NMAS login sequence
    [ldap] looking for check items in directory...
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 == "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 == IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 == VLAN
    [ldap] looking for reply items in directory...
    rlm_ldap: radiusServiceType -> Service-Type = Authenticate-Only
    rlm_ldap: radiusTunnelPrivateGroupId -> Tunnel-Private-Group-Id:0 = "SomeVlan"
    rlm_ldap: radiusTunnelMediumType -> Tunnel-Medium-Type:0 = IEEE-802
    rlm_ldap: radiusTunnelType -> Tunnel-Type:0 = VLAN
    [ldap] user Radiususer authorized to use remote access
    rlm_ldap: ldap_release_conn: Release Id: 0
    Waking up in 0.9 seconds.
    Waking up in 3.9 seconds.
    Ready to process requests.
    Hope that Helps.

  • Problems with the condition for a switch in our IntegrationProcess

    Hi,
    we're relatively new in using the XI-IntegrationBuilder and we have a small problem.
    We try to define a switch-condition to perform two different Transformations depending on a specific value of a message element.
    The condition looks like this:
    (IncomingRequest./p1:MT_XI_REQUEST/status = donormal)
    Both 'sides' of the condition are of the type (xsd:string).
    But it seems the condition is not working in the right way.
    It always uses the Transformation 'merge' (pls see image of IntegrationProcess->here the Transformation is shown as 'me').
    <a href="http://www.edwebservice.de/uploads/a1a956a10f.jpg">Image of sampleprocess</a> (this is only a testprocess to show  what we want to do)
    For testing we already run the process without the switch (making it linear), by using each transformation occurring in the switch on its own. Both tests worked well and returned the expected different values. But as mentioned above when we're using both Transformations in the switch, always the Transformation 'merge' is performed.
    It does NOT matter if the Transformation 'merge' is placed in the 'if' or in the 'otherwise' branch. It does NOT matter what value (true/false) the condition should return.
    Maybe its a basic desing-problem of our process? 
    <b>Any suggestions will be appreciated</b>
    Regards!
    Georg
    Our systemenvironment:
    Runtime
    Java version:1.5.0_01
    Java vendor:Sun Microsystems Inc.
    Version
    Service pack:15
    Release:NW04_15_REL
    Latest change:15767
    Sync time:200603080654
    ps: we already checked the OSS note 890760 for resolution. but this didn't solve the problem.

    Hi!
    @Peter:
    1) the namspaces are the same. we ckecked it already.
    2) status is an element NOT an attribute
    3) it is the same value (no blanks etc.)
    we will try to run XI with 1.4.2
    @Udo:
    We know how to use XPath a litte bit and were to customize an expression in the conditioneditor. We only thought that you could mean a 'special functionality' of XI
    Thanks for your ideas so far!
    Regards!
    Georg

Maybe you are looking for