Trouble with implementing translation

I'm having some trouble getting my translation to work. I have a very basic application which is available in two languages. I have mapped and published my translation.
What I am trying to do is have the page translate when clicking the language button in the navigation bar. I created two navigation bar entries, which conditionally display based on the current value of FSP_LANGUAGE_PREFERENCE... My application globalization settings are set to "Item Level Preference"
The navbar entries are set as per following:
French entry
Redirects to page in application... &APP_PAGE_ID.
REquest: FSP_LANGUAGE_PREFERENCE
Set items: FSP_LANGUAGE_PREFERENCE
With these values: fr-ca
condition type: Request = en-ca
English entry
Redirects to page in application... &APP_PAGE_ID.
REquest: FSP_LANGUAGE_PREFERENCE
Set items: FSP_LANGUAGE_PREFERENCE
With these values: en-ca
condition type: Request = fr-ca
When I first run the application, I don't see any buttons... most likely because the request param is not set...
I'm using APEX 3.0... I've searched the forums and read the documentation, but nothing seems to work...
If anyone can point me in the right direction, I'd appreciate it
Thanks

Thanks guys for all your feedback... Part of the problem was my lack of understanding on how APEX handled the translation process.... I needed to "seed" my application whenever I made ANY change to the main application, to sync up my translated application.
I was able to get things working, and thought I'd share my findings with others if it can be of any use.... as well as get my implementation validated by more experienced apex developers such as yourselves...
The application globalization is configured to derive the language from an item level preference (app item FSP_LANGUAGE_PREFERENCE)
I started by creating an application computation to assign a default value to FSP_LANGUAGE_PREFERENCE with a computation point of "On new instance", static assignment = en-ca and with a condition that the application item FSP_LANGUAGE_PREFERENCE is null . For some reason, a computation point of "Before Header" was not setting it...
I then created an "onload: before header" conditional application process to redirect the page, if the REQUEST item = SETLANG. This is based on the post from Scott Spadafore Re: Application Preference (use FSP_LANGUAGE_PREFERENCE).
So the process will redirect to the current page if the REQUEST = SETLANG. This will ensure the NLS_* parameters are set according to the FSP_LANGUAGE_PREFERENCE... Joel Kallman's posts helped to understand why this is required... Re: Set FSP_LANGUAGE_PREFERENCE in URL
I created two navigation bar links, one for french and one for english... each one conditionally displays depending on the current FSP_LANGUAGE_PREFERENCE value (ie "English" link displays if FSP_LANGUAGE_PREFERENCE = fr-ca)
Each link will set the REQUEST item = SETLANG (this is the hook for the app process redirect), and also sets the FSP_LANGUAGE_PREFERENCE to target language. It will then redirect to the current page...
All this to flip between the english and french languages, on each page within my APEX application... thanks to all who posted solutions and tips...
Message was edited by:
pl_sequel
Message was edited by:
pl_sequel
Message was edited by:
pl_sequel

Similar Messages

  • Trouble with international translation

    Hello all,
    I'm having a problem getting international calls to complete. I have the below in my Cisco 5350 configs with some lines removed to save space. Debug is below that. It appears my translation rule is ok to some extent as the test indicates. What am I overlooking? Any help will be greatly appreciated.
    Sprint5350#test voice translation-rule 2 011862196990
    Matched with rule 1
    Original number: 011862196990   Translated number: 0111862196990
    Original number type: none      Translated number type: none
    Original number plan: none      Translated number plan: none
    voice translation-rule 1
    rule 1 /\+1\(.*\)/ /\1/
    voice translation-rule 2
    rule 1 /^01/ /011/
    voice translation-profile Incoming_Calling_Party_Num
    translate calling 1
    voice translation-profile outgoing_international
    translate calling 2
    translate called 2
    controller T3 3/0
    framing m23
    clock source line
    cablelength 133
    t1 1-7 controller
    description Sprint DS3 - 75955030
    controller T1 3/0:1
    framing esf
    pri-group timeslots 1-24 nfas_d primary nfas_int 0 nfas_group 1
    controller T1 3/0:2
    framing esf
    pri-group timeslots 1-24 nfas_d none nfas_int 2 nfas_group 1
    controller T1 3/0:3
    framing esf
    pri-group timeslots 1-24 nfas_d backup nfas_int 1 nfas_group 1
    controller T1 3/0:4
    framing esf
    pri-group timeslots 1-24 nfas_d none nfas_int 3 nfas_group 1
    controller T1 3/0:5
    framing esf
    pri-group timeslots 1-24 nfas_d none nfas_int 4 nfas_group 1
    controller T1 3/0:6
    framing esf
    pri-group timeslots 1-24 nfas_d none nfas_int 5 nfas_group 1
    controller T1 3/0:7
    framing esf
    pri-group timeslots 1-24 nfas_d none nfas_int 6 nfas_group 1
    interface Serial3/0:1:23
    no ip address
    encapsulation hdlc
    isdn switch-type primary-4ess
    no cdp enable
    dial-peer voice 150 pots
    translation-profile incoming Calling_Party_Num
    translation-profile outgoing outgoing_international
    destination-pattern 011.T
    translate-outgoing called 1
    direct-inward-dial
    port 3/0:1:D
    forward-digits 0
    dial-peer voice 100 voip
    preference 1
    modem passthrough nse codec g711ulaw redundancy
    voice-class codec 1
    incoming called-number 800.......
    dtmf-relay rtp-nte
    fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw
    no vad
    *Sep  4 17:57:57.433: ISDN Se3/0:1:23 Q931: RX <- SERVICE pd = 3  callref = 0x0000
            Change Status i = 0xC0 - in-service
            Channel ID i = 0xE9818398
                    Exclusive, Interface 1, Channel 24
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x6871D9EC; count=1
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_get_profile_from_dialpeer_internal: Error: Invalid input peer_tag=0 direction=incom        ing
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_stack_push_RegXruleNumInfo: stack=0x6871D9EC; count=0
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_stack_push_RegXruleNumInfo: stack=0x6871D9EC; count=1
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: number=5024101498 type=unknown plan=unknown numbertype=        calling
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_match: No match; number=5024101498 rule precedence=1
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_match_internal: No match found
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: No match: number=5024101498 type=unknown plan=unknown
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: number=011862196990 type=unknown plan=unknown numbertyp        e=called
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_match_internal: Matched with rule 1 in ruleset 2
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_match_internal: Matched with rule 1 in ruleset 2
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/sed_subst: Successful substitution; pattern=011862196990 matchPattern=^01 replacePattern=011         replaced pattern=0111862196990
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_subst_num_type: Match Type = none, Replace Type = none Input Type = unknown
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_subst_num_plan: Match Plan = none, Replace Plan = none Input Plan = unknown
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: xlt_number=0111862196990 xlt_type=unknown xlt_plan=unkn        own
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: number= type=unknown plan=unknown numbertype=redirect-t        arget
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_match_internal: Error: ruleset for redirect-target number not found
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: No match: number= type=unknown plan=unknown
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: number= type=unknown plan=unknown numbertype=redirect-c        alled
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_match_internal: Error: ruleset for redirect-called number not found
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: No match: number= type=unknown plan=unknown
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_dp_translate: calling_number=5024101498 calling_octet=0x0
            called_number=0111862196990 called_octet=0x0
            redirect_number= redirect_type=0 redirect_plan=0        redirect_PI=-1 redirect_SI=-1
    *Sep  4 17:57:59.005: //-1/BC10816380D4/RXRULE/regxrule_vp_translate: No profile found in voice port or trunk group for outgoing direction
    *Sep  4 17:57:59.005: //-1/BC10816380D4/RXRULE/regxrule_vp_translate: calling_number=5024101498 calling_octet=0x0
            called_number=0111862196990 called_octet=0x0
            redirect_number= redirect_type=0 redirect_plan=0
    *Sep  4 17:57:59.005: ISDN Se3/0:1:23 Q931: Applying typeplan for sw-type 0x2 is 0x2 0x1, Calling num 5024101498
    *Sep  4 17:57:59.005: ISDN Se3/0:1:23 Q931: Applying typeplan for sw-type 0x2 is 0x2 0x1, Called num
    *Sep  4 17:57:59.005: ISDN Se3/0:1:23 Q931: TX -> SETUP pd = 8  callref = 0x008E
            Bearer Capability i = 0x8090A2
                    Standard = CCITT
                    Transfer Capability = Speech
                    Transfer Mode = Circuit
                    Transfer Rate = 64 kbit/s
            Channel ID i = 0xE9868398
                    Exclusive, Interface 6, Channel 24
            Calling Party Number i = 0x2180, '5024101498'
                    Plan:ISDN, Type:National
            Called Party Number i = 0xA1
                    Plan:ISDN, Type:National
    *Sep  4 17:57:59.133: ISDN Se3/0:1:23 Q931: RX <- RELEASE_COMP pd = 8  callref = 0x808E
            Cause i = 0x819C - Invalid number format (incomplete number)
    *Sep  4 17:57:59.133: ISDN Se3/0:1:23 **ERROR**: call_cleared: VOICE ERROR: NULL VDEV Common(0xFC): bchan -1, call id 0x8016
    *Sep  4 17:57:59.141: //-1/BC10816380D4/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x6871D9EC; count=2
    VoiceEncapPeer150
            peer type = voice, system default peer = FALSE, information type = voice,
            description = `',
            tag = 150, destination-pattern = `011.T',
            voice reg type = 0, corresponding tag = 0,
            allow watch = FALSE
            answer-address = `', preference=0,
            CLID Restriction = None
            CLID Network Number = `'
            CLID Second Number sent
            CLID Override RDNIS = disabled,
            source carrier-id = `', target carrier-id = `',
            source trunk-group-label = `',  target trunk-group-label = `',
            numbering Type = `unknown'
            group = 150, Admin state is up, Operation state is up,
            Outbound state is up,
            incoming called-number = `', connections/maximum = 0/unlimited,
            DTMF Relay = disabled,
            URI classes:
                Destination =
            huntstop = disabled,
            in bound application associated: 'DEFAULT'
            out bound application associated: ''
            dnis-map =
            permission :both
            incoming COR list:maximum capability
            outgoing COR list:minimum requirement
            Translation profile (Incoming):Calling_Party_Num
            Translation profile (Outgoing):outgoing_international
            incoming call blocking:
            translation-profile = `'
            disconnect-cause = `no-service'
            advertise 0x40 capacity_update_timer 25 addrFamily 4 oldAddrFamily 4
            type = pots, prefix = `',
            forward-digits 0
            session-target = `', voice-port = `3/0:1:D',
            direct-inward-dial = enabled,
            digit_strip = enabled,
            register E.164 number with H323 GK and/or SIP Registrar = TRUE
            fax rate = system,   payload size =  20 bytes
            supported-language = ''
            preemption level = `routine'
            bandwidth:
                maximum = 64 KBits/sec, minimum = 64 KBits/sec
            voice class called-number:
                inbound = `', outbound = `'
            dial tone generation after remote onhook = enabled
            Time elapsed since last clearing of voice call statistics never
            Connect Time = 0, Charged Units = 0,
            Successful Calls = 0, Failed Calls = 15, Incomplete Calls = 0
            Accepted Calls = 0, Refused Calls = 0,
            Last Disconnect Cause is "1C  ",
            Last Disconnect Text is "invalid number (28)",
            Last Setup Time = 50369257.
            Last Disconnect Time = 0.
    T1 3/0:1 is up.
      Applique type is Channelized T1
      No alarms detected.
      alarm-trigger is not set
      Soaking time: 3, Clearance time: 10
      AIS State:Clear  LOS State:Clear  LOF State:Clear
      Version info of slot 3:  HW: 1536, PLD Rev: 6
      Framer Version: 0x58
    Manufacture Cookie Info:
    EEPROM Type 0x0001, EEPROM Version 0x04, Board ID 0x01,
    Board Hardware Version 6.0, Item Number 73-4089-07,
    Board Revision A0, Serial Number JAE08512FBJ,
    PLD/ISP Version 48.53,  Manufacture Date 13-Dec-2004.

    Hello all,
    I'm having a problem getting international calls to complete. I have the below in my Cisco 5350 configs with some lines removed to save space. Debug is below that. It appears my translation rule is ok to some extent as the test indicates. What am I overlooking? Any help will be greatly appreciated.
    Sprint5350#test voice translation-rule 2 011862196990
    Matched with rule 1
    Original number: 011862196990   Translated number: 0111862196990
    Original number type: none      Translated number type: none
    Original number plan: none      Translated number plan: none
    voice translation-rule 1
    rule 1 /\+1\(.*\)/ /\1/
    voice translation-rule 2
    rule 1 /^01/ /011/
    voice translation-profile Incoming_Calling_Party_Num
    translate calling 1
    voice translation-profile outgoing_international
    translate calling 2
    translate called 2
    controller T3 3/0
    framing m23
    clock source line
    cablelength 133
    t1 1-7 controller
    description Sprint DS3 - 75955030
    controller T1 3/0:1
    framing esf
    pri-group timeslots 1-24 nfas_d primary nfas_int 0 nfas_group 1
    controller T1 3/0:2
    framing esf
    pri-group timeslots 1-24 nfas_d none nfas_int 2 nfas_group 1
    controller T1 3/0:3
    framing esf
    pri-group timeslots 1-24 nfas_d backup nfas_int 1 nfas_group 1
    controller T1 3/0:4
    framing esf
    pri-group timeslots 1-24 nfas_d none nfas_int 3 nfas_group 1
    controller T1 3/0:5
    framing esf
    pri-group timeslots 1-24 nfas_d none nfas_int 4 nfas_group 1
    controller T1 3/0:6
    framing esf
    pri-group timeslots 1-24 nfas_d none nfas_int 5 nfas_group 1
    controller T1 3/0:7
    framing esf
    pri-group timeslots 1-24 nfas_d none nfas_int 6 nfas_group 1
    interface Serial3/0:1:23
    no ip address
    encapsulation hdlc
    isdn switch-type primary-4ess
    no cdp enable
    dial-peer voice 150 pots
    translation-profile incoming Calling_Party_Num
    translation-profile outgoing outgoing_international
    destination-pattern 011.T
    translate-outgoing called 1
    direct-inward-dial
    port 3/0:1:D
    forward-digits 0
    dial-peer voice 100 voip
    preference 1
    modem passthrough nse codec g711ulaw redundancy
    voice-class codec 1
    incoming called-number 800.......
    dtmf-relay rtp-nte
    fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw
    no vad
    *Sep  4 17:57:57.433: ISDN Se3/0:1:23 Q931: RX <- SERVICE pd = 3  callref = 0x0000
            Change Status i = 0xC0 - in-service
            Channel ID i = 0xE9818398
                    Exclusive, Interface 1, Channel 24
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x6871D9EC; count=1
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_get_profile_from_dialpeer_internal: Error: Invalid input peer_tag=0 direction=incom        ing
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_stack_push_RegXruleNumInfo: stack=0x6871D9EC; count=0
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_stack_push_RegXruleNumInfo: stack=0x6871D9EC; count=1
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: number=5024101498 type=unknown plan=unknown numbertype=        calling
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_match: No match; number=5024101498 rule precedence=1
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_match_internal: No match found
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: No match: number=5024101498 type=unknown plan=unknown
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: number=011862196990 type=unknown plan=unknown numbertyp        e=called
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_match_internal: Matched with rule 1 in ruleset 2
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_match_internal: Matched with rule 1 in ruleset 2
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/sed_subst: Successful substitution; pattern=011862196990 matchPattern=^01 replacePattern=011         replaced pattern=0111862196990
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_subst_num_type: Match Type = none, Replace Type = none Input Type = unknown
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_subst_num_plan: Match Plan = none, Replace Plan = none Input Plan = unknown
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: xlt_number=0111862196990 xlt_type=unknown xlt_plan=unkn        own
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: number= type=unknown plan=unknown numbertype=redirect-t        arget
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_match_internal: Error: ruleset for redirect-target number not found
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: No match: number= type=unknown plan=unknown
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: number= type=unknown plan=unknown numbertype=redirect-c        alled
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_match_internal: Error: ruleset for redirect-called number not found
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_profile_translate_internal: No match: number= type=unknown plan=unknown
    *Sep  4 17:57:59.001: //-1/BC10816380D4/RXRULE/regxrule_dp_translate: calling_number=5024101498 calling_octet=0x0
            called_number=0111862196990 called_octet=0x0
            redirect_number= redirect_type=0 redirect_plan=0        redirect_PI=-1 redirect_SI=-1
    *Sep  4 17:57:59.005: //-1/BC10816380D4/RXRULE/regxrule_vp_translate: No profile found in voice port or trunk group for outgoing direction
    *Sep  4 17:57:59.005: //-1/BC10816380D4/RXRULE/regxrule_vp_translate: calling_number=5024101498 calling_octet=0x0
            called_number=0111862196990 called_octet=0x0
            redirect_number= redirect_type=0 redirect_plan=0
    *Sep  4 17:57:59.005: ISDN Se3/0:1:23 Q931: Applying typeplan for sw-type 0x2 is 0x2 0x1, Calling num 5024101498
    *Sep  4 17:57:59.005: ISDN Se3/0:1:23 Q931: Applying typeplan for sw-type 0x2 is 0x2 0x1, Called num
    *Sep  4 17:57:59.005: ISDN Se3/0:1:23 Q931: TX -> SETUP pd = 8  callref = 0x008E
            Bearer Capability i = 0x8090A2
                    Standard = CCITT
                    Transfer Capability = Speech
                    Transfer Mode = Circuit
                    Transfer Rate = 64 kbit/s
            Channel ID i = 0xE9868398
                    Exclusive, Interface 6, Channel 24
            Calling Party Number i = 0x2180, '5024101498'
                    Plan:ISDN, Type:National
            Called Party Number i = 0xA1
                    Plan:ISDN, Type:National
    *Sep  4 17:57:59.133: ISDN Se3/0:1:23 Q931: RX <- RELEASE_COMP pd = 8  callref = 0x808E
            Cause i = 0x819C - Invalid number format (incomplete number)
    *Sep  4 17:57:59.133: ISDN Se3/0:1:23 **ERROR**: call_cleared: VOICE ERROR: NULL VDEV Common(0xFC): bchan -1, call id 0x8016
    *Sep  4 17:57:59.141: //-1/BC10816380D4/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x6871D9EC; count=2
    VoiceEncapPeer150
            peer type = voice, system default peer = FALSE, information type = voice,
            description = `',
            tag = 150, destination-pattern = `011.T',
            voice reg type = 0, corresponding tag = 0,
            allow watch = FALSE
            answer-address = `', preference=0,
            CLID Restriction = None
            CLID Network Number = `'
            CLID Second Number sent
            CLID Override RDNIS = disabled,
            source carrier-id = `', target carrier-id = `',
            source trunk-group-label = `',  target trunk-group-label = `',
            numbering Type = `unknown'
            group = 150, Admin state is up, Operation state is up,
            Outbound state is up,
            incoming called-number = `', connections/maximum = 0/unlimited,
            DTMF Relay = disabled,
            URI classes:
                Destination =
            huntstop = disabled,
            in bound application associated: 'DEFAULT'
            out bound application associated: ''
            dnis-map =
            permission :both
            incoming COR list:maximum capability
            outgoing COR list:minimum requirement
            Translation profile (Incoming):Calling_Party_Num
            Translation profile (Outgoing):outgoing_international
            incoming call blocking:
            translation-profile = `'
            disconnect-cause = `no-service'
            advertise 0x40 capacity_update_timer 25 addrFamily 4 oldAddrFamily 4
            type = pots, prefix = `',
            forward-digits 0
            session-target = `', voice-port = `3/0:1:D',
            direct-inward-dial = enabled,
            digit_strip = enabled,
            register E.164 number with H323 GK and/or SIP Registrar = TRUE
            fax rate = system,   payload size =  20 bytes
            supported-language = ''
            preemption level = `routine'
            bandwidth:
                maximum = 64 KBits/sec, minimum = 64 KBits/sec
            voice class called-number:
                inbound = `', outbound = `'
            dial tone generation after remote onhook = enabled
            Time elapsed since last clearing of voice call statistics never
            Connect Time = 0, Charged Units = 0,
            Successful Calls = 0, Failed Calls = 15, Incomplete Calls = 0
            Accepted Calls = 0, Refused Calls = 0,
            Last Disconnect Cause is "1C  ",
            Last Disconnect Text is "invalid number (28)",
            Last Setup Time = 50369257.
            Last Disconnect Time = 0.
    T1 3/0:1 is up.
      Applique type is Channelized T1
      No alarms detected.
      alarm-trigger is not set
      Soaking time: 3, Clearance time: 10
      AIS State:Clear  LOS State:Clear  LOF State:Clear
      Version info of slot 3:  HW: 1536, PLD Rev: 6
      Framer Version: 0x58
    Manufacture Cookie Info:
    EEPROM Type 0x0001, EEPROM Version 0x04, Board ID 0x01,
    Board Hardware Version 6.0, Item Number 73-4089-07,
    Board Revision A0, Serial Number JAE08512FBJ,
    PLD/ISP Version 48.53,  Manufacture Date 13-Dec-2004.

  • Trouble with implementation of IScrapItem::GetDeleteCmd

    I need to imlement method  IScrapItem::GetDeleteCmd(bool16 includeRegisteredItems) which returns a pointer to command for custom pageitem deletion.
    This interface also keeps some registered custom pageitems which must be deleted with it.
    If I register other scrap items to current one, my GetDeleteCmd  must return a CompoundSequenceCmd that contain the GetDeleteCmd of all registered scrap items.
    How to use CompoundSequenceCmd in this case?
    Where in the program  an ItemList for returned commands should be set --- inside  IScrapItem or after the pointer to a command has been returned?
    Unfortunately, SDK contains too little information.
    Thanks in advance

    I ve replied to my answer .. right here :
    http://forum.java.sun.com/thread.jspa?messageID=3900647

  • Trouble with DNS set up

    Hello !
    I've got a real trouble with my dns configuration... and i can't understand! so, i need some help....
    well, qutie newbie in mac os server, i run in on a G4, and i had not noticed any trouble until i've decided to run open directory as a master with LDAP, wanting to have a kerberos protection for the users.
    Kerberos doesn't want to play with me !
    I've been in console mode to have a look, and, actually i've seen this :
    "Oct 17 11:31:08 wakan servermgrd: servermgr_dns: no name available via DNS for 192.168.0.109
    Oct 17 11:31:08 wakan servermgrd: servermgr_dns: no reverse DNS entry for server, various services may not function properly"
    Ok... my DNS has a trouble... but i don't know how to fix it ! Is there anybody in this world who can help me?
    I don't want to have a real DNS for my little server... but i understand that my config is not good. I can understand that having a caching DNS can improve the quality of my config, and, in other hand that it is necessary for having the services of OSX server in an effeciant way, but i don't know the way and the parameters i've to put in my config to fix it.
    Now, just some words on my config...
    First, i've got an adress provided by my FAI (the frenchy workd for ISP, i think) is "193.252.209.135". This adress is set on a d-link modem router via PPOE. The DNS of my provider (wanadoo.fr) are 80.10.246.1 and 80.10.246.132.
    After this there is my G4 With mac osX server.
    • en0, the "extenal gate" and the internal ethernet on the computer is plug on the modem with the adress "192.168.0.109". the router is set on "192.168.0.1". the dns are 80.10.246.1 and 80.10.246.132.
    • en1, the "internal gate" for the network, an PCI card in the computer, has the parameters : adress "192.168.3.1", subnet "255.255.255.0", router "192.168.3.1". no dns records. (no VPN service for the moment). After this, i've a switch for the macs behind the server. (without any link agregation)
    All those parameters have been set by the gateaway assistant.
    And now the parameters inside the admin server :
    DHCP : en1 - adress from 192.168.3.2 to 192.168.3.254, name 192.168.3. no static card. Router 192.168.3.1. No name for domaine by defaut, name servers 80.10.246.1 and 80.10.246.132 No LDAP, no WINS.
    DNS : No zone transfert, recursivity is ON. No zone records.
    NAT : set on full, Transfert and Network Address Translation.
    When i've been on the terminal, i had those information:
    "wakan:~ st$ sudo changeip -checkhostname
    Password:
    Primary address = 192.168.0.109
    Current HostName = wakan.local
    The DNS hostname is not available, please repair DNS and re-run this tool."
    All my "main" services are working fine (AFP, Firewall, DHCP, DNS, Update) Open Directory is running without Kerberos. By the way, all the macs after the G4server can have a corect access to internet, and share information via LDAP of Open Directory, but i've to say that, a couple of days later, a friend of mine, who has a PC computer, can't have a DHCP dynamic address when he plug on my little network. I think that it is an other trouble, and i've decided to have e look to this later... but if someone knows how to resolve it...
    So here begins the nightmare for me... so if anybody can help me... i realy need some help to fix this mystery!!!
    Special thanks!

    As the router modem is already doing NAT why use NAT in the server?
    If you want to use OpenDirectory and other services you should/need to set up the DNS correctly using the server's private IP (and others in the same range the server is setup with). The domainname used internally can be different than your public one.
    And then use the server as the only DNS for you LAN clients and the server itself. Forwarders (your ISP DNSes) in /etc/named.conf usually speeds up lookups of external addresses (also turning off IPv6 can help that too).

  • Having trouble with persist

    I have created a simple application where a user can order items and then i'm saving the order and all the items (details of order) to the dataBase.
    i'm using jdk1.5 with jboss and mySql (also hibernate).
    i'm having troubles with saving the details of the order, the relevant code is-
    order entity -
    @Entity
    public class Orders implements Serializable
        @Id @GeneratedValue
        private long orderId;                    //generated in db
        private String name;
       public Orders(String userName)
            this.userName=userName;
        public long getOrderId() { return orderId; }
        //getters and setters...
    detailsOfOrder entity -
    @Entity
    public class DetailsOfOrders implements Serializable
    @Id
    private long orderId;
    @Id
    private int productId;
    private int quantity;
    public DetailsOfOrders(long orderId,int productId)
         this.productId=productId;
         this.orderId=orderId;
    public long getOrderId() { return orderId; }
    public int getProductId() { return productId; }
    //getters and setters...
    }session bean (order method) -
            List<SCItem> listOfItems;                         //SCItem is a regular class
            Orders order=new Orders(userName);
            manager.persist(order);
            long orderId=order.getOrderId();   //get order id after persisting
            for(SCItem item : listOfItems)    //save details of order
             DetailsOfOrders detail=new DetailsOfOrders(orderId,"1");
             manager.persist(detail);                                                   //exception occures here
           }when i'm trying to make an order i'm getting the exception-
    javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state
    what is the problem?
    thanks in advanced.

    yes, the entity classes have no-arg constructors (i just tried to write it shortly here...)
    about the other thing , well i'm sorry , the right code is-
    session bean (order method) -
       List<SCItem> listOfItems;                         //SCItem is a regular class
       Orders order=new Orders(userName);
       manager.persist(order);
       long orderId=order.getOrderId();   //get order id after persisting
       for(SCItem item : listOfItems)    //save details of order
         DetailsOfOrders detail=new DetailsOfOrders(orderId,item.getProductId());
         manager.persist(detail);                                                   //exception occures here
         }what else could it be?

  • Troubles with the creation of New Custom Adapter for NW 7.1

    Hi guys !!!
    I have some troubles with the creation of a new custom adapter for NW 7.1. I have followed some pdf and notes, like :
    [Upgrade an SAP NetWeaver PI 7.0 Adapter to SAP NetWeaver PI 7.1|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0667f56-96c7-2b10-0e9a-c40fbd523f4d]
    note : 1004000
    I have all the materials to make the custom Adapter ( like file .sca with all .rar and .sda , like file sample_ra.rar with all the file .java, like all the libs for the projects ) and I have make it !!! But, when I try do deploy it, i recieve a warning that i don't understand, this is the warning :
    S U M M A R Y
    ~~~~~~~~~~~~~~~~~~~
    Successfully deployed:           0
    Deployed with warnings:           1
    Failed deployments:                0
    ~~~~~~~~~~~~~~~~~~~
    1. File:C:Users
    maienzaDesktopCreazione del SDAPI71_AF_myFirstCustomAdapter_ver_2.0.sda
         Name:PI71_AF_myFirstCustomAdapter_ver_2.0
         Vendor:sap.com
         Location:SAP AG
         Version:7.1007.20090310105326.0000
         Deploy status:Warning
         Version:NEW
         Description:
              1. Exception has been returned while the 'sap.com/PI71_AF_myFirstCustomAdapter_ver_2.0' was starting. Warning/Exception :
    [ERROR CODE DPL.DS.6193] Error while ; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5030] Clusterwide exception: server ID 3999650:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5082] Exception while validating application sap.com/PI71_AF_myFirstCustomAdapter_ver_2.0.
    No one of the [EJBContainer] containers, which processed it, returned deployed component names.
    The registered containers in this moment were [CTCContainer, com.sap.caf.um.metadata, com.sap.security.ume, com.sap.security.login-modules, app_libraries_container, Cache Configuration Upload, servlet_jsp, dbcontentcontainer, connector, Cluster File System, JMSConnector, MigrationContainer, Monitoring Configurator, dbschemacontainer, appclient, orpersistence, PortalRuntimeContainer, JDBCConnector, EJBContainer, metamodelrepository, webservices_container, scheduler~container, ConfigurationsContainer, Content Container].
    Possible reasons :
         1.An AS Java service, which is providing a container, is stopped or not deployed.
         2.The containers, which processed it, are not implemented correct. They deployed or started initially the application, but didn't return deployed components in the application deployment info.
         at com.sap.engine.services.deploy.server.utils.ValidateUtils.missingDCinDIValidator(ValidateUtils.java:80)
         at com.sap.engine.services.deploy.server.application.StartInitiallyTransaction.prepare(StartInitiallyTransaction.java:149)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:420)
         at com.sap.engine.services.deploy.server.application.StartTransaction.doStartInitiallyGlobal(StartTransaction.java:449)
         at com.sap.engine.services.deploy.server.application.StartTransaction.doStartInitially(StartTransaction.java:437)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:178)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:420)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:445)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.super_MakeAllPhases(ParallelAdapter.java:337)
         at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhasesImpl(StartTransaction.java:550)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:251)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:392)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3389)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3375)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3278)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3251)
         at com.sap.engine.services.dc.lcm.impl.J2EELCMProcessor.doStart(J2EELCMProcessor.java:99)
         at com.sap.engine.services.dc.lcm.impl.LifeCycleManagerImpl.start(LifeCycleManagerImpl.java:62)
         at com.sap.engine.services.dc.cm.deploy.impl.LifeCycleManagerStartVisitor.visit(LifeCycleManagerStartVisitor.java:34)
         at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:83)
         at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcessLCMDeplItem(DefaultDeployPostProcessor.java:80)
         at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcess(DefaultDeployPostProcessor.java:56)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doPostProcessing(DeployerImpl.java:741)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.performDeploy(DeployerImpl.java:732)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doDeploy(DeployerImpl.java:576)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:270)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:192)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImplp4_Skel.dispatch(DeployerImplp4_Skel.java:875)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:351)
         at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:70)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:62)
         at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:37)
         at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:872)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:53)
         at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:58)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:108)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:304)
    Result
    Status:Warning
    I have see in the nwa if there are some applications or services that are stopped but all the necessary it's started, just one question : in the pdf for upgrade from 7.0 to 7.1 no one speaks about ejBean or about a creation of it ... it's necessary an ejBean ?? Beacause in the file .sda of the file .sca that i have downloaded there are more of the adapter with ejBean ....
    Antonello

    Hi,
    the adapter metadata it's been created but my service is still stopped; when I try to start it, in the NDWS -> Deploy view -> tab Repositary view, I receive this errors, one after the other, cause I try to start it 3 times and in each time I received 3 differents errors :
    Exception has been returned while the 'sap.com/PI71_AF_myFirstCustomAdapter_ver_2.0' was starting. Warning/Exception :
    [ERROR CODE DPL.DS.6193] Error while ; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5030] Clusterwide exception: server ID 3999650:com.sap.engine.services.deploy.container.DeploymentException: Unable to create folder /usr/sap/DXI/DVEBMGS00/j2ee/cluster/apps/sap.com/PI71_AF_myFirstCustomAdapter_ver_2.0/EJBContainer/applicationjars
         at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl$Actions.perform(ContainerInterfaceImpl.java:893)
         at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl.makeStartInitially(ContainerInterfaceImpl.java:771)
         at com.sap.engine.services.deploy.server.application.StartInitiallyTransaction.makeStartInitially(StartInitiallyTransaction.java:184)
         at com.sap.engine.services.deploy.server.application.StartInitiallyTransaction.prepare(StartInitiallyTransaction.java:145)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:420)
         at com.sap.engine.services.deploy.server.application.StartTransaction.doStartInitiallyGlobal(StartTransaction.java:449)
         at com.sap.engine.services.deploy.server.application.StartTransaction.doStartInitially(StartTransaction.java:437)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:178)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:420)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:445)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.super_MakeAllPhases(ParallelAdapter.java:337)
         at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhasesImpl(StartTransaction.java:550)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:251)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:392)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3389)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3375)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3278)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3251)
         at com.sap.engine.services.dc.lcm.impl.J2EELCMProcessor.doStart(J2EELCMProcessor.java:99)
         at com.sap.engine.services.dc.lcm.impl.LifeCycleManagerImpl.start(LifeCycleManagerImpl.java:62)
         at com.sap.engine.services.dc.lcm.impl.RemoteLCMImpl.start(RemoteLCMImpl.java:45)
         at com.sap.engine.services.dc.lcm.impl.RemoteLCMImplp4_Skel.dispatch(RemoteLCMImplp4_Skel.java:233)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:351)
         at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:70)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:62)
         at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:37)
         at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:872)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:53)
         at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:58)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:108)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:304)
    Caused by: com.sap.engine.services.ejb3.container.ActionException: Unable to create folder /usr/sap/DXI/DVEBMGS00/j2ee/cluster/apps/sap.com/PI71_AF_myFirstCustomAdapter_ver_2.0/EJBContainer/applicationjars
         at com.sap.engine.services.ejb3.container.FSMakeFolder.perform(FSMakeFolder.java:48)
         at com.sap.engine.services.ejb3.container.CompositeAction.perform(CompositeAction.java:81)
         at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl$Actions.perform(ContainerInterfaceImpl.java:887)
         ... 30 more
    Exception has been returned while the 'sap.com/PI71_AF_myFirstCustomAdapter_ver_2.0' was starting. Warning/Exception :
    [ERROR CODE DPL.DS.6193] Error while ; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5030] Clusterwide exception: server ID 3999650:com.sap.engine.services.deploy.container.DeploymentException: Unable to create folder /usr/sap/DXI/DVEBMGS00/j2ee/cluster/apps/sap.com/PI71_AF_myFirstCustomAdapter_ver_2.0/EJBContainer/jars
         at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl$Actions.perform(ContainerInterfaceImpl.java:893)
         at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl.makeStartInitially(ContainerInterfaceImpl.java:771)
         at com.sap.engine.services.deploy.server.application.StartInitiallyTransaction.makeStartInitially(StartInitiallyTransaction.java:184)
         at com.sap.engine.services.deploy.server.application.StartInitiallyTransaction.prepare(StartInitiallyTransaction.java:145)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:420)
         at com.sap.engine.services.deploy.server.application.StartTransaction.doStartInitiallyGlobal(StartTransaction.java:449)
         at com.sap.engine.services.deploy.server.application.StartTransaction.doStartInitially(StartTransaction.java:437)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:178)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:420)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:445)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.super_MakeAllPhases(ParallelAdapter.java:337)
         at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhasesImpl(StartTransaction.java:550)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:251)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:392)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3389)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3375)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3278)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3251)
         at com.sap.engine.services.dc.lcm.impl.J2EELCMProcessor.doStart(J2EELCMProcessor.java:99)
         at com.sap.engine.services.dc.lcm.impl.LifeCycleManagerImpl.start(LifeCycleManagerImpl.java:62)
         at com.sap.engine.services.dc.lcm.impl.RemoteLCMImpl.start(RemoteLCMImpl.java:45)
         at com.sap.engine.services.dc.lcm.impl.RemoteLCMImplp4_Skel.dispatch(RemoteLCMImplp4_Skel.java:233)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:351)
         at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:70)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:62)
         at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:37)
         at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:872)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:53)
         at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:58)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:108)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:304)
    Caused by: com.sap.engine.services.ejb3.container.ActionException: Unable to create folder /usr/sap/DXI/DVEBMGS00/j2ee/cluster/apps/sap.com/PI71_AF_myFirstCustomAdapter_ver_2.0/EJBContainer/jars
         at com.sap.engine.services.ejb3.container.FSMakeFolder.perform(FSMakeFolder.java:48)
         at com.sap.engine.services.ejb3.container.CompositeAction.perform(CompositeAction.java:81)
         at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl$Actions.perform(ContainerInterfaceImpl.java:887)
         ... 30 more
    Exception has been returned while the 'sap.com/PI71_AF_myFirstCustomAdapter_ver_2.0' was starting. Warning/Exception :
    [ERROR CODE DPL.DS.6193] Error while ; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5030] Clusterwide exception: server ID 3999650:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5082] Exception while validating application sap.com/PI71_AF_myFirstCustomAdapter_ver_2.0.
    No one of the [EJBContainer] containers, which processed it, returned deployed component names.
    The registered containers in this moment were [CTCContainer, com.sap.caf.um.metadata, com.sap.security.ume, com.sap.security.login-modules, app_libraries_container, Cache Configuration Upload, servlet_jsp, dbcontentcontainer, connector, Cluster File System, JMSConnector, MigrationContainer, Monitoring Configurator, dbschemacontainer, appclient, orpersistence, PortalRuntimeContainer, JDBCConnector, EJBContainer, metamodelrepository, webservices_container, scheduler~container, ConfigurationsContainer, Content Container].
    Possible reasons :
         1.An AS Java service, which is providing a container, is stopped or not deployed.
         2.The containers, which processed it, are not implemented correct. They deployed or started initially the application, but didn't return deployed components in the application deployment info.
         at com.sap.engine.services.deploy.server.utils.ValidateUtils.missingDCinDIValidator(ValidateUtils.java:80)
         at com.sap.engine.services.deploy.server.application.StartInitiallyTransaction.prepare(StartInitiallyTransaction.java:149)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:420)
         at com.sap.engine.services.deploy.server.application.StartTransaction.doStartInitiallyGlobal(StartTransaction.java:449)
         at com.sap.engine.services.deploy.server.application.StartTransaction.doStartInitially(StartTransaction.java:437)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:178)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:420)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:445)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.super_MakeAllPhases(ParallelAdapter.java:337)
         at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhasesImpl(StartTransaction.java:550)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:251)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:392)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3389)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3375)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3278)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3251)
         at com.sap.engine.services.dc.lcm.impl.J2EELCMProcessor.doStart(J2EELCMProcessor.java:99)
         at com.sap.engine.services.dc.lcm.impl.LifeCycleManagerImpl.start(LifeCycleManagerImpl.java:62)
         at com.sap.engine.services.dc.lcm.impl.RemoteLCMImpl.start(RemoteLCMImpl.java:45)
         at com.sap.engine.services.dc.lcm.impl.RemoteLCMImplp4_Skel.dispatch(RemoteLCMImplp4_Skel.java:233)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:351)
         at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:70)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:62)
         at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:37)
         at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:872)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:53)
         at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:58)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:108)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:304)

  • Trouble with image sizes....

    I have a freelance job where I am creating a few simple animations for a digital menu board for a Dairy Queen. I am having trouble with the size of my stage translating to the proper size on the LCD monitor. Is there a trick for making the conversion? The stage is huge and in writing is way bigger but still comes up smaller when viewed on the monitor. The monitor we are using is 768 x 1366 (or 15.5” x 27.5”) and my stage is 5100px x 7688px ( or 70"x106"). So you would think the flash file would be huge but it is too small by about 4in?!?!
    --Matt--

    those aspect ratios are different.  to fill the screen, you will need to make a descision to leave space at the top/bottom, crop your stage width or distort your stage. 
    you can publish for 100%x100% and use the scaleMode property of the stage to select your option.

  • Trouble with class

    I am unable to figure out what I am having trouble with this, here is the code
    public class Tools3
        protected long item_number;
        protected String product_name;
        protected long units_in_stock;
        protected double price_of_each_unit;
        protected static double total_price_of_inventory;
    public Tools3( long pitem_number, String pproduct_name, long punits_in_stock, double pprice_of_each_unit)
       item_number = pitem_number;
       product_name = pproduct_name;
       units_in_stock = punits_in_stock;
       price_of_each_unit = pprice_of_each_unit;
       total_price_of_inventory = punits_in_stock * pprice_of_each_unit;
    // Overloaded constructor for empty balance
    public Tools3()
       item_number = 0;
    public void set_item_number( long pitem_number )
       item_number = pitem_number;
    public void set_product_name( String pproduct_name )
       product_name = pproduct_name.toString();
    public void set_units_in_stock( long punits_in_stock )
       units_in_stock = punits_in_stock;
    public void set_price_of_each_unit( double pprice_of_each_unit )
       price_of_each_unit = pprice_of_each_unit;
    public long get_item_number()
       return item_number;
    public String get_product_name()
       return product_name;
    public long get_units_in_stock()
       return units_in_stock;
    public double get_price_of_each_unit()
       return price_of_each_unit;
    public double calculate_total_price()
       return units_in_stock * price_of_each_unit;
    public double calculate_total_price_of_inventory(Tools3[] mytools)
       double rettotal = 0;
       for (int i = 0; i < mytools.length; i++)
        rettotal = rettotal + (mytools.get_units_in_stock() * mytools.get_price_of_each_unit());
       return rettotal;
      public void sort_by_names(Tools3[] mytools)
      int a,b;
      int sortTheStrings = mytools.length - 1;
      String tempproduct_name;
      long tempitem_number;
      long tempunits_in_stock;
      double tempprice_of_each_unit;
        //need to implement a bubble sort here
        for (a = 0; a < sortTheStrings; ++a)
      for (b = 0; b < sortTheStrings; ++b)
      if(mytools.product_name.compareTo(mytools[b + 1].product_name) >0)
        //move name
        tempproduct_name = mytools.product_name;
        mytools.product_name = mytools[b+1].product_name;
        mytools[b+1].product_name = tempproduct_name;
        //move item_number
        tempitem_number = mytools.item_number;
        mytools.item_number = mytools[b+1].item_number;
        mytools[b+1].item_number = tempitem_number;
        //move units_in_stock
        tempunits_in_stock = mytools.units_in_stock;
        mytools.units_in_stock = mytools[b+1].units_in_stock;
        mytools[b+1].units_in_stock = tempunits_in_stock;
        //move price_of_each_unit
        tempprice_of_each_unit = mytools.price_of_each_unit;
        mytools.price_of_each_unit = mytools[b+1].price_of_each_unit;
        mytools[b+1].price_of_each_unit = tempprice_of_each_unit;
    //end of tools3.java class

    Results from javac
    C:\Java>javac Tools3.java
    Tools3.java:77: cannot find symbol
    symbol  : method get_units_in_stock()
    location: class Tools3[]
        rettotal = rettotal + (mytools.get_units_in_stock() * mytools.get_price_of_e
    ach_unit());
                                      ^
    Tools3.java:77: cannot find symbol
    symbol  : method get_price_of_each_unit()
    location: class Tools3[]
        rettotal = rettotal + (mytools.get_units_in_stock() * mytools.get_price_of_e
    ach_unit());
                                                                     ^
    Tools3.java:94: cannot find symbol
    symbol  : variable product_name
    location: class Tools3[]
      if(mytools.product_name.compareTo(mytools[b + 1].product_name) >0)
                ^
    Tools3.java:97: cannot find symbol
    symbol  : variable product_name
    location: class Tools3[]
        tempproduct_name = mytools.product_name;
                                  ^
    Tools3.java:98: cannot find symbol
    symbol  : variable product_name
    location: class Tools3[]
        mytools.product_name = mytools[b+1].product_name;
               ^
    Tools3.java:101: cannot find symbol
    symbol  : variable item_number
    location: class Tools3[]
        tempitem_number = mytools.item_number;
                                 ^
    Tools3.java:102: cannot find symbol
    symbol  : variable item_number
    location: class Tools3[]
        mytools.item_number = mytools[b+1].item_number;
               ^
    Tools3.java:105: cannot find symbol
    symbol  : variable units_in_stock
    location: class Tools3[]
        tempunits_in_stock = mytools.units_in_stock;
                                    ^
    Tools3.java:106: cannot find symbol
    symbol  : variable units_in_stock
    location: class Tools3[]
        mytools.units_in_stock = mytools[b+1].units_in_stock;
               ^
    Tools3.java:109: cannot find symbol
    symbol  : variable price_of_each_unit
    location: class Tools3[]
        tempprice_of_each_unit = mytools.price_of_each_unit;
                                        ^
    Tools3.java:110: cannot find symbol
    symbol  : variable price_of_each_unit
    location: class Tools3[]
        mytools.price_of_each_unit = mytools[b+1].price_of_each_unit;
               ^
    11 errors

  • Trouble with a bindVar function in the reflection

    Hello everybody!
    I have some trouble with using FXObjectValue.bindVar(...) function.
    I'm getting
    java.lang.UnsupportedOperationException: unimplemented: bindVar
    exceprion :(
    I loked up to source code of JavaFX and I can't find implementation this function, except one that throws this exception.
    Hence I have two questions:
    - Is this function implemented wherever really?
    - If one isn't implemented how can I conquer this trouble or will one be implemented soon?
    //Best regards
    //Alexander

    Hi again!
    I have looked at this classes which you have advised me. Thank you very much!
    But I can't understand what I have to do in the onChange method, when I realise FXChangeListener interface. Any values aren't passed into this method.
    I have tried look up any explanation into source code of the JavaFX compilator, but I haven't found.
    I have some ideas about some solution for this case:
    to save source and destination objects into a class that realises this interface.
    But I don't sure that solution is clear.
    Could you please estimate this idea?
    My be are some other solutions of this problem?
    Thank you in advance!

  • Port Forwarding with Port Translation RV042, RV016, RV082

    This is a feature request for the Linksys RV series Routers.  Currently, it appears that the Cisco/Linksys RV042, RV082, and RV016 only support port forwarding and 1-to-1 Nat.  One item that I find very helpful with customers is port forwarding with port translation.  I am requesting that this feature be included with a future firmware relase for these RV series routers.
    Here is an example of the request.
    Take an incoming service request on a TCP or UDP destination port and forward it to an internal IP on a different TCP or UDP port.  For example, customer A wants to allow different machines on the internal network to receive Windows RDP connections inbound.  To make PC maintenance identical between the internal machines, the customer does not want to change the listening port for RDP on the individual PC workstations through the Windows Registry.  The customer also does not want to dedicate separate IP's to each machine in a 1-to-1 NAT setup.  The only option is to have remote connections to each of these PC's to use a different destination port.  So, for example, PC one could be reached on TCP port 5151, PC two on TCP port 5152, and PC three on port 5153.  This requres a firewall that is able to translate each of these connection requests to a different internal IP on the default RDP port (TCP 3389).  So, the following setup is required:
    Port Forwarding with Port Translation:
    Router External IP on TCP port 5151 ---> forwarded to PC One's internal IP on TCP 3389
    Router External IP on TCP port 5152 ---> forwarded to PC Two's internal IP on TCP 3389
    Router External IP on TCP port 5153 ---> forwarded to PC Three's internal IP on TCP 3389
    There are several comparable "small business" class router competitors to the RV042, RV082, and RV016 that will perform this port forwarding with port translation process without incident.  Unfortunately, these Cisco/Linksys small business routers will not accomplish this task currently.
    Please implement this feature in a future firmware release.
    Thanks!

    Excellent.  I see this now.  None of our customers actually use the UPNP feature, so we never realized that Port Forwarding with Port Translation features existed on this page along with the ability to enable or disable UPNP.
    Perhaps, in the future, this functionality could be moved to and incorporated into the port forwarding page which seems to be a more logical location.
    In either case I'm very happy to know that this feature is available on the RV's.
    Thanks for your assistance.

  • Trouble with 10g after Installing Grid Control

    Main problem: after installing Grid Control and rebooting, I can no longer access my databases.
    I have 10g installed on a fairly decent Windows XP machine. It was running okay, but I had two Oracle database instance processes running at 200mb of RAM each (of a total of 1 GB of RAM), so it was a bit bogged down, as is to be expected when running Oracle as a server on Windows.
    I then installed Grid Control, which seemed to go okay, and another database as well. But once the install completed, and I gained access to the Grid Control version of the OEM for the first time, that's when things got wacky. Connecting to any OEM instance started taking anywhere from 2-10 minutes, everything was bogged down considerably, etc. I tried shutting everything down and rebooting, but now things are worse. OEM is timing out and not finding servers, listener is timing out, etc. I've tried manipulating a few things in Net Manager (I noticed that my LISTENER section didn't seem to contain any data at all, and my databases weren't listed in there either) with no result.
    I've also had trouble with "host credentials" and being able to administer the databases within the OEM, even after implementing a fix I had found to add my user name to a "log on as batch job" local security policy.
    Finally, I noticed that after installing Grid Control, when I run "sqlplus", I now see "Oracle91 Enterprise Edition" instead of the "Oracle10g" it used to show (and I never had anything but 10g installed on this machine!).
    Here's what happens when I try to access my dBs:
    -When I try to launch the OEM connected to any of the 3 databases I created (which were previsouly running), the browser just times out with "page cannot be displayed".
    -When I run "emctl start <ANYTHING>" I get file/path not found errors, and a file path with both forward and backward slashes (starting after the "agent" directory):
    C:\oracle\product\10.1.0\agent/<...etc.>
    -When I try to test a connection to a service in Net Manager, I get this error:
    ORA-12557: TNS:protocol adapter not loadable
    I had to manually add my listener info and databases info(under Service Naming) in Net Manager, but everything appeared fine in Oracle Directory Manager (unfortunately, that doesn't help much, since this is just a general info tool).
    I am nothing near a DBA and my knowledge is limited, so I apologize for not being more consise, but I'd be glad to elaborate if someone could tell me what they need to know.
    Thank you,
    John

    Yes; thank you both. Although I had 1 GB physical and 1.5 GB virtual memory configured, running Grid Control seemed to completely kill all available resources.
    I have removed GC and its related database and applications, and I can again conncet to my databases via Database Control. Thank you.
    By the way, another issue has arisen, seemingly in the aftermath of installing GC: my OEM Database Control instances now time out after about 60 seconds, logging me out each and every time. I have cookies enabled, but this doesn't seem to be the trouble. Is there a Web setting somewhere that will kick users out of the instance at timed intervals?

  • Trouble with popup not initialized until addPopUp is called

    I am having troubles with initialization.  I have a class given below.  I new() it at the start and use PopUpManager.addPopUp to display it.
    My problem is that the line query:QueryWIthOption id="filterComp" is a class with a lot of variables.  However, if I try to set any of them before I call addPopUp, it doesn't work because filterComp is null.
    I therefore either need to initialize filterComp earlier, store the data until AddToPopup is called, or change the way I am implementing this.  If I store the data in variables, I have to add a whole bunch either to the class below or to the calling class.
    Doing this once is managable, but I have other similar examples with a similar problem. This code was flex 3 before where filterComp was always initialized.
    Is there any good way to do this?  I guess I am interested in both the way to do this in a minimal way, and what is the best way to code to avoid this issue (if I am adding something new in the future).
    Jay
    QueryWithOptionWrapper class:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx"
                    xmlns:query="com.niksun.dashboard.components.query.*">
        <fx:Script>
            <![CDATA[
                import com.niksun.common.managers.ResourceManager;           
            ]]>
        </fx:Script>
        <mx:VBox horizontalAlign="center" width="100%" height="100%" paddingTop="5">
            <query:QueryWithOption id="filterComp" showFilter="true"/>
            <mx:HBox width="100%" horizontalAlign="center" horizontalGap="10">
                <!-- enabled="{!ModelLocator.getInstance().progress}" -->
                <mx:Button id="update" label="{ResourceManager.getString('Update')}"
                           horizontalCenter="0"/>
                <mx:Button id="reset" label="{ResourceManager.getString('Reset')}"/>
                <mx:Button id="cancel" label="{ResourceManager.getString('Cancel')}"/>
            </mx:HBox>
        </mx:VBox>
    </mx:TitleWindow>

    I was thinking about what I would want and came up with the following suggested enhancement for Flex 4.
    Add a preinitialize="true/false" type flag for UI type Components that indicates whether to initialize everything like was done in Flex 3, or whether to hold off initialization until used like is currently done.  It would default to false.
    Is there a way I can ask for/suggest this enhancement for a later version of Flex 4? 
    This change would greatly reduce the time needed to convert from flex 3 to flex 4.

  • Having trouble with my signed applet(if it's properly signed that is)

    hi
    I'm having trouble with my supposedly signed applet. I'm trying to execute a specific program in this case trilian from my browser. i'm using firefox
    first my java code
    package applet;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class RunApplet extends JApplet {
        JButton jButton = new JButton();
        FlowLayout flowLayout1 = new FlowLayout();
        public RunApplet() {
            try {
                init();
            } catch (Exception ex) {
                ex.printStackTrace();
        private void init() throws Exception {
            try {
                this.getContentPane().setLayout(flowLayout1);
                this.setSize(new Dimension(100, 200));
                jButton.setText("Trillian");
                jButton.addActionListener(new RunApplet_jButton_actionAdapter(this,
                        "\"C:\\Program Files\\Trillian\\trillian.exe\""));
                this.getContentPane().add(jButton, null);
            } catch (Exception e) {
                e.printStackTrace();
    class RunApplet_jButton_actionAdapter implements ActionListener {
        private RunApplet adaptee;
        private String programPath;
        RunApplet_jButton_actionAdapter(RunApplet adaptee, String programPath) {
            this.adaptee = adaptee;
            this.programPath = programPath;
        public void actionPerformed(ActionEvent e) {
            try {
                Runtime.getRuntime().exec(this.programPath);
            } catch (IOException ex) {
    }And my applet code
    <html>
    <body>
    <!--"CONVERTED_APPLET"-->
    <!-- HTML CONVERTER -->
    <object
        classid = "clsid:CAFEEFAC-0015-0000-0005-ABCDEFFEDCBA"
        codebase = "http://java.sun.com/update/1.5.0/jinstall-1_5_0_05-windows-i586.cab#Version=5,0,50,5"
        >
        <PARAM NAME = CODE VALUE = "applet.RunApplet.class" >
        <PARAM NAME = ARCHIVE VALUE = "myfile.jar" >
        <param name = "type" value = "application/x-java-applet;jpi-version=1.5.0_05">
        <param name = "scriptable" value = "false">
        <comment>
         <embed
                type = "application/x-java-applet;jpi-version=1.5.0_05" \
                CODE = "applet.RunApplet.class" \
                ARCHIVE = "myfile.jar"
             scriptable = false
             pluginspage = "http://java.sun.com/products/plugin/index.html#download">
             <noembed>
                </noembed>
         </embed>
        </comment>
    </object>
    <!--
    <applet CODE = "applet.RunApplet.class" ARCHIVE = "myfile.jar">
    </applet>
    -->
    <!--"END_CONVERTED_APPLET"-->
    </body>
    </html>Creating my key:
    keytool -genkey -alias sitekey -keystore "C:\Program Files\Java\jdk1.5.0_05\jre\lib\security\cacerts"Now the process of creating the jar file and signing it:
    1. jar cf myfile.jar *.class
    2. jarsigner -keystore "C:\Program Files\Java\
    jdk1.5.0_05\jre\lib\security\cacerts" myfile.jar sitekeyNow this is the way i've been using then and the first time i get the "do you want to trust" screen but still i get a security exception.
    Exception in thread "AWT-EventQueue-10" java.security.AccessControlException: access denied (java.io.FilePermission <<ALL FILES>> execute)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkExec(Unknown Source)
         at java.lang.ProcessBuilder.start(Unknown Source)
         at java.lang.Runtime.exec(Unknown Source)
         at java.lang.Runtime.exec(Unknown Source)
         at java.lang.Runtime.exec(Unknown Source)
         at applet.RunApplet_jButton_actionAdapter.actionPerformed(RunApplet.java:73)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)Is there anybody who have an idea what can be wrong?
    regards
    thallish

    ok i solved i myself. i assigned a different and thereby correct keystore and now it works like it should
    regards
    thallish

  • Having trouble with creating objects from instances created with ClassLoade

    Hi.
    I'm having a bit of trouble with casting an instance of an object from a custom ClassLoader. Don't worry - the code isn't for anything sinister - it's for one of those life simulation thingies, but I want to make it modular so people can write their own 'viruses' which compete for survival. You know the score.
    Anyway. I've got the beginnings of my main class, which seems to load the class data for all 'virus' classes in a folder called 'strains'. There is a abstract class called AbstractVirus which declares the method calls for how the viruses should behave and to get textual descriptions, etc. AbstractVirus is to be subclassed to create working virus classes and these are what my main class is trying to load instances of.
    Unfortuantely, I can't cast the instances into AbstractVirus objects. The error I've been getting is 'ClassCastException' which I presume is something to do with the fact that my ClassLoader and the Bootstrap ClassLoader aren't seeing eye-to-eye with the class types. Can anyone help? This line of programming is really new to me.
    My code for the main class is below:
    /* LifeSim.java */
    public class LifeSim {
      public LifeSim() {
        /* Get a list of all classes in the 'strains' directory and store non-
         * abstract classes in an array. */
        Class virusClasses[] = null;
        try {
          /* Get a reference to the file folder 'strains' and make sure I can read
           * from it. */
          java.io.File modulesFolder = new java.io.File("strains");
          if (!modulesFolder.isDirectory() || !modulesFolder.canRead()) {
         System.out.println("Failed to find accessible 'strains' folder");
         System.exit(-1);
          /* Get a list of all the class files in the folder. */
          String virusFiles[] = modulesFolder.list(new ClassFileFilter());
          if (virusFiles.length == 0) {
         System.out.println("No virus strains in 'strains' folder");
         System.exit(-1);
          /* Create an array of class objects to store my Virus classes. Ignore the
           * abstract class as I cannot instantiate objects directly from it.*/
          virusClasses = new Class[virusFiles.length];
          VirusClassLoader classLoader = new VirusClassLoader();
          int j = 0;
          for (int i = 0; i < virusFiles.length; i++) {
         String virusName = "strains/" + virusFiles;
         Class tempClass = classLoader.loadClass(virusName);
         if (tempClass.getName().compareToIgnoreCase("strains.AbstractVirus") != 0) {
         virusClasses[j++] = tempClass;
    } catch (ClassNotFoundException ncfe) {
    System.out.println("Failed to access virus class files.");
    ncfe.printStackTrace();
    System.exit(-1);
    /* TEST CODE: Create an instance of the first virus and print its class
    * name and print details taken from methods defined in the AbstractVirus
    * class. */
    if (virusClasses.length > 0) {
    try {
         // Print the class name
         System.out.println(virusClasses[0].getName());
         Object o = virusClasses[0].newInstance();
         strains.AbstractVirus av = (strains.AbstractVirus) o;
         // Print the virus name and it's description
         System.out.println(av.getQualifiedName());
         System.out.println(av.getDescription());
    } catch (InstantiationException ie) { ie.printStackTrace(); }
         catch (IllegalAccessException iae) { iae.printStackTrace(); }
    public static void main(String args[]) {
    new LifeSim();
    class ClassFileFilter implements java.io.FilenameFilter {
    public boolean accept(java.io.File fileFolder, String fileName) {
    if (_fileName.indexOf(".class") > 0) return true;
    return false;
    class VirusClassLoader extends ClassLoader {
    private String legalClassName = null;
    public VirusClassLoader() {
    super(VirusClassLoader.class.getClassLoader());
    public byte[] findClassData(String filename) {
    try {
    java.io.File sourcefile = new java.io.File(filename);
    legalClassName = "strains." + sourcefile.getName().substring(0,sourcefile.getName().indexOf("."));
    java.io.FileInputStream fis = new java.io.FileInputStream(sourcefile);
    byte classbytes[] = new byte[fis.available()];
    fis.read(classbytes);
    fis.close();
    return classbytes;
    } catch (java.io.IOException ioex) {
    return null;
    public Class findClass(String classname) throws ClassNotFoundException {
    byte classbytes[] = findClassData(classname);
    if (classbytes == null) throw new ClassNotFoundException();
    else {
    return defineClass(legalClassName, classbytes, 0, classbytes.length);
    Thank you in advance
    Morgan

    Two things:
    I think your custom ClassLoader isn't delegating. In general a ClassLoader should begin by asking it's parent ClassLoader to get a class, and only if the parent loader fails get it itself. AFAIKS you could do what you're trying to do more easilly with URLClassLoader.
    Second, beware that a java source file can, and often does, generate more than one class file. Ignore any class files whose names contain a $ character. It's possible you are loading an internal class which doesn't extend your abstract class.

  • Having trouble with flash and linking to Sliding panels - PLEASE help

    Having trouble with Sliding panels and flash. Otherwise everything works fine but when I'm trying to implement the link
    <a href="#" onclick="sp1.showPanel('panel1'); return false;">Panel1</a>
    to a flash button I get confused. I have tried following
    on (press) {
    getURL("javascript:sp1.showPanel('panel1');");
    and it did not work. What would you suggest? I am desperate. Please help me! Any suggestions are highly appreciated!!!!

    Thanks for your answer!
    I have tried both sp1.ShowPanel('panel1'); and window.sp1.ShowPanel('panel1'); they both give blank window with [object]
    I have found a solution that works in other browsers, but not in IE. Well basicly it works, but after a few clicks IE freezes.
    on (press) {
    getURL("javascript:sp1.showPanel('panel1'); void(0);");
    Would you happen to have a solution other than that? I believe that the void(0); causes the IE to freeze.

Maybe you are looking for

  • Ipod Nano Stuck on Apple Logo

    My Ipod Nano seems to be stuck on the apple logo. I tried a hard reset and it did nothing and itunes isn't recognizing it. When a similar thing happend to my Ipod Touch i was able to boot into recovery mode and restore a backup. Does Ipod Nano have t

  • 20" w/ fx 5200 PC--resolution problem

    Im trying connect my 20" ACD to a PC with a Geforce fx 5200, but when the computer boots up the resolution is very low. It only allows 4-bit color and the lowest resolution. I cant change the options under control panel--displays--settings. Is the mo

  • Cannot access Telstra "my account" on Firefox browser

    I am not able to access "my account" past the log in stage on Telstra website using Firefox on my mac. This has only occurred since I updated Firefox. I can access this account on Safari, but prefer Firefox. I gather this is not an uncommon issue fro

  • How to edit audio files recorded on Ipod

    I'm new at this! I'm recording long interviews on my Ipod, which get downloaded as Voice Memos into Itunes. I need to edit those files, and thought Garage Band would be just the program to do it with.  Now I'm not sure it will work.  The original fil

  • Is there no way to allow the envy 4500 to connect via 5ghz band

    I have a dual band modem that will operate in only one mode at a time (2.4 ghz or 5 ghz).  I prefer to set it to 5ghz because it is less congested in an urban setting such as where I live.  However, when I switch it to the 5ghz mode the printer won't