$ORACLE_HOME, echo $ORACLE_SID returns null / nothing shows

Hello

I am new to oracle and want to install oracle database 11 g 2 on linux oracle 7.

Now, I try to define oracle environment variables that I found on youtube, that looks at these:

==============================================================

[oracle@linux ~] $ vi /home/oracle/.bash_profile

# .bash_profile

# Get the aliases and functions

If [~/.bashrc - f]; then

.~/.bashrc

FI

# Specific programs startup and user environment

Path=$path:$home/.local/bin:$Home/bin

export PATH

TMP = / tmp; Export TMP

TMPDIR = $TMP; export TMPDIR

ORACLE_UNQNAME = orcl; export ORACLE_UNQNAME

ORACLE_BASE = / u01/app/oracle; export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/11.2.0/Db_1; Export ORACLE_HOME

ORACLE_SID = orcl; export ORACLE_SID

PATH = / usr/sbin: $PATH; export PATH

PATH = $ORACLE_HOME/bin: $PATH; export PATH

LD_LIBRARY_PATH = $ORACLE_HOME/lib: / lib: / usr/lib. export LD_LIBRARY_PATH

CLASSPATH = $ORACLE_HOME/jlib: $ORACLE_HOME/rdbms/jlib. Export CLASSPATH

===================================================================

then I restart the operating system.

When I call $ORACLE_HOME or $ORACLE_SID echo, it shows nothing, that supposed to show "orcl" when you call ORACLE_SID, and "bash: /u01/app/oracle/product/11.2.0/db_1: is a directory ' when calling the ORACLE_HOME.»

Can anyone help? Thanks in advance!

Best regards

Jerry Antonius

Log in as that of 'oracle', not 'root '.  The profile you create is for the 'oracle' user and will not be run until the 'oracle' connects.

After you connect as 'oracle' try again the echo commands:

echo $ORACLE_HOME

echo $ORACLE_SID

and see if they return the correct information.  If not, the profile does not work and you probably need to add a 'set - x' in 'up' your profile script:

# .bash_profile

Set - x

# Get the aliases and functions

If [~/.bashrc - f]; then

.~/.bashrc

FI

# Specific programs startup and user environment

Path=$path:$home/.local/bin:$Home/bin

export PATH

TMP = / tmp; Export TMP

TMPDIR = $TMP; export TMPDIR

ORACLE_UNQNAME = orcl; export ORACLE_UNQNAME

ORACLE_BASE = / u01/app/oracle; export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/11.2.0/Db_1; Export ORACLE_HOME

ORACLE_SID = orcl; export ORACLE_SID

PATH = / usr/sbin: $PATH; export PATH

PATH = $ORACLE_HOME/bin: $PATH; export PATH

LD_LIBRARY_PATH = $ORACLE_HOME/lib: / lib: / usr/lib. export LD_LIBRARY_PATH

CLASSPATH = $ORACLE_HOME/jlib: $ORACLE_HOME/rdbms/jlib. Export CLASSPATH

This will echo orders and the results on the screen so you can see what doesn't work.

David Fitzjarrell

Tags: Database

Similar Questions

  • LocationProvider.getInstance always returns null

    I'm trying to run a slightly modified version of the application on a BlackBerry 7250 GPSDemo. As my device software is version 4.1, I use the BlackBerry JDE 4.1. No matter what are the parameters for the criteria, I pass in LocationProvider.GetInstance, I always return null. I can run google maps on this unit and get my location, so I'm assuming that the GPS is supported in this regard. Did anyone see any problem with code and/or information on the devices below?

    Wireless blackBerry 7250 (CDMA)

    v4.1.0.353 (Platfor 2.2.0.159)

    The kernel v3.8.3.7 encryption

    The microedition configuration: CLDC-1. 1

    Microedition profile: MIDP-2. 0

    Microedition JTWI Version: 1.0

    Microedition Media Version: 1.1

    Microedition PIM Version: 1.0

    Try
    {
    GpsReceiverCriteria criteria = new Criteria();
    gpsReceiverCriteria.setHorizontalAccuracy (Criteria.NO_REQUIREMENT);
    gpsReceiverCriteria.setVerticalAccuracy (Criteria.NO_REQUIREMENT);
    gpsReceiverCriteria.setCostAllowed (true);
    gpsReceiverCriteria.setPreferredPowerConsumption (Criteria.POWER_USAGE_LOW);
    gpsReceiverCriteria.setAddressInfoRequired (false);

    _locationProvider = LocationProvider.getInstance (gpsReceiverCriteria);
               
    If (_locationProvider is nothing)
    {
    Runnable ShowGpsLocationProviderNull1Dialog = new Runnable()
    {
    public void run()
    {
    Dialog.Alert ("Provider is null - HA: NR VA: NR CA:T PC:L");
    }
    };
    invokeLater (showGpsLocationProviderNull1Dialog);  Ask the event dispatcher thread to display the dialog box as soon as POSSIBLE
    }
       
    gpsReceiverCriteria.setHorizontalAccuracy (Criteria.NO_REQUIREMENT);
    gpsReceiverCriteria.setVerticalAccuracy (Criteria.NO_REQUIREMENT);
    gpsReceiverCriteria.setCostAllowed (false);
    gpsReceiverCriteria.setPreferredPowerConsumption (Criteria.POWER_USAGE_LOW);
    gpsReceiverCriteria.setAddressInfoRequired (false);

    _locationProvider = LocationProvider.getInstance (gpsReceiverCriteria);
               
    If (_locationProvider is nothing)
    {
    Runnable ShowGpsLocationProviderNull2Dialog = new Runnable()
    {
    public void run()
    {
    Dialog.Alert ("Provider is null - HA: NR VA: NR CA:F PC:L");
    }
    };
    invokeLater (showGpsLocationProviderNull2Dialog);  Ask the event dispatcher thread to display the dialog box as soon as POSSIBLE
    }

    _locationProvider = LocationProvider.getInstance (null);
               
    If (_locationProvider is nothing)
    {
    We would like to display a dialog box indicating that the GPS is not supported, but because that
    the event dispatcher thread has not been started yet, modal screens cannot be pushed on
    the battery in the display.  So delay the operation until the event dispatcher thread runs
    asking him to call the executable object following as soon as possible.
    Runnable showGpsUnsupportedDialog = new Runnable() {}
    public void run() {}
    Dialog.Alert ("No receiver GPS on this unit is available, exit...");
    System.Exit (1);
    }
    };
    invokeLater (showGpsUnsupportedDialog);  Ask the event dispatcher thread to display the dialog box as soon as POSSIBLE
    }
    on the other
    {
    only a single listener can be associated with a provider and point it comes to the same
    call, but with the value null, so, no need to cache the listener instance
    request an update every second
    _locationProvider.setLocationListener (new LocationListenerImpl(), _interval, 1, 1);
    retval = true;
    }
    } catch (LocationException) {}
    System.Err.println ("Failed to instantiate the object LocationProvider, exit...");
    System.Err.println (the);
    System.Exit (0);
    }

    Oops... sory. My dyslexia again out of in

    I think that the 7250 has no GPS function at all.

    Yet again, Google it didn't need because they have their own turn cells DB and web services to retrieve the "approximate" location

  • I tried everything to return AutoPlay, nothing so far.

    I tried everything to return AutoPlay, nothing so far. All suggestions and clicks here and there clicks do not have work. I insert a CD/DVD or an external device and automatic execution are not displayed. My PC is about 1 year and AutoPlay worked very well until I told him to remove a virus, after I noticed this problem.
    What can I do to fix the AutoPlay by myself? Thank you.

    Hello

    • What are the steps to change the settings for automatic execution?

    However, you can follow the steps below and check if it helps solve the problem of automatic playback on your computer.

    Step 1:

    You can try to reconfigure the automatic run settings by following the steps below and check if it helps:

    a. click the Start button to display the Start Menu and then choose Control Panel.

    b. the Control Panel window opens. Click the all Control Panel items.

    c. window shows all items in the Panel control. Click on AutoPlay. By default, AutoPlay is turned on, as you can see that the box Use AutoPlay for all devices and media is checked.

    d. turn off AutoPlay completely: disable playback automatic use for all media and devices check box, and then click.

    e. disable AutoPlay for only one type of media. Click openAutoPlay. In the list next to each type of media that you do not want to be asked, clickTake no action and then click on no record.

    f. the default program: click here to open autoplay.

    g. set the default Action: click here to open autoplay.

    h. you can click actions, as no action, ask me each time and open the folder to view files using Windows Explorer for the type of media you want, and then click.

    Step 2:

    You can also check if the Hardware Detection service core is set to automatic and started. You can change it accordingly and check if it helps. To do this follow the steps below:

    1. Click Start and click Run.
    2. In the Run dialog box, type services.msc and click Ok.
    3. In the services window, scroll to detection hardware core.
    4. ClickHuman double Interface of device service and click the general tab.
    5. Change the startup to automatic type, then click on apply.
    6. Click Start, and then click OK.

    Step 3

    The Group Policy Configuration settings (note this procedure applies only to Windows 7 ultimate and Windows 7 Enterprise editions)

    a. Click Start, then click Run...

    (b) in the box that appears type: gpedit.msc, and then click the OK button

    c. the Group Policy window appears. In the left panel expand Windows components, and then click AutoPlay policies

    d. in the right panel look for turn off AutoPlay and double-click it to open the Properties window

    e. click on disable. Click on apply and then OK

    Restart the computer and check if it works.

    I hope this helps. Let us know the result.

    Thank you and best regards,

     

    Srinivas R

    Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Need help with ics. SQL return null

    Hi experts WCS.

    I have this ics. SQL statement that returns an IList as null and nothing in the errStr in debugging print.

    IList rsATypes is ics. SQL (, sqlATypes, listName, limit, bCache errStr);

    The code is in one of my jsp. He ran very well in my local JSK (HyperSQL Db), but returns NULL in the case of Test (Oracle DB, if this is another).

    I got the sql statement println during execution and run it directly in Oracle DB (same instance) it returns the expected result set.

    The code snippet:

      System.out.println("## ics.GetSSVar(\"pubid\")          : " + ics.GetSSVar("pubid"));
    
        // Get Attribute Types
        String sqlATypes = "SELECT DISTINCT assetpublication.assettype "
                         + "FROM assetpublication "
                         + "LEFT JOIN approvedassets "
                         + "    ON assetpublication.assetid = approvedassets.assetid "
                         + "WHERE pubid = '" + ics.GetSSVar("pubid") + "' "
                         + "AND (tstate is null OR tstate <> 'A') "
                         + "AND (voided is null OR voided <> 'T') "
                         + "ORDER BY assettype; ";
        System.out.println("##0126 sqlATypes : " + sqlATypes);
        String from = "AssetPublication, ApprovedAssets";
        // String listName = null;
        String listName = "ATypesList";
        int limit = -1;
        // boolean bCache = true;
        boolean bCache = false;
        StringBuffer errStr = new StringBuffer("");
        ics.ClearErrno();
        IList rsATypes = ics.SQL(from, sqlATypes, listName, limit, bCache, errStr);
    
        System.out.println("## rsATypes : " + rsATypes);
        if (rsATypes == null) {
            System.out.println("## NO DATA in rsATypes! errStr : " + errStr.toString());
    

    }

    The journal:

    ## ics.GetSSVar("pubid")          : 1374097570685
    ## sqlATypes : SELECT DISTINCT assetpublication.assettype FROM assetpublication LEFT JOIN approvedassets     ON assetpublication.assetid = approvedassets.assetid WHERE pubid = '1374097570685' AND (tstate is null OR tstate <> 'A') AND (voided is null OR voided <> 'T') ORDER BY assettype;
    ## rsATypes : null
    ## NO DATA in rsATypes! errStr :
    


    I got enclosing try catch block, who did not take any exception.


    The funny thing is, in the same piece of code, an ics. Casea used already worked (which I noticed outside because there was not enough for what I want to do):

            StringBuffer errSB = new StringBuffer("");
            ics.SetVar("assetid", id);
            IList approvedAsset = ics.SelectTo("ApprovedAssets", "state,voided,tstate,locked,reason,treason", "assetid", null, -1, null, true, errSB);
    

    Any help/ideas from anyone would be really appreciated.

    Thanks Guddu1223, I discovered why.

    The SQL statement cannot end with a semicolon (see line 11 of my original above codes). Delete who had back all the records provided for in my resultset in the IList.

    The reason why it works in my local, but not stable instance that I guess is my local JSK + HyperSQL, in WCS + Oracle DB instance trying...

  • APEX_ITEM. DATE_POPUP returns NULL Version 4.2.6

    I apologize in advance if I'm misunderstanding here, but should not return the following query a few HTML, etc. ?

    SELECT APEX_ITEM. DATE_POPUP (1, rowNum, to_date(sysdate,'DD-mm-YYYY'), 'DD-mm-YYYY') date_html

    OF the double

    I am confirming my queries through SQL Developer first and then plan to add to a report of the APEX for a manual form.  APEX_ITEM. TEXT Returns HTML can be used in SQL Developer, but I can't understand why APEX_ITEM. DATE_POPUP returns NULL regardless of any parameter combinations I try.  Thanks in advance for the answers.

    user10730448 wrote:

    Please update your forum profile with a recognizable username instead of "user10730448": Video tutorial how to change username available

    I apologize in advance if I'm misunderstanding here, but should not return the following query a few HTML, etc. ?

    SELECT APEX_ITEM. DATE_POPUP (1, rowNum, to_date(sysdate,'DD-mm-YYYY'), 'DD-mm-YYYY') date_html

    OF the double

    Do not apply to_date conversion sysdate . It's already a DATE value.

    I am confirming my queries through SQL Developer first and then plan to add to a report of the APEX for a manual form.  APEX_ITEM. TEXT Returns HTML can be used in SQL Developer, but I can't understand why APEX_ITEM. DATE_POPUP returns NULL regardless of any parameter combinations I try.

    It is the expected behavior. Some API calls can be used successfully since in a valid session of APEX. You can validate apex_item.date_popup query in the APEX SQL Workshop. Note that apex_item.date_popup2 is the recommended method because it shows a more modern jQuery calendar.

  • ViewObject getCurrentRow() returns null for a particular VO

    1. I use JDeveloper 12.1.2 and see that one of the VO does not return a current line in the module of the application.

    Table of this VO has an another table foreign key relationship and corresponding EO mapping to a database table is defined.

    I defined the Association and link display to be able to make the key relationship foreign mapping.

    And moved VO belong to the corresponding data model of the parent object.

    However, getCurrentRow running on this instance of VO returns null.

    Runs the code SQL of VO same results as expected in the preview of the VO Editor.

    Can someone further comment on what might cause some getCurrentRow() which returns null despite the lines for VO that corresponds to its definition of SQL or Timo.

    2. one of the posts mentioned earlier setting the following will print the SQL used by VO in the console.

    AddVMOption - Djbo.deguboutput = console

    AddVMOption - Djbo.jdbc.trace = true

    However, my console does not show the SQL code as such to run executeQuery on VO.

    Can someone share your opinion on if these settings are changed in Jdev 12.1.2 charges.

    Thank you

    Rama

    GetCurrentRow() may return null if the vo is not used in the user interface. In this case, the pointer of the current line is set before the first row so that you can browse all lines.

    After execution of the vo, you must call premier() to get the first row, then next() to get the next line.

    Timo

  • Get-display properties return NULL

    First of all, I have my opinion.

    $view = Get-View -ViewType virtualmachine -Filter @{"Guest.HostName"="TESTVM"}
    

    It works and when I use $view I see all properties

    However, when I try to view a property or down in the properties I return nothing

    $view.name
    $view.config
    

    Both return null.

    This happens only on a select few VM.

    If more than 1 item has been returned?

    Does

    $view[0].name
    

    Back to something?

    Try changing your filter as follows

    $view = Get-View -ViewType virtualmachine -Filter @{"Guest.HostName"="^TESTVM$"}
    
  • Flex in a week: run the mxml, but nothing shows

    Hello

    I do the flex in a week course. Pain in the ass to see the design mode is gone but good no worries.

    In any case, I run the mxml and nothing shows. I also ran the swf that was produced and Yes - empty. However, the code seems fine so I am confused.

    < / s:Application >

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx".

    minWidth = "955" = "850" minHeight >

    <!-exercise 1.01: implementation of your project-> files

    <!-- Styles ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

    < fx:Style source = "Styles.css" / >

    <!-- Script ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

    <!-statements ~ ~ ~->

    < fx:Declarations >

    <! - Place non-visual elements (e.g., services, items of value) here - >

    < / fx:Declarations >

    <!-UI components ~ ~ ~->

    < s:Label x = "10" y = "34".

    width = "690" height = "40".

    Text = "" Employee Portal: vehicle request form ""

    styleName = "titleHeader" / >

    < s:Form x = "10" y = "70" >

    < s:FormItem label = "employee:" >

    < s:DropDownList / >

    < / s:FormItem >

    < s:FormItem label = "office phone:" >

    < s:TextInput / >

    < / s:FormItem >

    < s:FormItem label = "Mobile phone:" >

    < s:TextInput / >

    < / s:FormItem >

    < s:FormHeading label = "Dates" / >

    < s:FormItem label = "pickup Date:" >

    < mx:DateChooser / >

    < / s:FormItem >

    < s:FormItem label = "Date of return:" >

    < mx:DateChooser / >

    < / s:FormItem >

    < s:FormItem >

    < s:Button label = "Submit Request" / >

    < / s:FormItem >

    < / s:Form >

    Are you sure that you run the mxml right? A few time to create a new also helps. Sometimes templates html (js files) are absent from this cause an error javascript and nothing to load. Usually, the own generation project done. If you right click on the generated swf file that shows?

  • % ROWCOUNT SQL return null after Forms_DDL on a dynamic SQL

    Hello

    I'm new to PL/SQL coding and is currently working on the development of some application in Oracle Forms as a result of the 10 g developer.

    I'm having a problem getting a number of lines (number of rows affected by the last command dml) to register after using forms_ddl
    PROCEDURE P_SQL_UPDATE IS
    
      L_string1                VARCHAR2(250);
      L_string2                VARCHAR2(250);
      L_string3                VARCHAR2(250);
      L_string4                VARCHAR2(250);
      L_rowcount                Pls_integer;
      L_count                  NUMBER;
      L_alert                       NUMBER;
    
    BEGIN
    
      L_string1 := 'UPDATE ' || :global.G_table_nam || ' SET ';
      L_string2 := NULL;
      L_string3 := ' WHERE ';
      L_string4 := NULL;
    
    ...
    ... building strings 2 and 3
    ...
    
    :global.final_sql := L_string1 || L_string2 || L_string3 || L_string4;
    
      FORMS_DDL(:global.final_sql);
      L_rowcount := SQL%ROWCOUNT;
    
      if FORM_SUCCESS then
        set_alert_property('ALT_COMMIT_ROLLBACK',ALERT_MESSAGE_TEXT, 'The # of rows affected: ' || L_rowcount || CHR(10) || 'Commit or Rollback?');
        L_alert := show_alert('ALT_COMMIT_ROLLBACK');
        if L_alert = ALERT_BUTTON1 then
          commit;
        else
             rollback;
        end if;
      else
        set_alert_property('ALT_INFO',ALERT_MESSAGE_TEXT, 'Error: ' || DBMS_ERROR_CODE  || ' - ' ||DBMS_ERROR_TEXT);
        L_alert := show_alert('ALT_INFO');
      end if;
       
    END;
    I tried to replace the global variable with a string 1 potential SQL hard coded, I changed L_rowcount to digital, attempted to directly display rowcount % SQL via dbms_output.put_line... L_rowcount is just empty during the pop-up alert.

    Another solution has been L_rowcount: = DBMS_SQL. LAST_ROW_COUNT; ... This gives a slightly different result in the alert window, instead of being white, it returns 0. If something is definitely not right. Another is that in doing so, he always returned null/one field blank on the alert popup.

    I have run tests on SQL % number of lines in the editor of TOAD and got results, but during the actual shape that l_rowcount is always null after the execution of the procedure (with the exception of being 0 using the dbms_sql.last_row_count).


    I want to emphasize that change is not introduced without the additional validation in the FORM_SUCCESS at the end... I had read that the Forms_DDL is an implicit validation and committing the SQL without anything else happening... This seemed a little odd as well.

    Before forms_ddl, I tried to use execute, exec, or run immediately on the SQL, but nothing helped. I think of one other option would be to pass this SQL to a datablock again together and use to execute query on this block? Don't know how to go about it.



    The purpose of this form is intended for users to enter values in a generic form and when he meets the validation in the field triggers, they will support on submit and ideally before the update is committed I want users to be notified of the # of lines that would be affected by their proposed... change so if the # is huge they will know that they did something wrong before they affect the entire database.


    Any input would be appreciated,
    Travis

    Travis,
    The built-in function Forms_DDL() emits an implicit VALIDATION because the transaction is issued as DDL no DML. Therefore, given that the VALIDATION is the last command issued by the call of Forms_DDL, the attributes of the cursor of the implicit cursor (SQL) will all be set to NULL. If you absolutely must have the number of LINES of the documents concerned, you can create a database program unit that you can spend your dynamic statement too and have it return zero (failure) or the number of affected records (success).

    In addition, since Forms_DDL() emits an implicit VALIDATION, you must create a BACKUP point before calling Forms_DDL() If you want the ability to RESTORE any changes made in the call to Forms_DDL().

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

    Published by: Silvere July 26, 2011 09:29

  • Echo % oracle_sid % (11 GR 2 on Windows Server 2008 SP2)

    Hello

    I just made my first installation of Oracle and I am now in the command prompt attempts to bring the environment variables. When I type:

    echo % oracle_sid %

    all I get back is % oracle_sid % when its supposed to bring my correct instance name?

    I checked the registry and the variable is in this one exists, what I have to put something in the windows as environment variables?

    Thank you

    Again internal behavior of Oracle, Oracle reads in the registry. He reads from the variable path by default ORACLE_HOME and ORACLE_SID is looked up in the registry. But ECHO is a pure Windows command.
    But it's just so easy as long as you only have a single database running. For a second, third... database, you must set ORACLE_SID as environment variable. You can also connect through a listener, i.e. sqlplus sys /@ as sysdba.

    Werner

  • ConnectionFactory.getConnection () returns null.

    ConnectionFactory connFact = new ConnectionFactory();
            ConnectionDescriptor connDesc = null;
            connDesc = connFact.getConnection(----here goes my url String----);
    

    Hi all

    In the code posted above, number In Line 3, reason for which the null value is returned by the statement "connFact.getConnection (- this is my String url-);"   and he is assigned to the variable 'connDesc '.  Although I was able to login successfully before 2 to 3 hours. but it is now return null...

    Could you please help me?

    Best regards,

    Hi Sir,

    After going through the link provided by you (and a few other sup on internet links), I was able to resolve the issue for now... I write the code for other users help here...

    Thank you for your support...

    Best regards.

    // make a list of transport types ordered according to preference (they will be tried in succession)
    int[] preferredTransportTypes = {TransportInfo.TRANSPORT_MDS, TransportInfo.TRANSPORT_WAP2};
    
    // Create ConnectionFactory
    ConnectionFactory factory = new ConnectionFactory();
    
    // Configure the factory
    factory.setPreferredTransportTypes( preferredTransportTypes );
    
    // use the factory to get a connection
    ConnectionDescriptor conDescriptor = factory.getConnection("http://www.blackberry.com");
    
    if ( conDescriptor != null ) {
    
       // connection suceeded
       int transportUsed = conDescriptor.getTransportDescriptor().getTransportType();
    
       // using the connection
       HttpConnection  httpCon = (HttpConnection) conDescriptor.getConnection();
       ...
    }
    
  • PersistentObject.getContents () returns null after app update

    Hello

    I'm trying to track down a bug with PersistentStore.
    Usually when I update the app I get the getContents() stored content.
    However, something in the code has changed from one version to the other and now getContents() returns null.

    I made sure the id has never changed for PersistentStore.getPersistentObject (id);
    I made sure that we use the same basic sdk (4.3.0)
    I made sure that there are the data stored in the stored hash table

    Currently, it's a hash table - no subclass (even though I know that I should change it to a subclass when it's fixed);

    I wonder if there are any suggestions on what might cause the getContents() return null - or which could result in the PersistentStore have cleared.

    What information is needed, please let me know and I'll paste.

    I found the problem after.

    Classes have begun to obscure differently. If the hash table was still readable, but because he could not read the content of the hash table, he would return null.

    It was unexpected, because if you have a custom class persisted and you try to read it, you will get the content, but you can't cast. But with the hash table, it does not return the content (uncastable) and it throws no exceptions...

    I hope this helps someone else who has a similar problem.

  • The body of the message to return null on os 4.5.0.18. When you use getBodyText()

    Hi all

    Today, when I debug my application on 4.5.0.18 device 8130.

    I implements FolderListener, when new messages coming,.

    I grap message object and want to analyze the body of the message to check if the message is what application you are looking for.

    Hoever, when I call Message.getBodyText (). It returns null.

    In fact, there a lot of message in the body of the message.

    is there any sweet experiencing this problem?

    What is work around?

    Thank you.

    getBodyText() will work on 4.5 If the body is 'plain text '. Otherwise, you will need to get the HTML content of the message and extract the text elements.

    See this article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800698/How_To _...

  • Hash table returns null

    It's the stumping me. I add a key and a value in a hash table, pass in the key and retrieve the value. Basic enough, but when I go to retrieve the value a second time (after the restart of the application), it returns null.

    If it isn't exactly the code that would be the basic scheme:

    class A
    {
         private static Hashtable table = new Hashtable();
    
         public static Object getObject(Class clazz)
         }
              return A.table.get(clazz);
         }
    
         public static void setObject(Class clazz, Object obj)
         }
              A.table.put(clazz, obj);
         }
    
         //Code stuff...
    }
    
    class B
    {
         public static void main(String[] args)
         {
              A.setObject(C.class, new C());
              Object obj = A.getObject(C.class); //This works
         }
    
         //Code stuff...
    }
    
    class C
    {
         //Code stuff...
    }
    

    What happens on the 9550 Simulator and is fixed after restarting the Simulator but work always and only the first time through. If the app is closed, then reopened, then it returns null, even if the hash table was always the same items.

    Ah. When you run the application a second time, he rebuilt serializers to persistent store. Unfortunately, your objects of the class are new instances, so that they cannot be used as persistent hash keys. I suggest you use class names as keys rather than objects of class themselves.

  • OAMessageStyledTextBean getText() or GetValue returns null

    Description of the problem

    ---------------------------------------------------

    Hello

    I try to retrieve a value from the field messagestyledText on the standard page R12.

    When I use the code below in the extended controller, it returns null. However a code works fine in another page.

    Please, advise.

    Thank you.

    ' Public Sub processFormRequest (OAPageContext oapagecontext, OAWebBean oawebbean)

    {

    OAMessageStyledTextBean oamessagestyledtextbean = (OAMessageStyledTextBean) oawebbean.findChildRecursive ("SubmitComments");

    String s1 = oamessagestyledtextbean.getText (oapagecontext);

    String s2 = (String) oamessagestyledtextbean.getValue (oapagecontext);

    String message = "s1 =" "s1 + s2 plus" + s2;

    throw new OAException (message, OAException.WARNING);

    }

    Thank you... Yes, in fact, he was placed by one of the oapagecontext.getTransactionValue... problem solved. I am able to get a value of oapagecontext.getTransactionValue now

Maybe you are looking for

  • Is there a version 7 of Firefox and when it comes out?

    I get e-mails other than Mozilla, which indicate a Foxfire 7 version is available. However, after reading some of the comments on the Mozilla site, I wonder about the reliability of the new version, or if the information is correct. Foxfire is my bro

  • Satellite L20 - drivers for Vista available?

    Hello I use Satellite L20 with Windows XP. Now, I want to improve my OS to Vista/Windows 7. I've seen several people have not found drivers for L20. If I install vista on my L20 (PSL2XL-01R007), the drivers will be available? Please help me. Thank yo

  • Satellite P20 801 locks up on Start Up

    Hello I had this problem for a while, and I don't see what could be causing it. When I start my laptop, it takes a few minutes so he could wake up. Sometimes, while it loads the Firewall & Norton etc... He locks top/gel, leaving me with the only opti

  • How to upgrade drivers for Vista that worked on XP?

    I was told to contact the manufacturer it device drivers and the drive cannot be located. Is there another way?

  • Printer does not print: screen says printing 10% - nothing printed.

    1 printer - AIO 926 sends error messge 'the printer status Window Interface has stopped working' and print reports of message - 10% completed print but no printing is done. 2. I would like to use the printer without hanging and turning on the old sys