java.lang.UnsupportedClassVersionError when loading bridges IB connectors

Passing of one of the problems to the other... Installing PeopleTools on OEL5 8.52. Everything works; Database, application server, Task Scheduler process etc. However when I try to load the Integration broker gateways connectors I get the following error:

java.lang.UnsupportedClassVersionError: Bad version in .class file number

8.52 came with JRE 1.6.0 installed in the PS_HOME directory. $JAVA_HOME here and $JAVA_HOME is one of the first variables in my $LD_LIBRARY_PATH. I created a new domain after setting this correctly, because initially the JRE directory of Tuxedo preceded that of PS_HOME. I modified it in the tux.env everything seems to point to the JRE in the PS_HOME now. I always get this error however and it seems I'm missing something. Does anyone have an idea? When executing "including java' get the path correct and 'java-version' specifies the correct version. I tried several solutions posted on support of Oracle, but nothing helped. More later certified Java version is the version 1.6.0_23 - b05, but I am unable to find a download for that location. I doubt, that it is necessary to update of the JRE, since it is already running on 1.6.0.

No, sorry, perhaps misunderstanding. I was using this jdk for Weblogic installation, as it seems that you have done.
The symbolic link to jre under $PS_HOME goes to $PS_HOME/jre1.6.0.

Nicolas.

Tags: Oracle Applications

Similar Questions

  • ODI - MySQL Connector Java 5.1.13 - java.lang.UnsupportedClassVersionError

    I use ODI 10.1.3.5 tries to connect to a version of database MySql 5.1.45

    I downloaded the mysql-connector - java5.1.13 - bin and installed in the oracledi\drivers directory

    I created the "Data Server" under the MySQL node successfully in the tab of the physical Architecture (Topology Manager).
    I used the test button and the connection is successful.

    Here's the problem:

    When I try to create the schema 'physical' I get an error

    java.lang.UnsupportedClassVersionError: com/mysql/jdbc/driver (unsupported major.minor version 49.0)

    Help

    I also tried the previous MySQL connector/j 5.0.8 I wasn't able to create "Data Server" with this driver.
    Any help is greatly appreciated.

    When I looked carefully at the jdbc, the JDBC url: / / is repeated twice. Correct and try again.
    JDBC:MySQL://JDBC:MySQL://10.128.8.134:3306 / alfresco333

  • ORA-29552: check warning: java.lang.UnsupportedClassVersionError

    Hello
    I am trying to load a class file into Oracle using loadjava and I get the following error:

    ORA-29552: check warning: java.lang.UnsupportedClassVersionError: helloworld (unsupported major.minor version 51.0)

    Without doubt, this is related to an inconsistency between the jdk I used to compile helloworld and the Oracle JVM? Or something like that?

    My JAVA_HOME is C:\Program Files (x 86) \Java\jre7\bin
    My version of javac used to compile the code is javac 1.7.0_15
    Java-version is '1.7.0_15 '.
    When I do a find on java.exe in the oracle installation directory (I'm under 11.2) I get

    J - PC:J > find - name java.exe
    ./Product/11.2.0/dbhome_1/JDK/bin/Java.exe
    ./Product/11.2.0/dbhome_1/JDK/JRE/bin/Java.exe
    ./Product/11.2.0/dbhome_1/JRE/1.5.0/bin/Java.exe

    Finally, the jdbc jar is ojdbc6.jar

    BTW, the code is just the ordinary Tester:
    import oracle.jdbc.driver.*;
    
    public class helloworld {
    
        public static String hello()
        {
            return "Hello World";
        }
    
        public static String hello(String s)
        {
            return "Hello " + s ;
        }    
        
        public static void main(String[] args)
        {
            helloworld.hello();
            helloworld.hello("Larry");
        }
    }
    How can I get this class file loaded? Thank you very much
    Jason

    >
    How can I get this class file loaded?
    >
    I suggest you load the file source instead. As cardan2 said all the class in the database files MUST be compatible with the internal JVM used by the database. For 11g versions it is Java 1.5 and the major version in the 1.5 Java class files is 49.

    You also have to take the same version in account number if you need load all the jar files in the DB. That the load will be successful if these classes have been compiled for a later version of compatibility of Java. ;

    If you load the source file and compiling the virtual machine JAVA DB will be used and you will not get this exception. You will also make sure that you use the correct support classes; for example, classes for the JDBC driver that you import will be versions of the JVM and those will NOT be the same as those of ojdbc6.jar.

    You must ensure that you are not currently using the JDBC classes or features that are not available in the version of DB of the driver.

    Using Java and JDBC in the database means that you might be able to take advantage of the internal JDBC driver for Oracle. Refer to the chapter "Server - Side internal Driver" of the Dev Guide JDBC for more details.
    http://docs.Oracle.com/CD/B28359_01/Java.111/b31224.PDF

    Overview of the Server-Side Internal Driver
    The server-side internal driver is intrinsically tied to Oracle Database and to the Java
    Virtual Machine (JVM). The driver runs as part of the same process as the database. It
    also runs within the default session, the same session in which the JVM was started.
    
    The server-side internal driver is optimized to run within the database server and
    provide direct access to SQL data and PL/SQL subprograms on the local database. The
    entire JVM operates in the same address space as the database and the SQL engine.
    Access to the SQL engine is a function call. This enhances the performance of your
    Java Database Connectivity (JDBC) applications and is much faster than running a
    remote Oracle Net call to access the SQL engine.
    
    The server-side internal driver supports the same features, application programming
    interfaces (APIs), and Oracle extensions as the client-side drivers. This makes
    application partitioning very straightforward. For example, if you have a Java
    application that is data-intensive, then you can easily move it into the database server
    for better performance, without having to modify the application-specific calls.
    
  • java.lang.UnsupportedClassVersionError

    When I compile my java file, there is no error. But when I run this code, it is in error:
    java.lang.UnsupportedClassVersionError: MyClass (unsupported major.minor version 50.0).

    What is this error? Why I get this error? How to solve this error?

    I suspect that another JRE is intalled on your computer, maybe even that some third-party software, and the path variable contains the path to the java.exe in front of your "last updated."

    Check the contents of the PATH system variable.

    DB

  • java.lang.UnsupportedClassVersionError in Import Java Classes

    Hello
    I've recently upgraded to Forms Developer 10 g (10.1.2.3) and JDeveloper (10.1.3.4). I recompiled my classes in JDeveloper, and when I go to import them in my form, I get

    Exception occurred: java.lang.UnsupportedClassVersionError: classes/eps/Palm/Pick-up/customer/ResultSpec (unsupported major.minor version 49.0).

    Someone at - it clues about how to solve this problem?

    Thank you

    Margaret

    Make a right click on the project-> Project Properties node-> compiler...

    François

  • java.lang.NullPointerException when you click on the search query

    java.lang.NullPointerException when you click on the search query:

    There is nothing my project involved code...

    at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:201)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:632)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:597)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttribute(JUCtrlValueBinding.java:1341)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfAttributeDescriptor.isRequired(FacesCtrlSearchBinding.java:3018)
    at oracle.adfinternal.view.faces.renderkit.rich.query.QueryBehavior.shouldShowInstructionText(QueryBehavior.java:66)
    at oracle.adfinternal.view.faces.renderkit.rich.query.QueryBehavior.refreshInfoFacet(QueryBehavior.java:37)
    at oracle.adfinternal.view.faces.renderkit.rich.QueryRenderer.renderContentRow(QueryRenderer.java:718)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.encodeAll(PanelHeaderRenderer.java:231)
    at
    
    

    Cvele_new_account, good point.

    Maybe you can try to remove the af: query to the page, and then drop it again.

  • java.lang.UnsupportedClassVersionError and Java versions

    Hello-

    I have provided some of our users with a pot that I compiled with Java 1.6. The jar consists of a single class. Users to run Java 7.  However, some of them receive this error:

    java.lang.UnsupportedClassVersionError: bad version major < class > offset = 6


    So, I checked the following:


    - java - verbose indicates the class has been compiled with Java 6:

    minor version: 0

    major version: 50

    - java-version indicates the user is running a newer version of java:

    1.7.0_67

    -the jar manifest States the following:

    Created by: 20.13 - b02 (Sun Microsystems Inc.)

    As I understand it, this means the java.lang.UnsupportedClassVersionError exception should not be made.


    So I am confused - is there something I can do to diagnose or fix this?



    Thanks for your help!

    It is clearly the problem of the management of versions. Re-compile all your classes with JDK 1.6 and deploy once more, if you don't know that users are running on JDK 1.7. Backward compatibility will never be a problem in the java programs have complied.

    On another note, in systems where you get this problem, go to the Java Control Panel and see the correct JRE version used by this particular user's system. Each system you have by default installed JRE and which will be used by browsers most of the time

  • Unrecoverable internal error: java.lang.NullPointerException when compiling

    Recently, I changed my code, and when I am compiling it, I got this error:

    Unrecoverable internal error: java.lang.NullPointerException

     

    Previously, I had met this exception several times, but when running the application in the Simulator.

    I've tried the cleaning project, cleaning the Simulator and even restart the laptop. Did not work.

    The same error persists.

    Maybe it's a bug in the compiler?

    Finally, I found the culprit:

    I put 5 large images (total size: approximately 18 MB) in the "res/img.

    The solution is to load these images from an SD card.

  • BlackBerry Smartphones MySpace untrapped exception: java.lang.NullPointerException when you try to access the friends

    Curve 8330 Verizon Wireless

    4.5.0.77 (Platform 3.2.0.51)

    V1.0.0.29 AppWorld

    MySpace v1.5.0.12

    Facebook v1.5.0.32

    Was a problem with MySpace, found no messages/threads with this specific issue, if you are looking for help.  I noticed in the review for MySpace v1.5 on AppWorld Board there were other owners of the Curve 8330 has the same question:

    Whenever I try to view my friends list, add a friend, or look at someone from another friend list, the application crashes.  If I leave the app to do something else while it loads and try to re - open, I get:

    Untrapped exception:

    java.lang.NullPointerException

    Research on the forums for this error of java, most of the suggestions were to reload the operating system of the device such that it may be corrupted.  As an attempt to solve the problem, last night I upgraded to v4.5 v4.3.  When I have been upgrading completed, my MySpace, AppWorld and Facebook apps has shown under options > advanced > applications, but the icons could not be found.  I even searched the hidden icons and still no luck.  I used the destop application loader to remove these three applications in the device manager.  I then downloaded AppWorld from my (www.blackberry.com) device and once it has been installed it used to download and install MySpace and Facebook.  Once they have downloaded and installed, I turned off and only went to a battery.  Restarts, showed the icons and apps worked... except for the MySpace Friend list: same problem.  I don't remember when this error occurred initially, but I guess it was after the last MySpace app update.  Were not immediately thereafter, however.  I can access my messages, and the home page, but that's all.  I already sent an e-mail to [email protected] with no response

    Any help out there!

    MySpace 1.5.1.7 version is available for download!

    Curiously, the app started working properly a few days there with the exception of slow notifications, but not mistakes.

    Thanks for all your support!

  • Caching returns a java.lang.NullPointerException when used with the saml token client strategy

    Hi all

    Not sure if anyone has faced this problem earlier.

    I work with Oracle Service Bus, creating a SOAP Service. I use GOSA policies with my services to businesses (oracle/wss10_saml_token_with_Message_integrity_client_policy).

    Problem: I want to use caching when you call the services in the background as the change from rarely to answer. When I use the service, it works perfectly well for the first time, but the next time that it returns just a

    -Error message:

    null

    java.lang.NullPointerException

    at com.bea.wli.sb.security.wss.WssHandlerImpl.doOutboundResponse(WssHandlerImpl.java:1057)

    at com.bea.wli.sb.context.BindingLayerImpl.addResponse(BindingLayerImpl.java:736)

    to com.bea.wli.sb.pipeline.PipelineContextImpl$ SynchronousListener.onReceiveResponse (PipelineContextImpl.java:1456)

    at com.bea.wli.sb.pipeline.resultcache.ServiceResultCachingCallback.run(ServiceResultCachingCallback.java:50)

    at weblogic.work.ContextWrap.run(ContextWrap.java:41)

    Truncated. check the log file full stacktrace

    >

    I can't change the policy as my communication brake from the backend. Please let me know if there is anyway I can prevent that or is this a bug with Oracle services.

    Thank you guys. Found the "16165934" Patch for this problem.

  • java.lang.NoClassDefFoundError when calling a java class of BPEL

    Hello

    I'm calling a java class to convert JSON to XML using BPEL. I imported all the necessary jar files in the project and compile successfully done.

    But while running, I get the java.lang.NoClassDefFoundError: net/sf/json/JSON error.

    For this, I placed all the necessary pots under the path FUSION_HOME/Oracle_SOA1/soa/modules/oracle.soa.ext_11.1.1/ and restarted the server.

    But still, I get the same error when running.

    A I missed a step? Let me know the procedure to solve this problem.

    I have to run ant or change the file manifests after placing the pot?

    in a site I find that we must place the pots under < DOMAIN HOME > directory / lib. Is this correct?

    We use SOA suite 11.1.1.6.

    Thank you

    Terry

    Hello Terry,

    I'm not quite sure of what exactly would be the problem. Please go through this link and see if it helps: integrating Java and Java EE Code in a BPEL process

    Kind regards

    Karan

    Oracle Fusion Middleware Blog

  • java.lang.IllegalArgumentException When pass RMCS to proc

    Hello

    the use case is to call the 2-argument procedure defined in AMImpl
    When you click on the button get
    < Utils > < buildFacesMessage > ADF: addition of the JSF error message: java.lang.IllegalArgumentException
    java.lang.IllegalArgumentException


    What does take to succeed guys?
    I can pass it directly to #{bindings.register_id_var2} or only viewScope vars should be used?

    < af:commandButton text = "invertRegisterLines" id = "cb6' partialSubmit = 'true' actionListener =" #{bindings.invertRegisterLines.execute} ">
    < af:setPropertyListener from = "#{bindings." RegisterId.inputValue}"to =" #{bindings.register_id_var2} "type ="launch"/ >"
    "< af:setPropertyListener from =" #{securityContext.userName} "to =" #{bindings.user_name_var2} "type ="launch"/ >
    < / af:commandButton >

    in pagedef:

    < attributeValues IterBinding = "DcaRegisterLinesV1Iterator" id = "RegisterId" >
    < AttrNames >
    < point Value = "RegisterId" / >
    < / AttrNames >
    < / attributeValues >
    < methodAction id = "invertRegisterLines" RequiresUpdateModel = "true" Action = 'invokeMethod '.
    MethodName = "invertRegisterLines" IsViewObjectMethod = "false" DataControl = "AppModuleDataControl."
    InstanceName = "data. AppModuleDataControl.dataProvider">
    < NamedData NDName = "register_id_var" NDType = "int" NDValue = "${bindings.invertRegisterLines_register_id_var}" / >
    < NamedData NDName = "user_name_var" NDType = "java.lang.String"
    NDValue = "${bindings.invertRegisterLines_user_name_var}" / >
    < / methodAction >
    < attributeValues IterBinding = 'variables' id = 'register_id_var2' >
    < AttrNames >
    < item Value = "invertRegisterLines_register_id_var" / >
    < / AttrNames >
    < / attributeValues >
    < attributeValues IterBinding = 'variables' id = 'user_name_var2' >
    < AttrNames >
    < item Value = "invertRegisterLines_user_name_var" / >
    < / AttrNames >
    < / attributeValues >

    Grodno, she so help us if you tell us your jdev version and format the code you post here. Please read the FAQ (https://forums.oracle.com/forums/help.jspa) to know how to format the code you post here!

    Your problem is that you try to write directly to the valiable that represents your setting. You must use the link which is accessible from the GUI.

    
    
    
    
    

    And you need to use the action as the event type.

    Timo

    Published by: Timo Hahn on 05.02.2013 10:33

  • Java Application error when loading Firefox 6

    Since the upgrade to ver. 5-worm. 6, I get the following error message every time I load Firefox: ' [JavaScript Application: load: TypeError: Components.classes['@checkpoint.com/XPCOMTrustCheckerMozilla/TrustCheckerMozilla;1'] is not defined. " I've already disabled and re-enabled so all my modules and plugins and none cause this problem. I use ZoneAlarm firewall on my system Win7 but disabling it does not the error message disappears. I have not had this problem with previous versions of Firefox. What else can I do to fix this problem?

    Zone alarm that is installed into Firefox, toolbar is not compatible with Firefox 6. Your Add-on Compatibility Reporter registration on your extensions, can or can is not working correctly. Until Zone Alarm free update (no ETA), you need to disable the following:

    • -Add-ons > Extenstions > 1.5.322.0 ZoneAlarm security engine
    • -Add-ons > Plugins > npFFApi 1.0.0.1

    Zone alarm Forum: http://forums.zonelabs.com/index.php

    • Search for Firefox 6 views

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • Java games crashing when loading on Satellite Pro C660D

    So I have the Toshiba Satellite Pro C660D for Christmas. The first thing I did as a teenager was to examine the specifications to see if she would be able to reasonably run the games.

    Care was fine for me. So I installed a few games, Minecraft installed first, which crashed. I then install Farming Simulator to see if it was just Minecraft, farming Simulator crashed.

    I tried to install the latest drivers from the Web site intel however, Setup seems just close when the installation is about to begin.

    I am really very disappointed because my old Dell inspiron 1525 which has been literally if collapse will run these games very well.

    If anyone can help it would be much appreciated.

    Thanks in advance,
    Connor

    Chalky Hello,

    You're not alone, my son has saved his Christmas money to buy a Satellite C660-21Z. I checked on the minecraft site by putting in the specifications of the machine and it should work just fine. When we try, it crashes when connecting.

    This seems to just be a Toshiba _problem games_ java running, and there is already stuff of minecraft in this regard support forum. I started in Bartpe XP and got, it works using _it is not a hardware problem, _ but the satellite comes with win7 and I don't want to go down.

    I tried to put java day and according to the minecraft forum, the problem is that the Satellite comes with the ATI driver that needs to be removed. That would be wise because it works with a Bartpe bootable disk, but not with the Toshiba software package. I'm afraid to support Toshiba seem very reluctant to help, because you have probably already found. >>

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=63212

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=63124

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=64845&TSTART=0

    As minecraft works ok off a bartpe cd, I would say that there must be a problem of Toshiba running and it works ok on other laptops, and also other Java games seems to fail on the C660, I guess that there is a conflict of drivers with java. I'm sorry, but nobody else seems to be able to get a c660 longer works.

    I bought mine from Amazon that I noticed that many of those "renovated", may be returned and exchanged because they do not have Java?
    I'm giving my son until January and then request a refund if we cannot make it work.

    Sorry I can't help more and please let me know if you get a solution because otherwise it seems a nice laptop.

  • Eception exception: java.lang.Error when persisting the data...

    Hi all

    I am facing this error persisting my data.

    I followed the example provided to

    http://NA.BlackBerry.com/developers/resources/A13_Storing_Persistent_Data_V2.PDF

    First, I copy paste the code in a project. It was working fine. Later I managed for my use following code re

    SerializableAttribute public class HelloWorld extends UiApplication
    {
    Public Shared Sub main (String [] args)
    {
      
    Hello HelloWorld = new HelloWorld();
    hello.parseOnlineData ();
    hello.enterEventDispatcher ();
    }
    public HelloWorld()
    {
    a new screen
    Try
    {
    pushScreen (new HelloWorldScreen()); MusicStores
    pushScreen (new Settings());
    }
    catch (System.Exception e)
    {
    System.out.println ("# error" + e.getMessage ());
    }
    }
     
    / * class final HelloWorldScreen extends screen
    {
    LabelField settings private;
    public HelloWorldScreen()
    {
    Super();
    LabelField title = new LabelField ("HelloWorld example",
    LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
    setTitle (title);
    Add (new LabelField "(Bonjour World!",LabelField.FOCUSABLE) ");
    }
    public boolean onClose()
    {
    Dialog.Alert ("Goodbye!");
    System.Exit (0);
    Returns true;
    }
      
    }*/
     
    }

    # second class that is inherited from the screen...

    Settings/public class extends screen
    {
    most popular public static string = "most popular."
    public static String newlyadded = "newlyadded;
    public static string Bulletin = 'News ';
    public static string columns = "columns";
    public static string = "jobs" jobs
    public static string = "events" events
    public static interview of string = "interview"
    public static String indepth = 'thorough ';
     
    CheckboxField chkMostPopular;
    CheckboxField chkNewlyAdded;
    CheckboxField chkNews;
    CheckboxField chkColumns;
    CheckboxField chkJobs;
    CheckboxField chkEvents;
    CheckboxField chkInterview;
    CheckboxField chkIndepth;
    ButtonField saveFields;

    public Settings()
    {
    Try
    {
    Configuration config = StoreConfiguration.getConfiguration ();
    If (config! = null &! config.isEmpty ())
    {
    chkMostPopular = new CheckboxField ("Most popular", ((Boolean) config.getElement (mostPopular)) .booleanValue ());
    chkNewlyAdded = new CheckboxField ("Newly added", ((Boolean) config.getElement (newlyadded)) .booleanValue ());
    chkNews = new CheckboxField ('News', ((Boolean) config.getElement (news)) .booleanValue ());
    chkColumns = new CheckboxField ("Columns", ((Boolean) config.getElement (columns)) .booleanValue ());
    chkJobs = new CheckboxField ("Jobs", ((Boolean) config.getElement (jobs)) .booleanValue ());
    chkEvents = new CheckboxField ('Events', ((Boolean) config.getElement (events)) .booleanValue ());
    chkInterview = new CheckboxField ("Interview", ((Boolean) config.getElement (interview)) .booleanValue ());
    chkIndepth = new CheckboxField ("in depth", ((Boolean) config.getElement (indepth)) .booleanValue ());
    }
    on the other
    {
    chkMostPopular = new CheckboxField ("Most popular", false);
    chkNewlyAdded = new CheckboxField ("Newly added", false);
    chkNews = new CheckboxField ("News", false);
    chkColumns = new CheckboxField ("Columns", false);
    chkJobs = new CheckboxField ("Jobs", false);
    chkEvents = new CheckboxField ("Events", false);
    chkInterview = new CheckboxField ("Interview", false);
    chkIndepth = new CheckboxField ("in depth", false);
    }
       
       
    saveFields = new ButtonField ("Save")
    {
    protected boolean navigationClick (int status, int time)
    {
    persistConfigurationData();
    Dialog.Alert ("data");
    onClose();
    Return super.navigationClick (status, time);
    }
    };
    Add (chkMostPopular);
    Add (chkNewlyAdded);
    Add (chkNews);
    Add (chkColumns);
    Add (chkJobs);
    Add (chkEvents);
    Add (chkInterview);
    Add (chkIndepth);
    Add (saveFields);
    }
    catch (System.Exception e)
    {
    System.out.println ("# error Settings()" + e.getMessage ());
    }
    }
     
    Private Sub persistConfigurationData()
    {
    Configuration config = new Configuration();
    config.setElement (most popular, new Boolean (chkMostPopular.getChecked ()));
    config.setElement (newlyadded, new Boolean (chkNewlyAdded.getChecked ()));
    config.setElement (news, new Boolean (chkNews.getChecked ()));
    config.setElement (columns, new Boolean (chkColumns.getChecked ()));
    config.setElement (jobs, new Boolean (chkJobs.getChecked ()));
    config.setElement (events, new Boolean (chkEvents.getChecked ()));
    config.setElement (interview, new Boolean (chkInterview.getChecked ()));
    config.setElement (indepth network, new Boolean (chkIndepth.getChecked ()));
    System.out.println ("will persist object");
    StoreConfiguration.setConfiguration (config);
    }
    }

    # third class which is a persistence class

    Configuration/public class implements Persistable
    {
    private static Hashtable _config;
    Configuration() public
    {
    _config = new Hashtable();
    }
     
    public Object getElement (String key)
    {
    Return _config.get (key);
    }
    ' Public Sub setElement (key of type string, Boolean)
    {
    _config.put (key, new Boolean (value));
    }
     
    ' Public Sub setElement (key of type string, Boolean)
    {
    _config.put (Key, value);
    }
     
    public Hashtable getConfiguration()
    {
    return _config;
    }
     
    public boolean isEmpty()
    {
    Return _config.isEmpty ();
    }
    }

    I use the BB 8300 Simulator.  Once this error is thrown in this program, the example program that was carried out with success, also stopped running. I tried changing the 'key' to store the data in the following line of code.

    PersistentStore.getPersistentObject (0xdec6a67096f833cL);

    Using bb 8300 with eclipse Simulator.

    Please help me solve this problem.

    Thank you

    Kind regards

    Amber

    Not sure where your problem is, but there are some things that I am not comfortbable with your current code.  This is a replacement code.  You can give it a try?

    The major changes are:

    (a) in the settings, we do not create a new object of Configuration, we update the existing object.  Also note that StoreConfiguration.getConfiguration (); should never return null.

    (b) in StoreConfiguration, I tidied up to account for what was happening in fact of suite and there is never a single _data object (Configuration)

    (c) in the Configuration, the hash table is more static.

    Apart from a bit of as, these changes reflect the fact that static may not be a singleton.  If you are referring to the Configuration of two different processes (a background app started at the beginning of time and a leading user interface component started with an alternative entry), you won't see the same object simply by using a static.

    Sorry, none of the code has been compiled, but I hope you understand intentions.

    Parameters

    package com.persistence;
    
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.CheckboxField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class Settings extends MainScreen
    {
    
        public static String mostPopular = "mostpopular";
        public static String newlyadded = "newlyadded";
        public static String news = "news";
    
        CheckboxField chkMostPopular;
        CheckboxField chkNewlyAdded;
        CheckboxField chkNews;
    
        Configuration config
    
        ButtonField saveFields;
    
        public Settings()
        {
            try
            {
                config = StoreConfiguration.getConfiguration();
                chkMostPopular = new CheckboxField("Most Popular", ((Boolean)config.getElement(mostPopular)).booleanValue());
                chkNewlyAdded = new CheckboxField("Newly Added", ((Boolean)config.getElement(newlyadded)).booleanValue());
                chkNews = new CheckboxField("News", ((Boolean)config.getElement(news)).booleanValue());
    
                saveFields = new ButtonField("Save")
                {
                    protected boolean navigationClick(int status, int time)
                    {
                        persistConfigurationData();
                        Dialog.alert("Data saved");
                        //onClose();
                        return super.navigationClick(status, time);
                    }
                };
                add(chkMostPopular);
                add(chkNewlyAdded);
                add(chkNews);
                add(saveFields);
            }
            catch (Exception e)
            {
                System.out.println("##### Error occurred Settings() "+e.getMessage());
            }
        }
    
        private void persistConfigurationData()
        {
            config.setElement(mostPopular,new Boolean(chkMostPopular.getChecked()));
            config.setElement(newlyadded,new Boolean(chkNewlyAdded.getChecked()));
            config.setElement(news,new Boolean(chkNews.getChecked()));
            System.out.println("Going to persist object");
            StoreConfiguration.storeConfiguration();
        }
    }
    

    StoreConfiguration

    package com.persistence;
    
    import net.rim.device.api.system.PersistentObject;
    import net.rim.device.api.system.PersistentStore;
    
    public class StoreConfiguration
    {
        private static PersistentObject store;
        private static Configuration _data;
    
        private StoreConfiguration()
        {
    
        }
    
        static
        {
            store = PersistentStore.getPersistentObject(0xe63e08aacd575338L);
    
            Object storedObject  = store.getContents();
            if ( storedObject instanceof Configuration ) {
                // we have what we want - cast it
                _data = (Configuration) storedObject ;
            } else {
                _data = new Configuration();
                StoreConfiguration.setConfiguration(_data);
            }
    
        }
    
        public static Configuration getConfiguration()
        {
            return _data;
    
        }
    
        public static void storeConfiguration()
        {
            System.out.println("setConfiguration  ## Going to persist object");
            synchronized (store)
            {
                System.out.println("setConfiguration  ## _data "+((Boolean)_data.getElement("mostpopular")).booleanValue());
                store.setContents(_data);
                store.commit();
            }
        }
    }
    

    Configuration:

    package com.persistence;
    
    import java.util.Hashtable;
    
    import net.rim.device.api.util.Persistable;
    
    public class Configuration implements Persistable
    {
        private Hashtable _config;
        public Configuration()
        {
            _config = new Hashtable();
        }
    
        public Object getElement(String key)
        {
            return _config.get(key);
        }
        public void setElement(String key, boolean value)
        {
            _config.put(key, new Boolean(value));
        }
    
        public void setElement(String key, Boolean value)
        {
            _config.put(key,value);
        }
    
        public Hashtable getConfiguration()
        {
            return _config;
        }
    
        public boolean isEmpty()
        {
            return _config.isEmpty();
        }
    }
    

Maybe you are looking for

  • Upgrade to Windows 10 - Satellite Pro R50 - B

    I intend to get a R-50-B. This has win 8.1 pre-installed.Windows 10 which will be released in July.Can I switch to Windows 10 without any problem?Best regards, Theo

  • Tecra A4: How do TV s-video connection?

    I have cable and I have connected There is no signal, as there is not an option for tv output or s-video in properties - Advanced - display

  • Disable the default wireless on Acer Aspire 5741

    I have an Acer Aspire 5741-5698 running Windows 7.  I never want to connect to wireless internet.  I want to only rarely connect with a wired connection.  I can disconnect the wireless by pressing Fn + F3, but I never see a "Launch Manager".  The pro

  • Duplex printing Officejet 7610

    I just installed the duplex printing accessory and am unable to do duplex printing. Mavericks 10.9.4, version 2.0 driver running. I went to the preference of the components/Printers & Scanners / Officejet 7610/Open queue print/settings, but there is

  • Backup DR with vRanger connection devices

    Having Dr. devices dealing with VM backups on-site, but one of the questions that arise is the time of the backup. It takes about 8 hours to backup the SQL files every night. Just to let you know its all upwards in a virtual machine environment. Can