Problems in setting a locale

Hi,
I want to display my data (which is numeric) in German format.
I am able to do so using the following code :
double dbl=2345.67;
NumberFormat nf= NumberFormat.getInstance(Locale.GERMAN);
((DecimalFormat)nf).applyPattern("#,##0.#");
str_output=nf.format(dbl);
But this code works only on some machines.
On other machines it shows the data in the default English format only.
Pls help.

I am hesitating in replying, as I am unsure. In jre/lib/ext/localedata.jar there are compiled Locale classes.
As you know, there is a scheme for locating the best matching Locale, for instance de_CH_UTF8 which at the end on missing the correct 'de' locale would resort to the "international" one.
The easiest way, would be to use a SimpleDateFormatter or the like.

Similar Messages

  • Setting up local testing server for coldfusion 9

    I could use some help with this thread in coldfusion forum...
    setting up local testing server for coldfusion 9 w dreamweaver on mac
    http://forums.adobe.com/thread/773350
    thanks

    I'm marking this as assumed answered, as you seem to have solved the problem in the other thread.

  • Setting up local testing server

    Hi,
    I am in the process of setting up a local server to test web sites with AJAX calls, and am wondering what are some of the more common and easier tools/resources to use to do this...I have seen MAMP and XAMPP are very common...I recently up-graded to Yosemite so hopefully this will not be a problem to configure a local server...!?
    Thanks very much for any direction or feedback.

    Ah. I see the problem. I will update that user tip when Yosemite is released. For now, you can try this:
    Enable mod_userdir and include the configuration file
    In the mod_userdir configuration file, include user-specific configuration files
    In said user-specific configuration files, add new some stuff to make Apache 2.4 happy. Specifically, you will need:
        Require all granted
    because Apache just needs that now.
    And you will need
        AddLanguage en .en
        LanguagePriority en fr de
        ForceLanguagePriority Fallback
    if you want to use Multiviews as per the User Tip.
    After a sudo apachectl graceful, it should work.
    However, I should caution anyone considering this that I haven't used Apache in some time. Things have progressed since I first wrote that user tip. These days, I would recommend using nginx, Tomcat, or Node. I also probably wouldn't even recommend using a Mac. Use Vagrant on your Mac instead and set everything up on Linux. Everyone, including Apple, uses Linux for servers these days. Plus, in today's world of security-enhanced Linux, you are going to have a mess trying to port something from a Mac to Linux. The resemblances are getting more and more superficial. You haven't lived until you have been screaming insults at selinux for hours on end. Even with Apple's recent drop in software quality (and I'm not the only one that says that), you aren't likely to scream insults at your Mac for more than 30 minutes or so until you figure out how to work around the latest bugset. With modern tools like selinux and Gradle, you aren't going to get anything done without reading a few hundred pages of manual first - assuming you can find the manual.
    Bottom line - use your Mac to track down the documentation and read it, get Vagrant running, and just use Linux.

  • DB2 Transaction log Problem after set db manuell to Rollforward

    Hello,
    I have a problem when set the db2 manuell in rollforward mode. After I set the command db2rfpen ON E35 my database (E35) is in rollforward mode.
    Now I can see with command "db2 rollforward db E35 query status" the Last committed transaction
    but the timestamp of the Last committed transaction is 2106-02-07-06.28.15.000000 UTC
    but we do not have year 2106!!
    did someone have similar issue or a solution for my problem??
    Is it possible to manuell update the table via SQL? But I dont know which table i should update..
    Thanks in advanced.
    Robin

    Hi,
    following output of db2 get snapshot for all databases because db2 get snapshot for database E35 does not work..
    there I think the timestamp is also ok. Thanks for your help!
    regards
    Robin
                  Database Snapshot
    Database name                              = E35
    Database path                              = /db2/E35/db2e35/NODE0000/SQL00001/MEMBER0000/
    Input database alias                       =
    Database status                            = Active
    Catalog database partition number          = 0
    Catalog network node name                  = srvnetapp07
    Operating system running at database server= LINUXAMD64
    Location of the database                   = Local
    First database connect timestamp           = 08/11/2014 12:16:58.594371
    Last reset timestamp                       =
    Last backup timestamp                      = 08/08/2014 09:57:42.000000
    Snapshot timestamp                         = 08/11/2014 12:17:46.494342
    Number of automatic storage paths          = 4
    Automatic storage path                     = /db2/E35/sapdata1
          Node number                          = 0
          State                                = In Use
          File system ID                       = 64782
          Storage path free space (bytes)      = 23376351232
          File system used space (bytes)       = 3045990400
          File system total space (bytes)      = 26422341632
    Automatic storage path                     = /db2/E35/sapdata2
          Node number                          = 0
          State                                = In Use
          File system ID                       = 64783
          Storage path free space (bytes)      = 23376351232
          File system used space (bytes)       = 3045990400
          File system total space (bytes)      = 26422341632
    Automatic storage path                     = /db2/E35/sapdata3
          Node number                          = 0
          State                                = In Use
          File system ID                       = 64784
          Storage path free space (bytes)      = 23376351232
          File system used space (bytes)       = 3045990400
          File system total space (bytes)      = 26422341632
    Automatic storage path                     = /db2/E35/sapdata4
          Node number                          = 0
          State                                = In Use
          File system ID                       = 64785
          Storage path free space (bytes)      = 23376351232
          File system used space (bytes)       = 3045990400
          File system total space (bytes)      = 26422341632
    High water mark for connections            = 13
    Application connects                       = 9
    Secondary connects total                   = 11
    Applications connected currently           = 1
    Appls. executing in db manager currently   = 0
    Agents associated with applications        = 11
    Maximum agents associated with applications= 13
    Maximum coordinating agents                = 13
    Number of Threshold Violations             = 0
    Locks held currently                       = 29
    Lock waits                                 = 2
    Time database waited on locks (ms)         = 56
    Lock list memory in use (Bytes)            = 77568
    Deadlocks detected                         = 0
    Lock escalations                           = 0
    Exclusive lock escalations                 = 0
    Agents currently waiting on locks          = 0
    Lock Timeouts                              = 0
    Number of indoubt transactions             = 0
    Total Private Sort heap allocated          = 0
    Total Shared Sort heap allocated           = 6
    Shared Sort heap high water mark           = 245
    Post threshold sorts (shared memory)       = 0
    Total sorts                                = 2
    Total sort time (ms)                       = 2
    Sort overflows                             = 0
    Active sorts                               = 0
    Buffer pool data logical reads             = 68507
    Buffer pool data physical reads            = 1312
    Buffer pool temporary data logical reads   = 0
    Buffer pool temporary data physical reads  = 0
    Asynchronous pool data page reads          = 899
    Buffer pool data writes                    = 0
    Asynchronous pool data page writes         = 0
    Buffer pool index logical reads            = 52871
    Buffer pool index physical reads           = 449
    Buffer pool temporary index logical reads  = 0
    Buffer pool temporary index physical reads = 0
    Asynchronous pool index page reads         = 0
    Buffer pool index writes                   = 0
    Asynchronous pool index page writes        = 0
    Buffer pool xda logical reads              = 0
    Buffer pool xda physical reads             = 0
    Buffer pool temporary xda logical reads    = 0
    Buffer pool temporary xda physical reads   = 0
    Buffer pool xda writes                     = 0
    Asynchronous pool xda page reads           = 0
    Asynchronous pool xda page writes          = 0
    Total buffer pool read time (milliseconds) = 4912
    Total buffer pool write time (milliseconds)= 0
    Total elapsed asynchronous read time       = 3219
    Total elapsed asynchronous write time      = 0
    Asynchronous data read requests            = 454
    Asynchronous index read requests           = 0
    Asynchronous xda read requests             = 0
    No victim buffers available                = 0
    LSN Gap cleaner triggers                   = 0
    Dirty page steal cleaner triggers          = 0
    Dirty page threshold cleaner triggers      = 0
    Time waited for prefetch (ms)              = 982
    Unread prefetch pages                      = 0
    Direct reads                               = 986
    Direct writes                              = 2
    Direct read requests                       = 77
    Direct write requests                      = 1
    Direct reads elapsed time (ms)             = 243
    Direct write elapsed time (ms)             = 0
    Database files closed                      = 0
    Host execution elapsed time                = 5.785568
    Commit statements attempted                = 16
    Rollback statements attempted              = 2
    Dynamic statements attempted               = 6950
    Static statements attempted                = 23
    Failed statement operations                = 0
    Select SQL statements executed             = 6936
    Xquery statements executed                 = 0
    Update/Insert/Delete statements executed   = 6
    DDL statements executed                    = 0
    Inactive stmt history memory usage (bytes) = 0
    Internal automatic rebinds                 = 0
    Internal rows deleted                      = 0
    Internal rows inserted                     = 0
    Internal rows updated                      = 0
    Internal commits                           = 21
    Internal rollbacks                         = 0
    Internal rollbacks due to deadlock         = 0
    Number of MDC table blocks pending cleanup = 0
    Rows deleted                               = 0
    Rows inserted                              = 0
    Rows updated                               = 13838
    Rows selected                              = 13897
    Rows read                                  = 141752
    Binds/precompiles attempted                = 0
    Log space available to the database (Bytes)= 333797877
    Log space used by the database (Bytes)     = 26523
    Maximum secondary log space used (Bytes)   = 0
    Maximum total log space used (Bytes)       = 37070
    Secondary logs allocated currently         = 0
    Log pages read                             = 0
    Log read time (sec.ns)                     = 0.000000000
    Log pages written                          = 13
    Log write time (sec.ns)                    = 0.006250000
    Number write log IOs                       = 9
    Number read log IOs                        = 0
    Number partial page log IOs                = 7
    Number log buffer full                     = 0
    Log data found in buffer                   = 0
    Log to be redone for recovery (Bytes)      = 26523
    Log accounted for by dirty pages (Bytes)   = 26523
    Node number                                = 0
    File number of first active log            = 90
    File number of last active log             = 94
    File number of current active log          = 90
    File number of log being archived          = Not applicable
    Package cache lookups                      = 6955
    Package cache inserts                      = 20
    Package cache overflows                    = 0
    Package cache high water mark (Bytes)      = 1026593
    Application section lookups                = 20824
    Application section inserts                = 29
    Catalog cache lookups                      = 740
    Catalog cache inserts                      = 55
    Catalog cache overflows                    = 0
    Catalog cache high water mark              = 429098
    Catalog cache statistics size              = 0
    Workspace Information
    Number of hash joins                       = 4
    Number of hash loops                       = 0
    Number of hash join overflows              = 0
    Number of small hash join overflows        = 0
    Post threshold hash joins (shared memory)  = 0
    Active hash joins                          = 0
    Number of OLAP functions                   = 0
    Number of OLAP function overflows          = 0
    Active OLAP functions                      = 0
    Statistic fabrications                          = 0
    Synchronous runstats                            = 0
    Asynchronous runstats                           = 0
    Total statistic fabrication time (milliseconds) = 0
    Total synchronous runstats time (milliseconds)  = 0
    Memory usage for database:
      Node number                                  = 0
        Memory Pool Type                           = Backup/Restore/Util Heap
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 204800000
      Node number                                  = 0
        Memory Pool Type                           = Package Cache Heap
           Current size (bytes)                    = 1179648
           High water mark (bytes)                 = 1179648
           Configured size (bytes)                 = 472317952
      Node number                                  = 0
        Memory Pool Type                           = Other Memory
           Current size (bytes)                    = 196608
           High water mark (bytes)                 = 196608
           Configured size (bytes)                 = 20971520
      Node number                                  = 0
        Memory Pool Type                           = Catalog Cache Heap
           Current size (bytes)                    = 524288
           High water mark (bytes)                 = 524288
           Configured size (bytes)                 = 10485760
      Node number                                  = 0
        Memory Pool Type                           = Buffer Pool Heap
           Secondary ID                            = 1
           Current size (bytes)                    = 494010368
           High water mark (bytes)                 = 494010368
           Configured size (bytes)                 = 494010368
      Node number                                  = 0
        Memory Pool Type                           = Buffer Pool Heap
           Secondary ID                            = System 32k buffer pool
           Current size (bytes)                    = 1835008
           High water mark (bytes)                 = 1835008
           Configured size (bytes)                 = 1835008
      Node number                                  = 0
        Memory Pool Type                           = Buffer Pool Heap
           Secondary ID                            = System 16k buffer pool
           Current size (bytes)                    = 1572864
           High water mark (bytes)                 = 1572864
           Configured size (bytes)                 = 1572864
      Node number                                  = 0
        Memory Pool Type                           = Buffer Pool Heap
           Secondary ID                            = System 8k buffer pool
           Current size (bytes)                    = 1441792
           High water mark (bytes)                 = 1441792
           Configured size (bytes)                 = 1441792
      Node number                                  = 0
        Memory Pool Type                           = Buffer Pool Heap
           Secondary ID                            = System 4k buffer pool
           Current size (bytes)                    = 1376256
           High water mark (bytes)                 = 1376256
           Configured size (bytes)                 = 1376256
      Node number                                  = 0
        Memory Pool Type                           = Shared Sort Heap
           Current size (bytes)                    = 2359296
           High water mark (bytes)                 = 3932160
           Configured size (bytes)                 = 40435712
      Node number                                  = 0
        Memory Pool Type                           = Lock Manager Heap
           Current size (bytes)                    = 159645696
           High water mark (bytes)                 = 159645696
           Configured size (bytes)                 = 159711232
      Node number                                  = 0
        Memory Pool Type                           = Database Heap
           Current size (bytes)                    = 87687168
           High water mark (bytes)                 = 87687168
           Configured size (bytes)                 = 119472128
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 107
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 106
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 105
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 104
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 103
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 102
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 101
           Current size (bytes)                    = 196608
           High water mark (bytes)                 = 196608
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 100
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 99
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 98
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 97
           Current size (bytes)                    = 131072
           High water mark (bytes)                 = 131072
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Applications Shared Heap
           Current size (bytes)                    = 458752
           High water mark (bytes)                 = 458752
           Configured size (bytes)                 = 81920000

  • Problems with CME user locale

    Hello!
    I have Cisco 2811(IOS 12.4(22)T1, CME 7.0.1).
    I try to set up user locale but get error message:
    voip(config-telephony)#user-locale U2 US
    Updating CNF files
    Cannot open flash:/its/user_define_2_tags_file, some TAGs will be displayed in English
    Cannot open flash:/its/user_define_2_utf8_tags_file, some TAGs will be displayed in English
    CNF files updating complete
    Where I can find this files (tags files)?
    Telephony-service config:
    telephony-service
    em keep-history
    max-ephones 25
    max-dn 20
    ip source-address 192.168.2.100 port 2000
    timeouts ringing 40
    system message
    cnf-file location flash:
    cnf-file perphone
    user-locale U2 US
    user-locale 1 U1 load CME-locale-ru_RU-Russian-7.0.1.1.tar
    network-locale RU
    load 7960-7940 P00308000400
    time-zone 32
    time-format 24
    date-format dd-mm-yy
    voicemail 5000
    max-conferences 10 gain -6
    call-forward pattern .T
    moh music-on-hold.au
    multicast moh 239.0.0.1 port 16834 route 192.168.2.100
    dn-webedit
    time-webedit
    transfer-system full-consult
    transfer-pattern .T
    directory entry 1 1000 name mnb
    create cnf-files version-stamp 7960 Jan 26 2009 13:34:34

    Thank for your reply.
    My problem consisted in that IP Communicator not change locale even set "user locale RU", using ephone-profile...
    But I find my mistake. I not set type for ephone. After change type to CIPC, all work correctly.

  • PhaseListener: before or after which phase should I set the locale?

    Hello,
    I use restfaces an I have UrLs such as mydomain.com/fr/book/etc
    where /fr/ is the desired locale. I have tried retrieving the locale string from the URL and setting the locale from a PhaseListener before the renderResponse phase but it does not work i.e. when I change the locale in the address bar to /en/book/etc it will not change the locale. Any clue?
    Thanks in advance,
    JUlien.
    Here is the phase listener:
    public class DebugPhaseListener implements PhaseListener {
    private static transient Logger log = Logger.getLogger("com.jeanbaptistemartin.util");
    public DebugPhaseListener() {
    log.debug("DebugPhaseListener constructor");
    public void afterPhase(PhaseEvent phaseEvent) {
    log.debug("after---> " + phaseEvent.getPhaseId());
    public void beforePhase(PhaseEvent phaseEvent) {
    Locale locale = extractLocale(FacesContext.getCurrentInstance().getExternalContext().getRequestServletPath());
    FacesContext.getCurrentInstance().getViewRoot().setLocale(locale);
    public PhaseId getPhaseId() {
    return PhaseId.RENDER_RESPONSE;
    private Locale extractLocale(String servletPath) {
    String[] array = servletPath.split("/");
    return new Locale(array[0]);
    }Here is the managed bean (I actually use spring):
    @Component("sculptureView")
    @Scope("request")
    public class SculptureView {
    private Logger log = Logger.getLogger("com.jeanbaptistemartin.view");
    private JbmService service;
    private Sculpture sculpture;
    public SculptureView() {
    log.info("Sculpture()");
    @Autowired
    public SculptureView(JbmService service) {
    log.info("Sculpture(JbmService service)");
    this.service = service;
    @Instance("#{sculptureView}")
    @HttpAction(value = "sculptureAction", pattern = "{locale}/sculpture/{id}")
    public String getBookById(@Param("id") int id, @Param("locale")String locale) {
    this.sculpture = service.findByID(id);
    log.debug("Locale: "+  locale);
    return "/sculpture.jsp";
    public Sculpture getSculpture() {
    return sculpture;
    public void setSculpture(Sculpture sculpture) {
    this.sculpture = sculpture;
    }The problem I get is that the jsp page still display today's date in french...
    Julien.
    I meant "sculpture" instead of "book"
    Edited by: balteo on Jul 10, 2008 5:51 AM

    Thanks a lot! You spotted a big mistake on my part.
    Otherwise, my lifecycle listener works when I use the RESTORE_VIEW phase (afterPhase method).
    Do you think it is the appropriate phase? Should I use another one?
    Julien.

  • New problem while setting ADS password

    Hi,
    Im trying to change password in ADS. Ultimately it has to be done via web interface but i was trying it out on my local machine, which has windows 2000. I got the following exception as a result. Any ideas?
    This is my code section ...
    Hashtable env = new Hashtable();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory" );
    env.put(Context.PROVIDER_URL, "ldap://10.2.0.22:636/");
    env.put(Context.SECURITY_AUTHENTICATION,"simple");
    env.put(Context.SECURITY_PROTOCOL, "ssl");
    env.put(Context.REFERRAL,"ignore");
    env.put(Context.SECURITY_PRINCIPAL,"[email protected]");
    env.put(Context.SECURITY_CREDENTIALS,"Password1");
    DirContext dctx = null;
    try
    dctx = new InitialDirContext( env );
    The following is the exception i got ...
    javax.naming.CommunicationException: simple bind failed: 10.2.0.22:636 [Root exception is javax.net.ssl.SSLProtocolExcep
    tion: java.io.IOException: subject key, Unknown key spec: Invalid RSA modulus size.]
    at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:198)
    at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2640)
    at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:290)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
    at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
    at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:80 )
    at updtpass.main(updtpass.java:34)
    Caused by: javax.net.ssl.SSLProtocolException: java.io.IOException: subject key, Unknown key spec: Invalid RSA modulus s
    ize.
    at com.sun.net.ssl.internal.ssl.HandshakeMessage$CertificateMsg.<init>(Dasho A12275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA12275)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
    at com.sun.jndi.ldap.Connection.writeRequest(Connection.java:390)
    at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:334)
    at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:193)
    ... 12 more
    Caused by: java.security.cert.CertificateParsingException: java.io.IOException: subject key, Unknown key spec: Invalid R
    SA modulus size.
    at sun.security.x509.X509CertInfo.<init>(X509CertInfo.java:155)
    at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1679)
    at sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:173)
    at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:90 )
    at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.ja va:389)
    ... 24 more
    Caused by: java.io.IOException: subject key, Unknown key spec: Invalid RSA modulus size.
    at sun.security.x509.X509Key.parse(X509Key.java:155)
    at sun.security.x509.CertificateX509Key.<init>(CertificateX509Key.java:58)
    at sun.security.x509.X509CertInfo.parse(X509CertInfo.java:706)
    at sun.security.x509.X509CertInfo.<init>(X509CertInfo.java:153)
    ... 28 more
    Exception in thread "main" java.lang.NullPointerException
    at updtpass.main(updtpass.java:61)

    I am also facing a peculiar type of problem while setting the password
    the type of error I am while running the code below
    String adminName = "CN=xyz,CN=Users,DC=TESTING, DC=AMG, DC=COM";
    String adminPassword = "xxxxxxx";
    String ldapURL = "ldap://testing.amg.com:636";
    String keystore = "/Program Files/Java/jre1.5.0_03/lib/security/cacerts";
    System.setProperty("javax.net.ssl.trustStore",keystore);
         env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.SECURITY_AUTHENTICATION,"simple");
    env.put(Context.SECURITY_PRINCIPAL,adminName);
    env.put(Context.SECURITY_CREDENTIALS,adminPassword);
    ERROR :
    Problem searching directory: javax.naming.CommunicationException: simple bind failed: testing.amg.com:636 [Root exception is java.net.SocketException: connection is closed]
    Can any body please help me out how to overcome it.
    waiting
    Bye
    Irshad

  • Problem with Set/Get volume of input device with single channel

    from Symadept <[email protected]>
    to Cocoa Developers <[email protected]>,
    coreaudio-api <[email protected]>
    date Thu, Dec 10, 2009 at 2:45 PM
    subject Problem with Set/Get volume of input device with single channel
    mailed-by gmail.com
    hide details 2:45 PM (2 hours ago)
    Hi,
    I am trying to Set/Get Volume level of Input device which has only single channel but no master channel, then it fails to retrieve the kAudioDevicePropertyPreferredChannelsForStereo and intermittently kAudioDevicePropertyVolumeScalar for each channel. But this works well for Output device.
    So is there any difference in setting/getting the volume of input channels?
    I am pasting the downloadable link to sample.
    http://www.4shared.com/file/169494513/f53ed27/VolumeManagerTest.html
    Thanks in advance.
    Regards
    Mustafa
    Tags: MacOSX, CoreAudio, Objective C.

    That works but the the game will not be in full screen, it will have an empty strip at the bottom.
    I actually found out what's the problem. I traced the stageWidth and stageHeight during resizing event. I found out that when it first resized, the stage width and height were the size with the notification bar. So when I pass the stage into startling, myStarling = new Starling(Game,stage), the stage is in the wrong size. For some reason, I can only get the correct stage width and height after the third resizing event.
    So now I need to restart Starling everytime a resizing event happened. It gives me the right result but I am not sure it is a good idea to do that.
    And thanks a lot for your time kglad~I really appriciate your help.

  • Problem with SET GET parameters

    Hi all,
    I am facing a problem using SET and GET parameters.
    There is a Z transaction(Dialog program) where some fields of screen are having parameter ID's. That transaction is designed to diaplay/change status of only one inspection lot at a time.
    Now I need to call that transaction in a loop using BDC. I mean i need to update the status of multiple inspection lots(one after the other). Before calling the transaction I am using
    SET PARAMETER ID 'QLS' FIELD lv_prueflos.
    Unfortunately the transaction is only changing the first inspection lot. When I debugged I found that the screen field is changing in PAI. Even though in PBO it shows the next value, when it goes to PAI it is automatically changing to the first value(inspection lot).
    Example: Inspection Lots : 4100000234
                                               4100000235
                                              4100000236
    Now first time when the call transaction is being made the status of insp lot 4100000234 is changed. For the second time when insp lot 4100000235 is being passed in PBO ican see this. But the moment it enters PAI the screen field changes to 4100000234.
    Could you pls help me in solving this issue.
    Thanks,
    Aravind

    Hi,
    Problem with SET GET parameters
    Regarding on your query. Follow this below link.
    It will help you.
    Re: Problem with Set parameter ID
    Re: Problem in Set parameter ID
    I Hope it will helps to you.
    Regards,
    Sekhar

  • A problem regarding set up of Oracle Lite 3.6.0.2.0 on Win 95, with JDK 1.1.8 &java 2

    A problem regarding set up of Oracle Lite 3.6.0.2.0 on Win 95, with JDK 1.1.8 and Java 2 SDK ( Ver 1.3 Beta)
    After the installation of Oracle Lite 3.6.0.2.0 on a laptop (with WIN 95 OS), When I run Oracle Lite Designer from start menu, I receive following error message :
    ====================================
    Invalid class name 'FILES\ORA95_2\LITE\DESIGNER\oldes.jar;C:\PROGRAM'
    usage: java [-options] class
    where options include:
    -help print out this message
    -version print out the build version
    -v -verbose turn on verbose mode
    -debug enable remote JAVA debugging
    -noasyncgc don't allow asynchronous garbage collection
    -verbosegc print a message when garbage collection occurs
    -noclassgc disable class garbage collection
    -ss<number> set the maximum native stack size for any thread
    -oss<number> set the maximum Java stack size for any thread
    -ms<number> set the initial Java heap size
    -mx<number> set the maximum Java heap size
    -classpath <directories separated by semicolons>
    list directories in which to look for classes
    -prof[:<file>] output profiling data to .\java.prof or .\<file>
    -verify verify all classes when read in
    -verifyremote verify classes read in over the network [default]
    -noverify do not verify any class
    -nojit disable JIT compiler
    Please make sure that JDK 1.1.4 (or greater) is installed in your machine and CLASSPATH is set properly. JAVA.EXE must be in the PATH.
    ====================================
    My ORACLE_HOME is c:\program files\ora95_2 and Oracle Lite is installed under the ORACLE_HOME in LITE\DESIGNER directory.
    JDK version is 1.1.8 which is greater than 1.1.4 installed in c:\program files\jdk1.1.8, My PATH, and CLASSPATH are set in AUTOEXEC.BAT as follows:
    set CLASSPATH=c:\Progra~1\jdk1.1.8\lib\classes.zip;c:\progra~1\ora95_2\lite\classes\olite36.jar;c:\progra~1\ora95_2\lite\designer\oldes.jar;c:\progra~1\ora95_2\lite\designer\swingall.j ar
    PATH=C:\Progra~1\Ora95_2\bin;.;c:\Progra~1\jdk1.1.8\lib;c:\Progra~1\jdk1.1.8\bin;C:\Progra~1\Ora95_2\lite\Designer;C:\WIN95;C:\WIN95\COMMAND;C:\UTIL
    And, I can run JAVA.EXE from any directory on command prompt.
    With JAVA 2 SDK (ver 1.3 Beta) instead of JDK 1.1.8 I'm getting a different Error message as follows:
    =============================
    java.lang.NoClassFoundError: 'FILES\ORA95_2\LITE\DESIGNER\oldes.jar;C:\PROGRAM'
    Please make sure that JDK 1.1.4 (or greater) is installed in your machine and CLASSPATH is set properly. JAVA.EXE must be in the PATH.
    ==============================
    the PATH and CLASSPATH were set accordingly, as with JDK1.1.8, and there was no classes.zip in classpath
    also the class file or the jar file looks weird or wrapped in the error message : 'FILES\ORA95_2\LITE\DESIGNER\oldes.jar;C:\PROGRAM'
    Another interesting thing I noticed is if I run oldes.exe from Installation CD, the Oracle Lite Designer runs fine, and without error, I'm able to modify tables in the database of my laptop also.
    Could someone shade some light on what am I doing wrong here ?
    Thanks for help in advance .
    Regards
    Viral
    null

    On 07/20/2015 06:35 AM, Itzhak Hovav wrote:
    > hi
    > [snip]
    > [root@p22 eclipse]# cat eclipse.ini -startup
    > plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    > --launcher.library
    > plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
    >
    > -showsplash
    > org.eclipse.platform
    > --launcher.XXMaxPermSize
    > 256m
    > --launcher.defaultAction
    > openFile
    > -vmargs
    > -Xms40m
    > -Xmx512m
    > [snip]
    Try this: http://wiki.eclipse.org/Eclipse.ini. You should have read the
    sticky posts at forum's top for getting started help.

  • IPhone calendar appointments set to local calendar, and need to switch to exchange calendar. Have to edit each appointment one at a time and change to exchange calendar. Is there any method to edit all appoints in my calendar at once?

    iPhone calendar appointments set to local calendar, and need
    to switch to exchange calendar. Have to edit each appointment one at a time and
    change to exchange calendar. Is there any method to edit all appoints in my
    calendar at once and change the calendar setting?

    Not sure this will work but if you go into the Keyboard preferences, then click the Keyboad Shortcuts tab, and then the '+', you can add your own shortcuts for any application.  I am not sure what happens if you try to override an existing shortcut since I haven't tried using this.
    Edit/Update:
    Probably against my better judgement I'll also throw this out there - there's an Unsanity haxie called Menumaster which might also allow you to do what you want.  Against my better judgement because personally I stay clear of haxies.  It's (all haxies) probably almost certain to break in Lion.  They always do with each major release.

  • Button in Bex Analyser 7.0 - problem with setting up Static Parameters

    Hello,
    I know a similar problem has been discussed here already, but I am still having problems with setting up Static Parameters of my Button in BEx Analyser 7.0, so that I can pass Variable values from that button to my query.
    This is what I do - in Static Parameters of my Button I set the following values:
    Name                          Index          Value
    DATA_PROVIDER        0               DP_1
    CMD                             0               PROCESS_VARIABLES
    SUBCMD                      0               VAR_SUBMIT
    VAR_NAME                 0               0RMA_FIP
    VAR_VALUE               0               004/2010
    As a result, I would like the value 004/2010 to be passed to variable 0RMA_FIP (which is mandatory) and the query to be executed with that value. For some reason, however, the value is not passed correctly, and instead the variable is filled with a blank or not filled at all, and I am getting a message "Specifiy value for variable Fiscal year/period". What do I do wrong?
    Just to give you a broader picture - I would like to later use this logic to pass more than one variables into a query, including a hierarchy node, and read the values from an Excel worksheet - however, after many attempts to do so, I started playing with just one variable to figure out what the problem was.
    I have already seen the following two threads and SAP notes on passing variable values from the button:
    Re: Button in BEx Analyzer 7.0
    Re: How to set variables values via VBA.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0881371-78a1-2910-f0b8-af3e184929be?quicklink=index&overridelayout=true
    Can anyone please advise?
    Cheers,
    AL

    I managed to figure it out myself!
    Instead of VAR_VALUE I need to enter VAR_VALUE_EXT, and it works fine.
    I will mark this thread as "answered".

  • Problem in setting participant in business rule

    Hi All,
    I am facing problem while setting the target participant in business rule. I want to route the task to the target participant for the adhoc routing in serial process .It's not taking the value as participant name.
    I have 5 participant for approve d task .But when I am writing
    If PreviousOutcome.outcome=="'REJECT'"
    then
    call GOTO(participant:"CTU")
    as CTU is one of the participant in the process.
    But it gives the error while deploying the application as unknown participant .Please tell me how come I route to different participant as per the condition in serial routing.
    please help me.
    Thanks & Regards
    Aseet

    Multi-post:
    http://forum.java.sun.com/thread.jspa?threadID=727161&tstart=0

  • Problem with setting Source Level in Sun Studio 2

    I've got problem with setting Source Level to 1.5 in Sun Studio 2. When I try to set it to 1.5 in Project properties and click Ok everything seem to go well, but when I open Project Properties again Source Level is set to 1.4. I need this to work cause I started to lear Java recently and I want to use foreach loop.
    Please help

    I'm just citing an example using Date().
    In fact, whether I use DateFormat or Calendar, it shows the same result.
    When I set the date to 1 Jan 1950 0 hours 0 minutes 0 seconds,
    jdk1.4.2 will always return me 1 Jan 1950 0 hours 10 minutes 0 seconds.
    It works correctly under jdk1.3.1

  • Setting up local folders with smart mailboxes?

    I use Mail for my work email, and am constantly going over my quota - Is there any way to set up local folders and use smart mailboxes to automatically move emails from certain people off the server and onto my hard drive? thanks in advance.

    You would not do this with Smart Mailboxes, as they are only the result of a search list, and don't actually cause any message to move. Instead, you would use ordinary Rules to do this, but would have to select all messages every so often, and then command to have the Rules applied, when done after the fact of receiving the message.
    A Smart Mailbox might be a good way to group messages for your consideration, manually, to move to On My Mac mailboxes.
    Ernie

Maybe you are looking for

  • Need info on R12 changes to GME_API_PUB.UPDATE_ACTUAL_RSRC_USAGE

    Can anyone explain why this API was changed in R12 to include 'p_rsrc_txn_rec'? When a production batch is completed any resource transactions with actual usage = 0 are no longer available (same in 11i & R12) Currently in 11i we use this API to updat

  • Oracle 10g and Windows XP home version

    hello, I have a problem downloading Oracle 10g on my labtop... it is always giving me an error saying: Error in writting to directory c:\Docum~1\Locals~\Temp\OraInstall2005-02-26. Please ensure that this directory is writable and has atleast 45MB of

  • Constant declaration and the optimizer

    Assume there is a Plsql package A with a defined constant 'constA' Assume we have an sql query in PLSQL package B that references A.constA. Will the optimizer always give the same plan for the query whether I used the literal constant or the referenc

  • New slide vs. blank slide

    In Captivate 5, what is the difference between choose Insert > New Slide or choosing Insert > Blank Slide?

  • Application Crash On Export

    A simple 10 min. movie with 2 transitions crashes the application when trying to export via quicktime or with choosing size. With both methods it will start saving and show less than an hour to go, then the time increases to about an hour, hangs and