Unrecognized I18N key:
I tried out the Sun Update Connection web interface. Seems neat, but I'm get the following error message for every patch I try to install this way:
Unrecognized I18N key: "swup.server.smpatch.". Please contact Sun Support for comment explanation
I installed patch 122231-01 before I attempted this.
Can anyone explain what this means? I tried to contact Sun through the online support center, but all I get is "Read timed out" errors while attempting to fill out the forms. Can't seem to locate an email address for support.
Many thanx
Hello,
There has been a bug raised for the error which you are seeing 6314844. The URL for this is below:
http://onesearch.sun.com/search/onesearch/index.jsp?qt=6314844&site=sunsolve&otf=ss&col=support-sunsolve&otf=sunsolve&site=ss&col=search-sunsolve
Is this the only error which you are seeing?
Regards
Similar Messages
-
How to put a javascript variable containg the i18n key in the i18n tag
I have a list of values in a List box.when the user selects a praticular value.,i need to show the java script localized alert message for the selected value.
how can i pass the javascript variable to i18n tag.
For ex:
function test(){
var selectedvalue='name';
var localizedstring='<i18n:message key="+selectedvalue+"/>';--This is not working
alert('<i18n:message key="+selectedvalue+"/>');
the alert message is a blank string,even though i have the key in my resource bundle.
Also..if i give directly pass the key value to i18n string it works. like..
var localizedstring='<i18n:message key="+name+"/>';--This is working
*(am passing the variable value)*The following should be able to pass ans.
<script language="Javascript">
function check_answer(ans) {
if (testing.result.value==ans ){
window.alert("You have got 10 marks.");
</script>
<body>
<form name="testing"...>
<%
ResultSet rs = stmt.executeQuery("select * from level where...");
while(rs.next())
out.println("<tr>");
out.println("<td>" + rs.getString("question") + "</td>");
ans = rs.getString("answer");
out.println("</tr>");
out.println("<input type='text' name='result'>);
out.println("<input type='button' value='Enter' onclick='check_answer('<%= ans%>')'>");
%>jag -
Hi,
sun update connection jobs failed with the following message:
Unrecognized I18N key:"javax.xml.bind.JAXBException: PatchInstallOrderServiceError: Updates List size does not match Ordered list". Please contact Sun Support for comment explanation.
Regards
MarcoHi,
all patches (i.e. 10) for a certain server failed as described. This server also acts as sun update connection proxy. The whole thing seems to be a major Problem now, since all other servers also have failed jobs. But the messages is different: "Installation of update failed". But one server was capable to install 9 of 93 patches the other failed too - strange.
Here are some answers you ask for:
- Patches (on Proxy): 1220199-09 124630-11 126303-02 120812-19 120473-12 120222-21 125166-05 122860-05 119814-17 123003-03 125279-03
- /var/log/swupas/swupas.error.log is empty on all systems
- I was able to install a patch manually (e.g. 120499-09) on proxy
I unregistered the proxy the day before yesterday and waited 24h for re-registration. So, maybe the problem connected to this. The registration was made by
sconadm register -a -r registrationprofile.properties -e softwareUpdate
The proxy is a sun update connection proxy only and not a web proxy. So I understand, that 'sconadm proxy' isn't necessary.
Marco -
Wifi disconnects on highish throughput
Hi,
I've got wireless problems with the combination of my router and my laptop. Whenever I download something more than say 1MB the connection drops. This happens with Youtube, Google Image search and Pacman updates. The connection re-establishes after a few seconds to drop out again some 10-15 seconds later. This continues until either the download fails or is finished.
On the university, which uses eduroam, I've got no problems connecting and no problems downloading.
I'm using wpa_supplicant to connect, which is started by dhcpd. The settings for the connection with my router are as basic as could be, only an SSID and PSK are given in the configuration file.
What I've tried so far:
Update system with pacman. No success
Change router to mixed BG only, no N. No success
Turned power management off. No success
I've had the problem a few weeks back, but then changing the config file to a minimum fixed the problem.
On Windows 8.1 the wifi seems to work fine.
Does anyone have a clue on how to fix this?
Hardware info, lspci -vv:
03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6235 (rev 24)
Subsystem: Intel Corporation Centrino Advanced-N 6235 AGN
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 48
Region 0: Memory at f7800000 (64-bit, non-prefetchable) [size=8K]
Capabilities: <access denied>
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
Connection info iwconfig:
wlp3s0 IEEE 802.11abgn ESSID:"Sacred"
Mode:Managed Frequency:2.447 GHz Access Point: F8:D1:11:B7:29:A4
Bit Rate=54 Mb/s Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=70/70 Signal level=-29 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:3 Invalid misc:145 Missed beacon:0
Some extensive debug from wpa_supplicant:
EAPOL: disable timer tick
RTM_NEWLINK: ifi_index=2 ifname=wlp3s0 operstate=2 linkmode=1 ifi_flags=0x1003 ([UP])
nl80211: Event message available
nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlp3s0
nl80211: Delete station f8:d1:11:b7:29:a4
nl80211: Event message available
nl80211: Drv Event 40 (NL80211_CMD_DISASSOCIATE) received for wlp3s0
nl80211: MLME event 40 (NL80211_CMD_DISASSOCIATE) on wlp3s0(c4:85:08:92:41:b8) A1=c4:85:08:92:41:b8 A2=f8:d1:11:b7:29:a4
nl80211: MLME event frame - hexdump(len=26): a0 00 40 01 c4 85 08 92 41 b8 f8 d1 11 b7 29 a4 f8 d1 11 b7 29 a4 b0 d9 22 00
nl80211: Disassociate event
wlp3s0: Event DISASSOC (1) received
wlp3s0: Disassociation notification
wlp3s0: * reason 34
wlp3s0: * address f8:d1:11:b7:29:a4
Disassociation frame IE(s) - hexdump(len=0): [NULL]
wlp3s0: SME: Disassociation event received
wlp3s0: SME: Deauthenticate to clear driver state
wpa_driver_nl80211_deauthenticate(addr=f8:d1:11:b7:29:a4 reason_code=3)
wlp3s0: nl80211: MLME command failed: reason=3 ret=-107 (Transport endpoint is not connected)
wlp3s0: CTRL-EVENT-DISCONNECTED bssid=f8:d1:11:b7:29:a4 reason=34
wlp3s0: Auto connect enabled: try to reconnect (wps=0 wpa_state=9)
wlp3s0: Setting scan request: 0.100000 sec
Added BSSID f8:d1:11:b7:29:a4 into blacklist
wlp3s0: Blacklist count 1 --> request scan in 100 ms
wlp3s0: Ignore new scan request for 0.100000 sec since an earlier request is scheduled to trigger sooner
TDLS: Remove peers on disassociation
wlp3s0: Disconnect event - remove keys
wpa_driver_nl80211_set_key: ifindex=2 (wlp3s0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=2 (wlp3s0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=2 (wlp3s0) alg=0 addr=0x7cfa10 key_idx=0 set_tx=0 seq_len=0 key_len=0
addr=f8:d1:11:b7:29:a4
wlp3s0: State: COMPLETED -> DISCONNECTED
nl80211: Set wlp3s0 operstate 1->0 (DORMANT)
netlink: Operstate: ifindex=2 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
nl80211: Event message available
nl80211: Drv Event 48 (NL80211_CMD_DISCONNECT) received for wlp3s0
nl80211: Ignore disconnect event when using userspace SME
RTM_NEWLINK: ifi_index=2 ifname=wlp3s0 wext ifi_flags=0x1003 ([UP])
wlp3s0: State: DISCONNECTED -> SCANNING
wlp3s0: Starting AP scan for wildcard SSID
wlp3s0: Add radio work 'scan'@0x7efad0
wlp3s0: First radio work item in the queue - schedule start immediately
wlp3s0: Starting radio work 'scan'@0x7efad0 after 0.000006 second wait
wlp3s0: nl80211: scan request
nl80211: Scan SSID - hexdump_ascii(len=0): [NULL]
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Event message available
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlp3s0
wlp3s0: nl80211: Scan trigger
wlp3s0: Event SCAN_STARTED (49) received
wlp3s0: Own scan request started a scan in 0.000018 seconds
wlp3s0: CTRL-EVENT-SCAN-STARTED
nl80211: Event message available
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlp3s0
wlp3s0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 5180 5200 5220 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825
wlp3s0: Event SCAN_RESULTS (3) received
wlp3s0: Scan completed in 3.280062 seconds
nl80211: Received scan results (40 BSSes)
wlp3s0: BSS: Start scan result update 3
wlp3s0: BSS: Add new id 38 BSSID ac:cf:23:2e:7f:58 SSID 'LEDnetkamerlicht'
wlp3s0: BSS: Add new id 39 BSSID c8:d7:19:ed:c4:bb SSID 'Christina, where's your nipple?'
wlp3s0: BSS: Add new id 40 BSSID 00:25:9c:bc:e0:ab SSID 'Hoogendijk'
wlp3s0: BSS: Remove id 16 BSSID b0:48:7a:99:b5:bc SSID 'Matrix' due to no match in scan
BSS: last_scan_res_used=40/64
wlp3s0: New scan results available (own=1 ext=0)
WPS: Unknown Vendor Extension (Vendor ID 9442)
WPS: Unknown Vendor Extension (Vendor ID 9442)
WPS: Unknown Vendor Extension (Vendor ID 9442)
WPS: Unknown Vendor Extension (Vendor ID 9442)
WPS: Unknown Vendor Extension (Vendor ID 9442)
WPS: Unknown Vendor Extension (Vendor ID 9442)
WPS: Unknown Vendor Extension (Vendor ID 9442)
WPS: Unknown Vendor Extension (Vendor ID 9442)
WPS: Unknown Vendor Extension (Vendor ID 9442)
WPS: AP c4:04:15:3d:f8:00 type 0 added
WPS: AP c4:04:15:3d:f7:ff type 0 added
WPS: Unknown Vendor Extension (Vendor ID 9442)
WPS: AP f8:1a:67:7f:62:8e type 0 added
WPS: AP 00:16:0a:1e:a7:d8 type 0 added
WPS: AP 6c:fd:b9:30:93:f0 type 0 added
WPS: AP 64:d1:a3:1d:d9:f4 type 0 added
WPS: Unknown Vendor Extension (Vendor ID 9442)
WPS: AP 64:66:b3:4f:ed:69 type 0 added
WPS: AP 00:23:69:2e:1a:cf type 0 added
WPS: AP e0:46:9a:5d:f7:91 type 0 added
WPS: AP 00:0c:f6:6b:20:68 type 0 added
WPS: Unknown Vendor Extension (Vendor ID 9442)
WPS: AP f8:1a:67:05:3c:66 type 0 added
WPS: AP 68:7f:74:a5:06:c6 type 0 added
WPS: AP 20:aa:4b:82:94:13 type 0 added
WPS: AP 00:0c:f6:6e:c1:ac type 0 added
WPS: AP c8:d7:19:ed:c4:bb type 0 added
WPS: AP 00:25:9c:bc:e0:ab type 0 added
WPS: AP f8:d1:11:b9:95:d2 type 0 added
WPS: AP 00:0c:f6:46:35:24 type 0 added
WPS: AP f0:7d:68:55:e8:f2 type 0 added
WPS: AP 80:1f:02:46:75:6c type 0 added
WPS: AP 00:0c:f6:71:3c:d4 type 0 added
WPS: AP[0] c4:04:15:3d:f8:00 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[1] c4:04:15:3d:f7:ff type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[2] f8:1a:67:7f:62:8e type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[3] 00:16:0a:1e:a7:d8 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[4] 6c:fd:b9:30:93:f0 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[5] 64:d1:a3:1d:d9:f4 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[6] 64:66:b3:4f:ed:69 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[7] 00:23:69:2e:1a:cf type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[8] e0:46:9a:5d:f7:91 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[9] 00:0c:f6:6b:20:68 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[10] f8:1a:67:05:3c:66 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[11] 68:7f:74:a5:06:c6 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[12] 20:aa:4b:82:94:13 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[13] 00:0c:f6:6e:c1:ac type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[14] c8:d7:19:ed:c4:bb type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[15] 00:25:9c:bc:e0:ab type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[16] f8:d1:11:b9:95:d2 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[17] 00:0c:f6:46:35:24 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[18] f0:7d:68:55:e8:f2 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[19] 80:1f:02:46:75:6c type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[20] 00:0c:f6:71:3c:d4 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
wlp3s0: Radio work 'scan'@0x7efad0 done in 3.283504 seconds
wlp3s0: Selecting BSS from priority group 0
wlp3s0: 0: f8:d1:11:b7:29:a4 ssid='Sacred' wpa_ie_len=0 rsn_ie_len=20 caps=0x411 level=-30
wlp3s0: skip - SSID mismatch
wlp3s0: skip - SSID mismatch
wlp3s0: skip - SSID mismatch
wlp3s0: skip - SSID mismatch
wlp3s0: selected based on RSN IE
wlp3s0: selected BSS f8:d1:11:b7:29:a4 ssid='Sacred'
wlp3s0: Considering connect request: reassociate: 0 selected: f8:d1:11:b7:29:a4 bssid: 00:00:00:00:00:00 pending: 00:00:00:00:00:00 wpa_state: SCANNING ssid=0x7d1b30 current_ssid=(nil)
wlp3s0: Request association with f8:d1:11:b7:29:a4
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=8): 00 06 53 61 63 72 65 64
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=3): 03 01 08
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=3): 2a 01 04
WPA: RSN IE in EAPOL-Key - hexdump(len=22): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 02 01 00 00 0f ac 02 0c 00
TDLS: TDLS is allowed in the target BSS
wlp3s0: Add radio work 'sme-connect'@0x7f6460
wlp3s0: First radio work item in the queue - schedule start immediately
wlp3s0: Starting radio work 'sme-connect'@0x7f6460 after 0.000009 second wait
wlp3s0: Automatic auth_alg selection: 0x1
RSN: PMKSA cache search - network_ctx=(nil) try_opportunistic=0
RSN: Search for BSSID f8:d1:11:b7:29:a4
RSN: No PMKSA cache entry found
wlp3s0: RSN: using IEEE 802.11i/D9.0
wlp3s0: WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 2
wlp3s0: WPA: Selected mgmt group cipher 32
wlp3s0: WPA: clearing AP WPA IE
WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 02 01 00 00 0f ac 02 0c 00
wlp3s0: WPA: using GTK TKIP
wlp3s0: WPA: using PTK TKIP
wlp3s0: WPA: using KEY_MGMT WPA-PSK
wlp3s0: WPA: not using MGMT group cipher
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 02 01 00 00 0f ac 02 00 00
wlp3s0: Cancelling scan request
wlp3s0: SME: Trying to authenticate with f8:d1:11:b7:29:a4 (SSID='Sacred' freq=2447 MHz)
wlp3s0: State: SCANNING -> AUTHENTICATING
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
nl80211: Authenticate (ifindex=2)
* bssid=f8:d1:11:b7:29:a4
* freq=2447
* SSID - hexdump_ascii(len=6):
53 61 63 72 65 64 Sacred
* IEs - hexdump(len=0): [NULL]
* Auth Type 0
nl80211: Authentication request send successfully
RTM_NEWLINK: ifi_index=2 ifname=wlp3s0 wext ifi_flags=0x1003 ([UP])
nl80211: Event message available
nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlp3s0
nl80211: New station f8:d1:11:b7:29:a4
nl80211: Event message available
nl80211: Drv Event 37 (NL80211_CMD_AUTHENTICATE) received for wlp3s0
nl80211: MLME event 37 (NL80211_CMD_AUTHENTICATE) on wlp3s0(c4:85:08:92:41:b8) A1=c4:85:08:92:41:b8 A2=f8:d1:11:b7:29:a4
nl80211: MLME event frame - hexdump(len=30): b0 00 40 01 c4 85 08 92 41 b8 f8 d1 11 b7 29 a4 f8 d1 11 b7 29 a4 30 de 00 00 02 00 00 00
nl80211: Authenticate event
wlp3s0: Event AUTH (11) received
wlp3s0: SME: Authentication response: peer=f8:d1:11:b7:29:a4 auth_type=0 auth_transaction=2 status_code=0
SME: Authentication response IEs - hexdump(len=0): [NULL]
wlp3s0: set_disable_max_amsdu: -1
wlp3s0: set_ampdu_factor: -1
wlp3s0: set_ampdu_density: -1
wlp3s0: set_disable_ht40: 0
wlp3s0: set_disable_sgi: 0
wlp3s0: Trying to associate with f8:d1:11:b7:29:a4 (SSID='Sacred' freq=2447 MHz)
wlp3s0: State: AUTHENTICATING -> ASSOCIATING
nl80211: Set wlp3s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=2 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
WPA: set own WPA/RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 02 01 00 00 0f ac 02 00 00
nl80211: Associate (ifindex=2)
* bssid=f8:d1:11:b7:29:a4
* freq=2447
* SSID - hexdump_ascii(len=6):
53 61 63 72 65 64 Sacred
* IEs - hexdump(len=32): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 02 01 00 00 0f ac 02 00 00 7f 08 00 00 00 00 00 00 00 40
* WPA Versions 0x2
* pairwise=0xfac02
* group=0xfac02
nl80211: Association request send successfully
nl80211: Event message available
nl80211: Drv Event 38 (NL80211_CMD_ASSOCIATE) received for wlp3s0
nl80211: MLME event 38 (NL80211_CMD_ASSOCIATE) on wlp3s0(c4:85:08:92:41:b8) A1=c4:85:08:92:41:b8 A2=f8:d1:11:b7:29:a4
nl80211: MLME event frame - hexdump(len=72): 10 00 40 01 c4 85 08 92 41 b8 f8 d1 11 b7 29 a4 f8 d1 11 b7 29 a4 40 de 11 04 00 00 01 c0 01 08 82 84 8b 96 0c 12 18 24 32 04 30 48 60 6c dd 18 00 50 f2 02 01 01 00 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
nl80211: Associate event
wlp3s0: Event ASSOC (0) received
wlp3s0: Association info event
resp_ies - hexdump(len=42): 01 08 82 84 8b 96 0c 12 18 24 32 04 30 48 60 6c dd 18 00 50 f2 02 01 01 00 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
wlp3s0: freq=2447 MHz
wlp3s0: State: ASSOCIATING -> ASSOCIATED
nl80211: Set wlp3s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=2 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
wlp3s0: Associated to a new BSS: BSSID=f8:d1:11:b7:29:a4
wlp3s0: Associated with f8:d1:11:b7:29:a4
wlp3s0: WPA: Association event - clear replay counter
wlp3s0: WPA: Clear old PTK
TDLS: Remove peers on association
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: enable timer tick
EAPOL: SUPP_BE entering state IDLE
wlp3s0: Setting authentication timeout: 10 sec 0 usec
wlp3s0: Cancelling scan request
RTM_NEWLINK: ifi_index=2 ifname=wlp3s0 operstate=5 linkmode=1 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK: ifi_index=2 ifname=wlp3s0 wext ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK: ifi_index=2 ifname=wlp3s0 wext ifi_flags=0x11003 ([UP][LOWER_UP])
nl80211: Event message available
nl80211: Drv Event 46 (NL80211_CMD_CONNECT) received for wlp3s0
nl80211: Ignore connect event (cmd=46) when using userspace SME
wlp3s0: RX EAPOL from f8:d1:11:b7:29:a4
RX EAPOL - hexdump(len=99): 01 03 00 5f 02 00 89 00 20 00 00 00 00 00 00 00 01 1b 2c 85 e1 20 25 da f0 83 37 b2 95 40 b0 7f 87 05 45 28 21 3a 7e cc 26 62 7f b7 9d 73 d5 2d 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wlp3s0: Setting authentication timeout: 10 sec 0 usec
wlp3s0: IEEE 802.1X RX: version=1 type=3 length=95
wlp3s0: EAPOL-Key type=2
wlp3s0: key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack)
wlp3s0: key_length=32 key_data_length=0
replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01
key_nonce - hexdump(len=32): 1b 2c 85 e1 20 25 da f0 83 37 b2 95 40 b0 7f 87 05 45 28 21 3a 7e cc 26 62 7f b7 9d 73 d5 2d 45
key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: RX EAPOL-Key - hexdump(len=99): 01 03 00 5f 02 00 89 00 20 00 00 00 00 00 00 00 01 1b 2c 85 e1 20 25 da f0 83 37 b2 95 40 b0 7f 87 05 45 28 21 3a 7e cc 26 62 7f b7 9d 73 d5 2d 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wlp3s0: State: ASSOCIATED -> 4WAY_HANDSHAKE
wlp3s0: WPA: RX message 1 of 4-Way Handshake from f8:d1:11:b7:29:a4 (ver=1)
RSN: msg 1/4 key data - hexdump(len=0):
WPA: Renewed SNonce - hexdump(len=32): c0 0f fe b9 af ab d8 85 a9 1b aa 3c 3f 68 8e 01 b4 71 70 90 bd 90 86 cd b1 44 87 9f 19 d6 44 3b
WPA: PTK derivation - A1=c4:85:08:92:41:b8 A2=f8:d1:11:b7:29:a4
WPA: Nonce1 - hexdump(len=32): c0 0f fe b9 af ab d8 85 a9 1b aa 3c 3f 68 8e 01 b4 71 70 90 bd 90 86 cd b1 44 87 9f 19 d6 44 3b
WPA: Nonce2 - hexdump(len=32): 1b 2c 85 e1 20 25 da f0 83 37 b2 95 40 b0 7f 87 05 45 28 21 3a 7e cc 26 62 7f b7 9d 73 d5 2d 45
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=22): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 02 01 00 00 0f ac 02 00 00
WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01
wlp3s0: WPA: Sending EAPOL-Key 2/4
WPA: KCK - hexdump(len=16): [REMOVED]
WPA: Derived Key MIC - hexdump(len=16): 54 a5 2d 53 ab 9d 26 1f 03 32 3d c0 5a fd 57 5c
WPA: TX EAPOL-Key - hexdump(len=121): 01 03 00 75 02 01 09 00 00 00 00 00 00 00 00 00 01 c0 0f fe b9 af ab d8 85 a9 1b aa 3c 3f 68 8e 01 b4 71 70 90 bd 90 86 cd b1 44 87 9f 19 d6 44 3b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 54 a5 2d 53 ab 9d 26 1f 03 32 3d c0 5a fd 57 5c 00 16 30 14 01 00 00 0f ac 02 01 00 00 0f ac 02 01 00 00 0f ac 02 00 00
wlp3s0: RX EAPOL from f8:d1:11:b7:29:a4
RX EAPOL - hexdump(len=161): 01 03 00 9d 02 13 c9 00 20 00 00 00 00 00 00 00 02 1b 2c 85 e1 20 25 da f0 83 37 b2 95 40 b0 7f 87 05 45 28 21 3a 7e cc 26 62 7f b7 9d 73 d5 2d 45 c5 e6 d0 8f e2 6c 63 56 44 9b ad 25 f8 10 73 c8 73 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 6c 10 77 99 a6 8e 92 04 db 0d e2 7d db b7 a5 9d 00 3e 50 00 b8 c8 bf f2 7e 41 d7 ff 0c 09 d6 fa 0c d3 47 af 3d 4a 09 84 67 83 c7 8b 19 44 ab 5b d7 fc 72 e8 f9 e9 8d d4 b9 f1 66 aa e8 0b 02 db 6a df c3 b6 ba 1b 73 cb 39 0c 43 b9 eb 5c 07 7e
wlp3s0: IEEE 802.1X RX: version=1 type=3 length=157
wlp3s0: EAPOL-Key type=2
wlp3s0: key_info 0x13c9 (ver=1 keyidx=0 rsvd=0 Pairwise Install Ack MIC Secure Encr)
wlp3s0: key_length=32 key_data_length=62
replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 02
key_nonce - hexdump(len=32): 1b 2c 85 e1 20 25 da f0 83 37 b2 95 40 b0 7f 87 05 45 28 21 3a 7e cc 26 62 7f b7 9d 73 d5 2d 45
key_iv - hexdump(len=16): c5 e6 d0 8f e2 6c 63 56 44 9b ad 25 f8 10 73 c8
key_rsc - hexdump(len=8): 73 00 00 00 00 00 00 00
key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
key_mic - hexdump(len=16): 6c 10 77 99 a6 8e 92 04 db 0d e2 7d db b7 a5 9d
WPA: RX EAPOL-Key - hexdump(len=161): 01 03 00 9d 02 13 c9 00 20 00 00 00 00 00 00 00 02 1b 2c 85 e1 20 25 da f0 83 37 b2 95 40 b0 7f 87 05 45 28 21 3a 7e cc 26 62 7f b7 9d 73 d5 2d 45 c5 e6 d0 8f e2 6c 63 56 44 9b ad 25 f8 10 73 c8 73 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 6c 10 77 99 a6 8e 92 04 db 0d e2 7d db b7 a5 9d 00 3e 50 00 b8 c8 bf f2 7e 41 d7 ff 0c 09 d6 fa 0c d3 47 af 3d 4a 09 84 67 83 c7 8b 19 44 ab 5b d7 fc 72 e8 f9 e9 8d d4 b9 f1 66 aa e8 0b 02 db 6a df c3 b6 ba 1b 73 cb 39 0c 43 b9 eb 5c 07 7e
RSN: encrypted key data - hexdump(len=62): 50 00 b8 c8 bf f2 7e 41 d7 ff 0c 09 d6 fa 0c d3 47 af 3d 4a 09 84 67 83 c7 8b 19 44 ab 5b d7 fc 72 e8 f9 e9 8d d4 b9 f1 66 aa e8 0b 02 db 6a df c3 b6 ba 1b 73 cb 39 0c 43 b9 eb 5c 07 7e
WPA: decrypted EAPOL-Key key data - hexdump(len=62): [REMOVED]
wlp3s0: State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
wlp3s0: WPA: RX message 3 of 4-Way Handshake from f8:d1:11:b7:29:a4 (ver=1)
WPA: IE KeyData - hexdump(len=62): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 02 01 00 00 0f ac 02 0c 00 dd 26 00 0f ac 01 02 00 35 7c eb 58 e4 43 0f c5 5e ba d4 e4 88 8f 11 b7 87 7c cd 93 9f 73 a4 6c a3 c8 95 5b db 92 40 6a
WPA: RSN IE in EAPOL-Key - hexdump(len=22): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 02 01 00 00 0f ac 02 0c 00
WPA: GTK in EAPOL-Key - hexdump(len=40): [REMOVED]
wlp3s0: WPA: Sending EAPOL-Key 4/4
WPA: KCK - hexdump(len=16): [REMOVED]
WPA: Derived Key MIC - hexdump(len=16): a7 52 42 cc b1 b6 b5 c0 71 8f 7c a0 85 bc a0 fb
WPA: TX EAPOL-Key - hexdump(len=99): 01 03 00 5f 02 03 09 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a7 52 42 cc b1 b6 b5 c0 71 8f 7c a0 85 bc a0 fb 00 00
wlp3s0: WPA: Installing PTK to the driver
wpa_driver_nl80211_set_key: ifindex=2 (wlp3s0) alg=2 addr=0x7d2748 key_idx=0 set_tx=1 seq_len=6 key_len=32
addr=f8:d1:11:b7:29:a4
EAPOL: External notification - portValid=1
wlp3s0: State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RSN: received GTK in pairwise handshake - hexdump(len=34): [REMOVED]
WPA: Group Key - hexdump(len=32): [REMOVED]
wlp3s0: WPA: Installing GTK to the driver (keyidx=2 tx=0 len=32)
WPA: RSC - hexdump(len=6): 73 00 00 00 00 00
wpa_driver_nl80211_set_key: ifindex=2 (wlp3s0) alg=2 addr=0x4f9e43 key_idx=2 set_tx=0 seq_len=6 key_len=32
broadcast key
wlp3s0: WPA: Key negotiation completed with f8:d1:11:b7:29:a4 [PTK=TKIP GTK=TKIP]
wlp3s0: Cancelling authentication timeout
Removed BSSID f8:d1:11:b7:29:a4 from blacklist
wlp3s0: State: GROUP_HANDSHAKE -> COMPLETED
wlp3s0: Radio work 'sme-connect'@0x7f6460 done in 0.032118 seconds
wlp3s0: CTRL-EVENT-CONNECTED - Connection to f8:d1:11:b7:29:a4 completed [id=4 id_str=]
nl80211: Set wlp3s0 operstate 0->1 (UP)
netlink: Operstate: ifindex=2 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
EAPOL: External notification - portValid=1
EAPOL: External notification - EAP success=1
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state SUCCESS
EAP: EAP entering state DISABLED
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: Supplicant port status: Authorized
nl80211: Set supplicant port authorized for f8:d1:11:b7:29:a4
EAPOL: SUPP_BE entering state IDLE
EAPOL authentication completed - result=SUCCESS
RTM_NEWLINK: ifi_index=2 ifname=wlp3s0 operstate=6 linkmode=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
EAPOL: startWhen --> 0
EAPOL: disable timer tick
Last edited by shoogendijk (2014-07-11 09:32:28)Mabye disabling power management helps
iw wlp3s0 set power_save off -
How to call a shell script from a java code
Hello can any one suggest me how to call a shell script from a java program that takes three parameters.
i have a shell script (msp_restore_gui) when i run this script in the command line in a RHEL5 ,SUSE10 and Debian machine it works fine .I even tested to call it from a java program and it also worked fine but when i used the same in a J2ee application where the user when clicks the restore button in a webserver this inturn sends the request to a java file named BackupManager.java where i call the shell script.But here it fails.Waiting for your suggestions.If you want i can put the code also hereyes the script is in /usr/local/mss/tools/backup and the script (msp_restore_gui) is as follows
#!/bin/sh
TIMESTAMP=`date +%d_%b_%y-%H-%M`
touch /var/backups/mss/mss_restore_"$TIMESTAMP".log
LOGFILE="/var/backups/mss/mss_restore_"$TIMESTAMP".log"
### Explode tgz file
cd /
# Checks to be done:
# root login
# assume he passes the parameter as msp_backup_<timestamp>
# check for the existence of the .tz and fileList.txt
# Checking for the root login and if not logged on as root
# permission will be denied to execute this script
logmsg(){
echo "`date`: $*" >> $LOGFILE 2>&1
echo "$*"
#usage of this script
while [ $# -ne 0 ]
do
case $1 in
-n)
shift
ARCHIVE_NAME=`find / \( -name "$1.tz" -o -name "$1.tgz" \) 2>/dev/null`
FILE_NAME=`find / -name $1_filesList.txt 2>/dev/null`
if [ x$ARCHIVE_NAME = x -a y$FILE_NAME = y ]
then
logmsg "ERROR: Files not found, Restore cannot proceed"
usage
else
tar tvzf $ARCHIVE_NAME > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo "ERROR: The tar file $ARCHIVE_NAME is not proper. Restore cannot proceed"
exit 1
else
echo "Backedup files are present, proceeding with restore......" >> $LOGFILE 2>&1
fi
fi
usage
SKIP_CLEANUP=1
STATUS=1
exit
esac
shift
done
rm -rf ./newfile
curr_ver_file="/usr/local/mss/etc/version"
/usr/local/mss/tools/backup/check_version $curr_ver_file $FILE_NAME
ret_code=$?
echo "Exit value of check_version is $ret_code"
if [ "$ret_code" != 0 ]
then
logmsg "MSP Version not matching. Exiting from restore now...."
errormsg=`cat /usr/local/mss/temp/ver_err_mesg`
logmsg $errormsg
rm -f /usr/local/mss/temp/ver_err_mesg
exit 1
else
echo "Version check is successful"
fi
#### ShutDown MSS########
/etc/init.d/mss stop
sleep 2
### Shutdown semm
/etc/init.d/semm stop
sleep 2
rm -rf `grep -v "MSP Version:" $FILE_NAME`
logmsg "MSP restore in progress......"
tar mxvfz $ARCHIVE_NAME >> $LOGFILE
sleep 5
### Call mysql restore script
/usr/local/mss/bin/mysql_alldb_restore.sh >> $LOGFILE 2>&1
if [ $? -ne 0 ]; then
logmsg "Database restore Failed. Cannot proceed further"
exit 1 ;
else
logmsg "Database restore Succeeded."
fi
### Remove DB Dump Files
rm -f /var/lib/mysql-dumps/*
### Trigger cleanup of airprism database tables
#touch /usr/local/mss/airprism/server/config/reinitdb
### Trigger re-import of software packages
touch /usr/local/mss/swdepot/reimport
### Remove log files under the "apps" directory
find /usr/local/mss/apps -name '*.log*' | xargs rm -f
find /usr/local/mss/logs -follow -name '*[._]log*' | xargs rm -f
if [ $? -ne 0 ]; then
logmsg "MSP restore Failed. Cannot proceed further"
exit 1 ;
else
logmsg "MSP restore Succeeded."
fi
# reinstall_patch is touched so that patches are re-installed after restoring of MSP.
touch /usr/local/mss/patch/bin/reinstall_patch
##### Start MSS
logmsg "restarting MSP server "
/etc/init.d/mss start
sleep 5
### Start semm
/etc/init.d/semm start
sleep 5
logmsg "MSP server is now restarted"
my jsp page backup.jsp is as follows
<%@taglib uri="portlet.tld" prefix="uif" %>
<%@taglib uri="msp-console.tld" prefix="msp" %>
<uif:defineObjects/>
<%@page import="javax.portlet.*" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.util.Vector" %>
<%@ page import="java.text.DateFormat" %>
<%@ page import="com.symbol.mss.console.admin.backup.BackupManager" %>
<%@ page import="com.symbol.mss.console.admin.system.SystemInfoPortlet" %>
<%
String STYLE_NAME = request.getParameter("style");
if (STYLE_NAME == null) STYLE_NAME = STYLE_DEFAULT;
final String ua = request.getHeader("User-Agent");
BackupManager helper = null;
PortletSession portletSession = renderRequest.getPortletSession();
helper = (BackupManager)portletSession.getAttribute("helper");
if (helper == null) {
//System.err.println("Created new BackupManager");
helper = new BackupManager();
portletSession.setAttribute("helper", helper);
final BackupManager backupManager = helper;
String action = "";
final String backupName = renderRequest.getParameter("backupName");
String completePath = backupManager.getBackupDir() + backupName + backupManager.getBackupFileExt();
if (backupName != null) {
action = "backup";
if(backupManager.backup(backupName)) {
SystemInfoPortlet.beginRestartMSP();
} else {
action = "backuperror";
final String cmd = renderRequest.getParameter("submitButton");
final String selectedBackup = renderRequest.getParameter("selectedBackup");
int tarFileStatus =0;
String backupTarFile ="";
String backupFileList ="";
if ("Restore".equals(cmd)) {
if (selectedBackup != null) {
tarFileStatus = backupManager.verifyTarFile(selectedBackup);
//backupTarFile = backupManager.getRestoreFile(Integer.parseInt(selectedBackup));
//backupFileList = backupTarFile.substring(0, backupTarFile.lastIndexOf(backupManager.getBackupFileExt()))+"_filesList.txt";
if (tarFileStatus == 0){
action = "restore";
backupManager.restore(selectedBackup);
SystemInfoPortlet.beginRestartMSP();
} else {
action = "error";
} else if ("Remove".equals(cmd)) {
backupManager.remove(Integer.parseInt(selectedBackup));
DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);
PortletURL restoreURL = renderResponse.createActionURL();
%>
<%@ include file="/jsp/core/constants.jspf" %>
<% if (action.length() > 0) {
if ("backup".equals(action))
%>
<p>The MSP Appliance has been shut down in order to create the <%=backupName %> backup file,
and will automatically restart as soon as the file has been created.
To continue your work, please log out of the MSP Console, wait for the appliance
to restart, and then log back in. The amount of time you'll have to wait for the
MSP Appliance to come back online depends on the amount of information you have
stored in the MSP Database.</p>
<p>The full pathname for the backup file is: <%=completePath %></p>
<% }
else if ("restore".equals(action))
%>
<p>The MSP Appliance has been shut down in order to restore from the <%=backupTarFile%> backup file,
and will automatically restart as soon as the restore is complete.
To continue your work, please log out of the MSP Console, wait for the appliance
to restart, and then log back in. The amount of time you'll have to wait for the
MSP Appliance to come back online depends on the amount of information you have
stored in the MSP Database.</p>
<% } else if ("backuperror".equals(action)) { %>
<p><img src="images/dialogue/error_16.gif" class="icon" alt="Notify" /> Errors occurred while taking back up of MSP. Please see the backup service log file for more details.
</P>
<% } else if ("error".equals(action)) {
if (tarFileStatus == 4) { %>
<p><img src="images/dialogue/error_16.gif" class="icon" alt="Notify" /> The backup file <%=backupTarFile%> contains errors. This backup can't be restored. Please restore a valid back up.
</P>
<%} else if (tarFileStatus == 3) { %>
<p><img src="images/dialogue/error_16.gif" class="icon" alt="Notify" /> The backup file list <%=backupFileList %> is missing. This file is required to restoring backup. Please get the backup file list and proceed with restoring backup.</p>
<%} else if (tarFileStatus == 2) { %>
<p> <img src="images/dialogue/error_16.gif" class="icon" alt="Notify" /> The backup file <%=backupTarFile%> contains errors and the backup file list <%=backupFileList%> is missing. This backup can't be restored. </p>
<%} %>
<% }
} else { %>
<p><strong>Note</strong>: Both backup and restore will shut down MSP temporarily. MSP will be unable to collect data from devices, send notifications, or provide MSP Console access during this time. When the backup or restore operation is complete, MSP will come back online automatically.</p>
<h3>Backup</h3>
<form action="<%= restoreURL.toString() %>" method="post">
<p>Please provide a name for your backup. MSP will provide the date automatically in the list of backups.</p>
<p><label for="<uif:namespace />backupName">Name</label> <input type="text" name="<uif:namespace />backupName" id="<uif:namespace />backupName" size="20" maxlength="256" /> <input type="submit" name="<uif:namespace />submitButton" value="Back up now" onclick="return <uif:namespace/>validateName()"/></p>
</form>
<h3>Restore</h3>
<p>This will restore all databases (device assets, collected device data, software packages, policies, etc.) to their state as of the time the backup was made. Changes since then <em>except for backups</em> will be destroyed.</p>
<%
Vector restoreList = helper.getRestoreEntries();
Vector restoreDates = helper.getRestoreDates();
Vector restoreVersions = helper.getRestoreVersions();
Vector filesStatus = helper.getBackupFilesStatus();
%>
<% if (restoreList.size() == 0) { %>
<p>There are no backups currently available.</p>
<% } else { %>
<form action="<%= restoreURL.toString() %>" method="post">
<table class="input-radios" id="<uif:namespace />existingBackups">
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Date</th>
<th>MSP Version</th>
<th>Remarks </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4" class="actionsOnSelected">
<input type="submit" name="<uif:namespace />submitButton" value="Restore" onclick="return confirm('This action requires MSP and all related services to be shut down. Console will be unavailable if the request is submitted. The server will restart automatically once restore has been completed.');" />
<input type="submit" name="<uif:namespace />submitButton" value="Remove" onclick="return confirm('This action will remove the backup archive. You will no longer be able to restore this backup. Continue?');" />
</td>
</tr>
</tfoot>
<tbody><%-- First one (most recent) is checked by default. Every other row has class="portlet-section-alternate". Note that each ID must be unique and must match the value of the "for" attribute on the corresponding "label" element. --%>
<%
for (int i = 0; i < restoreList.size(); i++) {
%>
<tr <%= (i % 2 == 1) ? " class=\"portlet-section-alternate\"" : "" %>>
<td><input type="radio" name="<uif:namespace />selectedBackup" value="<%= i %>" id="<uif:namespace />selectedBackup-<%= i %>" <%= (i == 0) ? "checked=\"checked\"" : "" %> /></td>
<td><label for="<uif:namespace />selectedBackup-<%= i %>"><%= restoreList.elementAt(i) %></label></td>
<td><%= dateFormat.format((Date)restoreDates.elementAt(i)) %></td>
<td><%= restoreVersions.elementAt(i) %></td>
<td><%= filesStatus.elementAt(i) %></td>
</tr>
<%
%>
</tbody>
</table>
</form>
<% } %>
<% } %>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
function <uif:namespace/>validateName() {
var name =document.getElementById("<uif:namespace />backupName");
var msg= "<msp:i18n key="BackupMsg"/>";
var str=name.value;
var re = /^[A-Za-z0-9_]+$/;
if (!str.match(re)) {
alert(msg);
name.focus();
return false;
} else {
return confirm('This action requires MSP and all related services to be shutdown. Console will be unavailable if the request is submitted. The server will restart automatically once backup has been completed.');
//--><!]]>
</script>
and my BackupManager.java is as follows where the code in bold and italic is called the restore()
//============================================================================
// Symbol Technologies P R O P R I E T A R Y S O U R C E C O D E
// C O N F I D E N T I A L
// Copyright (c) 2003 Symbol Technologies. All Rights Reserved.
// All information contained herein is the property of Symbol Technologies,
// or its Licensors, and are protected copyrights and trade secrets, and may
// be covered by U.S. patents. Any reproduction or dissemination of any
// portion of this document, of the software, or other works derived from it
// is strictly forbidden unless prior written permission is obtained from
// Symbol Technologies.
//============================================================================
package com.symbol.mss.sdf.services.backup;
import java.io.*;
import java.sql.Time;
import java.text.DateFormat;
import java.util.logging.FileHandler;
import java.util.logging.Formatter;
import java.util.logging.LogRecord;
import java.lang.Process;
import java.util.*;
import org.apache.avalon.framework.configuration.Configurable;
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.avalon.framework.logger.LogEnabled;
import org.apache.avalon.framework.logger.Logger;
import com.symbol.mss.sdf.admin.AdministratorService;
import com.symbol.mss.sdf.backup.*;
import com.symbol.mss.sdf.data.*;
* @author nramaiah
* Service to perform scheduled backups of the system state.
public class BackupManager implements BackupService, DataHandler,
LogEnabled, Configurable {
// MSS Home Path
private static String mssHome = System.getProperty("phoenix.home", File.separator + "usr" +
File.separator + "local" +
File.separator + "mss" +
File.separator);
// Backup related definitions
private static final String BACKUP_LIST_FILE_NAME = "conf" + File.separator + "files_to_backup.txt";
private static final String BACKED_UP_LIST_FILE_NAME_SUFFIX = "_filesList.txt";
private static final String BACKUP_LOCATION = File.separator + "var" + File.separator + "lib" +
File.separator + "mss-backups" + File.separator;
private static final String BACKUP_PARTITION = File.separator + "var" + File.separator + "lib";
private static final String VERIFY_BACKUP = File.separator + "usr" + File.separator + "local" +
File.separator + "mss" + File.separator+"tools"+
File.separator+"backup"+File.separator+"verifyBackup.sh";
// DB backup/restore related definitions
private static final String DB_DUMP_LOCATION = File.separator + "var" + File.separator +
"lib" + File.separator +
"mysql-dumps" + File.separator;
private static final String DB_BACKUP_SCRIPT = "bin" + File.separator + "mysql_alldb_backup.sh";
private static final String DB_RESTORE_SCRIPT = "bin" + File.separator + "mysql_alldb_restore.sh";
// Private variables
private AdministratorService m_admin = null;
private Logger m_logger = null;
private String backupLocation = null;
private String backupListFileName = null;
private String backupPartition = null;
private int backupPartitionLimit = 90;
private String dbDumpLocation = null;
private String dbBackupScript = null;
private String dbRestoreScript = null;
private List servicesBackupList = null;
private String tarFileExtension =".tgz";
private String errFileExtension =".err";
private int exitValue=0;
* Default Constructor
public BackupManager() {
servicesBackupList = new ArrayList();
* Set the administrator service implementation. Link established by Broker service.
* @param admin reference to an implementation of AdministratorService
public void setAdministrator(AdministratorService admin) {
m_admin = admin;
* Set the job publisher service implementation. Link established by Broker service.
* @param jobPublisher reference to an implementation of JobPublisherService
public void setJobPublisher(DataChannel jobPublisher) {
jobPublisher.subscribe(this);
* Gets the backup manager object.
* @return backup manager object
public BackupService getBackupService() {
return this;
* Service lifecycle method.
* @param logger logger object to be used by the service
public void enableLogging(Logger logger) {
m_logger = logger;
* Service lifecycle method.
* @param configuration service configuration object
public void configure(Configuration configuration) throws ConfigurationException {
// Verify MSS Home path
if (!mssHome.endsWith(File.separator))
mssHome += File.separator;
// Get the location where the backup file needs to be placed
backupLocation = configuration.getChild("BackupLocation").getValue(BACKUP_LOCATION);
// Verify backup directory path
if (!backupLocation.startsWith(File.separator))
backupLocation = mssHome + backupLocation;
if (!backupLocation.endsWith(File.separator))
backupLocation += File.separator;
// Get the file listing the files/directories to be backed up
backupListFileName = configuration.getChild("FilesList").getValue(BACKUP_LIST_FILE_NAME);
// Verify backup list file name path
if (!backupListFileName.startsWith(File.separator))
backupListFileName = mssHome + backupListFileName;
// Get the partition where the backups are kept
backupPartition = configuration.getChild("BackupPartition").getValue(BACKUP_PARTITION);
// Verify backup partition path
if (!backupPartition.startsWith(File.separator))
backupPartition = File.separator + backupPartition;
if (backupPartition.endsWith(File.separator))
backupPartition = backupPartition.substring(0, (backupPartition.length()-1));
// Get the limit on the amount of free space on the backup partition
backupPartitionLimit = configuration.getChild("BackupPartitionLimit").getValueAsInteger(backupPartitionLimit);
// Get the location where the DB dump files will be placed
dbDumpLocation = configuration.getChild("DBDumpLocation").getValue(DB_DUMP_LOCATION);
// Verify DB dump directory path
if (!dbDumpLocation.startsWith(File.separator))
dbDumpLocation = mssHome + dbDumpLocation;
if (!dbDumpLocation.endsWith(File.separator))
dbDumpLocation += File.separator;
// Get the name of DB dump backup script
dbBackupScript = configuration.getChild("DBBackupScript").getValue(DB_BACKUP_SCRIPT);
// Verify backup script path
if (!dbBackupScript.startsWith(File.separator))
dbBackupScript = mssHome + dbBackupScript;
// Get the name of DB dump restore script
dbRestoreScript = configuration.getChild("DBRestoreScript").getValue(DB_RESTORE_SCRIPT);
// Verify restore script path
if (!dbRestoreScript.startsWith(File.separator))
dbRestoreScript = mssHome + dbRestoreScript;
* Individual services can supply a list of files/directories to be backed up.
* These are files apart from the files specified in conf/files_to_backup.txt and
* will be backed up as well.
* @param files list of files/directories
public void filesToBackup(List files) {
synchronized(this) {
if (files != null) {
if (files.size() > 0) {
// Add the list contents to the current backup list
for (int i=0; i<files.size(); i++) {
String tStr = (String)files.get(i);
// Check for absolute or relative path
if (tStr.startsWith(File.separator))
servicesBackupList.add(tStr);
else
servicesBackupList.add(mssHome + tStr);
else
m_logger.info("Empty list of filenames. Nothing added.");
else
m_logger.info("Null list of filenames. Nothing added.");
* Individual services can supply a list of files/directories to be backed up.
* Specified files will be added to the file defining the list of files to be backed up.
* @param files list of files/directories
private void persistFilesToBackup(List files) {
synchronized(this) {
if (files != null) {
if (files.size() > 0) {
// Add the list of files provided to the end of file
try {
File file = new File(backupListFileName);
if ((file == null) || (!file.exists()))
file.createNewFile();
// Seek to the end of the file
RandomAccessFile rFile = new RandomAccessFile(file, "rw");
if (rFile != null) {
rFile.seek(rFile.length());
// Write the list contents to the file
for (int i=0; i<files.size(); i++) {
String tStr = (String)files.get(i);
// Check for absolute or relative path
if (tStr.startsWith(File.separator))
rFile.writeBytes(tStr + "\n");
else
rFile.writeBytes(mssHome + tStr + "\n");
else
m_logger.error("Error opening file " + backupListFileName);
rFile.close();
catch (Exception ex) {
ex.printStackTrace();
m_logger.error("Error adding entries to file " + backupListFileName, ex);
else
m_logger.info("Empty list of filenames. Nothing added.");
else
m_logger.info("Null list of filenames. Nothing added.");
* Command to be run during the backup process. Individual services can
* provide shell commands that will be executed before backing up the files.
* @param command shell command to be executed
private void runCommand(String command) {
* Creates a shell script at the specified location that will backup the
* files listed in the List passed in.
* @param scriptFileName location where the script needs to be created
* @param backupFileName name for the tar file being created
* @param backupList list of files to be backed up
private void createBackupScript(String scriptFileName, String backupFileName, ArrayList backupList) throws Exception {
// Create a new StringBuffer to build the contents to be written to the script file
StringBuffer buffer = new StringBuffer();
// Add the initial comment in the start script
buffer.append("#!/bin/sh\n" + "set -x\n\n");
// Check if the partition has enough space
buffer.append("### Check if the partition has enough space\n" +
// "diskUsed=`df -k | grep \"" + backupPartition + "\" | awk '{print $5}' | cut -d\"%\" -f1`\n" +
" diskUsed=`df -k \"" + backupPartition + "\" | awk '{print $5}' | cut -d\"%\" -f1 | grep -v Use`\n" +
"echo \"Partition " + backupPartition + " is $diskUsed% used.\"\n" +
"if [ \"$diskUsed\" -lt \"" + backupPartitionLimit + "\" ]\nthen\n" +
" echo \"Starting backup...\"\n\n");
// Shutdown semmd
buffer.append(" ### Shutdown semm\n" + " /etc/init.d/semm stop\n" +
" sleep 2\n\n");
// MSP Limited release and earlier builds stop mysql DB and backup the
// /var/lib/mysql directory as it is. Starting MSP 1.0 GA release, mysql
// dump script will be integrated which will create sql scripts to
// restore the database.
// Check if mysql dump creation script exists
File mysqlDumpScript = new File(dbBackupScript);
if (mysqlDumpScript.exists()) {
// MSP 1.0 GA and later releases
// Run the script that will generate sql scripts that would re-create the DB as it is
buffer.append(" ### Call mysql dump script\n" +
" " + dbBackupScript + "\n\n");
else {
// MSP Limited release
// Add command to shutdown mysql
buffer.append(" ### Shutdown mysql\n" + " /etc/init.d/mysql stop\n\n");
// Change to root directory and create the tgz file
buffer.append(" ### Create tgz file\n" + " cd /\n");
// Build up the tar file name from the current date and time
String fileName = null;
if ((backupFileName != null) && (backupFileName.length() > 0))
fileName = backupFileName;
else {
// File name not provided by user, build one using the timestamp
Calendar cal = Calendar.getInstance();
Date date = cal.getTime();
fileName = "MSS-"
+ DateFormat.getDateInstance().format(date).replaceAll(" ", "").replaceAll(",", "")+ "-"
+ (new Time(cal.getTimeInMillis())).toString().replaceAll(":", "").substring(0,4);
String tarFileName = fileName + ".tgz";
// Get the current MSP Version
String mspVersion = getMSPVersion();
// Gather all the files to be backed up. Add them to the tar command and
// also dump them into the file maintaining the list of files being backed up
String listStr = "";
for (int i=0; i<backupList.size(); i++)
listStr += (String)backupList.get(i) + "\n";
// Dump the current MSP version and the list of files being backed up into a manifest file
String listFileName = fileName + BACKED_UP_LIST_FILE_NAME_SUFFIX;
RandomAccessFile file = new RandomAccessFile(backupLocation + listFileName, "rw");
m_logger.info("List of files/directories being backed up:\n" + listStr);
file.writeBytes("### MSP Version: " + mspVersion + " ###\n");
file.writeBytes(listStr);
file.close();
// Add the tar command to the script
buffer.append(" echo \"Creating " + backupLocation + tarFileName + "...\"\n" +
" tar cvhfz " + backupLocation + tarFileName + " `grep -v \"MSP Version:\" " +
backupLocation + listFileName + "`\n\n");
// Check if free space on the backup partition has reduced below the limit
// If enough space left, backup is retained, "mss" is made the owner of the files,
// "backup" is made the group the files belong to,
// permissions changed to be "0660" and
// backup action declared a success
// Else, backup files are deleted and declared a failure
buffer.append(" ### Check if the partition has enough space left\n" +
//" diskLeft=`df -k | grep \"" + backupPartition + "\" | awk '{print $5}' | cut -d\"%\" -f1`\n" +
" diskLeft=`df -k \"" + backupPartition + "\" | awk '{print $5}' | cut -d\"%\" -f1 | grep -v Use`\n" +
" echo \"Partition " + backupPartition + " is $diskLeft% used.\"\n" +
" if [ \"$diskLeft\" -gt \"" + backupPartitionLimit + "\" ]\n" +
" then\n" +
" ### Failure\n" +
" echo \"Partition " + backupPartition + " does not have enough space.\"\n" +
" echo \"Backup " + backupLocation + tarFileName + " will be removed.\"\n" +
" rm -f " + backupLocation + fileName + "*\n" +
" echo \"Backup Failed.\"\n" +
" else\n" +
" tar tvzf " + backupLocation + tarFileName + " > /dev/null 2>&1\n" +
" if [ ! -s " + backupLocation + tarFileName + " -o $? -ne 0 ] \n" +
" then\n" +
" echo \"MSP Backup operation is not successful. The tar file " + backupLocation + tarFileName + " contains errors.\"\n" +
" echo \"Please take the backup again\"\n" +
" touch "+backupLocation+fileName+".err\n" +
" else \n" +
" ### Success\n" +
" ### Change the owner, group and permissions for the backup files\n" +
" chown mss " + backupLocation + fileName + "*\n" +
" chgrp backup " + backupLocation + fileName + "*\n" +
" chmod 0660 " + backupLocation + fileName + "*\n" +
" echo \"Backup Completed.\"\n" +
" fi\n" +
" fi\n\n");
// MSP Limited release and earlier builds re-start mysql. Starting
// MSP 1.0 GA release, mysql is not stopped and so re-start is not
// needed. sql scripts created by the dump script get packed into
// the tar file and so are deleted.
// Check if mysql dump creation script exists
if (mysqlDumpScript.exists()) {
// MSP 1.0 GA and later releases
// Remove DB dump files
buffer.append(" ### Remove DB Dump Files\n" + " rm -f " + dbDumpLocation + "*\n\n");
else {
// MSP Limited release
// Start mysql
buffer.append(" ### Start mysql\n" + " /etc/init -
WIS 10008 Error in WebI from Neoview data source
Hello:
I'm getting a timeout error (WIH 00013), in Infoview,
but the webi trace logs reports WIS 10008.
The data source is neoview.
What do I do in order to resovle this error.
I've scaled webi report servers up to 2GB memory.
I have adjusted all applications with a timeout to now = 120.
Tomcat timeout = 120
I also reviewed the document on CMC & Infoview session management.
Environment details:
XI 3.1 SP2
SAP IK 3.1 SP2
HPUX-IA64
Datasource = Neoview 2.4.
Thanks,
Dwayne Thomas
P.S.
Error message from webi logs;
=======
kdgWICDZProc.cpp:736: TraceLog message 98
2009/09/29 11:15:10.866|>>|E| |26148|4681| |||||||||||||||**ERROR:WICDZ_i:Error stream : <ERRORS>
<ERROR COMPONENT="WIS" ERRORCODE="10008" ERRORTYPE="SUPERVISOR" LENGTH="8" MESSAGE="Unrecognized Object Key 'DP0.DO3' in Tokenized expression at position 24. (WIS 10008)" POSITION="24" PR
EFIX="ERR">
<DEBUGINFO/>
<REQUESTINFO/>
<REASON MODULE="C3QE">
<CONTENT>
</CONTENT>
</REASON>
</ERROR>
</ERRORS>
[kdgWICDZProc.cpp;736]
kdgWICDZProc.cpp:736: TraceLog message 99
2009/09/29 11:15:39.645|>>|E| |26148|4717| |||||||||||||||**ERROR:WICDZ_i:Error stream : <ERRORS>
<ERROR COMPONENT="WIS" ERRORCODE="10008" ERRORTYPE="SUPERVISOR" LENGTH="8" MESSAGE="Unrecognized Object Key 'DP0.DO3' in Tokenized expression at position 24. (WIS 10008)" POSITION="24" PR
EFIX="ERR">
<DEBUGINFO/>
<REQUESTINFO/>
<REASON MODULE="C3QE">
<CONTENT>
</CONTENT>
</REASON>
</ERROR>
</ERRORS>
[kdgWICDZProc.cpp;736]
$
==============
Edited by: Dwayne Thomas on Sep 29, 2009 7:27 AMHi,
I'm seeing similar issues. Can you please provide greater detail on the exact changes you made? I see a couple areas under the Webi Processing Servers to adjust memory. I'd also like to know where/how you adjusted your Tomcat timeout. I'm familiar with the timeouts in the web.xml files, but not Tomcat itself.
Thanks -
Custom tags is it possible?
Hi,
I wrote a custom tag like <MLC:I18N key="SSFS_SS" />
Can i use it like as follows
1>
<%
String = <MLC:I18N key="SSFS_SS" />;
or
out.println(<MLC:I18N key="SSFS_SS" />);
%>
2)
<input type="button" value="<MLC:I18N key="SSFS_SS" />" >
Please let me know about this ASAP. I would appreciate if i can get some good explanation.
Thanks
bano1) No I don't you ca use it like that, not in the scriplet tags but you can easilty have a taglib that outputs a string onto the rendered JSP the equivalent of out.println("A String") just <mytag:hello/>
public class HelloTag extends TagSupport {
public int doStartTag() throws JspException {
try {
pageContext.getOut().print("Hello World!");
} catch(Exception ex) {
throw new JspException(ex);
return SKIP_BODY;
2)Yep this is ok -
Passing resource bundle key to outputText i18n
I have a dataTable with an outputText, the dataTable variable has a property which returns a resource bundle key. The following is what I am doing:
<h:dataTable
id="menu"
value="#{myBean.rowItems}"
var="row">
<h:column>
<h:outputLink value="#{row.link}">
<h:outputText value="#{bundle ['row.messageKey']}" />
</h:outputLink>
</h:column>
</h:dataTable>Of course, this doesn't work, because it looks for 'row.messageKey' in the resource bundle, instead I want it to resolve the row.messageKey expression and then look up the result in the resource bundle.
What syntax must I use to acheive this?It was so obvious.....
<h:outputText value="#{msg [row.messageKey]}" />Sorry for the noise... -
JFileChooser UIManager keys (I18n)
Hello everybody,
for a multi-language application I need to change the filechooser texts at runtime.
This can be done e.g. with
UIManager.put("FileChooser.cancelButtonText", myNewCancelTxt);Most of the keys like "FileChooser.cancelButtonText" can be found in the source files BasicFileChooserUI.java and MetalFilechooserUI.java. But not all. Where is for example "FileChooser.fileNameHeaderText" hidden, and what are the key names of the items of the menu popping up at a RMB click (they offer "View" and "Refresh")?
I have been looking for a properties file where all these keys are given, but didn't find one.
Regards
J�rgBut not all. Where is for example
"FileChooser.fileNameHeaderText" hidden, and what are
the key names of the items of the menu popping up at
a RMB click (they offer "View" and "Refresh")?
I have been looking for a properties file where all
these keys are given, but didn't find one.
Searching through the source code for "fileNameHeaderText" I found a bunch of resource files in the com.sun.java.swing.plaf.windows.resources package ("windows.java", "windows_de.java", etc) that seems to define some constants for the filechooser UI. Maybe that is what you are looking for? -
[Solved] Thinkpad "Access IBM" key unrecognized by system
Hi,
I just updated 'udev' package. After reboot, "Access IBM"/"ThinkVantage" key on R52/X220 cannot be recognized by system (both in X and in TTY) anymore.
I tried to use `xev` to grab these key, no reply at all. Previously these key were automatically recognized by system and assigned as "XF86Launch1"
Last edited by cap_sensitive (2012-01-26 04:56:25)ThinkVantage键在Linux下本来也没什么作用的吧。话说我升级了udev以后这个键也不识别了。
这个键我只有在开机进BIOS的时候才用。UEFI可以识别这个键的 -
Dead keys in keyboard no longer working
I use "us-acentos" keymap and since 2014-09-24 upgrade the dead keys are no longer working: typing apostrophe followed by "e" should print "é" but instead it just prints the apostrophe.
This under X both in bash and in a graphical editor such as leafpad, geany, netbeans. In a non-X session the dead keys do not work either, an apostrophe followed by "e" will just display a space.
Would anyone have any suggestion as to why this happened and how to correct it? Thank you.
Output of locale-ctl status:
System locale: LANG=fr_CA.UTF-8;
VC Keymap: us-acentos;
X11 Layout: n/a.
Output of pacman.log:
[2014-09-24 16:59] [PACMAN] starting full system upgrade
[2014-09-24 17:03] [PACMAN] upgraded bash (4.3.024-1 -> 4.3.024-2)
[2014-09-24 17:03] [PACMAN] installed ca-certificates-utils (20140325-2)
[2014-09-24 17:03] [PACMAN] installed ca-certificates-mozilla (3.17-3)
[2014-09-24 17:03] [PACMAN] installed ca-certificates-cacert (20140824-1)
[2014-09-24 17:03] [PACMAN] upgraded ca-certificates (20140325-1 -> 20140325-2)
[2014-09-24 17:03] [PACMAN] upgraded efivar (0.10.8.g81d0146-1 -> 0.11-1)
[2014-09-24 17:03] [PACMAN] upgraded efibootmgr (0.7.0.16.g099e110-1 -> 0.8.0-1)
[2014-09-24 17:03] [PACMAN] upgraded rtmpdump (20131205-1 -> 20140918-2)
[2014-09-24 17:03] [PACMAN] upgraded libx264 (1:142.20140826-1 -> 1:142.20140826-2)
[2014-09-24 17:03] [PACMAN] upgraded ffmpeg (1:2.3.3-2 -> 1:2.4.1-1)
[2014-09-24 17:03] [PACMAN] upgraded nspr (4.10.6-1 -> 4.10.7-1)
[2014-09-24 17:03] [PACMAN] upgraded nss (3.16.3-1 -> 3.17-3)
[2014-09-24 17:03] [PACMAN] upgraded firefox (32.0.1-1 -> 32.0.2-1)
[2014-09-24 17:03] [PACMAN] upgraded firefox-i18n-fr (32.0.1-1 -> 32.0.2-1)
[2014-09-24 17:03] [PACMAN] upgraded gegl (0.2.0-11 -> 0.2.0-12)
[2014-09-24 17:03] [PACMAN] upgraded gstreamer (1.4.1-1 -> 1.4.2-1)
[2014-09-24 17:03] [PACMAN] upgraded gst-plugins-base-libs (1.4.1-1 -> 1.4.2-1)
[2014-09-24 17:03] [PACMAN] upgraded gst-plugins-base (1.4.1-1 -> 1.4.2-1)
[2014-09-24 17:03] [PACMAN] upgraded k3b (2.0.2-9 -> 2.0.2-10)
[2014-09-24 17:03] [PACMAN] upgraded libgpg-error (1.14-1 -> 1.16-1)
[2014-09-24 17:03] [PACMAN] upgraded libtirpc (0.2.4-1 -> 0.2.5-1)
[2014-09-24 17:03] [PACMAN] upgraded xine-lib (1.2.6-1 -> 1.2.6-2)
[2014-09-24 17:03] [PACMAN] upgraded opencv (2.4.9-4 -> 2.4.9-5)
[2014-09-24 17:03] [PACMAN] upgraded openresolv (3.5.7-1 -> 3.5.7-2)
[2014-09-24 17:03] [PACMAN] upgraded openscenegraph (3.2.1-1 -> 3.2.1-2)
[2014-09-24 17:03] [PACMAN] upgraded perl (5.20.0-5 -> 5.20.1-1)
[2014-09-24 17:03] [PACMAN] upgraded python2 (2.7.8-1 -> 2.7.8-2)
[2014-09-24 17:03] [PACMAN] upgraded x264 (1:142.20140826-1 -> 1:142.20140826-2)
[2014-09-24 17:03] [PACMAN] upgraded xorg-server-common (1.16.0-6 -> 1.16.1-1)
[2014-09-24 17:03] [PACMAN] upgraded xorg-server (1.16.0-6 -> 1.16.1-1)
[2014-09-24 17:03] [PACMAN] upgraded xz (5.0.6-1 -> 5.0.7-1)Follow-up:
1) I could restore the keyboard in X with this command:
$ localectl set-x11-keymap us pc104 alt-intl
which creates /etc/X11/xorg.conf.d/00-keyboard.conf:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc105"
Option "XkbVariant" "intl"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
another option that worked was to rename /etc/X11/xorg.conf.d/10-evdev.conf.pacsave to /etc/X11/xorg.conf.d/10-evdev.conf, which also contained the "XkbLayout" and "XkbVariant" lines under "InputClass" (the original file had been renamed to .pacsave in February 2013). See wiki:
https://wiki.archlinux.org/index.php/Ke … on_in_Xorg
The output from localectl status now reads:
System Locale: LANG=fr_CA.UTF-8
VC Keymap: us-acentos
X11 Layout: us
X11 Model: pc105
X11 Variant: intl
X11 Options: terminate:ctrl_alt_bksp
So it seems that the result of an earlier upgrade was to "unset" the keyboard for X (compare with output from localectl status in original post). Why?
2) the keyboard in console (out of X) is still not working. If I try to set it to "us-alt-intl" in /etc/vconsole.conf, it works as "us" should (no dead keys); it I use "us-acentos" some keys do not work. locale-ctl shows that "us-acentos" does exist (but not "us-alt-intl").
Mystery. -
When I try to import pictures from media card to iPhoto, I'm getting the error 'The following file could not be imported. The file is in an unrecognized format.' The file is a jpeg and I've never had this problem before.
What version of iPhoto?
What colour profile is the shot?
As a Test:
Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
Import a few pics into this new, blank library. Is the Problem repeated there? -
Hi ,
I am using properties-files approach ie for each language
one properties-file.
BUT I am having this problem :
I have ResourseBundle's base-name as "Message"
and so 2 properties files:
1.Message_en_US.properties
YES=Yes
NO=No
2.Message_ja_JP.properties ( for Japanese)
YES=
NO=
Now problem here is putting value for these keys in
Message_ja_JP.properties
Few queries:
1.
I tried to use one translator (English to Japanese)
which gives me a String in Japanese and when i copy-paste this value to this file i get like "??" .
Should I put this value to properties-file or I need to put
Ascii-value of it ?
2.
as somebody was suggesting to encode file , then
what will happen to KEY ?...probably i got things wrong,
and i need to have a text-file which contains "Yes"-equivalent in Japanese....and after converting it to ascii
we got to put in properties-file...Am I RIGHT ?
I m bit confused...could anyone of you please tell me this in steps ?
3. some straight sample code will help me a
lot Please.thanx John and Joe for ur reply...
I really appreciate your attention to even small details.
Thanx a lot.
I got native2ascii work .
I have now one strange problem.I have 3 properties-file .
Messages_en_US.properties:
yesMessage=Yes
noMessage=No
Messages_fr_FR.properties:
yesMessage=Oui
noMessage=Non
Messages_ja_JP.properties
yesMessage=\u306f\u3044
noMessage=\u5426
It works fine for first two , but for japanese it gives an MissingResourceException .
//// code :
import java.util.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class I18N extends JFrame{
String yesCaption;
String noCaption;
static String language;
static String country;
JButton yesButton,noButton;
static public void main(String[] args) {
if (args.length != 2) {
System.out.println("Use :java I18N Language country");
System.exit(1);
language = new String(args[0]);
country = new String(args[1]);
I18N frame=new I18N();
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
frame.setBounds(0,0,200,100);
Font unicodeFont = new Font("LucidaSans", Font.PLAIN,12);
frame.setFont(unicodeFont);
frame.setVisible(true);
}//main
public I18N(){
Locale locale = new Locale(language, country);
ResourceBundle captions= ResourceBundle.getBundle("Messages",locale);
Enumeration enum = captions.getKeys();
String key1 = (String)enum.nextElement();
String key2 = (String)enum.nextElement();
System.out.println("key1 =="+key1);
System.out.println("key2 =="+key2);
yesCaption =captions.getString("yesMessage");
noCaption = captions.getString("noMessage");
yesButton = new JButton(yesCaption);
noButton = new JButton(noCaption);
getContentPane().add(yesButton,BorderLayout.WEST);
getContentPane().add(noButton,BorderLayout.EAST);
}//I18N
//// Actually if i run with command as
java I18N fr FR or >java I18N en US
then Frame displays the content ( French/English) properly and I get the output as :
( here also why do i get key1=null ?? )
key1 ==null
key2 ==yesMessage
BUT WHEN I run japanese as
java I18N ja JPthen i get the output as follow and exception :
(same "null" for key1 ALSO , key2 is coming with
one space between each character !!!)
key1 ==null
key2 == n o M e s s a g e
Exception in thread "main" java.util.MissingResourceException: Can't find resour
ce for bundle java.util.PropertyResourceBundle, key yesMessage
at java.util.ResourceBundle.getObject(Unknown Source)
at java.util.ResourceBundle.getObject(Unknown Source)
at java.util.ResourceBundle.getString(Unknown Source)
at I18N.<init>(I18N.java:53)
at I18N.main(I18N.java:28)
I could see that it works fine for
European languages German , French etc very fine BUT
not for Japanese , Korean etc...
I am simply at LOSS .
Please tell me something on this.HOW should I achieve to display Japanese/Korean etc in the above program.
Do i have problem with Font ? I am using "LucidaSans"
as u can see the program.
thanx,
Rajesh -
When I try to import a folder of jpeg files into iPhoto, only some are imported. I get the message "The following files could not be imported. (The file is in an unrecognized format.)" I am running iPhoto '09 ver. 8.1.2 on OSX 10.5.8. They are all RGB.
As a Test:
Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
Import a few pics into this new, blank library. Is the Problem repeated there? -
[RESOLVED] MPD can't add files to db, says ignoring unrecognized file
Sorry to bother you guys with this, but I have searched a while on google and the forums and come up empty.
I'm trying to add some music to my database with mpd and ncmpcpp. I start mpd and it starts fine, and start ncmpcpp and it starts fine, and hit the 'u' key to update. Then I look at my library. It has all the folders that are in my music folder, but none of the .mp3 files are listed. So I started mpd with
mpd --verbose --stdout --no-daemon
And hit the 'u' key in ncmpcpp again, and for every file in my music folder, mpd says such things as
update: ignoring unrecognized file Snow Patrol/Chocolate.mp3
I am running mpd as a user (not as root or as a daemon) and even then I checked all the permissions on all the relevant files and directories and they all seem to be good.
I searched a lot and didn't find this error. Has anyone else had this problem and fixed it?
Last edited by kens (2011-11-16 22:25:47)Here's the output of mpd --version:
mpd (MPD: Music Player Daemon) 0.16.5
Copyright (C) 2003-2007 Warren Dukes <[email protected]>
Copyright (C) 2008-2010 Max Kellermann <[email protected]>
This is free software; see the source for copying conditions. There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Supported decoders:
[mad] mp3 mp2
[vorbis] ogg oga
[oggflac] ogg oga
[flac] flac
[sndfile] wav aiff aif au snd paf iff svx sf voc w64 pvf xi htk caf sd2
[audiofile] wav au aiff aif
[faad] aac
[mp4ff] m4a m4b mp4
[mpcdec] mpc
[wavpack] wv
[modplug] 669 amf ams dbm dfm dsm far it med mdl mod mtm mt2 okt s3m stm ult umx xm
[ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav wma wmv wsaud wsvga wv wve
Supported outputs:
shout null fifo alsa ao oss pulse jack httpd recorder
Supported encoders:
null vorbis lame wave flac
Supported protocols:
file:// http:// mms:// mmsh:// mmst:// mmsu:// gopher:// rtp:// rtsp:// rtmp:// rtmpt:// rtmps://
It seems to support mp3 but it's still giving the "ignoring unrecognized file" thing.
Maybe you are looking for
-
Can anyone help me get 3D to work. When I click the button, none of the options are available except "get more content" and "3D print utilities," neither of which I need. Just want to start working with 3D text & objects & such, but nothing I do wo
-
New install help. Please and thanks!
I'm hoping somebody can tell me what's going wrong with my new install. Here are the details: Win7 pro i7 950 Quadro 4000 (with massive cooling blowing on the thing) mxo2 mini max (because I'm slightly cheap, and yes, I feel a little like a hack plu
-
I'm trying to use Illustrator CC (instead of CS6)... In AI CS6, pressing Command+Shift+Option+F on the keyboard, while text is active, hilights the Font Field in the Character Panel... not so in AI CC. I can open CS6 on the same file and it works...
-
Greetings. I downloaded the icon pop brand(Free Application) from the App Store, but the store required me to re-enter the 3 digit security code from my credit card. After i entered the security code...i received a text message from my local bank, an
-
When to use FOREACH REFDATA?
Hi, I have been trying to research the FOX statemet FOREACH REFDATA. I have read OSS note 646618 but it's a bit vague. Can somebody provide more details (real examples with explanations would be great!!) on what this does? What is the difference b