Warning while using session value

while i include this section of code in my servlet
HttpSession session=req.getSession(true);
session.putValue("login",login);
i get the following warning
putValue(java.lang.String,java.lang.Object) in javax.servlet.http.HttpSession has been deprecated
session.putValue("login",login);
^
can anyone help me and explain why is this warning and how can i get through this
thank you for ur time

Use session.setAttribute(name, value) instead of putValue(name, value);
session.getValue() & putValue() hasve been replaced by getAttribute() and setAttribute(). the parameters are same.
Regards ,
Karan

Similar Messages

  • Cant able to get the output while using session scope

    Hi
    I am using jdeveloper 11.1.1.5
    As i posted in the previous post i had made some changes still i am not getting proper output
    These are steps that i had followed for developing login page
    1.I had created a TaskFlow in adfc-config.xml such that if the login is success it navigates to the other page pls verfiy the link
    http://www.4shared.com/photo/5PNrf1hd/E028_2.html
    2.I had also changed the scope to session in adfc-config.xml
    http://www.4shared.com/photo/HtVVOw_B/E029.html
    3.This was my Welcome.jspx code
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" binding="#{sessionScope.backing_welcome.d1}">
          <af:form id="f1" binding="#{sessionScope.backing_welcome.f1}">
            <af:inputText label="UserName" binding="#{backing_welcome.it1}"
                          id="it1" value="#{sessionScope.backing_welcome.auser}"/>
            <af:inputText label="Password" binding="#{backing_welcome.it2}"
                          id="it2"
                          value="#{sessionScope.backing_welcome.apassword}"/>
            <af:commandButton text="Login"
                              binding="#{backing_welcome.cb1}" id="cb1"
                              action="#{backing_welcome.cb9_action}"/>
          </af:form>
        </af:document>
      </f:view>
      <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_welcome-->
    </jsp:root>3.This was my welcome.java backing bean for welcome.jspx page
        public String getAuser() {
            return auser;
        public void setApassword(String apassword) {
            this.apassword = apassword;
        public String getApassword() {
            return apassword;
        public String cb9_action() {
            String returnStr="error";
            System.out.println("Inside loginBtn_action");
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("checkLoginCredentials1");
            operationBinding.getParamsMap().put("p_user", auser);
            operationBinding.getParamsMap().put("p_pwd", apassword);
        operationBinding.execute();
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            returnStr= "success";
        System.out.println("returnStr= " + returnStr);
               return returnStr;
        }While i run my program no output is displayed!! No logs also been recorded!!
    Could any body pls help me!!

    thank you jhon!
    If i am not using any binding i m getting error as
    javax.el.PropertyNotFoundException: Target Unreachable, 'backing_welcome' returned nullI had used this jspx code
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" >
          <af:form id="f1" >
            <af:inputText label="UserName"
                          id="it1" value="#{sessionScope.backing_welcome.auser}"/>
            <af:inputText label="Password"
                          id="it2"
                          value="#{sessionScope.backing_welcome.apassword}"/>
            <af:commandButton text="Login"
                               id="cb1"
                              action="#{sessionScope.backing_welcome.cb9_action}"/>
          </af:form>
        </af:document>
      </f:view>
      <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_welcome-->
    </jsp:root>Give me some guide how to use session scope!! Since i read all the documents i m not getting any proper output

  • Spreadsheet from Iframe in APEX 4.1 not using session values

    We recently upgrade to Apex 4.1 and now the spreadsheet option within an iframe is not using the session values to limit the records downloaded into the spreadsheet. This only happens with Internet Explorer running running under windows 7. I don't have control to change anything on the webserrver where the Apex Iframe is running. Is there any option within APEX that can be set so that the spreadsheet will only contain what is displayed on the form versus all the records. The spreadsheet download ignores any criteria that was applied the the report on the same page.
    Thanks,
    Nancy

    Hi Dan,
    thank you for your answer. I have the solution now from Kleber_M, this works.
    Dan McGhan wrote:
    1. Use bind variables in my query. It would look something like:
    SELECT *
    FROM region
    WHERE region LIKE '%'|| :P3_REGION ||'%'
    AND country LIKE '%'|| :P3_COUNTRY ||'%'
    AND city LIKE '%'|| :P3_CITY ||'%'
    This was only a mistake when writing the post, i forgot the colon. I use bind variables of course.
    2. Make sure you have a comma separated list of item names that the report depends on beneath the SQL Query where it says Page Items to Submit. This will make sure that the value of those items on the page are bound into session state prior to the query executing.I tried this, too, but without success...
    3. Use Dynamic Actions to perform the refresh action when any of the three items changes. This would be both more performant and a better experience for the end user than a full page refresh.How can i do this. This sounds good, because when refreshing the page often some items oder actions are done that i don´t want to.
    Regards,
    Matze

  • Error while using session.processSendNotification() in PAPI code

    Hi,
    I am writing a PAPI code inside my web-service..
    When I use session.processCreateInstance() in my code and run it, it creates an instance in the process.
    But when I use session.processSendNotification() to invoke my Wait activity it gives me a communication error...
    Here is the error:-
    12:00:24,336 ERROR [STDERR] ProcessService is not being created. An instance of ProcessService 'SampleProject2' was already found.
    12:00:24,445 INFO [STDOUT] Could not connect to Directory Service
    12:00:24,445 ERROR [STDERR] fuego.papi.CommunicationException: A communication error occurred. Try again.
    Why is this error? Any idea?
    I have created my instance in my process using Global Creation and have deployed my web-service on JBOSS...

    Hi,
    Sorry I got a little lost.
    When I use session.processCreateInstance() in my code and run it, it creates an instance in the process.but later you said
    I have created my instance in my process using Global Creation... Know you know this, but are you closing the ProcessService and the ProcessServiceSession when you are done with them?
    If this is the case, it sounds like you were successful in connecting to the Directory Service and creating a session for PAPI (since you created an instance) and were not successful connecting to the Directory Service or creating the session when you make the send notification method call. Just a guess, don't know what your code looks like, but have you tried sending the notification immediately after creating the instance? I know this is not what you want to do, but it would test your send notification logic. If this works, figure out how you are connecting to the session differently in the two blocks of code.

  • Error while using session xsd format

    Hi,
    I am new to toplink. I am trying to use the session.xml as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink-sessions version="11g Release 1 (11.1.1.0.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>default1</name>
    <server-platform xsi:type="oc4j-1013-platform"/>
    <event-listener-classes/>
    <primary-project xsi:type="xml"/>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <user-name>user</user-name>
    <password>A65D5C33FF49656730F827DEDE41ACDE647A7A01F9C16C7D</password>
    <sequencing>
    <default-sequence xsi:type="table-sequence">
    <name>Default</name>
    </default-sequence>
    </sequencing>
    <driver-class>oracle.jdbc.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@sta:5521:changes</connection-url>
    <bind-all-parameters>true</bind-all-parameters>
    </login>
    <connection-pools>
    <read-connection-pool>
    <name>ReadConnectionPool</name>
    </read-connection-pool>
    <write-connection-pool>
    <name>default</name>
    </write-connection-pool>
    </connection-pools>
    <connection-policy/>
    </session>
    </toplink-sessions>
    when I acquire the unit of work etc, things are fine. But somehow the client session is giving the error as follows
    Database: Oracle Version: Oracle Database 11g Enterprise Edition Release 11.1.0.2.0 - Beta
    With the Partitioning and Data Mining options
         Driver: Oracle JDBC driver Version: 11.1.0.0.0-Alpha
    [TopLink Finest]: 2007.06.14 01:59:06.341--ServerSession(26200506)--Thread(Thread[main,5,main])--sequencing connected, state is Preallocation_Transaction_NoAccessor_State
    [TopLink Finest]: 2007.06.14 01:59:06.341--ServerSession(26200506)--Thread(Thread[main,5,main])--sequence CONTEXT_SEQ: preallocation size 50
    [TopLink Finest]: 2007.06.14 01:59:06.341--ServerSession(26200506)--Thread(Thread[main,5,main])--sequence ORCHFAILEDEVENT_SEQ: preallocation size 50
    [TopLink Finest]: 2007.06.14 01:59:06.341--ServerSession(26200506)--Thread(Thread[main,5,main])--sequence ORCHEVENT_SEQ: preallocation size 50
    [TopLink Finest]: 2007.06.14 01:59:06.372--ServerSession(26200506)--Thread(Thread[main,5,main])--sequence CONTEXTVAL_SEQ: preallocation size 50
    [TopLink Finest]: 2007.06.14 01:59:06.372--ServerSession(26200506)--Thread(Thread[main,5,main])--sequence ORCHPROCESS_SEQ: preallocation size 50
    [TopLink Info]: 2007.06.14 01:59:06.372--ServerSession(26200506)--Thread(Thread[main,5,main])--default login successful
    [TopLink Finer]: 2007.06.14 01:59:06.372--ServerSession(26200506)--Thread(Thread[main,5,main])--client acquired
    [TopLink Finer]: 2007.06.14 01:59:06.372--ClientSession(28117308)--Thread(Thread[main,5,main])--acquire unit of work: 18518800
    [TopLink Finest]: 2007.06.14 01:59:06.981--UnitOfWork(18518800)--Thread(Thread[main,5,main])--Register the new object oracle.iam.platform.context.dao.Context@4c94e5
    [TopLink Finer]: 2007.06.14 01:59:06.981--UnitOfWork(18518800)--Thread(Thread[main,5,main])--begin unit of work commit
    [TopLink Finer]: 2007.06.14 01:59:06.981--ClientSession(28117308)--Connection(18012078)--Thread(Thread[main,5,main])--begin transaction
    [TopLink Finest]: 2007.06.14 01:59:06.981--ClientSession(28117308)--Thread(Thread[main,5,main])--Execute query DataModifyQuery()
    [TopLink Fine]: 2007.06.14 01:59:06.981--ClientSession(28117308)--Connection(18012078)--Thread(Thread[main,5,main])--UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + ? WHERE SEQ_NAME = ?
         bind => [50, CONTEXT_SEQ]
    [TopLink Warning]: 2007.06.14 01:59:07.778--ClientSession(28117308)--Thread(Thread[main,5,main])--Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 070411)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    Call:UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + ? WHERE SEQ_NAME = ?
         bind => [50, CONTEXT_SEQ]
    Query:DataModifyQuery()
    The databse is up and running since same works if I use the DTD format for sessions.xml.
    Is there something wrong with the table qualifier that I am using? Also what kind of login information should I specify in the map file? It would be great if somebody could tell me whats wrong/ point me to the correct info/docs.

    You are getting an error stating the table "SEQUENCE" does not exist. From the log, it shows you are registering a new object, and this object is set to use table sequencing, which requires a Sequence table in the database.
    http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/prjdaun007.htm
    has information on different types of sequencing available in TopLink.
    Best Regards,
    Chris

  • ClassCastException while using session bean in OC4J

    I am facing the same problem while deploying a stateless session bean in Oracle 9i AS 1.0.2.2.1. The details are given below.
    The following code snippet is used in the client to prepare for the lookup:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    //the following line can also have the actual machine name instead of "localhost"
    env.put(Context.PROVIDER_URL, "ormi://localhost:23893/myejbs");
    Context ctx = new InitialContext(env);
    System.out.println("Getting Home....");
    Object obj=ctx.lookup("Grouping");
    System.out.println("Home Object Is : "+obj);
    GroupingHome groupingHome = (GroupingHome)obj;
    System.out.println("Got Home");
    Grouping grouping = groupingHome.create( );
    graphs=grouping.<mehtods>();
    I've edited the config/server.xml file to have the following line:
    <application name="myejbs" path="C:\oracle\ora102\j2ee\home\applications\classes\myejbs" auto-start="true" />
    which points to the directory where the class files reside
    I've also change the port in the config/rmi.xml file to 23893.
    Now... the problem that I am facing is - while I am running a client from outside the server JVM i.e standalone client... which uses the Grouping interfaces, it works fine. giving me the desired result. But the moment I place the code in a service client deployed in the server or a jsp, I get a ClassCastException for GroupingHome whereas the SOP that I have given after lookup shows that I have found - "Grouping EJBHome". The funny thisng is that bith the working client and the JSP are using sme set of interface class files - Grouping.class (Remote) and GroupingHome.class.
    Where am I going wrong?? If anybody knows, or Giri has found an answer to his query... please post a reply.
    Thanks.
    PS: I've tried new InitialContext(); solution but it didn't work. I have also narrowed the home object with javax.rmi.PortableRemoteObject.narrow(obj,GroupingHome.class) but to no avail :(.

    Hi Gauarv,
    Did you not see my reply in the following post?
    Re: 502 service temporarily unavailable
    If I'm not mistaken, this is exactly the same question as you asked
    there.
    By the way, is there some reason you are still using OC4J version
    1.0.2.2? Is there something stopping you from upgrading to the later
    versions (9.0.2 and 9.0.3)?
    Good Luck,
    Avi.

  • Problem when trying to rename uploaded images using session value

    Hi,
    I have a form where 9 images are uploaded made into thumb nail size and then stored in a file. What I´m trying to do is rename those thumbnails from their original name to username_0, username_1, username_2 etc for each of the 9 thumbs. The username comes from the registration form on the same page. I have created a session variable for the username and am trying to use that to change to name of the image name, whilst my images are uploading and resizing the name stays as the original and not as the new username_$number. I have pasted relevant code below and would very much appreciate any help with this:
    <?php session_start();
    // check that form has been submitted and that name is not empty and has no errors
    if ($_POST && !empty($_POST['directusername'])) {
    // set session variable
    $_SESSION['directusername'] = $_POST['directusername'];
    // define a constant for the maximum upload size
    define ('MAX_FILE_SIZE', 5120000); 
    if (array_key_exists('upload', $_POST)) {
    // define constant for upload folder
    define('UPLOAD_DIR', 'J:/xampp/htdocs/propertypages/uploads/');
    // convert the maximum size to KB
    $max = number_format(MAX_FILE_SIZE/1024, 1).'KB';
    // create an array of permitted MIME types
    $permitted = array('image/gif','image/jpeg','image/pjpeg','image/png');
    foreach ($_FILES['photo']['name'] as $number => $file) {
    // replace any spaces in the filename with underscores
    $file = str_replace(' ', '_', $file);
    // begin by assuming the file is unacceptable
    $sizeOK = false;
    $typeOK = false;
    // check that file is within the permitted size
    if ($_FILES['photo']['size'] [$number] > 0 && $_FILES['photo']['size'] [$number] <= MAX_FILE_SIZE) {
    $sizeOK = true;
    // check that file is of a permitted MIME type
    foreach ($permitted as $type) {
    if ($type == $_FILES['photo']['type'] [$number]) {
    $typeOK = true;
    break;
    if ($sizeOK && $typeOK) {
    switch($_FILES['photo']['error'] [$number]) {
    case 0:
    include('Includes/create_thumbs.inc.php');
    break;
    case 3:
    $result[] = "Error uploading $file. Please try again.";
    default:
    $result[] = "System error uploading $file. Please contact us for further assistance.";
    elseif ($_FILES['photo']['error'] [$number] == 4) {
    $result[] = 'No file selected';
    else {
    $result[] = "$file cannot be uploaded. Maximum size: $max. Acceptable file types: gif, jpg, png.";
    ................CODE BELOW IS THE INCLUDES FILE THAT MAKES AND TRIES TO RENAME THE THUMBS................................................
    <?php
    // define constants
    define('THUMBS_DIR', 'J:/xampp/htdocs/propertypages/uploads/thumbs/');
    define('MAX_WIDTH_THB', 75);
    define('MAX_HEIGHT_THB', 75);
    set_time_limit(600);
    // process the uploaded image
    if (is_uploaded_file($_FILES['photo']['tmp_name'][$number] )) {
    $original = $_FILES['photo']['tmp_name'][$number] ;
    // begin by getting the details of the original
    list($width, $height, $type) = getimagesize($original);
    // check that original image is big enough
    if ($width < 270 || $height < 270) {
    $result[] = 'Image dimensions are too small, a minimum image of 270 by 270 is required';
    else { // crop image to a square before resizing to thumb
    if ($width > $height) {
    $x = ceil(($width - $height) / 2);
    $width = $height;
    $y = 0;
    else if($height > $width) {
    $y = ceil(($height - $width) / 2);
    $height = $width;
    $x = 0;
    // calculate the scaling ratio
    if ($width <= MAX_WIDTH_THB && $height <= MAX_HEIGHT_THB) {
    $ratio = 1;
    elseif ($width > $height) {
    $ratio = MAX_WIDTH_THB/$width;
    else {
    $ratio = MAX_HEIGHT_THB/$height;
    if (isset($_SESSION['directusername'])) {
    $username = $_SESSION['directusername'];
    // strip the extension off the image filename
    $imagetypes = array('/\.gif$/', '/\.jpg$/', '/\.jpeg$/', '/\.png$/');
    $name = preg_replace($imagetypes, '', basename($_FILES['photo']['name'][$number]));
    // change the images names to the user name _ the photo number
    $newname = str_replace ('name', '$username_$number', $name);
    // create an image resource for the original
    switch($type) {
    case 1:
    $source = @ imagecreatefromgif($original);
    if (!$source) {
    $result = 'Cannot process GIF files. Please use JPEG or PNG.';
    break;
    case 2:
    $source = imagecreatefromjpeg($original);
    break;
    case 3:
    $source = imagecreatefrompng($original);
    break;
    default:
    $source = NULL;
    $result = 'Cannot identify file type.';
    // make sure the image resource is OK
    if (!$source) {
    $result = 'Problem uploading image, please try again or contact us for further assistance';
    else {
    // calculate the dimensions of the thumbnail
    $thumb_width = round($width * $ratio);
    $thumb_height = round($height * $ratio);
    // create an image resource for the thumbnail
    $thumb = imagecreatetruecolor($thumb_width, $thumb_height);
    // create the resized copy
    imagecopyresampled($thumb, $source, 0, 0, $x, $y, $thumb_width, $thumb_height, $width, $height);
    // save the resized copy
    switch($type) {
    case 1:
    if (function_exists('imagegif'))  {
    $success[] = imagegif($thumb, THUMBS_DIR.$newname.'.gif');
    $photoname = $newname.'.gif';
    else {
    $success[] = imagejpeg($thumb, THUMBS_DIR.$newname.'.jpg',50);
    $photoname = $newname.'.jpg';
    break;
    case 2:
    $success[] = imagejpeg($thumb, THUMBS_DIR.$newname.'.jpg', 100);
    $photoname = $newname.'.jpg';
    break;
    case 3:
    $success[] = imagepng($thumb, THUMBS_DIR.$newname.'.png');
    $photoname = $newname.'.png';
    if ($success) {
    $result[] = "Upload sucessful";
    else {
    $result[] = 'Problem uploading image, please try again or contact us for further assistance';
    // remove the image resources from memory
    imagedestroy($source);
    imagedestroy($thumb);
    ?>
    I hope i´ve supplied enough information and look forward to receiving any help or advise in this matter.

    Use double quotes here:
    $newname = str_replace ('name', '$username_$number', $name);
    Change it to this:
    $newname = str_replace ('name', "$username_$number", $name);

  • BEA-280101 warning while using Weblogic 10.3.3 on SPARC 64bit sun jvm

    Hi all:
    I got this warning when start Weblogic 10.3.3 on SPARC 64bit sun jvm
    <BEA-280101> <The persistent file store "_WLS_xxxdomain" is forced to use buffered I/O and so may have significantly degraded performance. Either the OS/hardware environment does not support the chosen write policy or the native wlfileio library is missing. See store open log messages for the requested and final write policies. See the documentation on store synchronous write policy configuration for advice.>
    I have checked that Native I/O is enabled,but it seems JMS can't find correct .so file
    Any idea? Thanks in advance!
    Best regards,
    James

    We are also getting the same error on a Linux 10.3.3 installation with 64bit jrockit
    Red Hat Enterprise Linux Server release 5.5
    Linux 2.6.18-194.3.1.el5 #1 SMP x86_64 x86_64 x86_64 GNU/Linux
    Is that the correct driver? This is a default weblogic installation, what is missing so it uses the correct I/O method?
    ####<Jun 22, 2010 6:04:12 PM CEST> <Info> <Store> <server> <wlserver> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <12772226524
    27> <BEA-280008> <Opening the persistent file store "_WLS_admdominio1" for recovery: directory=/weblogic103/user_projects/domain/servers/server/data/store/default requestedWritePolicy="Dire
    ct-Write" fileLockingEnabled=true driver="NIO".>
    ####<Jun 22, 2010 6:04:12 PM CEST> <Warning> <Store> <wlserver> <wlserver> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1277222652564> <BEA-280101> <The persistent file store "_WLS_wlserver" is forced to use buffered I/O and so may have significantly degraded performance. Either the OS/hardware environment does not support the chosen write policy or the native wlfileio library is missing. See store open log messages for the requested and final write policies. See the documentation on store synchronous write policy configuration for advice.>
    Edited by: ezra-s on 22-jun-2010 18:46

  • Warning while using KToolBar

    The midlet code compiles alright but when i try to run it this is what i get
    WARNING: Resource "Rsrc 58898" may be too large. Hotsync may fail.
    Wrote: c:\J2mewtk\wtklib\devices\PalmOS_Device\testDB.prc
    after printing this message the Palm OS emulator doesnt run the midlet. can anyone help me with this one.
    thank u

    [lcaffrey],
    If you are doing Java application development on a Palm, then you will need to focus your attention on these 2 specifications - the CLDC configuration and the MID profile. The CLDC/MIDP APIs will the 2 API sets that you will use in your development projects.
    The package within the MIDP API that provides a simple way of persistently store data, thus providing a simple record store database is the javax.microedition.rms package.
    There are some basic useful code samples that you can start off with:
    http://wireless.java.sun.com/midp/samples/index.html#db
    For your development environment, I will recommend downloading the J2ME Wireless Toolkit 1.0.3 (current version) as it provides a simple but complete environment to write, compile and package the code for your CLDC/MIDP java application for your Palm. If you install the Palm OS emulator and integrate it with the toolkit, you can test run your MIDlet application using the toolkit before actually deploying on a Palm device.
    The J2ME Wireless toolkit can be found at:
    http://java.sun.com/products/j2mewtoolkit/
    HTH and good luck with your project!
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Getting "iPhone needs to cool down" warning while using Apple Maps

    I bought the iPhone 6 yesterday and today I used the Apple Maps navigation on it. Not 30 mins into the navigation I got following warning from the phone "iPhone needs to cool down". 30 minutes of GPS usage is not too much. This happened twice. Are other ppl. having the same issue or is it just my phone?
    Thanks,
    Anupam

    Hi, ganupam. 
    Thank you for visiting Apple Support Communities. 
    This alert can present itself because of multiple reasons.  This article provides an explanation of this alert and some common causes. 
    Keeping iPhone, iPad, and iPod touch within acceptable operating temperatures
    http://support.apple.com/kb/HT2101
    If you are still experiencing this issue and feel you need assistance, take a look at the article below. 
    Contact Apple for support and service
    http://support.apple.com/kb/HE57
    Cheers,
    Jason H. 

  • Encountering ClassCastException warning while using RichQuery component.

    I have used a RichQuery component in a JSF page. Whenever I click on the search button, I get following warning in the server log:
    WARNING: The type for "AND" prevents it from being compared to "AND".
    Aug 5, 2009 12:43:29 PM
    org.apache.myfaces.trinidad.component.UIXEditableValue compareValues
    WARNING:
    java.lang.ClassCastException: java.lang.String at java.lang.Enum.compareTo(Enum.java:20)
    at
    org.apache.myfaces.trinidad.component.UIXEditableValue.compareValues(UIXEditableValue.java:478)
    at
    org.apache.myfaces.trinidad.component.UIXEditableValue.validate(UIXEditableValue.java:180)
    at
    org.apache.myfaces.trinidad.component.UIXEditableValue._executeValidate(UIXEditableValue.java:515)
    at
    org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:270)
    +...+
    Even though I am getting this warning, the query which I am searching for is giving correct results.
    I tried to debug the issue but unable to find the cause. Can anyone provide some pointers to the issue?

    I have used a RichQuery component in a JSF page. Whenever I click on the search button, I get following warning in the server log:
    WARNING: The type for "AND" prevents it from being compared to "AND".
    Aug 5, 2009 12:43:29 PM
    org.apache.myfaces.trinidad.component.UIXEditableValue compareValues
    WARNING:
    java.lang.ClassCastException: java.lang.String at java.lang.Enum.compareTo(Enum.java:20)
    at
    org.apache.myfaces.trinidad.component.UIXEditableValue.compareValues(UIXEditableValue.java:478)
    at
    org.apache.myfaces.trinidad.component.UIXEditableValue.validate(UIXEditableValue.java:180)
    at
    org.apache.myfaces.trinidad.component.UIXEditableValue._executeValidate(UIXEditableValue.java:515)
    at
    org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:270)
    +...+
    Even though I am getting this warning, the query which I am searching for is giving correct results.
    I tried to debug the issue but unable to find the cause. Can anyone provide some pointers to the issue?

  • In Flex Application Session out while export to excel while using navigateToURL _Self ?

    Hi,
    I am using Flex 3.0 and facing one problem session out while export to excel in Live server not on localhost .
    I have Used navigateToURL (url, "_self"); export to excel. While url is sevrlet call.
    In localhost(tomcat) everything is working fine while another server or live in weblogic server, my session Is Getting Lost and User is re-directed to login screen again.
    what to do to resolve this issue.
    while I tried to use _blank instead of _self then session Is getting preserved but its opening blank new window which user will not accept necessary page.
    please Suggest what to do to preserve The session while using _self ..
    waiting for quick reply.
    Regards,
    prabhat

    I'm not using Flex, but the following preserves session in Flash:
    var url = "http://" + WebServerIPAddress + "/" + ApplicationName + "?data=" + datavalue;
    var cmd:String = "window.open('" + url + "','win','height=768,width=1024,toolbar=no,scrollbars=yes');";
    var request:URLRequest = new URLRequest("javascript:" + cmd + " void(0);");
    navigateToURL(request, "_self");

  • How to get default values while using the transaction "BP"

    Hi Group,
    I have a query on how to get default values while using the transaction <b>BP</b>?
    The thing is:
    when I enter into the transaction "BP", I need to see some default values to some of the input fields in the screen.
    how can I achieve this?
    So please kindly let me know the procedure to achieve this.
    Thanks & Regards,
    Vishnu.

    Hi,
    The events of BDT can be used to default some fields on creating a partner.
    For this create a function module for ISDAT. attach that event in BUS7.
    In the ISDAT funtion modulethe following code should be used.
    For example to set the nationality:
    I_BUSDEFAULT-NATIO = 'DE.
    CALL FUNCTION 'BUP_BUPA_FIELDVALUES_SET'
    EXPORTING
    i_busdefault = I_BUSDEFAULT
    Regards, Smita.

  • Using Date Picker on form causes session values to be cleared on validation

    Got a really weird problem on a form (on a report). We have a basic form which has a date picker on. The form fires a number of bog standard validations when the Create button is clicked (values filled in, values are numbers etc).
    When a validation fails, the values inputted by the user are retained. So far so good. However, when the user selects a date, and a validation fails, all the session values are all cleared (not just the date picker) and they have to fill everything in again.
    At first we thought there must be a process resetting the page items - nothing. Also recreated the page from scratch and it still doesn't work. Strangely, the problem goes away if we change the date picker to a text field. Also, if the user doesn't select a date, the other session values are retained.
    Are we doing something daft here or is this a bug?

    Yes - we're using inbuilt validation to ensure it's a valid date. We tried turning this off and it makes no difference, the problem is still there.
    We tried changing the date picker to a text field and using the same validation (i.e. check it's a date) and this works fine. This is why we think it might be a bug.

  • How to display Session value of an item  using Javascript?

    Hello All,
    I have a file browse item and I browse some file and click on upload, i run this javascript :
    function passBack()
    javascript:doSubmit('UPLOAD');
    alert('hi');
    var var_flag = $x('P91_FILE');
    alert(var_flag.value);
    opener.document.forms["wwv_flow"].f05[3].value = var_flag.value;
    close();
    </script>
    It dispalys 'hi ' as per the first alert.
    For the second alert it shows the file path value . ( C:\test\test1.sql).
    I need the file session value to be displayed here
    Like the following :
    F477093380/test1.sql
    and then I need to pass that value to parent page. and close the child page.
    Any idea?
    Thanks in advance.
    Regards,
    Archana

    Archana,
    I'm not sure about javascript, but u can use a sql query on the "APEX_APPLICATION_FILES" view to obtain that.
    Something like:
    SELECT id,NAME
      FROM APEX_APPLICATION_FILES;

Maybe you are looking for