Stuck on the switch statement

Anyone know how I might go about the following code
correctly? I need to avoid loops, so it's a little tricky for me.
Need control over playing one movie, then the next, then the next.
Eventually, I each case may have a video to play, text to display,
or another swf to load.
Thank you!
== "Code-ish"
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns)
var videosArray = ["../videos/video1.flv",
"../videos/video2.flv", "../videos/video3.flv"]
switch(videosArray) {
case 1 :
stream_ns.play(videosArray[0]);
break;
// when video is done, move onto next case
case 2 :
stream_ns.play(videosArray[1]);
break;
// when video is done, move onto next case
case 3 :
stream_ns.play(videosArray[2]);
break;
// when video is done, move onto next case
};

Great!
Thanks for the insight. I appreciate that.
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design."
"FlashTastic" <[email protected]> wrote in
message
news:e25oh9$47f$[email protected]..
> Hi David,
>
> I've used both methods myself, I usually use the
NetStream.time method
> when I
> have a seek bar built into the app although I find it
can be a bit
> unreliable
> when using FMS (v1.5) recorded FLVs under a minute long.
>
> I know that there can be a problem with the metadata in
FLVs recorded with
> older versions of FMS where the stream length is
reported improperly
> (which has
> since been fixed), but since I haven't run into anything
that generates a
> sequence of events in the same order (stop, empty,
flush) I would say it's
> reliable.
>
> Cheers,
> FlashTastic
>
>
>

Similar Messages

  • PEAP clients stuck in the 8021X_REQD state

    Hi,
    I've got complaining for lots of PEAP clients not connecting to wireless network. Everything was working fine before. I logged into WLC and found out these clients are associated but stuck in the 8021X_REQD state. I checked our Radius server and couldn't find the failed log. The below message shows the debug for a client 00:0b:6b:24:66:55 and the attachment is the client info shown on the WLC. Please help. Thanks.
    (vau-cr-wlc4402-1) >debug client 00:0b:6b:24:66:55
    (vau-cr-wlc4402-1) >Mon Aug  8 15:40:53 2011: 00:0b:6b:24:66:55 802.1x 'timeoutEvt' Timer expired for station 00:0b:6b:24:66:55
    Mon Aug  8 15:40:53 2011: 00:0b:6b:24:66:55 Retransmit 1 of EAP-Request (length 127) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 Association received from mobile on AP 00:1c:57:8b:34:e0
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 STA - rates (8): 130 132 139 150 140 18 152 36 176 72 96 108 0 0 0 0
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 STA - rates (12): 130 132 139 150 140 18 152 36 176 72 96 108 0 0 0 0
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 Processing RSN IE type 48, length 20 for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 Received RSN IE with 0 PMKIDs from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 10.115.148.80 8021X_REQD (3) Initializing policy
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 10.115.148.80 8021X_REQD (3) Change state to AUTHCHECK (2) last state 8021X_REQD (3)
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 10.115.148.80 AUTHCHECK (2) Change state to 8021X_REQD (3) last state 8021X_REQD (3)
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 10.115.148.80 8021X_REQD (3) Plumbed mobile LWAPP rule on AP 00:1c:57:8b:34:e0
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 apfPemAddUser2 (apf_policy.c:209) Changing state for mobile 00:0b:6b:24:66:55 on AP 00:1c:57:8b:34:e0 from Associated to Associated
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 Stopping deletion of Mobile Station: (callerId: 48)
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 Sending Assoc Response to station on BSSID 00:1c:57:8b:34:e0 (status 0)
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 apfProcessAssocReq (apf_80211.c:3838) Changing state for mobile 00:0b:6b:24:66:55 on AP 00:1c:57:8b:34:e0 from Associated to Associated
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 dot1x - moving mobile 00:0b:6b:24:66:55 into Connecting state
    Mon Aug  8 15:41:23 2011: 00:0b:6b:24:66:55 Sending EAP-Request/Identity to mobile 00:0b:6b:24:66:55 (EAP Id 1)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAPOL START from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 dot1x - moving mobile 00:0b:6b:24:66:55 into Connecting state
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Sending EAP-Request/Identity to mobile 00:0b:6b:24:66:55 (EAP Id 2)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received Identity Response (count=2) from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 EAP State update from Connecting to Authenticating for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 dot1x - moving mobile 00:0b:6b:24:66:55 into Authenticating state
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=204) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 WARNING: updated EAP-Identifer 2 ===> 204 for STA 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 204)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 204, EAP Type 25)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=205) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 205)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 205, EAP Type 25)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=206) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 206)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 206, EAP Type 25)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=207) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 207)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 207, EAP Type 25)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=208) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 208)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 208, EAP Type 25)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=209) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 209)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 209, EAP Type 25)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=210) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 210)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 210, EAP Type 25)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=211) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 211)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 211, EAP Type 25)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=212) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 212)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 212, EAP Type 25)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=213) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 213)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 213, EAP Type 25)
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=214) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:41:34 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 214)
    Mon Aug  8 15:42:04 2011: 00:0b:6b:24:66:55 802.1x 'timeoutEvt' Timer expired for station 00:0b:6b:24:66:55
    Mon Aug  8 15:42:04 2011: 00:0b:6b:24:66:55 Retransmit 1 of EAP-Request (length 127) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Association received from mobile on AP 00:1c:57:8b:0d:40
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 STA - rates (8): 130 132 139 150 140 18 152 36 176 72 96 108 0 0 0 0
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 STA - rates (12): 130 132 139 150 140 18 152 36 176 72 96 108 0 0 0 0
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Processing RSN IE type 48, length 20 for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received RSN IE with 0 PMKIDs from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 10.115.148.80 8021X_REQD (3) Deleted mobile LWAPP rule on AP [00:1c:57:8b:34:e0]
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Updated location for station old AP 00:00:00:00:00:00-0, new AP 00:1c:57:8b:0d:40-0
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 10.115.148.80 8021X_REQD (3) Initializing policy
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 10.115.148.80 8021X_REQD (3) Change state to AUTHCHECK (2) last state 8021X_REQD (3)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 10.115.148.80 AUTHCHECK (2) Change state to 8021X_REQD (3) last state 8021X_REQD (3)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 10.115.148.80 8021X_REQD (3) Plumbed mobile LWAPP rule on AP 00:1c:57:8b:0d:40
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 apfPemAddUser2 (apf_policy.c:209) Changing state for mobile 00:0b:6b:24:66:55 on AP 00:1c:57:8b:0d:40 from Associated to Associated
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Stopping deletion of Mobile Station: (callerId: 48)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Sending Assoc Response to station on BSSID 00:1c:57:8b:0d:40 (status 0)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 apfProcessAssocReq (apf_80211.c:3838) Changing state for mobile 00:0b:6b:24:66:55 on AP 00:1c:57:8b:0d:40 from Associated to Associated
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 dot1x - moving mobile 00:0b:6b:24:66:55 into Connecting state
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Sending EAP-Request/Identity to mobile 00:0b:6b:24:66:55 (EAP Id 1)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received Identity Response (count=1) from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 EAP State update from Connecting to Authenticating for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 dot1x - moving mobile 00:0b:6b:24:66:55 into Authenticating state
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=153) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 WARNING: updated EAP-Identifer 1 ===> 153 for STA 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 153)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 153, EAP Type 25)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=154) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 154)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAP Response packet with mismatching id (currentid=154, eapid=153) from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 154, EAP Type 25)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=155) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 155)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 155, EAP Type 25)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=156) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 156)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 156, EAP Type 25)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=157) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 157)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 157, EAP Type 25)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=158) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 158)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 158, EAP Type 25)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=159) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 159)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 159, EAP Type 25)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=160) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 160)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 160, EAP Type 25)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=161) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 161)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 161, EAP Type 25)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=162) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 162)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 162, EAP Type 25)
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=163) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:42:33 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 163)
    Mon Aug  8 15:43:03 2011: 00:0b:6b:24:66:55 802.1x 'timeoutEvt' Timer expired for station 00:0b:6b:24:66:55
    Mon Aug  8 15:43:03 2011: 00:0b:6b:24:66:55 Retransmit 1 of EAP-Request (length 127) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:33 2011: 00:0b:6b:24:66:55 802.1x 'timeoutEvt' Timer expired for station 00:0b:6b:24:66:55
    Mon Aug  8 15:43:33 2011: 00:0b:6b:24:66:55 Retransmit 2 of EAP-Request (length 127) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Association received from mobile on AP 00:1c:57:8b:0d:40
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 STA - rates (8): 130 132 139 150 140 18 152 36 176 72 96 108 0 0 0 0
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 STA - rates (12): 130 132 139 150 140 18 152 36 176 72 96 108 0 0 0 0
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Processing RSN IE type 48, length 20 for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received RSN IE with 0 PMKIDs from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 10.115.148.80 8021X_REQD (3) Initializing policy
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 10.115.148.80 8021X_REQD (3) Change state to AUTHCHECK (2) last state 8021X_REQD (3)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 10.115.148.80 AUTHCHECK (2) Change state to 8021X_REQD (3) last state 8021X_REQD (3)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 10.115.148.80 8021X_REQD (3) Plumbed mobile LWAPP rule on AP 00:1c:57:8b:0d:40
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 apfPemAddUser2 (apf_policy.c:209) Changing state for mobile 00:0b:6b:24:66:55 on AP 00:1c:57:8b:0d:40 from Associated to Associated
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Stopping deletion of Mobile Station: (callerId: 48)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Sending Assoc Response to station on BSSID 00:1c:57:8b:0d:40 (status 0)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 apfProcessAssocReq (apf_80211.c:3838) Changing state for mobile 00:0b:6b:24:66:55 on AP 00:1c:57:8b:0d:40 from Associated to Associated
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 dot1x - moving mobile 00:0b:6b:24:66:55 into Connecting state
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Sending EAP-Request/Identity to mobile 00:0b:6b:24:66:55 (EAP Id 1)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received Identity Response (count=1) from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 EAP State update from Connecting to Authenticating for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 dot1x - moving mobile 00:0b:6b:24:66:55 into Authenticating state
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=174) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 WARNING: updated EAP-Identifer 1 ===> 174 for STA 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 174)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 174, EAP Type 25)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=175) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 175)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 175, EAP Type 25)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=176) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 176)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 176, EAP Type 25)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=177) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 177)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 177, EAP Type 25)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=178) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 178)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 178, EAP Type 25)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=179) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 179)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 179, EAP Type 25)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=180) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 180)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 180, EAP Type 25)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=181) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 181)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 181, EAP Type 25)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=182) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 182)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 182, EAP Type 25)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=183) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 183)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAPOL EAPPKT from mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Received EAP Response from mobile 00:0b:6b:24:66:55 (EAP Id 183, EAP Type 25)
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Response state for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Processing Access-Challenge for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Entering Backend Auth Req state (id=184) for mobile 00:0b:6b:24:66:55
    Mon Aug  8 15:43:37 2011: 00:0b:6b:24:66:55 Sending EAP Request from AAA to mobile 00:0b:6b:24:66:55 (EAP Id 184)
    Mon Aug  8 15:44:07 2011: 00:0b:6b:24:66:55 802.1x 'timeoutEvt' Timer expired for station 00:0b:6b:24:66:55
    Mon Aug  8 15:44:07 2011: 00:0b:6b:24:66:55 Retransmit 1 of EAP-Request (length 127) for mobile 00:0b:6b:24:66:55
    (vau-cr-wlc4402-1) >debug disable-all

    Hi,
    Check the username/password database on the AD if ur using one or check if the AD is integrated correctly with the IAS or  the ACS.
    Issue either on the IAS or ACS (RADIUS server) , the WLC is waiting for the response from the RADIUS.
    Regards
    Surendra

  • Sync Process stuck on the Process State

    This morning i check the Sync status like every morning and find out this issue:
    Sync failed with the exception "Error in RelationalProviderProxy.ExecuteAndRetryServiceOperation, Method: Void <BeginSession>b__0(), CurrentTimeout: 60 Exception
    Details: System.ServiceModel.Security.MessageSecurityExceptionThe security timestamp is invalid because its creation time ('2014-10-27T20:43:13.669Z') is in the future. Current time is '2014-10-27T20:38:13.124Z' and allowed clock skew is '00:05:00'.Server
    stack trace:    at System.ServiceModel.Security.SecurityTimestamp.ValidateFreshness(TimeSpan timeToLive, TimeSpan allowedClockSkew)   at System.ServiceModel.Security.SecurityTimestamp.ValidateRangeAndFreshness(TimeSpan timeToLive, TimeSpan allowedClockSkew)
      at System.ServiceModel.Security.ReceiveSecurityHeader.ReadTimestamp(XmlDictionaryReader reader)   at System.ServiceModel.Security.ReceiveSecurityHeader.ExecuteFullPass(XmlDictionaryReader reader)   at System.ServiceModel.Security.StrictModeSecurityHeaderElementInferenceEngine.ExecuteProcessingPasses(ReceiveSecurityHeader
    securityHeader, XmlDictionaryReader reader)   at System.ServiceModel.Security.ReceiveSecurityHeader.Process(TimeSpan timeout, ChannelBinding channelBinding, ExtendedProtectionPolicy extendedProtectionPolicy)   at System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessageCore(Message&
    message, TimeSpan timeout)   at System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessage(Message& message, TimeSpan timeout)   at System.ServiceModel.Security.SecurityProtocol.VerifyIncomingMessage(Message& message, TimeSpan
    timeout, SecurityProtocolCorrelationState[] correlationStates)   at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)   at
    System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)   at System.ServiceModel.Channels.ServiceChannel.Call(String
    action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage
    message)Exception rethrown at [0]:    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)  
    at Microsoft.SqlAzureDataSync.ClientServerCommon.ISyncServiceContract.BeginSession(String scopeName, SyncTaskRequestInfo syncInfo, DssConflictResolutionPolicy conflictPolicy, String objectSchema)   at Microsoft.SqlAzureDataSync.AgentHostLib.RelationalProviderProxy.<BeginSession>b__0()
      at Microsoft.SqlAzureDataSync.AgentHostLib.SyncServiceProxy`1.ExecuteAndRetryServiceOperation(Action operation)Inner exception: The security timestamp is invalid because its creation time ('2014-10-27T20:43:13.669Z') is in the future. Current time is
    '2014-10-27T20:38:13.124Z' and allowed clock skew is '00:05:00'."    For more information, provide tracing ID ‘01b12bfd-1467-4fb2-ad8e-551a85fdd1da’ to customer support.
    And after that the Sync got stuck in the processing state, i try to stop it and resend it again but is still trying to stop it. I already fix the time settings in the server and restart the service of sync and nothing. Here are the info related to the Sync
    Group. 
    STATUS
    Processing
    LAST SYNC
    10/27/2014 4:24:00 PM
    SYNC GROUP ID
    045ac6f9-d27a-47ba-8194-7aadf8fc90de_East US
    LOCATION
    East US
    SUBSCRIPTION NAME
    Pay-As-You-Go
    SUBSCRIPTION ID
    399ba2d3-f357-4c7b-a52e-972bcb3cc2d7
    CONFLICT RESOLUTION
    Client Wins

    Hi,
    Thanks for you posting the subscription ID and Sync Group ID. The Microsoft support engineer will help to solve the problem from backend. Sometime delay might be expected. Your patience is greatly appreciated. Thank you for your understanding and support.
    Regards,
    Mekh.

  • TS1702 My kindle app for iPad is stuck in the installing state what do I do to fix it?

    My kindle app for iPad is stuck in the installing state what do I do to fix it?

    Try a reset. Hold the Sleep and Home button down for about 10 seconds until you see the Apple logo. Ignore the red slider.

  • My sync group is stuck in the processing state

    The database sync that we have configured has been working for months and suddenly stopped successfully running 1/19/2015 2:19 PM Pacific Time. We have the sync configured to automatically execute every 5 mins and I even tried to run it manually. The job
    stays perpetually in a "Processing" state with no additional info (e.g. error, warning, etc).
    Can anyone provide assistance? (e.g. reset the sync status, provide detailed logging as to the cause of the issues) What is the proper course of action? (e.g. reconfigure the sync service, etc) Please advise.
    Here are the technical details of the instance:
    STATUS
    Processing
    LAST SYNC
    1/19/2015 2:19:25 PM
    SYNC GROUP ID
    e5c228ff-a8e8-4b99-85f8-504709e22908_West US
    SUBSCRIPTION ID
    4caa7e07-76e5-424d-8b4b-6f26cce36026
    CONFLICT RESOLUTION
    Hub Wins

    Hi,
    Thanks for posting here.
    Any of the following can result in a sync group being stuck in the processing state.
    a)The client agent is offline.
    Be sure that the client agent is online then try again.
    b)The client agent is uninstalled or missing. 
    Please check the above and try to sync again.
    In the mean time we would check from our back-end. It may take more time than expected. 
    Girish Prajwal

  • Agent stuck in the login state ..

    Hi,
    one of agent is stuck in the login state . We are using the UCCE setup version-8.5. when i was trying to kill this agent session through PG CMD line (using procmon -->>>resetas Agent ID ) its showing "Agent already logged out or pending log out. AgentID=41332752" , but after doing this that agent not able to login on any Ext. error "showing this agent is alrady loged on".   Any one kindly help me to come out from this issue. We are using CTI toll kit for agent login.

    Hi,
    If you get this message error "showing this agent is alrady loged on" only for one Extension.
    Then you can deassociate and associate the device in th PG user for that phone.
    I hope the issue you are talkin about the AgentID not able to login to any of the extension.
    Then check in the t_Agent_Real_Time table for this agent's current state and the extension.
    Login using the agentID in that extension and logout.
    Regards,
    Senthil

  • Wireless Switch stuck on the OFF state

    Hello! About 2 months ago I switched to the Windows 10 preview and would experience Internel_Power_Error, whatever not a big deal it was once every so often so it didnt bother me too much, then after Windows 10 came out I was experience this error all the time making my laptop effectivly a paper weight. I set the laptop aside since, today I pulled it out and grabbed my Windows 7 Install CD as well as the PowerSpec Driver CD. I was able to successfully go back to windows 7, but for some reason the Built-in switch to toggle Bluetooth and Wireless is stuck on the OFF (Orange/Amber) state. I have a second computer so I was able to research and transfer via USB the correct Ethernet drivers. However my laptop is still indicating that there are no connections available. My Ethernet and wireless Controller, QualComm Atheros QCA9565 802.11b/G/N WiFi Adapter:PCI\VEN_10EC&DEV_8168&SUBSYS_1944103C&REV_0CShould have driver: SP64676However when I try to install this driver it completes its install and says the driver was not installed correctly. I also have PCI Device which is missing a driver acording to the Device Manager:PCI\VEN_10EC&DEV_5227&SYBSYS_1942103C&REV_01 As well as an unknown Device:ACPI\HPQ6007 Is it possible that due to the Switch being in the OFF state these drivers are not able to install properaly? If so how do I go about disabling the Switch completly so the button has no effect on the computer whats so ever? Thank you for your time, I have looked at so many threads and tried everything I could so if anyone can point me in the right direction that would be wonderful! -Andrew

    I really need some help here, I have a $900 paperweight sitting on my desk collecting dust. If anyone has any ideas no matter how crazy it is, I will try it. -Andrew

  • Why are messages not dequeuing and stuck in the ready state?

    Messages are successfully enqueueing but not dequeuing and are stuck in ready state (STATE = 0).  The ENQ_TIME is 5 hours ahead of system time.  In one environment, AQ is working (10g 10.2.0.4.0).  In the other environment, it is not working (11g 11.2.0.3.0).
    I just did the following:
    1. Purged queue table
    2. Stopped queues
    3. Dropped queues
    4. Dropped queue table
    5. Created queue table
    6. Created queues
    7. Started queues
    I tested once and a record was inserted in the queue table:
    MSGID      <msgid>
    CORRID     
    PRIORITY      1
    STATE      0
    DELAY     
    EXPIRATION     
    TIME_MANAGER_INFO     
    LOCAL_ORDER_NO      0
    CHAIN_NO      0
    CSCN      0
    DSCN      0
    ENQ_TIME      12/23/2014 4:33:43.338902 PM
    ENQ_UID      <enq_uid>
    ENQ_TID      <enq_tid>
    DEQ_TIME     
    DEQ_UID     
    DEQ_TID     
    RETRY_COUNT      0
    EXCEPTION_QSCHEMA     
    EXCEPTION_QUEUE     
    STEP_NO      0
    RECIPIENT_KEY      0
    DEQUEUE_MSGID     
    SENDER_NAME     
    SENDER_ADDRESS     
    SENDER_PROTOCOL     
    USER_DATA      <user_data>
    USER_PROP     
    Notice the RETRY_COUNT is 0.  The ENQ_TIME is 5 hours ahead.  In the procedures to enqueue and dequeue, there are no errors.
    Following is the plsql to enqueue:
    CREATE OR REPLACE PACKAGE BODY
    pkg_2
    AS
        FUNCTION queue_create_thing ( <parameters> )
            RETURN NUMBER
        IS
            enqueue_options     dbms_aq.enqueue_options_t;
            message_properties  dbms_aq.message_properties_t;
            message_handle      RAW(16);
            v_message           msg_type;
            v_thing_id          things.id%TYPE;
        BEGIN
            v_message := msg_type( <parameters> );
            dbms_aq.enqueue(queue_name => '<queue name>',
                            enqueue_options => enqueue_options,
                            message_properties => message_properties,
                            payload => v_message,
                            msgid => message_handle);
            RETURN v_thing_id;
        EXCEPTION
            WHEN OTHERS
            THEN
               errpkg.record_and_stop (SQLCODE);
        END queue_create_thing;
        PROCEDURE queue_delete_thing( <parameters> )
        IS
            enqueue_options     dbms_aq.enqueue_options_t;
            message_properties  dbms_aq.message_properties_t;
            message_handle      RAW(16);
            v_message           msg_type;
        BEGIN
            v_message := msg_type( <parameters> );
            dbms_aq.enqueue(queue_name => '<queue name>',
                            enqueue_options => enqueue_options,
                            message_properties => message_properties,
                            payload => v_message,
                            msgid => message_handle);
        END;
    END pkg_2;
    Following is the code to dequeue:
    CREATE OR REPLACE PACKAGE BODY
    pkg_1
    AS 
        PROCEDURE create_thing ( context IN RAW,
                                    reginfo IN sys.aq$_reg_info,
                                    descr IN sys.aq$_descriptor,
                                    payload IN RAW,
                                    payloadl IN NUMBER )
        IS 
            dequeue_options dbms_aq.dequeue_options_t;
            message_properties dbms_aq.message_properties_t;
            message_handle RAW(16);
            message msg_type;
        BEGIN
            dequeue_options.msgid := descr.msg_id;
            dequeue_options.consumer_name := descr.consumer_name;
            DBMS_AQ.DEQUEUE(queue_name => descr.queue_name,
                            dequeue_options => dequeue_options,
                            message_properties => message_properties,
                            payload => message,
                            msgid => message_handle);
            pkg_2.create_thing( p_thing_id => message.thing_id );
            UPDATE table t
               SET creation_complete = 1
             WHERE id = message.thing_id;
            COMMIT;
        EXCEPTION
            WHEN OTHERS
            THEN
                ROLLBACK;
                plog.error(SQLERRM);
                plog.full_call_stack;
        END create_thing;
        PROCEDURE delete_thing ( context IN RAW,
                                    reginfo IN sys.aq$_reg_info,
                                    descr IN sys.aq$_descriptor,
                                    payload IN RAW,
                                    payloadl IN NUMBER )
        IS 
            dequeue_options dbms_aq.dequeue_options_t;
            message_properties dbms_aq.message_properties_t;
            message_handle RAW(16);
            message msg_type;
        BEGIN
            dequeue_options.msgid := descr.msg_id;
            dequeue_options.consumer_name := descr.consumer_name;
            DBMS_AQ.DEQUEUE(queue_name => descr.queue_name,
                            dequeue_options => dequeue_options,
                            message_properties => message_properties,
                            payload => message,
                            msgid => message_handle);
            pkg_2.delete_thing( p_thing_id => message.thing_id );
            COMMIT;
        EXCEPTION
            WHEN OTHERS
            THEN
                ROLLBACK;
                plog.error(SQLERRM);
                plog.full_call_stack;
        END delete_thing;   
    END pkg_1;

    Following is the code to create the queue:
    BEGIN
      SYS.DBMS_AQADM.STOP_QUEUE ( QUEUE_NAME => '<queue name>');
      SYS.DBMS_AQADM.DROP_QUEUE ( QUEUE_NAME => '<queue name>');
    END;
    BEGIN
      SYS.DBMS_AQADM.CREATE_QUEUE
        QUEUE_NAME          =>   '<queue name>'
       ,QUEUE_TABLE         =>   '<queue table>'
       ,QUEUE_TYPE          =>   SYS.DBMS_AQADM.NORMAL_QUEUE
       ,MAX_RETRIES         =>   5
       ,RETRY_DELAY         =>   0
       ,RETENTION_TIME      =>   0
       ,COMMENT             =>   'Queue for processing creation of things'
    END;
    BEGIN
      SYS.DBMS_AQADM.START_QUEUE
        QUEUE_NAME => '<queue name>'
       ,ENQUEUE => TRUE
       ,DEQUEUE => TRUE
    END;

  • Dbca - stuck in the same state

    I am trying to create a database using dbca and it is at 60% mark for a quite long time and it is in the creating and starting oracle instance
    completing database creation
    Oracle 9.2
    Message was edited by:
    user447089

    Are you using Linux?, in that case, you must make sure the kernel parameters meet the minimum requirementes

  • Using a Switch statement for Infix to Prefix Expressions

    I am stuck on the numeric and operator portion of the switch statement...I have the problem also figured out in an if/else if statement and it works fine, but the requirements were for the following algorithm:
    while not end of expression
    switch next token of expression
    case space:
    case left parenthesis:
    skip it
    case numeric:
    push the string onto the stack of operands
    case operator:
    push the operator onto the stack of operators
    case right parenthesis:
    pop two operands from operand stack
    pop one operator from operator stack
    form a string onto operand stack
    push the string onto operand stack
    pop the final result off the operand stack
    I know that typically case/switch statement's can only be done via char and int's. As I said I am stuck and hoping to get some pointers. This is for a homework assignment but I am really hoping for a few pointers. I am using a linked stack class as that was also the requirements. Here is the code that I have:
       import java.io.*;
       import java.util.*;
       import java.lang.*;
    /*--------------------------- PUBLIC CLASS INFIXTOPREFIX --------------------------------------*/
    /*-------------------------- INFIX TO PREFIX EXPRESSIONS --------------------------------------*/
        public class infixToPrefix {
          private static LinkedStack operators = new LinkedStack();
          private static LinkedStack operands = new LinkedStack();
            // Class variable for keyboard input
          private static BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
             // Repeatedly reads in infix expressions and evaluates them
           public static void main(String[] args) throws IOException {
          // variables
             String expression, response = "y";
          // obtain input of infix expression from user
             while (response.charAt(0) == 'y') {
                System.out.println("Enter a parenthesized infix expression.");          // prompt the user
                System.out.println("Example: ( ( 13 + 2 ) * ( 10 + ( 8 / 3 ) ) )");
                System.out.print("Or as: ((13+2)*(10+(8/3))):  ");
                expression = stdin.readLine();     // read input from the user
             // output prefix expression and ask user if they would like to continue          
                System.out.println("The Prefix expression is: " + prefix(expression));     // output expression
                System.out.println("Evaluate another? y or n: ");          // check with user for anymore expressions
                response = stdin.readLine();     // read input from user
                if (response.charAt(0) == 'n') {          // is user chooses n, output the statement
                   System.out.println("Thank you and have a great day!");
                }     // end if statement
             }     // end while statement
          }     // end method main
       /*------------- CONVERSION OF AN INFIX EXPRESSION TO A PREFIX EXPRESSION ------------*/ 
       /*--------------------------- USING A SWITCH STATEMENT ------------------------------*/
           private static String prefix(String expression) {
                // variables
             String symbol, operandA, operandB, operator, stringA, outcome;
               // initialize tokenizer
             StringTokenizer tokenizer = new StringTokenizer(expression, " +-*/() ", true);     
             while (tokenizer.hasMoreTokens()) {
                symbol = tokenizer.nextToken();     // initialize symbol     
                switch (expression) {
                   case ' ':
                      break;     // accounting for spaces
                   case '(':
                      break;     // skipping the left parenthesis
                   case (Character.isDigit(symbol.charAt(0))):      // case numeric
                      operands.push(symbol);                                   // push the string onto the stack of operands
                      break;
                   case (!symbol.equals(" ") && !symbol.equals("(")):     // case operator
                      operators.push(symbol);                                             // push the operator onto the stack of operators
                      break;
                   case ')':
                      operandA = (String)operands.pop();     // pop off first operand
                      operandB = (String)operands.pop();     // pop off second operand
                      operator = (String)operators.pop();     // pop off operator
                      stringA = operator + " " + operandB + " " + operandA;          // form the new string
                      operands.push(stringA);
                      break;
                }     // end switch statement
             }     // end while statement
             outcome = (String)operands.pop();     // pop off the outcome
             return outcome;     // return outcome
          }     // end method prefix
       }     // end class infixToPrefixAny help would be greatly appreciated!

    so, i did what flounder suggested:
             char e = expression.charAt(0);
             while (tokenizer.hasMoreTokens()) {
                symbol = tokenizer.nextToken();     // initialize symbol     
                switch (e) {
                   case ' ':
                      break;     // accounting for spaces
                   case '(':
                      break;     // skipping the left parenthesis
                   case '0':
                   case '1':
                   case '2':
                   case '3':
                   case '4':
                   case '5':
                   case '6':
                   case '7':
                   case '8':
                   case '9':
                      operands.push(symbol);     // push the string onto the stack of operands
                      break;                               // case numeric
                   case '+':
                   case '-':
                   case '*':
                   case '/':
                      operators.push(symbol);     // push the operator onto the stack of operators
                      break;                               // case operator
                   case ')':
                      operandA = (String)operands.pop();     // pop off first operand
                      operandB = (String)operands.pop();     // pop off second operand
                      operator = (String)operators.pop();     // pop off operator
                      stringA = operator + " " + operandB + " " + operandA;          // form the new string
                      operands.push(stringA);
                      break;
                   default:
                }     // end switch statement
             }     // end while statement
             outcome = (String)operands.pop();     // pop off the outcome
             return outcome;     // return outcomeafter this, I am able to compile the code free of errors and I am able to enter the infix expression, however, the moment enter is hit it provides the following errors:
    Exception in thread "main" java.lang.NullPointerException
         at LinkedStack$Node.access$100(LinkedStack.java:11)
         at LinkedStack.pop(LinkedStack.java:44)
         at infixToPrefix.prefix(infixToPrefix.java:119)
         at infixToPrefix.main(infixToPrefix.java:59)
    Any ideas as to why? I am still looking through seeing if I can't figure it out, but any suggestions? Here is the linked stack code:
        public class LinkedStack {
       /*--------------- LINKED LIST NODE ---------------*/
           private class Node {
             private Object data;
             private Node previous;
          }     // end class node
       /*--------------  VARIABLES --------------*/
          private Node top;
      /*-- Push Method: pushes object onto LinkedStack --*/     
           public void push(Object data) {
             Node newTop = new Node();
             newTop.data = data;
             newTop.previous = top;
             top = newTop;
          }     // end function push
       /*--- Pop Method: pop obejct off of LinkedStack ---*/
           public Object pop()      {
             Object data = top.data;
             top = top.previous;
             return data;
          }     // end function pop
       } // end class linked stackEdited by: drmsndrgns on Mar 12, 2008 8:10 AM
    Edited by: drmsndrgns on Mar 12, 2008 8:14 AM
    Edited by: drmsndrgns on Mar 12, 2008 8:26 AM

  • HELP -menu using a switch statement

    Hello to all. I'm new to the Java world, but currently taking my first Java class online. Not sure if this is the right place, but I need some help. In short I need to write a program that gives the user a menu to chose from using a switch statement. The switch statement should include a while statement so the user can make more than one selection on the menu and provide an option to exit the program.
    With in the program I am to give an output of all counting numbers (6 numbers per line).
    Can anyone help me with this?? If I'm not asking the right question please let me know or point me in the direction that can help me out.
    Thanks in advance.
    Here is what I have so far:
    import java.util.*;
    public class DoWhileDemo
         public static void main(String[] args)
              int count, number;
              System.out.println("Enter a number");
              Scanner keyboard = new Scanner (System.in);
              number = keyboard.nextInt();
              count = number;
              do
                   System.out.print(count +",");
                   count++;
              }while (count <= 32);
              System.out.println();
              System.out.println("Buckle my shoe.");
    }

    Thanks for the reply. I will tk a look at the link that was provided. However, I have started working on the problem, but can't get the 6 numbers per line. I am trying to figure out the problem in parts. Right now I'm working on the numbers, then the menu, and so on.
    Should I tk this approach or another?
    Again, thanks for the reply.

  • Compiler error when useing switch statements in an inner class

    I have defined several constants in a class and want to use this constans also in an inner class.
    All the constants are defined as private static final int.
    All works fine except when useing the switch statement in the inner class. I get the compiler error ""constant expression required". If I change the definition from private static final to protected static final it works, but why?
    What's the difference?
    Look at an example:
    public class Switchtest
       private static final int AA = 0;     
       protected static final int BB = 1;     
       private static int i = 0;
       public Switchtest()
          i = 0; // <- OK
          switch(i)
             case AA: break; //<- OK, funny no problem
             case BB: break; //<- OK
             default: break;
      private class InnerClass
          public InnerClass()
             i = 0; // <- OK: is accessible
             if (AA == i) // <- OK: AA is seen by the inner class; i  is also accessible
                i = AA + 1;
             switch(i)
                case AA: break; // <- STRANGE?! Fail: Constant expression required
                case BB: break; // <- OK
                default: break;
    }Thank's a lot for an explanation.

    Just a though:
    Maybe some subclass of Switchtest could decalare its own variable AA that is not final, but it can not declare its own BB because it is visible from the superclass. Therefore the compiler can not know for sure that AA is final.

  • Switch Statement again

    I am new to Java and am trying to learn how to use and understand the nuances involved in using the Switch statment.
    Yesterday, I received tremendous help, As a result, I am closer to understanding the switch statement and how it works.
    My program is designed to use 5 different input boxes. These represent a total for quizzes, homework assignments, 2 midterms, and a final exam.
    These are casted to double; then, they are added together and divided by five to obtain an average (the student's GPA). The GPA is then going to assigned a grade depending up the range in the If then statement.
    I intend on using a message box to inform the user of the GPA and another followed by another message box to show them their grade.
    I would like to incorporate the switch statement (so I can learn how to use it) to show them their grade.
    I know the code needs tweaking but this is what I have so far:
    import javax.swing.JOptionPane;
    public class Switchgrade{
    //declaration of class
    public static void main(String args[])
    //declaration of main
    String midone; String midtwo; String quiz; String homework; //declares variables to hold the grades, quiz and homework scores
    String last;
    double one; //first midterm
    double two; //second midterm
    double three;double four; double five; //final, quiz and homework scores
    double average; //GPA
    char a; char b; char c; char d; char f;char grade;
    midone = JOptionPane.showInputDialog("Please enter the first midterm"); //first score to add
    one = Double.parseDouble(midone);
    midtwo = JOptionPane.showInputDialog("please enter second midterm"); //second midterm to add
    two = Double.parseDouble(midtwo);
    last = JOptionPane.showInputDialog("please enter final exam score");//final exam score to add
    three = Double.parseDouble(last);
    quiz = JOptionPane.showInputDialog("please enter quiz score");//quiz score to add
    four = Double.parseDouble(quiz);
    homework= JOptionPane.showInputDialog("please enter homework score");//homework score to add
    five = Double.parseDouble(homework);
    average = (one + two+ three + four + five)/5; //average of all five scores
    if(average >= 90)
    grade = 'a';
    else
    if(average >= 80 )
    grade = 'b';
    switch (grade)
    case a:
    JOptionPane.showMessageDialog(null,"The total of all your scores is " + b+"\nYour final grade is an A");
    break;
    default:
    JOptionPane.showMessageDialog(null,"Sorry, you received a grade of " + b + ". \nYou failed.");
    break;
    System.exit(0);
    }//end of main
    }//end of class
    As you can see, I am only using two grades, just so I can learn to use it. However, when I go to compile this, I get this error message:
    constant expression required: case a:, with the ^ under the a.
    What does this error message me and how do I fix this.
    Thanks in advance for your help.

    case a:is trying to use a variable with the name "a" for the comparison. This is illegal in java
    what you want is
    case 'a':this will do a comparison against the char value 'a'

  • Switch Statement

    I am new to Java and am trying to learn how to use and understand the nuances involved in using the Switch statment.
    I am trying to write an application that will calculate grades for a student. I can use the If Then Else Control structure for this (which runs) but I would like to incorporate the Switch Statement in place of the multiple if then else structure. Here is the code that I have for the application:
    import javax.swing.JOptionPane;
    public class Switchgrades
    public static void main(String args[])
    String midone; String midtwo; String quiz; String homework;
    String last;
    double one; //first midterm
    double two; //second midterm
    double three;double four; double five; //final, quiz and homework scores
    double average; //GPA
    int a; int b; double c; double d; double f;int grade;
    midone = JOptionPane.showInputDialog("Please enter the first midterm"); //first score to add
    one = Double.parseDouble(midone);
    midtwo = JOptionPane.showInputDialog("please enter second midterm"); //second midterm to add
    two = Double.parseDouble(midtwo);
    last = JOptionPane.showInputDialog("please enter final exam score");//final exam score to add
    three = Double.parseDouble(last);
    quiz = JOptionPane.showInputDialog("please enter quiz score");//quiz score to add
    four = Double.parseDouble(quiz);
    homework= JOptionPane.showInputDialog("please enter homework score");//homework score to add
    five = Double.parseDouble(homework);
    average = (one + two+ three + four + five)/5; //average of all five scores
    switch (grade)
    case a: //this is where I become confused and lost. I don't what I need to do to make it run.
    {if(average >= 90)
         b = Integer.parseInt(average);
       JOptionPane.showMessageDialog(null,"The total of all your scores is " + b+"\nYour final grade is an A");}
    / I am just using one choice to make it run. When I can make it run, I plan on incorporating the other grades.
    break;
    <=====================================================================>
    <=====================================================================>
    //else --->this is part of the if that works in another program
    // if(average >= 80 )
    // JOptionPane.showMessageDialog(null,"The total of all your scores is " + average +"\nYour final grade is a B");
    //else
    //if(average >= 70 )
    // JOptionPane.showMessageDialog(null,"The total of all your scores is " + average +"\nYour final grade is a C");
    //else
    //if(average >= 60 )
    // JOptionPane.showMessageDialog(null,"The total of all your scores is " + average +"\nYour final grade is a D");
    //else
    //if(average <= 60 )
    <=====================================================================>
    <=====================================================================>
    default:
    JOptionPane.showMessageDialog(null,"Sorry, you received a grade of " + average + ". \nYou failed.");
    System.exit(0);
    As you can see, I already have all the if then else statements set up--between the <==>. The program runs with the If's but I can two error messages when I incorporate the Switch statement.
    1) constant expression required.
    I have case a and i guess it is not a constant. Again, I don't understand switch well enough to figure what I need to do to correct it.
    2)"b = Integer.parseInt(average);" - cannot resolve the symbol--whatever that means. I have a "^" pointing at the period between Integer and parseInt.
    Can anyone help explain what I have to do to make this program work using Switch.
    I have not used Switch before and don't understand what I can use as opposed to what I must use for it to work.
    Thanks for your help.

    I don't really know how you want your program going, but here is what I think.
    1) From the start of the switch statement, where do you assign the value for "grade"? If you write the switch statement like below, you meant something like, if(grade == 'a'){...}, right!? Then, where did you get the "grade" from?
    switch (grade)
    case a:
    You may want declare variable "grade" as char and place if sentence like this before the switch.
    if(average >= 90)
    grade = 'a';
    else if(average >= 70)
    grade = 'b';
    switch (grade)
    case a:
    System.out.print("Your grade: A");
    break;
    case b:
    System.out.print("Your grade: A");
    break;
    Is that What you want???
    2)The method, Integer.parseInt(), takes String as parameter? Did you override this method? The variable "average" was declare as double, so why don't you just cast it to int??

  • Problem with switch statement

    Here's my dilemma,
    I'm trying to write a program that takes a user input ZIP Code and then outputs the geographical area associated with that code based on the first number. My knowledge of Java is very, very basic but I was thinking that I could do it with the charAt method. I can get the input fine and isolate the the first character but for some reason the charAt method is returning a number like 55 (that's what I get when it starts with 7). Additionally, to use the charAt my input has to be a String and I can't use a String with the switch statement. To use my input with the Switch statement I have to make the variable an int. When I do that however, I can't use the charAt method to grab the first digit. I'm really frustrated and hope someone can point me in the right direction.
    Here's what I have so far:
    import java.util.Scanner;
    public class ZipCode
         public static void main(String[] args)
              // Get ZIP Code
              int zipCodeInput;
              Scanner stdIn = new Scanner(System.in);
              System.out.print("Please enter a ZIP Code: ");
              zipCodeInput = stdIn.nextInt();
              // Determine area of residence
              switch (zipCodeInput)
                   case 0: case 2: case 3:
                        System.out.println(zipCodeInput + " is on the East Coast");
                        break;
                   case 4: case 5: case 6:
                        System.out.println(zipCodeInput + " is in the Central Plains area");
                        break;
                   case 7:
                        System.out.println(zipCodeInput + " is in the South");
                        break;
                   case 8: case 9:
                        System.out.println(zipCodeInput + " is int he West");
                        break;
                   default:
                        System.out.println(zipCodeInput + " is an invalid ZIP Code");
                        break;
    }

    Fmwood123 wrote:
    Alright, I've successfully isolated the first number in the zip code by changing int zipCodeChar1 into char zipCodeChar1. Now however, when I try to run that through the switch I get the default message of <ZIP> is an invalid ZIP Code. I know that you said above that switch statements were bad so assume this is purely academic at this point. I'd just like to know why it's not working.
    import java.util.Scanner;
    public class ZipCode
         public static void main(String[] args)
              // Get ZIP Code
              String zipCodeInput;
              char zipCodeChar1;
              Scanner stdIn = new Scanner(System.in);
              System.out.print("Please enter a ZIP Code: "); // Input of 31093
              zipCodeInput = stdIn.nextLine();
              System.out.println("zipCodeInput is: " + zipCodeInput); // Retuns 31093
              zipCodeChar1 = zipCodeInput.charAt(0);
              System.out.println("zipCodeChar1 is: " + zipCodeChar1); // Returns 3
              // Determine area of residence
              switch (zipCodeChar1)
                   case 0: case 2: case 3:
                        System.out.println(zipCodeInput + " is on the East Coast");
                        break;
                   case 4: case 5: case 6:
                        System.out.println(zipCodeInput + " is in the Central Plains area");
                        break;
                   case 7:
                        System.out.println(zipCodeInput + " is in the South");
                        break;
                   case 8: case 9:
                        System.out.println(zipCodeInput + " is int he West");
                        break;
                   default:
                        System.out.println(zipCodeInput + " is an invalid ZIP Code");
                        break;
    When you print the char '7' as a character you will see the character '7', but char is really a numeric type: think of it as unsigned short. To convert '0'...'9' to the numbers 0...9, do the math:
    char ch = ...
    int digit = ch - '0';edit: or give your cases in terms of char literals:
    case '0': case '2': case '3':

Maybe you are looking for

  • Is there a way you can transfer all the music from an ipod touch without losing any of it?

    I have the latest of the Ipod Touch. My computer had crash but I didn't backup any of the music to a disc but its backup on the ipod touch. I want to connect my touch to my new computer but I don't want to lose any music. Is there a way I can transfe

  • Ipad iTunes rental volume

    Just rented my first movie on my iPad and the volume is too low even at the highest setting. The preview for the movie was plenty loud, but the rental is unwatchable. I've checked my volume settings on the iPad and it is set to the highest level. Any

  • Itunes cant connect to internet

    need help. im using window 7 64 bit. my itunes wont connect to internet. it show message "itunes could not connect to itunes store.An unkonwn error occurred (0x80090318)

  • Problem on how to create a .h file in a java package !!

    Hello, Please help me!! I have a problem generating a header file inside a java package. As I do not think eclipse IDE can do that, I then have to use the command as following in the command prompt instead. D:\myJava\workspace\myJNI\bin>javah sysHook

  • Validate xml with DOM - no grammar found

    Validation with XmlSpy is OK! Please help me. My problem is... ========================================================== // Schema... <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="q