Setting user.timezone in jnlp

I have no success in setting the user.timezone property through the jnlp-file. I have seen a similar experience reported a couple of years ago:
http://forum.java.sun.com/thread.jspa?forumID=38&threadID=431709
Is it doable?
I can't set it in the code, because we are suffering from a timezone/thread-related bug reported (for instance) here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6352812
Right now we are using aspects for the sole purpose of fixing this problem, but apparently that has it problems as well from time to time at the customer site.
Thanks!
/Claes

I think the "user.timezone" is consided as "unsafe" and cannot be set by JNLP; similar complain can be found when setting user.language see: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4683242
In fast there are only six properties considered to be �safe�:
sun.java2d.noddraw
javaws.cfg.jauthenticator
swing.useSystemFontSettings
swing.metalTheme
http.agent
http.keepAlive
See http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/syntax.html

Similar Messages

  • How to set user preferred timezone in OBIEE for all objects.

    How to set user preferred timezone in OBIEE for all objects based on users TZ(may be from @{session.timeZone}). without changing My Account -> Preferences

    Check
    Time Zone Specification from http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm#4535403
    just in case https://blogs.oracle.com/xmlpublisher/entry/how_to_keep_your_dates_from_go

  • Set default timezone for users

    Hello all,
    I am looking a for a way to set the default timezone of a user on the Portal. What needs to be done is to read the user's local time on the pc and set the timezone on the Portal accordingly. Does SAP provide any solution for the same?
    I am aware that this can be achieved through custom development, but would like to check if anyone has faced similar issues before and if there exists a standard solution from SAP that I can implement.
    Thanks,
    Sudha

    Here is the problem though.  Our employees are all over the globe and travel all over the globe.  We use an LDAP as the UME source.  Setting the default time zone via either of those method will blanket apply to all users.  This leaves there UWL items in the wrong time and their KM content in the wrong time, sometimes indicating that something posted just minutes ago was actually posted "Yesterday".
    I think what we need ultimately is a client aware solution.  Perhaps a java program that gets the users client or browser time and updates their time zone in the UME on the fly. 
    Anyone know of such a solution?

  • Calendar shows task always in user-timezone

    Hi,
    First a short introduction in my problem:
    I've implemented a calendar which should view these 3 Tasks:
    - 6.5.2008   00:00 -  6.5.2008 23:59   Task 1 (1 day duration)  in UTC
    - 7.5.2008   00:00 -  8.5.2008 23:59   Task 2 (2 day duration)  in UTC
    - 5.5.2008   00:00 -  9.5.2008 23:59   Task 3 (5 day duration)  in UTC
    The Demo User which logs in has TimeZone "Europe/Berlin". The Calendar has a dropdownbox where the user can select either "Facility" or "My TimeZone":
    In "Facility" the User should see these 3 Tasks in UTC an not in his own timezone (all tasks from 00:00 to 23:59).
    In "my timezone", he should see the 3 Tasks in his TimeZone (Europe/Berlin is UTC+2h at the moment) --> so the tasks are always from 02:00 - 01:59 for him.
    The Problem:
    When the sap.authentification is enabled and a user logs in, the "Facility" never shows me this Tasks in UTC. The Task is always shown in his timezone (02:00 - 01:59). But I have set UTC anywhere.
    In "my timezone", where i load the current user-timezone its shown from 00:00 - 23:59.
    I have absolutely no idea why the context element shows this always in user timezone
    (_context element "timezone" of the Calendar view is bound to my attribute "zeitzone"_)
    Here is the code part - I've debugged already. Everywhere is set UTC, but the Calendar always shows in userTime.
    private void fillCalendar(String zeitstring) //
           deleteEntries();
            // check which mode is selected
            if (zeitstring == "Facility")
                // default should be UTC
                zeitzone = TimeZone.getDefault();
                zeitzone.setID("UTC");
                zeitzone = TimeZone.getTimeZone(zeitzone.getID());
                TimeZone.setDefault(zeitzone);
                // calenderinstanz in UTC
                Calendar calendar = Calendar.getInstance().getInstance(zeitzone);
                CctDate firstVisibleDate = new CctDate(new java.sql.Date(calendar.getTimeInMillis()));
                Time myTime = Time.valueOf("00:00:00");
                CctTime firstVisibleTime = new CctTime(myTime);
                // determine the startdate and starttime for the calendar
                wdContext.currentContextElement().setFirstVisibleDate(firstVisibleDate);
                wdContext.currentContextElement().setFirstVisibleTime(firstVisibleTime);
                TimeZone tz = TimeZone.getDefault();
                IECCalendarInterface calendarInterface = new ExampleCalendarEntrySupplier();
                List calendarEntries = calendarInterface.getCalendarEntries();
                int i = 0;
                zeitzone = TimeZone.getDefault();
                for (Iterator iterator = calendarEntries.iterator(); iterator.hasNext();)
                    ECCalendarEntry entry = (ECCalendarEntry) iterator.next();
                    CctCode timeZoneCode = new CctCode(tz.getDisplayName(), null, null, null, null, null);
                    CctDateTime startDate = new CctDateTime(entry.getMStartDate(), timeZoneCode, new Boolean("false"));
                    CctDateTime endDate = new CctDateTime(entry.getMEndDate(), timeZoneCode, new Boolean("false"));
                    i++;
                    zeitzone = TimeZone.getDefault();
                    createEntry(startDate, endDate, entry.getMTitle(), entry.getMDescription(), WDTableCellDesign.valueOf(i));
            else if (zeitstring == "My TimeZone")
                ISessionContext context = SessionContextFactory.create();
                zeitzone = context.getCurrentUser().getTimeZone();
                TimeZone.setDefault(zeitzone);
                Calendar calendar = Calendar.getInstance().getInstance(zeitzone);
                CctDate firstVisibleDate = new CctDate(new java.sql.Date(calendar.getTimeInMillis()));
                Time myTime = Time.valueOf("00:00:00");
                CctTime firstVisibleTime = new CctTime(myTime);
                // determine the startdate and starttime for the calendar
                wdContext.currentContextElement().setFirstVisibleDate(firstVisibleDate);
                wdContext.currentContextElement().setFirstVisibleTime(firstVisibleTime);
                TimeZone tz = TimeZone.getDefault();
                IECCalendarInterface calendarInterface = new ExampleCalendarEntrySupplier();
                List calendarEntries = calendarInterface.getCalendarEntries();
                deleteEntries();
                int i = 0;
                for (Iterator iterator = calendarEntries.iterator(); iterator.hasNext();)
                    ECCalendarEntry entry = (ECCalendarEntry) iterator.next();
                    CctCode timeZoneCode1 = new CctCode(tz.getDisplayName(), null, null, null, null, null);
                    CctDateTime startDate = new CctDateTime(entry.getMStartDate(), timeZoneCode1, new Boolean("false"));
                    CctDateTime endDate = new CctDateTime(entry.getMEndDate(), timeZoneCode1, new Boolean("false"));
                    i++;
                    createEntry(startDate, endDate, entry.getMTitle(), entry.getMDescription(), WDTableCellDesign.valueOf(i));
    Thank you,
    Daniel
    Update:
    I've tried to fix the problem nearly the whole day.
    I've debugged the fillCalendar()-Method while inserting the first Task:
    - Default Timezone is "UTC"!
    - zeitzone.ID and tz.ID are always set on "UTC"
    - timeZoneCode is "Koordinierte Universalzeit null null null null null" (koordinierte Universalzeit is German for UTC )
    - startDate : "06.05.2008 00:00:00 Koordinierte Universalzeit false"
    - endDate: "06.05.2008 23:59:00 Koordinierte Universalzeit false"
    - calendar.zone.ID is set to "UTC"
    ---> The Calendar shows the task from 06.05.2008  02:00 to 07.05.2008  01.59
    Somewhere must stand my timezone and the calendar refuses to display the view in UTC!!! But where?
    Edited by: Daniel Mler on May 8, 2008 3:31 PM

    Hi Frank,
    Thanks for your reply.
    You can now look only at the code in the first IF-Condition: (Facility)
    I've just tried to replace "UTC" with "CST"... in debugger he calculates me the new times:
    startDate: 13.05.2008 05:00:00 Zentrale Normalzeit false
    endDate: 14.05.2008 04:59:00 Zentrale Normalzeit false  It works...
    The problem is only that the calendar contextelement doesn't set this new time now. It creates the task from 7:00 to 6:59 .... 2 hours later.
    These 2 hours are the difference from myTimeZone (the user i logged in: Europe/Berlin = UTC+2h) to UTC.
    So I want that the default timezone of the calender is UTC and not the timezone from the logged in user.
    But I can't logon without user (then it works!) because I need the User for another functionality (myTimeZone)

  • Design advice for setting users default time

    I have an application that in a number of different places requires that records when being updated or created are shown to default to the user's current date. Depending on the location of the user, this could be a different day than where the server is.
    All of the relevant fields in the database tables are using a datatype of "TIMESTAMP WITH TIMEZONE". When a users account is initially created, the timezone that the user is in is saved. When the user logs on, an "alter session set time_zone" command runs on the database to change the time zone of the current session.
    When a user updates or creates a record and one of the field(s) requires to display the current date of the user, I call a ViewObject which runs a query to "select current_timestamp from dual" to return the current date from the database and populate the field with this.
    I've realised that I'm creating a considerable overhead as this view object may be queried dozens of times during a users session and was thinking of running it once when the user logs on and storing the "USER_DATE" as a session variable - then I can simply refer to this each time, instead of many round-trips off to the database. Obviously there is a risk if the user logs on just before midnight and stays on until after that the date will be incorrect but this is extremely unlikely as the application is only used during normal business hours up to 9pm as an exception
    Am I heading down the right track here or doing something daft (and missing something far more simple that I should be doing !)
    Cheers,
    Brent

    Hi Frank,
    Thanks for that - after 8 years of working with Oracle Forms and afterwards the same again with ADF, I still find it hard sometimes when using ADF to understand the best approach to a particular problem - there is so many different ways of doing things/where to put the code/how to call it etc... ! Things seemed so much simplier back in the Forms days !
    Chandra - thanks for the information but this doesn't suit my requirements - I originally went down that path thinking/expecting it to be the holy grail but ran into all sorts of problems as it means that the dates are always being converted into users timezone regardless of whether or not they are creating the transaction or viewing an earlier one. I need the correct "date" to be stored in the database when a user creates/updates a record (for example in California) and this needs to be preserved for other users in different timezones. For example, when a management user in London views that record, the date has got to remain the date that the user entered, and not what the date was in London at the time (eg user entered 14th Feb (23:00) - when London user views it, it must still say 14th Feb even though it was the 15th in London at the time). Global settings like you are using in the adf-config file made this difficult. This is why I went back to stripping all timezone settings back out of the ADF application and relied on database session timezones instead - and when displaying a default date to the user, use the timestamp from the database to ensure the users "date" is displayed.
    Cheers,
    Brent

  • Access denied ("java.util.PropertyPermission" "user.timezone" "write") [WINDOWS 7 64bit]

    Hello,
    we got on several computers the error message
    access denied (java.util.PropertyPermission" "user.timezone" "write")
    when we try to open an internal website. Until today everything worked fine.
    An update on Java for windows 7 64, Version 7 Update 45 didnt solve the problem.
    I tried to set the Java security permissions in the control panel to middle but it also didnt work after this change.
    We also got this problem on another computer when we try to open an external site which also use Java.
    Did anyone have an idea how to fix this problem?

    Hi Guys.
    I solved the problem adding a rule in the following file
    $JAVA_HOME\lib\security\java.policy
    grant {
        permission java.util.PropertyPermission "user.timezone", "write";
    After I killed the java process and restarted. The problem dissapeared

  • OBIEE11g: Set user privileges to  Open RPD in Read Only mode.

    Hi All,
    Can some one help me , how to set user privileges to open RPD in read only mode.
    1) If a user ( xxxx) logs into the RPD then the rpd should open in Read Only Mode for xxxx user.
    2) If other user (YYYY) logs in online mode then it should open in online mode for other user (YYYY).
    How to set the security to achieve this.

    863866 wrote:
    Hi All,
    Can some one help me , how to set user privileges to open RPD in read only mode.
    1) If a user ( xxxx) logs into the RPD then the rpd should open in Read Only Mode for xxxx user.
    2) If other user (YYYY) logs in online mode then it should open in online mode for other user (YYYY).
    How to set the security to achieve this.Hi,
    I don't think it's possible, can go with metadata dictionary option which is also help to analysis RPD.
    refer section,
    http://docs.oracle.com/cd/E23943_01/bi.1111/e10540/utilitiesexprbldr.htm#BIEMG325
    Thanks
    Deva

  • How to set the timezone in a DATE datetype?

    How to set the timezone in a DATE datetype?
    Thanks
    Maximus

    10.5 Date, Time, and Timestamp
    The JDBC API follows the Java platform's approach of representing dates and times as a millisecond value relative to January 1, 1970 00:00:00 GMT. Since most databases don't support the notion of a time zone, the JDBC 2.0 API adds new methods to allow a JDBC driver to get/set Date, Time, and Timestamp values for a particular time zone using a Calendar. For example,
    ResultSet rs;
    Date date1 = rs.getDate(1);
    returns a Date object that wraps a millisecond value which denotes a particular date, like January 3, 1999, and a normalized time 00:00:00 in the default time zone. The time component of the Date is set to zero in the default time zone since SQL DATE values don't have a time component. Since a Calendar was not supplied explicitly to getDate() , the default time zone (really the default Calendar) is used by the JDBC driver internally to create the appropriate millisecond value assuming that the underlying database doesn't store time zone information.
    The following example retrieves a date value in GMT-Greenwich Mean Time.
    ResultSet rs;
    TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
    Calendar cal = Calendar.getInstance();
    Date date2 = rs.getDate(1, cal);
    In the example above, a Calendar is passed explicitly to getDate() to inform the JDBC driver how to calculate the appropriate millisecond value. Note that the same result could have been achieved by simply changing the default time zone, and not passing the Calendar explicitly since the JDBC driver will use the default time zone by default.
    Note that the two Date objects created above will not compare as equal assuming that the default time zone is not GMT, even if they represent the `same' date.
    if (date1.equals(date2))
    //never get here
    This is because each Java language Date object really just wraps a normalized millisecond time value and these millisecond values will differ across time zones. If an application wishes to compare dates in different time zones it should first convert them to a Calendar.
    An application should create a Date object using a Calendar. The application is responsible for specifying the time as 00:00:00 on the desired date when using the Calendar since JDBC uses this convention. In addition when creating a Time value the application must specify a date of January 1, 1970 to the Calendar used to create the millisecond value for the Time as this is the convention specified by JDBC for time.
    Above from:
    http://java.sun.com/products//jdk/1.2/docs/guide/jdbc/spec2/jdbc2.0.frame10.html
    I hope it can help you!

  • How to set user quotas on a certain filesystem

    Hi
    It may be simple and easy question but I'm really new to this
    I need to know how to set user quotas on a certain file system in details
    I know it can be done easily in one step in Solaris ZFS
    but how is it done in Linux ?
    Thanks in Advance :)

    See also:
    How to set user quotas on a certain filesystem

  • How to set user command in module pool program

    hello expert,
    like in report: PARAMETERS: RB_SING RADIOBUTTON GROUP RAD3 DEFAULT 'X' USER-COMMAND C1.
    in module pool program, hw to set user-command in screen.
    srinivas

    PBO.
    Call subscreen <SUBSCREEN NAME> Including sy-repid(PROGRAM NAME) G_DYNNR(SCREEN NUMBER'.
    PAI
    module user_command.
    Call subscreen <subscreen name>
    Module user_command.
    case sy-ucomm.
    when 'BUT1'.
    g_dynnr = 200.
    when 'BUT2'.
    g_dynnr = 300.
    Endcase.
    end module
    REPORT demo_dynpro_tabstrip_server.
    CONTROLS mytabstrip TYPE TABSTRIP.
    DATA: ok_code TYPE sy-ucomm,
    save_ok TYPE sy-ucomm.
    DATA number TYPE sy-dynnr.
    mytabstrip-activetab = 'PUSH2'.
    number = '0120'.
    CALL SCREEN 100.
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'SCREEN_100'.
    ENDMODULE.
    MODULE cancel INPUT.
    LEAVE PROGRAM.
    ENDMODULE.
    MODULE user_command INPUT.
    save_ok = ok_code.
    CLEAR ok_code.
    IF save_ok = 'OK'.
    MESSAGE i888(sabapdocu) WITH 'MYTABSTRIP-ACTIVETAB ='
    mytabstrip-activetab.
    ELSE.
    mytabstrip-activetab = save_ok.
    CASE save_ok.
    WHEN 'PUSH1'.
    number = '0110'.
    WHEN 'PUSH2'.
    number = '0120'.
    WHEN 'PUSH3'.
    number = '0130'.
    ENDCASE.
    ENDIF.
    ENDMODULE.
    flow logic of the screen 100
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    CALL SUBSCREEN SUB INCLUDING SY-REPID NUMBER.
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    CALL SUBSCREEN SUB.
    MODULE USER_COMMAND.
    flow logic of the screen 110
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
    flow logic of the screen 120
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
    flow logic of the screen 130
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
    REGARDS
    VASU

  • How to set user friendly URL in ApEx with OHS 11g ?

    Hi,
    How to set user friendly URL in ApEx with OHS 11g ?
    I want change the link http://190.148.xxx.xxx:8080/pls/apex to something like http://xxx.com.
    I dont want to use iFrame solution. Please suggest any other method to acheive the same.
    Thanks & Regards,
    Ranu

    Hi all
    Iam using apex 4.0 -oracle 11g with OHS on linux os
    I need to change my apex url http://x.x.x.x:xxxx/apex to http://x.com
    What are the settings i need to do.
    If any one knows please share the solution with me
    Thanks & In advance

  • Viewlink between Custom VO "Cannot set user query to view"

    We have an application where we have extended custom VO and EO’s to get data from flat files. It all looks fine till we create a viewlink for a LOV with two related VO’s. The viewlink VO fails we get message of the form -Cannot set user query to view "CustomVO1" because it is a destination in a view link”. Are there any methods to override in the custom VO/EO or any parameter to be added to configs. Has someone tried this out

    Thanks for the update and for sharing the solution!
    Regards,
    Hussein

  • Set User preferences in oracle portal’s database in portal environment

    Hi All,
    I need to set User preferences in oracle portal’s database in portal environment.
    I need to get some oracle PL/SQL API for the said purpose.
    In user preferences I need to save Preference name and preference value.
    Can any one have idea?
    Regards
    Amit Tiwari

    http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/index.html
    and http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/wwpre_api_name.html
    Patrick.

  • Setting user status using actions in business activity

    Hi
    I have defined a new action profile. In that I have defined a new action using which I want to set user status to overdue. I have also defined a new user status "overdue".
    Now I want to set user status to overdue. For that we have defined new badi implementation also, but it is not able to change the status.
    Please tell me what all steps I need to do, to make it work.
    Thanx in advance.
    Cheers
    Hitesh

    Hi Hitesh,
    Check whether processing parameters are given correctly
    It should be given as below
    Element  : PROCESS
    Name     : PROCESS
    Type Name : CRM_J_STATUS
    Initial value  : OPEN      (here you can give the one you want )
    Let me know if you have any issues.
    Reward points if it helps.
    Regards,
    Madhu

  • Set user Defined Status in the Shopping Cart

    Hello,
    I am facing problem while Setting user defined Status in the shopping cart. Below are the steps which I have followed.
    1. I have created Status profile via Transaction 'BS02' and also created the Status 'On Hold' with Status number 'Exxxxx'.
    2. Entry of this external status is also created in the table TJ30.
    3. Also I tried assigning this Status profile in Transaction type for "BUS2121".
    After making the above configuration for the new User defined status I have used below function module in my program.
    I am using FM "CRM_STATUS_CHANGE_EXTERN" to set the User defined status in the shopping cart.
      CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN'
        EXPORTING
          objnr                    = ls_header-guid
          user_status          = lv_stat
        IMPORTING
          stonr                    = lv_stonr
    After this FM I am also using "COMMIT WORK AND WAIT ".
    But still my Status is not updated in the Shopping Cart.
    Expert please suggest if some one has work in this scenario.
    Best Regards,
    Chirag Shah

    Hi Chirag,
    try to initialize Status schema before update.
    CALL FUNCTION 'CRM_STATUS_OBJECT_CREATE'
         EXPORTING
           objnr                        = ls_header-guid
           obtyp                        = 'SCH'
           stsma                        = 'ZHOLD'
         EXCEPTIONS
           obtyp_invalid                = 1
           status_object_already_exists = 2
           stsma_invalid                = 3
           stsma_obtyp_invalid          = 4
           error_ocurred                = 5
           OTHERS                       = 6.
    Regards
    K

Maybe you are looking for