Local persistence - SharedObject

Hey,.

I'm having some trouble with SharedObject. I want to be able to store user settings and then access in other classes. I write my code below. Any help would be appreciated. Thank you.

My guess is that the sharedBackground.data.backgroundIndex is not really get the index value and store. Or obtaining of garbage.

package
{
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.filesystem.File;
    import flash.net.SharedObject;
    import flash.text.TextField;
    import flash.text.TextFormat;

    import qnx.dialog.*;
    import qnx.display.IowWindow;
    import qnx.events.DialogEvent;
    import qnx.ui.buttons.Button;
    import qnx.ui.buttons.IconButton;
    import qnx.ui.display.Image;
    import qnx.ui.text.Label;

    public class MainWindow extends Sprite
    {
        private var BUTTON_WIDTH:int = 150;
        private var BUTTON_HEIGHT:int = 100;
        private var backgroundPopUp:PopupList;
        private var sharedBackground:SharedObject;

        public function MainWindow()
        {
            drawMainWindow();
            sharedBackground = SharedObject.getLocal("UCBackground");
        }

        public function drawMainWindow():void {

            //Create the background.
            var backIndex:int = sharedBackground.data.backgroundIndex;

            if(sharedBackground.data.backgroundIndex == null){
                backIndex = 0;
                createBackground(backIndex);
            } else {
                createBackground(backIndex);
            }

            var optionsButton:IconButton = new IconButton();
            optionsButton.addEventListener(MouseEvent.CLICK, clickOptionsButton);
            optionsButton.setSize(48,48);
            addChild(optionsButton);
        }       

        private function showPopup():void
        {
            backgroundPopUp = new PopupList();
            backgroundPopUp.title = "Change Background";
            backgroundPopUp.items = ['Black', 'Red', 'Blue', 'Orange'];
            backgroundPopUp.addButton("OK");
            backgroundPopUp.addButton("Cancel");
            backgroundPopUp.dialogSize = DialogSize.SIZE_TALL;
            backgroundPopUp.addEventListener(Event.SELECT, backgroundPopUpSelection);
            backgroundPopUp.show(IowWindow.getAirWindow().group);
        }

        // Event Listeners
        private function clickOptionsButton(event:MouseEvent):void {
            showPopup();
        }

        private function backgroundPopUpSelection(event:Event):void{
            // Hit the "OK" button.
            if (event.target.selectedIndex == 0) {

                sharedBackground.data.backgroundIndex = event.target.selectedIndices;
                sharedBackground.flush(10000);

                drawMainWindow();
            }
        }   

        //Creates the background based on the image selected
        public function createBackground(index:int):void {
            var appBackgroundImage:Image = new Image();

            if(index == 0){
                appBackgroundImage.setImage(File.applicationDirectory.resolvePath('backgroundBlack.png').url);
            } else if (index == 1) {
                appBackgroundImage.setImage(File.applicationDirectory.resolvePath('backgroundRed.png').url);
            } else if (index == 2) {
                appBackgroundImage.setImage(File.applicationDirectory.resolvePath('backgroundBlue.png').url);
            } else if (index == 3) {
                appBackgroundImage.setImage(File.applicationDirectory.resolvePath('backgroundOrange.png').url);
            } 

            appBackgroundImage.setPosition(0,0);
            addChild(appBackgroundImage);
        }
    }
}

Thank you!

G

Hey gpatton,

I ran your code and it worked fine. the only change I made was to the order of the code in your main function:

       public function MainWindow()      {         sharedBackground = SharedObject.getLocal("UCBackground");         drawMainWindow();        }

At first I did because the shared object was not available and he threw an error. After that I just kept there and it records the correct index number and displays the image on the right. Try this change and see how it works for you. Good luck!

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry graphic Help - location of developer certificate

    I use the graphic Help for Windows of BlackBerry to sign my AIR applications.

    How to change the location of the certificate .p12 under the tab "Configuration"?

    No matter what I'm looking for the path point to "author.p12". (the file is in a local settinsg RIM folder) is this a bug?

    Thank you.

    Vibes

    P.S., Where the graphical help of BlackBerry stores input data? It is perhaps possible to hack the path in there?

    The package of the graphical tool id help (you can view in the application xml file for the)

    graphic help AIR app) is 'hand '.   Yes, you read that right, 'hand '.

    (You can see the full application xml content to a path on your system that could

    look in C:\Program Files\BlackBerryGraphicalAid\META-INF\AIR\application.xml on

    your system).

    Using this idea and Adobe documents for name resolution of local filesystem sandbox, you'll find

    that for example in a Windows XP box using Graph installed, local settings are stored in a

    shared in the path object:

    C:\Documents and Settings\\Application Data\Main\Local Store\#SharedObjects\Main.swf\BBGraphicalAid.sol

    Given that I have not used this tool in ages, I had installed 1.0.0 version, and I was able to

    Run the configuration wizard and change the location of the .p12 file in this version.  However, once

    I install the latest version that I can easily find, version 2.6.6 and then run the Setup Wizard.

    and try to change the location of the .p12 file, it gives me a warning about how I already have

    This and I'm about to overwrite the certificate.

    Note this discussion only when using the command-line tools, "If you name the new P12.

    Author.P12 and place in the same directory as the barsigner.db, then you can sign up with 1 order.

    (which means, you don't have a two-step procedure signature as you would if you name something .p12

    Maybe different) graphic help requiring / waiting for you to use the standard 'author.p12 '.

    the name and place it in the standard location.  (For example Windows XP that is):

    %HOMEPATH%\Local Settings\Application is in Motion\author.p12).

    Try to copy your .p12 file to location name and see if that helps.

    Finally, see my comments about why IMO according to graphic Help for a production build stream

    is not a particularly good choice.

  • How the keylogger to settle on my computer in the first place

    How the keylogger be installed on my computer in the

    the first place? It was on my computer in the credits

    identification information. 02tqvycqblsg... with an asteric password

    with the same number of letters as my hotmail password.

    I know that one of my email accounts had been consulted.

    . Also have this site on my computer virtualapp/didlogical.

    What is the computer Local persistence? I also had the false 1033

    Update. and yet another. KB958488 here. I have

    not removed yet. I put cyberlink does not import photos. A week later

    my pictures are back on there, I have some people who are trying to

    invite me to linkedin. But am not to accept their invitation.

    They are part of a ponzi scam that took investors for a lot of money

    We are currently trying to get some Gov't agencies to pronounce on

    them when I started to change passwords on my email accounts.

    Reset cyberlink, patch removal * 1033. and generics

    "credentials, 02tqvycqblsg w/pswrd * virtualapp/didlogical.

    I immediately got a reminder on the invitation of linkedin. But I'm also

    on a network shared, one day my computer with warnings

    say to another computer had the same ip address. And I know for a fact

    at least one person on the network was to watch my cursor move their

    screen. A day or so before this incident, a person in the same

    residence was asked to copy a cd recorded House for them. I was shocked

    to see copied in a few minutes. And does not burn on the blank cd.

    This may sound a little weird. But that's what I know.

    I need a computer expert to give me the facts. I've read conflicting answers

    on some of these things. And I read that this stuff is the same software

    that Madoff used before he was captured. !!!!!

    Hello

    There are available many hardware options and software security that can be found by searching Bing.

    Also, it seems that the network is compromised. You can see the following link to check the new and improved security features in Windows 7 to secure the network.

    http://www.Microsoft.com/security/PC-security/Windows7.aspx

    Also check out the following link for more information on protecting your PC against malicious software.

    http://www.Microsoft.com/security/PC-security/protect-PC.aspx#build

  • persistence of RC.local and file

    ESXi-v5 supposedly has a core of files (10 or more) who automatically get backed up or saved periodically. This list (and process) documented somewhere on this site or?

    In addition, if a custom set of files required to persist the resets (IE: a set of custom firewall rules came in the service.xml file), is rc.local the place to make sure that what is happening (rc.local also one periodically saved files)? Or this file can simply be added to any process (see above) records periodically 'other' the core files?

    THX.

    Mounting /etc/rc.local creates one. #rc.local. If this file gets saved in the/sbin/auto - backup.sh. I think that this answer one of your questions?

    Also one of the link below talks an option to save files in ESXi other than auto - backup.sh running.

    "(2) there is also another backup process"internal"which runs every 10 minutes which is not configurable as backups of the filesystem ESXi." In the worst cases, you may lose the changes made in the last 10 minutes, if you had a system crash and it restarts".

    I think (to save), the files that reside in directories other than the file/etc / may be backed up using this mechanism. I don't see this information disclosed in detail in the documents.

  • Can Flex 2 cause local data persistence?



    Guys, I just check the RIA development environments. I am aware that the flash local shared objects as a way to store data on a local computer. Is it available in Flex 2? It is essential for the application I want to write. Any help welcome.

    Best

    Steve

    It's just a local file, although the location is not good publicity. You could encrypt the data Save in it. I used MD5 with Flex library.

    Tracy

  • Chassis numbering after power fail? Persistence?

    I had a workplace, where all the blades have been associated and power off (customer did tests of power environment). All OS are installed on local disks (ESXi, Windows, Linux).

    Then a power fail that happened. Power returns and the discovery of the chassis was completely screwed upward, the numbering has changed.

    This meant that turn the blades has resulted in a total chaos; Failure, because there wasn't any blade this slot chassis; or bad what BONES were found.

    Fortunately, the strategy of default scrub was disc = no

    We had to turn off all chassis, then towards them in the old order...

    Why are there no persistence of the chassis, he remembers his number and returned to the top with the original id?

    Walter,

    Who would do the trick. Please answer before I tried to reproduce this morning :). Yes, I noticed on the other posts on the failure of upgrade occurring, I wasn't sure if this was linked to another environment.

    I hope that everything is retrieved and you are online. If you need assistance let me know.

    Kind regards

    Qiese Sa'di

  • Federated back cached data are saved to disk on the local cluster?

    With the new feature Federated consistent caching, 12.2.x, is the internal cache containing rear replication data saved to the local drive?

    What happens if the local cluster goes down, when there is great in waiting for data of backlog waiting to be replicated (probably due to remote cluster being down for an extended period)

    Can this back then recovered and reread cluster remote automatically when we have cold restart the local cluster?

    Any pointers to documentation of coherence on the above issues would be useful.

    To persist a Federated Cache, including arrears, all you need to do is configure on your diagram of federated, as you would for a distributed system.

    Why?  Federated Caches are in fact increased distributed Caches, which basically means that all of the features available for distributed Caches are also available to Federated Caches!

    Basically just add the following to your Federated plan

    active by default

    For more information on the new features of persistence, take a look at:

    http://docs.Oracle.com/middleware/1221/coherence/administer/persistence.htm#COHAG5327

    I hope this helps.

    -Brian

  • Unable to put new data using persistence mobile A-team

    Hello

    We have a requirement to create and publish documents in the same page as cat whatsapp. The works of post data beautiful that there existing data. If no data is present, and I'm trying to display the data for the first time, I get an error like "cannot force class oracle.adfmf.util.GenericVirtualType for teamup.mobile.model.Discussion" and of the class he debugging point no method service events increased saveDiscussion. "»

    Button create I have following steps:

    1. action listener - #{bindings. Create.Execute}

    2. set the headset to property - params all service

    3. action listener - #{bindings.saveDiscussion.execute}

    saveDiscussion accepts input param - #{bindings.discussionIterator.currentRow.dataProvider}

    My guess is currently stored is zero first. But I do not know how to set the current row in the iterator on click of a button. Can you please help?

    More details are the following:

    REST service: / projects/getdiscussion/activity/discussion / {username} / {projectId} / {TaskId}

    Parameters defined before you enter the page:

    username: 1

    projectId: #{pageFlowScope.projectId}

    tasktId: #{pageFlowScope.activityId}

    Page 1 we are displaying Master records, click which I'm setting variable values of the child feature of pageFlowscope and displaying records list of the child in Page2. . Details of reference are the following:

    Persistence - mapping.xml:

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

    " < mobileObjectPersistence xmlns =" http://www.Oracle.com/Ateam/mobile/persistenceMapping "> "

    < classMappingDescriptor className = "teamup.mobile.model.ProjectsResponse" persisted = "true" > ""

    "< crudServiceClass className ="teamup.mobile.model.service.ProjectsResponseService"autoIncrementPrimaryKey ="true"localPersistenceManager =" oracle.ateam.sample.mobile.v2.persistence.manager.DBPersistenceManager "remotePersistenceManager =" oracle.ateam.sample.mobile.v2.persistence.manager.RestJSONPersistenceManager"remoteReadInBackground ="true"remoteWriteInBackground ="true"showWebServiceInvocationErrors ="true"autoQuery ="true"/ >"

    < table name = "PROJECTS_RESPONSE" >

    < name primaryKeyColumn = "Project" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = "projectId" payloadAttributeName = "ProjectId" columnName = "Project" columnDataType = "NUMERIC" required = "true" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "true" / > "

    < directMapping attributeName = "projectName" payloadAttributeName = "ProjectName" columnName = "PROJECT_NAME" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "description" payloadAttributeName = "Description" columnName = "DESCRIPTION" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "activeFlag' payloadAttributeName = 'ActiveFlag" columnName = "ACTIVE_FLAG" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "lastUpdatedBy' payloadAttributeName = 'LastUpdatedBy" columnName = "LAST_UPDATED_BY" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "lastUpdateDate" payloadAttributeName = "LastUpdateDate" columnName = "LAST_UPDATE_DATE" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < / attributeMappings >

    <>methods

    < findAllMethod uri connectionName = "/ project/getprojects/projects/1" = "MyTask" requestType = 'GET' guaranteed = "false" sendDataObjectAsPayload = "false" deleteLocalRows = "true" payloadElementName = "ProjectsResponse" >

    < name headerParameter = "Content-Type" value = "application/json" / >

    < / findAllMethod >

    < / methods >

    < / classMappingDescriptor >

    < classMappingDescriptor className = "teamup.mobile.model.TeamMember" persisted = "true" > ""

    "< crudServiceClass className ="teamup.mobile.model.service.TeamMemberService"autoIncrementPrimaryKey ="true"localPersistenceManager =" oracle.ateam.sample.mobile.v2.persistence.manager.DBPersistenceManager "remotePersistenceManager =" oracle.ateam.sample.mobile.v2.persistence.manager.RestJSONPersistenceManager"remoteReadInBackground ="true"remoteWriteInBackground ="true"showWebServiceInvocationErrors ="true"autoQuery ="true"/ >"

    < table name = "TEAM_MEMBER" >

    < name primaryKeyColumn = "USER_ID" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = "userId" payloadAttributeName = "USER_ID" columnName = "USER_ID" = "NUMERIC" required = "true" columnDataType persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "true" / > "

    < directMapping attributeName = "userName" payloadAttributeName = "Username" columnName = "Username" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "projectTeamMemberId" payloadAttributeName = "PROJECT_TEAM_MEMBER_ID" columnName = "PROJECT_TEAM_MEMBER_ID" columnDataType = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "lastName", payloadAttributeName = "Name" columnName = "LAST_NAME" = "VARCHAR" required = "false" columnDataType persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "firstName" payloadAttributeName = "First name" columnName = "Name" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < / attributeMappings >

    <>methods

    < findAllMethod uri connectionName = "/ user/getteammember/members/1" = "MyTask" requestType = 'GET' guaranteed = "false" sendDataObjectAsPayload = "false" deleteLocalRows = "true" payloadElementName = "TeamMember" >

    < name headerParameter = "Content-Type" value = "application/json" / >

    < / findAllMethod >

    < / methods >

    < / classMappingDescriptor >

    < className = classMappingDescriptor "teamup.mobile.model.Task ' persisted 'true' orderBy = 'START_DATE' = >" "

    "< crudServiceClass className ="teamup.mobile.model.service.TaskService"autoIncrementPrimaryKey ="true"localPersistenceManager =" oracle.ateam.sample.mobile.v2.persistence.manager.DBPersistenceManager "remotePersistenceManager =" oracle.ateam.sample.mobile.v2.persistence.manager.RestJSONPersistenceManager"remoteReadInBackground ="true"remoteWriteInBackground ="true"showWebServiceInvocationErrors ="true"autoQuery ="true"/ >"

    < table name = "TASK" >

    < name primaryKeyColumn = "ACTIVITY_ID" / >

    < name primaryKeyColumn = "PROJECTID" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = "activityId" payloadAttributeName = "ACTIVITY_ID" columnName = "ACTIVITY_ID" columnDataType = "NUMERIC" required = "true" = "true" javaType = persisted "java.math.BigDecimal" keyAttribute = "true" / > "

    < directMapping attributeName = "projectid" payloadAttributeName = "PROJECTID" columnName = "PROJECTID" columnDataType = "NUMERIC" required = "true" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "true" / > "

    < directMapping attributeName = "activityName" payloadAttributeName = "ACTIVITY_NAME" columnName = "ACTIVITY_NAME" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "description" payloadAttributeName = "DESCRIPTION" columnName = "DESCRIPTION" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "parentActivityId" payloadAttributeName = "PARENT_ACTIVITY_ID" columnName = "PARENT_ACTIVITY_ID" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = 'status' payloadAttributeName = 'STATUS' columnName = 'STATUS' columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "priority" payloadAttributeName = "PRIORITY" columnName = "PRIORITY" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "percentageComplete" payloadAttributeName = "PERCENTAGE_COMPLETE" columnName = "PERCENTAGE_COMPLETE" columnDataType = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "startDate" payloadAttributeName = "START_DATE" columnName = "START_DATE" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "endDate" payloadAttributeName = "End_date" columnName = "End_date" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = 'eta' payloadAttributeName = 'ETA' columnName = 'ETA' columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "estimatedHours" payloadAttributeName = "ESTIMATED_HOURS" columnName = "ESTIMATED_HOURS" columnDataType = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "actualHours" payloadAttributeName = "ACTUAL_HOURS" columnName = "ACTUAL_HOURS" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "ownerUserId" payloadAttributeName = 'OWNER_USER_ID' columnName = 'OWNER_USER_ID' columnDataType = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "createdBy" payloadAttributeName = 'CREATED_BY' columnName = 'CREATED_BY' columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "creationDate" payloadAttributeName = 'CREATION_DATE' columnName = 'CREATION_DATE' columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "lastUpdatedBy" payloadAttributeName = "LAST_UPDATED_BY" columnName = "LAST_UPDATED_BY" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "lastUpdateDate" payloadAttributeName = "LAST_UPDATE_DATE" columnName = "LAST_UPDATE_DATE" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "comments" payloadAttributeName = "COMMENTS" columnName = "COMMENTS" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "discussionCount" payloadAttributeName = "DISCUSSION_COUNT" columnName = "DISCUSSION_COUNT" columnDataType = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "favoriteFlag" payloadAttributeName = "FAVORITE_FLAG" columnName = "FAVORITE_FLAG" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < oneToManyMapping attributeName = "taskAssignment" payloadAttributeName = "TaskAssignment" referenceClassName = "teamup.mobile.model.TaskAssignment" sendAsArrayIfOnlyOneEntry = "true" > "

    < foreignKeyColumnReference sourceTable = sourceColumn "TASK_ASSIGNMENT" = "TASK_ACTIVITY_ID" targetTable = "TASK" targetColumn = "ACTIVITY_ID" / >

    < / oneToManyMapping >

    ' < attributeName = "discussion" accessorMethod = oneToManyMapping "/ projects/getdiscussion/activity/discussion / {username} / {projectId} / {TaskId}" referenceClassName = "teamup.mobile.model.Discussion" sendAsArrayIfOnlyOneEntry = "true" >

    < foreignKeyColumnReference sourceTable = "DISCUSSION" sourceColumn = "ACTIVITY_ID" targetTable = "TASK" targetColumn = "ACTIVITY_ID" / >

    < foreignKeyColumnReference sourceTable = "DISCUSSION" sourceColumn = "Project" = "TASK" = 'PROJECTID' targetColumn targetTable / >

    < / oneToManyMapping >

    < / attributeMappings >

    <>methods

    < findAllMethod uri = "newgettasks/projects / / projects/activities / {username}" connectionName = "MyTask" requestType = 'GET' guaranteed = "false" sendDataObjectAsPayload = "false" deleteLocalRows = "true" payloadElementName = "Task" > "

    < name headerParameter = "Content-Type" value = "application/json" / >

    < parameter name = value 'userId' = '1' valueProvider = 'LiteralValue"pathParam ="true"/ >

    < / findAllMethod >

    < createMethod uri connectionName = "/ projects/newposttask/activity" = "MyTask" requestType = 'POST' guaranteed = "false" sendDataObjectAsPayload = "true" payloadElementName = "Task" >

    < name headerParameter = "Content-Type" value = "application/json" / >

    < / createMethod >

    < updateMethod uri connectionName = "/ projects/newputtask/activity" = "MyTask" requestType = 'PUT' secure = "false" sendDataObjectAsPayload = "true" payloadElementName = "Task" >

    < name headerParameter = "Content-Type" value = "application/json" / >

    < / updateMethod >

    < / methods >

    < / classMappingDescriptor >

    < classMappingDescriptor className = "teamup.mobile.model.TaskAssignment" persisted = "true" > ""

    < className = crudServiceClass "teamup.mobile.model.service.TaskService" autoIncrementPrimaryKey = "true" / > "

    < table name = "TASK_ASSIGNMENT" >

    < name primaryKeyColumn = "ASSIGNMENT_ID" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = "assignmentId" payloadAttributeName = "ASSIGNMENT_ID" columnName = "ASSIGNMENT_ID" columnDataType = "NUMERIC" required = "true" = "true" javaType = persisted "java.math.BigDecimal" keyAttribute = "true" / > "

    < directMapping attributeName = "projectTeamMemberId" payloadAttributeName = "PROJECT_TEAM_MEMBER_ID" columnName = "PROJECT_TEAM_MEMBER_ID" columnDataType = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "startDate" payloadAttributeName = "START_DATE" columnName = "START_DATE" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "endDate" payloadAttributeName = "End_date" columnName = "End_date" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "createdBy" payloadAttributeName = 'CREATED_BY' columnName = 'CREATED_BY' columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "creationDate" payloadAttributeName = 'CREATION_DATE' columnName = 'CREATION_DATE' columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "lastUpdatedBy" payloadAttributeName = "LAST_UPDATED_BY" columnName = "LAST_UPDATED_BY" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "lastUpdateDate" payloadAttributeName = "LAST_UPDATE_DATE" columnName = "LAST_UPDATE_DATE" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "favoriteFlag" payloadAttributeName = "FAVORITE_FLAG" columnName = "FAVORITE_FLAG" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    "< directMapping attributeName ="taskActivityId"columnName ="TASK_ACTIVITY_ID"columnDataType ="NUMERIC"required ="false"persisted = 'true' parentClass ="teamup.mobile.model.Task"parentAttributeName ="activityId"javaType =" java.math.BigDecimal "keyAttribute ="false"/ >

    < / attributeMappings >

    < methods / >

    < / classMappingDescriptor >

    < classMappingDescriptor className = "teamup.mobile.model.Discussion" persisted = "true" > ""

    "< crudServiceClass className ="teamup.mobile.model.service.DiscussionService"autoIncrementPrimaryKey ="true"localPersistenceManager =" oracle.ateam.sample.mobile.v2.persistence.manager.DBPersistenceManager "remotePersistenceManager =" oracle.ateam.sample.mobile.v2.persistence.manager.RestJSONPersistenceManager"remoteReadInBackground ="true"remoteWriteInBackground ="true"showWebServiceInvocationErrors ="true"autoQuery ="true"/ >"

    < table name 'DISCUSSION' = >

    < name primaryKeyColumn = "DISCUSSION_ID" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = 'discussionId' payloadAttributeName = "DISCUSSION_ID" columnName = "DISCUSSION_ID" columnDataType = "NUMERIC" required = "true" = "true" javaType = persisted "java.math.BigDecimal" keyAttribute = "true" / > "

    < directMapping attributeName = "activityId" payloadAttributeName = "ACTIVITY_ID" columnName = "ACTIVITY_ID" columnDataType = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "discussionDate" payloadAttributeName = "DISCUSSION_DATE" columnName = "DISCUSSION_DATE" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "userId" payloadAttributeName = "USER_ID" columnName = "USER_ID" = "NUMERIC" required = "false" columnDataType persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "discussionMessage" payloadAttributeName = "DISCUSSION_MESSAGE" columnName = "DISCUSSION_MESSAGE" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "createdBy" payloadAttributeName = 'CREATED_BY' columnName = 'CREATED_BY' columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "creationDate" payloadAttributeName = 'CREATION_DATE' columnName = 'CREATION_DATE' columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "lastUpdatedBy" payloadAttributeName = "LAST_UPDATED_BY" columnName = "LAST_UPDATED_BY" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "lastUpdateDate" payloadAttributeName = "LAST_UPDATE_DATE" columnName = "LAST_UPDATE_DATE" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "projectId" payloadAttributeName = "Project" columnName = "Project" columnDataType = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < / attributeMappings >

    <>methods

    < findAllMethod uri = "/ projects/getdiscussion/activity/discussion / {username} / {projectId} / {TaskId}" connectionName = "MyTask" requestType = 'GET' guaranteed = "false" sendDataObjectAsPayload = "false" deleteLocalRows = "true" payloadElementName = "Discussion" > "

    < parameter name = value 'userId' = '1' valueProvider = 'LiteralValue"pathParam ="true"/ >

    < name of the parameter = value = "#{pageFlowScope.projectId"projectId"}" valueProvider = "ELExpression" dataObjectAttribute = 'discussionId' pathParam = "true" / > "

    < name of the parameter = "TaskId" value = "#{pageFlowScope.activityId}" valueProvider = "ELExpression" dataObjectAttribute = "activityId" pathParam = "true" / > "

    < / findAllMethod >

    < name findAllInParentMethod = "discussion" uri = "/ projects/getdiscussion/activity/discussion / {username} / {projectId} / {TaskId}" connectionName = "MyTask" requestType = 'GET' guaranteed = "false" sendDataObjectAsPayload = "false" payloadElementName = "Discussion" > "

    < parameter name = value 'userId' = '1' valueProvider = 'LiteralValue"pathParam ="true"/ >

    < parameter name = value 'projectId' = '1' valueProvider = 'LiteralValue"pathParam ="true"/ >

    < parameter name = value "TaskId" = "176" valueProvider = "LiteralValue" pathParam = "true" / >

    < / findAllInParentMethod >

    < createMethod uri = "/ projects/newpostdiscussion/discussion" connectionName = "MyTask" requestType = 'POST' guaranteed = "false" sendDataObjectAsPayload = "true" payloadElementName = "Discussion" >

    < name headerParameter = "Content-Type" value = "application/json" / >

    < / createMethod >

    < / methods >

    < / classMappingDescriptor >

    < classMappingDescriptor className = "oracle.ateam.sample.mobile.v2.persistence.service.DataSynchAction" dateFormat 'dd-MMM-yyyy' = > "

    < table name = "DATA_SYNCH_ACTIONS" >

    < name primaryKeyColumn = "SERVICE_CLASS_NAME" / >

    < name primaryKeyColumn = "ID" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = "id" columnName = "ID" columnDataType = "NUMERIC" required = "true" javaType = "java.lang.Integer" keyAttribute = "true" / > "

    < directMapping attributeName = "serviceClass" columnName = "SERVICE_CLASS_NAME" columnDataType = "VARCHAR" required = "true" javaType = "java.lang.String" keyAttribute = "true" / > "

    < directMapping attributeName = "entityClassString" columnName = "ENTITY_CLASS_NAME" columnDataType = "VARCHAR" javaType="java.lang.String"/ >

    < directMapping attributeName = "entityAsJSONString" columnName = "JSON_PAYLOAD" columnDataType = "VARCHAR" javaType="java.lang.String"/ >

    < attributeName = "action" columnName = 'ACTION' columnDataType directMapping = 'VARCHAR' javaType="java.lang.String"/ >

    < attributeName = "dateCreated" columnName directMapping = 'DATE_CREATED' columnDataType = 'DATE' javaType="java.util.Date"/ >

    < attributeName = "lastSynchAttempt" columnName directMapping = "DATE_LAST_SYNCH" columnDataType = "DATE" javaType="java.util.Date"/ >

    < directMapping attributeName = "lastSynchError" columnName = "LAST_SYNCH_ERROR" columnDataType = "VARCHAR" javaType="java.lang.String"/ >

    < directMapping attributeName = "customMethodName" columnName = "CUSTOM_METHOD_NAME" columnDataType = "VARCHAR" javaType="java.lang.String"/ >

    < / attributeMappings >

    < / classMappingDescriptor >

    < / mobileObjectPersistence >

    Page1:

    < amx:commandLink id = "cl4" action = "toDiscussion".

    Disabled = "false" >

    "< amx:setPropertyListener from =" #{row.rowKey} "to =" #{pageFlowScope.rowKey} ".

    ID = "spl8" / >

    < amx:actionListener binding = "#{bindings.setCurrentRowWithKey.execute} '"

    ID = "al3" / >

    < amx:outputHtml id = "oh3" styleClass = "comment-fa fa fa - lg.

    inlineStyle = "' color: #87CEFA;" / > "

    < messageCount:badge id = "badge" class = "notification icon".

    unread = "#{row." Bindings.discussionCount} "/ >"

    < amx:setPropertyListener id = from = "#{row.activityId"spl5"} '"

    to = "#{pageFlowScope.ActivityId}" type = "action" / > "

    < amx:setPropertyListener id = from = "#{row.projectid"spl2"} '"

    to = "#{pageFlowScope.ProjectId}" type = "action" / > "

    < amx:actionListener binding = "#{bindings.findAllDiscussionRemote.execute} '"

    ID = 'al5' / >

    < / amx:commandLink >

    Page 2 - ERROR is PRODUCT HERE:

    < amx:commandLink id = "cl4" inlineStyle = "margin-left: 10px;" Width: auto; »

    action = "Refresh" >

    "< amx:image id = 'i1' source="/images/msg_sent.png ' inlineStyle = ' height: 32px; Width: 32px; "/ >

    < amx:actionListener id = "al1" binding = "#{bindings." Create.Execute} "/ >"

    < amx:actionListener id = binding="#{pageFlowScope.DiscussionsBean.setCurrentDate}"/ "al3" >

    < amx:setPropertyListener id = "spl1" from = "1".

    to="#{bindings.ProjectId.inputValue}"/ >

    < amx:setPropertyListener id = from = "#{pageFlowScope.discussionMessage"spl5"} '"

    to="#{bindings.discussionMessage.inputValue}"/ >

    < amx:setPropertyListener id = to = "#{bindings.userId.inputValue"spl2"}" from = "1" / > "

    < amx:actionListener id = binding="#{bindings.saveDiscussion.execute}"/ "al2" >

    "" < amx:setPropertyListener id = "spl3" from = ""

    to = "#{pageFlowScope.discussionMessage}" / >

    < / amx:commandLink >

    Please let me know if you need further information.

    Thank you

    Vignesh

    Vignesh,

    In this scenario, it is easier to add a custom "saveNewDiscussion" method to the service class that takes the text of discussion as a string argument.

    Then you can drag and drop this method as a form on the page that will give you an input field text for the text of the discussion. The button you will get will call the method and the PSA on the text of the discussion.

    The code for this method looks like this (I assume that your entity is named "Discussion"):

    public void saveNewDiscussion (String text)

    {

    Discussion discussion = EntityUtils.getNewEntityInstance (Discussion.class);

    discussion.setText (text);

    saveDiscussion (discussion);

    refreshEntityList (executeLocalFindAll ());

    }

    This method registers the new discussion and then refreshes the list of discussion by the first poll of the local SQLite database.

    This avoids that your problems with the operation of creation and of the current line.

    Steven Davelaar,

    Oracle Mobile A-team.

  • Unable to display data from database using persistence mobile A-team

    Hello

    We use the accelerator of persistence for Mobile A-team with application of the MAF. We built the REST services based for CRUD operations on a table. We are unable to use the POST CREATE service by application of the MAF. We tried using saveTask and addTask data control methods it generates automatically. Although it is saved locally to the iterator of data control, it doesn't push the data from database. We tried to test the service REMAINS independent and works well.

    Can anyone help regarding if lack us measures in the same?

    Thank you

    Vignesh

    Vignesh,

    Indeed, there are two issues here:

    -the attributes of the payload are different

    -the structure of the payload is different, the GET request has an attribute "Task" that returns an array, the POST request submitting a single object through the attribute "taskDetails.

    By default, the accelerator of persistence assumes that the POST request has the same payload structure and attributes as the GET request that you used to 'discover' the data objects.

    However, you can easily change this as follows:

    -To add additional attributes required in the POST, you should restart the wizard REST-JSON directly access the data object attributes screen and click on the button 'add an attribute '. Add each attribute you need in the POST request and the attribute name to the value required in the POST request payload. No matter that this attribute of the payload does not exist in the payload GET, it will be ignored during extraction of the tasks.

    -To fix the second issue, you must change the persistence - mapping.xml:

    -go to the createMethod task

    -Remove the payloadElementName attribute

    -Add the payloadRowElementName attribute and set the value to "TaskDetails.

    It's a little strange that you post in order to get other attributes, it is there another resource GET that returns all attributes for a task?

    In addition, you cannot derive columns audit as created_by on the server-side? It's a bit unusual set these values at the level of the customer.

    Steven.

  • ODI interface failed when you use the specific agent but very well with Local (agentless)

    Hello

    I just upgraded my 10.1.3.5 at 11.1.1.7 ODI and has encountered some problems.  When I run one of the interface with the 'Local (agentless)' (via ODI studio Designer in which the ODI software is installed, say Server A), it can complete successfully without error.  But if I run the same interface with specific agent (also via ODI studio Designer in Server A), it will fail.  In fact this specific agent I is also located in Server A.  The error message is as below:

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

    org.apache.bsf.BSFException: exception of Jython:

    Traceback (most recent call changed):

    File "< string >", line 30, < module >

    to com.hyperion.planning.sql.keydef.FieldKeyDef. < init > (FieldKeyDef.java:26) to com.hyperion.planning.sql.keydef.FieldKeyDef. < init > (FieldKeyDef.java:21) to com.hyperion.planning.sql.HspFormDef. < clinit > (HspFormDef.java:3618) at java.lang.Class.forName0 (Native Method) at java.lang.Class.forName(Class.java:169) at com.hyperion.planning.HyperionPlanningBean_Stub.class$ (Unknown Source) at com.hyperion.planning.HyperionPlanningBean_Stub. (< clinit >(Unknown Source) at sun.misc.Unsafe.ensureClassInitialized (Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918) at java.lang.reflect.Field.getFieldAccessor (Field.java:899)) to java.lang.reflect.Field.getLong(Field.java:528) to java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1609) to java.io.ObjectStreamClass.access$ 700 (ObjectStreamClass.java:50) in java.io.ObjectStreamClass$ 2.run(ObjectStreamClass.java:423) at java.security.AccessController.doPrivileged (Native Method) in java.io.ObjectStreamClass. < init > (ObjectStreamClass.java:411) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:308) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:545) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) at java.io.ObjectInputStream.readObject0 (ObjectInputStream.java: 1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155) at com.hyperion.planning.HyperionPlanningBeanFactoryImpl_Stub.createHspHALBean (unknown Source) at com.hyperion.odi.planning.wrapper.PlanningWrapper.init (Unknown Source) at com.hyperion.odi.planning.ODIPlanningConnection. < init >(Unknown Source) at com.hyperion.odi.planning.PlanningConnectionFactory.getAppWriter (unknown Source) at the com.hyperion.odi.connection.HypAppConnectionFactory.getWriter (Unknown Source) at com.hyperion.odi.connection.HypAppConnectionFactory.getAppWriter (unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)

    java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org/json/JSONException

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)

    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)

    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2472)

    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)

    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)

    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1930)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ 2.doAction(StartScenRequestProcessor.java:580)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:513)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ StartScenTask.doExecute (StartScenRequestProcessor.java:1073)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:662)

    Caused by: Traceback (most recent call changed):

    File "< string >", line 30, < module >

    to com.hyperion.planning.sql.keydef.FieldKeyDef. < init > (FieldKeyDef.java:26) to com.hyperion.planning.sql.keydef.FieldKeyDef. < init > (FieldKeyDef.java:21) to com.hyperion.planning.sql.HspFormDef. < clinit > (HspFormDef.java:3618) at java.lang.Class.forName0 (Native Method) at java.lang.Class.forName(Class.java:169) at com.hyperion.planning.HyperionPlanningBean_Stub.class$ (Unknown Source) at com.hyperion.planning.HyperionPlanningBean_Stub. (< clinit >(Unknown Source) at sun.misc.Unsafe.ensureClassInitialized (Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918) at java.lang.reflect.Field.getFieldAccessor (Field.java:899)) to java.lang.reflect.Field.getLong(Field.java:528) to java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1609) to java.io.ObjectStreamClass.access$ 700 (ObjectStreamClass.java:50) in java.io.ObjectStreamClass$ 2.run(ObjectStreamClass.java:423) at java.security.AccessController.doPrivileged (Native Method) in java.io.ObjectStreamClass. < init > (ObjectStreamClass.java:411) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:308) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:545) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) at java.io.ObjectInputStream.readObject0 (ObjectInputStream.java: 1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155) at com.hyperion.planning.HyperionPlanningBeanFactoryImpl_Stub.createHspHALBean (unknown Source) at com.hyperion.odi.planning.wrapper.PlanningWrapper.init (Unknown Source) at com.hyperion.odi.planning.ODIPlanningConnection. < init >(Unknown Source) at com.hyperion.odi.planning.PlanningConnectionFactory.getAppWriter (unknown Source) at the com.hyperion.odi.connection.HypAppConnectionFactory.getWriter (Unknown Source) at com.hyperion.odi.connection.HypAppConnectionFactory.getAppWriter (unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)

    java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org/json/JSONException

    at org.python.core.PyException.fillInStackTrace(PyException.java:70)

    at java.lang.Throwable. < init > (Throwable.java:181)

    at java.lang.Exception. < init > (Exception.java:29)

    to java.lang.RuntimeException. < init > (RuntimeException.java:32)

    to org.python.core.PyException. < init > (PyException.java:46)

    to org.python.core.PyException. < init > (PyException.java:43)

    at org.python.core.Py.JavaError(Py.java:455)

    at org.python.core.Py.JavaError(Py.java:448)

    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:177)

    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:190)

    at org.python.core.PyObject.__call__(PyObject.java:414)

    at org.python.core.PyObject.__call__(PyObject.java:418)

    to org.python.pycode._pyx0.f$ 0 (< string >: 63)

    to org.python.pycode._pyx0.call_function (< string >)

    at org.python.core.PyTableCode.call(PyTableCode.java:165)

    at org.python.core.PyCode.call(PyCode.java:18)

    at org.python.core.Py.runCode(Py.java:1204)

    at org.python.core.Py.exec(Py.java:1248)

    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)

    ... 19 more

    Caused by: java.lang.NoClassDefFoundError: org/json/JSONException

    to com.hyperion.planning.sql.keydef.FieldKeyDef. < init > (FieldKeyDef.java:26)

    to com.hyperion.planning.sql.keydef.FieldKeyDef. < init > (FieldKeyDef.java:21)

    to com.hyperion.planning.sql.HspFormDef. < clinit > (HspFormDef.java:3618)

    at java.lang.Class.forName0 (Native Method)

    at java.lang.Class.forName(Class.java:169)

    to com.hyperion.planning.HyperionPlanningBean_Stub.class$ (unknown Source)

    to com.hyperion.planning.HyperionPlanningBean_Stub. < clinit >(Unknown Source)

    at sun.misc.Unsafe.ensureClassInitialized (Native Method)

    at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)

    at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)

    at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)

    at java.lang.reflect.Field.getFieldAccessor(Field.java:899)

    at java.lang.reflect.Field.getLong(Field.java:528)

    at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1609)

    to java.io.ObjectStreamClass.access$ 700 (ObjectStreamClass.java:50)

    in java.io.ObjectStreamClass$ 2.run(ObjectStreamClass.java:423)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.io.ObjectStreamClass. < init > (ObjectStreamClass.java:411)

    at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:308)

    at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:545)

    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)

    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)

    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)

    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

    at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)

    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155)

    at com.hyperion.planning.HyperionPlanningBeanFactoryImpl_Stub.createHspHALBean (unknown Source)

    at com.hyperion.odi.planning.wrapper.PlanningWrapper.init (unknown Source)

    to com.hyperion.odi.planning.ODIPlanningConnection. < init >(Unknown Source)

    at com.hyperion.odi.planning.PlanningConnectionFactory.getAppWriter (unknown Source)

    at com.hyperion.odi.connection.HypAppConnectionFactory.getWriter (unknown Source)

    at com.hyperion.odi.connection.HypAppConnectionFactory.getAppWriter (unknown Source)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:175)

    ... more than 30

    Caused by: java.lang.ClassNotFoundException: org.json.JSONException

    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:202)

    at java.security.AccessController.doPrivileged (Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:301)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    ... more than 68

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

    Since seems can't find the json.jar file (actually it away under % ODI_HOME %), I tried to include the middleware library path (C:\Oracle\Middleware\EPMSystem11R1\common\misc\11.1.2.0), which has the json.jar in the ODI_ADDITIONAL_CLASSPATH in the file odiparams.bat in the folder and restart the agent.  Then the error message is modified as below:

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

    org.apache.bsf.BSFException: exception of Jython:

    Traceback (most recent call changed):

    File "< string >", line 30, < module >

    to com.hyperion.planning.sql.keydef.FieldKeyDef. < init > (FieldKeyDef.java:26) to com.hyperion.planning.sql.keydef.FieldKeyDef. < init > (FieldKeyDef.java:21) to com.hyperion.planning.sql.HspFormDef. < clinit > (HspFormDef.java:3618) at java.lang.Class.forName0 (Native Method) at java.lang.Class.forName(Class.java:169) at com.hyperion.planning.HyperionPlanningBean_Stub.class$ (Unknown Source) at com.hyperion.planning.HyperionPlanningBean_Stub. (< clinit >(Unknown Source) at sun.misc.Unsafe.ensureClassInitialized (Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918) at java.lang.reflect.Field.getFieldAccessor (Field.java:899)) to java.lang.reflect.Field.getLong(Field.java:528) to java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1609) to java.io.ObjectStreamClass.access$ 700 (ObjectStreamClass.java:50) in java.io.ObjectStreamClass$ 2.run(ObjectStreamClass.java:423) at java.security.AccessController.doPrivileged (Native Method) in java.io.ObjectStreamClass. < init > (ObjectStreamClass.java:411) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:308) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:545) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) at java.io.ObjectInputStream.readObject0 (ObjectInputStream.java: 1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155) at com.hyperion.planning.HyperionPlanningBeanFactoryImpl_Stub.createHspHALBean (unknown Source) at com.hyperion.odi.planning.wrapper.PlanningWrapper.init (Unknown Source) at com.hyperion.odi.planning.ODIPlanningConnection. < init >(Unknown Source) at com.hyperion.odi.planning.PlanningConnectionFactory.getAppWriter (unknown Source) at the com.hyperion.odi.connection.HypAppConnectionFactory.getWriter (Unknown Source) at com.hyperion.odi.connection.HypAppConnectionFactory.getAppWriter (unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)

    java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: com/hyperion/css/CSSPasswordExpiryWarning

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)

    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)

    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2472)

    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)

    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)

    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1930)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ 2.doAction(StartScenRequestProcessor.java:580)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:513)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ StartScenTask.doExecute (StartScenRequestProcessor.java:1073)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:662)

    Caused by: Traceback (most recent call changed):

    File "< string >", line 30, < module >

    to com.hyperion.planning.sql.keydef.FieldKeyDef. < init > (FieldKeyDef.java:26) to com.hyperion.planning.sql.keydef.FieldKeyDef. < init > (FieldKeyDef.java:21) to com.hyperion.planning.sql.HspFormDef. < clinit > (HspFormDef.java:3618) at java.lang.Class.forName0 (Native Method) at java.lang.Class.forName(Class.java:169) at com.hyperion.planning.HyperionPlanningBean_Stub.class$ (Unknown Source) at com.hyperion.planning.HyperionPlanningBean_Stub. (< clinit >(Unknown Source) at sun.misc.Unsafe.ensureClassInitialized (Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918) at java.lang.reflect.Field.getFieldAccessor (Field.java:899)) to java.lang.reflect.Field.getLong(Field.java:528) to java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1609) to java.io.ObjectStreamClass.access$ 700 (ObjectStreamClass.java:50) in java.io.ObjectStreamClass$ 2.run(ObjectStreamClass.java:423) at java.security.AccessController.doPrivileged (Native Method) in java.io.ObjectStreamClass. < init > (ObjectStreamClass.java:411) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:308) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:545) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) at java.io.ObjectInputStream.readObject0 (ObjectInputStream.java: 1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155) at com.hyperion.planning.HyperionPlanningBeanFactoryImpl_Stub.createHspHALBean (unknown Source) at com.hyperion.odi.planning.wrapper.PlanningWrapper.init (Unknown Source) at com.hyperion.odi.planning.ODIPlanningConnection. < init >(Unknown Source) at com.hyperion.odi.planning.PlanningConnectionFactory.getAppWriter (unknown Source) at the com.hyperion.odi.connection.HypAppConnectionFactory.getWriter (Unknown Source) at com.hyperion.odi.connection.HypAppConnectionFactory.getAppWriter (unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)

    java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: com/hyperion/css/CSSPasswordExpiryWarning

    at org.python.core.PyException.fillInStackTrace(PyException.java:70)

    at java.lang.Throwable. < init > (Throwable.java:181)

    at java.lang.Exception. < init > (Exception.java:29)

    to java.lang.RuntimeException. < init > (RuntimeException.java:32)

    to org.python.core.PyException. < init > (PyException.java:46)

    to org.python.core.PyException. < init > (PyException.java:43)

    at org.python.core.Py.JavaError(Py.java:455)

    at org.python.core.Py.JavaError(Py.java:448)

    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:177)

    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:190)

    at org.python.core.PyObject.__call__(PyObject.java:414)

    at org.python.core.PyObject.__call__(PyObject.java:418)

    to org.python.pycode._pyx0.f$ 0 (< string >: 63)

    to org.python.pycode._pyx0.call_function (< string >)

    at org.python.core.PyTableCode.call(PyTableCode.java:165)

    at org.python.core.PyCode.call(PyCode.java:18)

    at org.python.core.Py.runCode(Py.java:1204)

    at org.python.core.Py.exec(Py.java:1248)

    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)

    ... 19 more

    Caused by: java.lang.NoClassDefFoundError: com/hyperion/css/CSSPasswordExpiryWarning

    to com.hyperion.planning.sql.keydef.FieldKeyDef. < init > (FieldKeyDef.java:26)

    to com.hyperion.planning.sql.keydef.FieldKeyDef. < init > (FieldKeyDef.java:21)

    to com.hyperion.planning.sql.HspFormDef. < clinit > (HspFormDef.java:3618)

    at java.lang.Class.forName0 (Native Method)

    at java.lang.Class.forName(Class.java:169)

    to com.hyperion.planning.HyperionPlanningBean_Stub.class$ (unknown Source)

    to com.hyperion.planning.HyperionPlanningBean_Stub. < clinit >(Unknown Source)

    at sun.misc.Unsafe.ensureClassInitialized (Native Method)

    at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)

    at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)

    at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)

    at java.lang.reflect.Field.getFieldAccessor(Field.java:899)

    at java.lang.reflect.Field.getLong(Field.java:528)

    at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1609)

    to java.io.ObjectStreamClass.access$ 700 (ObjectStreamClass.java:50)

    in java.io.ObjectStreamClass$ 2.run(ObjectStreamClass.java:423)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.io.ObjectStreamClass. < init > (ObjectStreamClass.java:411)

    at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:308)

    at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:545)

    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)

    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)

    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)

    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

    at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)

    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155)

    at com.hyperion.planning.HyperionPlanningBeanFactoryImpl_Stub.createHspHALBean (unknown Source)

    at com.hyperion.odi.planning.wrapper.PlanningWrapper.init (unknown Source)

    to com.hyperion.odi.planning.ODIPlanningConnection. < init >(Unknown Source)

    at com.hyperion.odi.planning.PlanningConnectionFactory.getAppWriter (unknown Source)

    at com.hyperion.odi.connection.HypAppConnectionFactory.getWriter (unknown Source)

    at com.hyperion.odi.connection.HypAppConnectionFactory.getAppWriter (unknown Source)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:175)

    ... more than 30

    Caused by: java.lang.ClassNotFoundException: com.hyperion.css.CSSPasswordExpiryWarning

    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:202)

    at java.security.AccessController.doPrivileged (Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:301)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    ... more than 68

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

    Seems once again, some class/jar files are missing.  But I have really no idea this time how to fix it.  In addition, since it is ok with the local agent (no) but fail with specific agent, I think that it is not the problem of the interface, but the problem of the agent (configuration?).  Can someone give me some advice on how to fix it?  Any suggestion is welcome.  Thank you.

    Note: it is on the Windows platform

    By checking the MOS 1683307.1 Note, I have included the C:\Oracle\Middleware\EPMSystem11R1\common\misc\11.1.2.0 & C:\Oracle\Middleware\EPMSystem11R1\common\CSS\11.1.2.0\lib in the extra classpath and the agent works fine now.  THX.

  • SharedObject created in AS2 RangeError leads "the supplied index is out of bounds" on call to getLocal.

    To ensure backward compatibility, I want the old AS2 Shared Objects to work in the new version of my application (in Flash Player 11.1 edition) AS3. For some reason, this isn't the case.

    The AS3 code is simple:

    var so: SharedObject = SharedObject.getLocal ("ExistingAS2SharedObject", "/");

    Sharing objects created in AS3 work perfectly well in this scenario, but they break when they were initially created in AS2, causing the RangeError 'the supplied index is out of range"on the line of code above. I don't have access to the AS2 code (I use CC), but it saves and loads fine in itself, as well, so there should be no other problems.

    I made sure set default AMF3 encoding, even if I think it is redundant. Are there known issues with AS3 objects shared AS3 to open? Do I need a different approach? Thoughts?

    Well, I worked on this bug for a few weeks. I am convinced that it is a problem with Flash 100%. Either way, here is the solution that I think solves the problem:

    -Use the AMF0 encoding. If you must use AMF3, set the "local playback security" in "allow local files only". Runs the file SWF in the browser, will replace so the problem is still, however, the question will be is no longer standalone.

    -Set the "local playback security' to the 'network allow only." It will not work otherwise.

    Other things that affect the bug include:

    -If the shared object created AS2 has been consulted by AS3 at any time, the bug will occur is no longer. I think that it is because it is converted to AMF3. This is likely to occur if you test under "Allow local files only", for example.

    -The bug may not be reproducible if Flash Player uses a lot of RAM. For example, I had the Flash Player using 1.4 GB of RAM, and the bug seemed to be stopped, misconduct, making it difficult for me to debug.

    -The bug behavior can change or not the SWF file is running in the debugger or standalone. I didn't test it enough to confirm however.
    -Put a try/catch around the code does not stop the shared destruction object. In addition, the code returns if a different shared object tries to access it. Everything behaves as expected if the bug does not occur in the first place.

    Some things that do not affect the bug include:

    -Other elements of code and the library loaded in the application do not affect the issue (assuming it is not intended to interfere with the code of course). The bug occurs also in the classes and SWC files.

    -Flash Player version and the version of the IDE have no effect on the bug, it seems.

    I hope this helps someone else in the future! And I hope that I never had to run into this bug once again, haha.

  • Configuration problem of the mixture of the regions with and without installation of persistence of the disc causing the JSONFormatter to fail

    I have trouble setting my local setup correctly with a mixture of regions with different configuration of persistence of disc.  Is a configuration problem on my end or a bug in GemFire and/or Spring GemFire data?

    The configuration of my work is as follows:

    < gfe: replicated-region id = "replicatedRegion" cache-ref = "gemfireCache" disk-store-ref = "overflowOnlyDiskstore" persistent = "false" >

    < gfe:eviction type = threshold "HEAP_PERCENTAGE" = "90" action = "OVERFLOW_TO_DISK" / >

    < / gfe: replicated-region >

    < gfe:local - region id = "localRegion" cache-ref = "gemfireCache" / >


    With the above configuration, I can successfully call JSONFormatter.fromJSON (json) and get a reference to a PdxInstance object.  However, when I kinda modify configuration to enable the persistence of drive on one of the regions, the call to JSONFormatter.fromJSON (json) fails.  The change is as follows:


    < gfe:local - region id = "localRegion" cache-ref = "gemfireCache" persistent = "true" disk-store-ref = "persistOverflowDiskstore"/ >

    Without any additional modification, the following error starts occurring:

    com.gemstone.gemfire.pdx.JSONFormatterException: could not parse JSON document: [Source: java.io.StringReader@5549f0e, line: column 26,: 6]

    at com.gemstone.gemfire.pdx.JSONFormatter.fromJSON(JSONFormatter.java:66)

    ...

    Caused by: com.gemstone.gemfire.pdx.PdxInitializationException: The PDX metadata must be persistent in a limb that has persisted data. See CacheFactory.setPdxPersistent.

    at com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.checkAllowed(PeerTypeRegistration.java:531)

    at com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.verifyConfiguration(PeerTypeRegistration.java:515)

    ...

    Note that it is breaking while I try to get a reference to a PdxInstance, and if the code has not yet arrived at the point where I place a PdxInstance object in a region.

    Thanks for any help in advance.

    Hello

    JSONFormatter PDX uses as is the serialization mechanism from the Gemfire cache. As indicators of error, you must have your persistent PDX meta-data when you use PDX with an area that itself is persistent. Adjust your configuration as follows:

    
    

    It will use a default for PDX record store, but you can also use a specific store if you wish.

    When you use PDX, a "PDXType" is created for each class serialized with PDX and this type id is stored with the data in the region. If this region is persistent, then the PDXType, associated with this object must also be kept.

    -Jens

  • Shared Object working locally, but not online

    My game saves your high score using the sharedobject object and the test it locally it works fine, but when the swf file is published and played online, it does not record the score of salvation. Is there some kind of new security problem with the registration of shared objects on the hard drives of the people now?

    you only need a sharedobject, but it will not cause a failure to use two.

    However, your 3rd line of code is problematic and should cause an error when you download (and it is no longer a sharedobject that hiscore associated with this server).

    You must use:

    {if (OwlHiScore.Data.HiScore)}

    hisc.mainScore.text = (OwlHiScore.data.HiScore) m:System.NET.SocketAddress.ToString ();

    }

  • Flash cs6 - local store for android app

    How can I local store something (like a record) with my android app? (written with flash cs6)?

    SharedObjects does not really...

    Try:

    var sharedObject:SharedObject;

    sharedObject = SharedObject.getLocal ('trtrtrtrtrtr');

    {if (SharedObject.Data.UserName)}

    display data in a textfield to confirm your working so.

    } else {}

    sharedObject.data.userName = "msmsmsmsmsmsmsm";

    sharedObject.data.age = 24;

    sharedObject.flush ();

    }

  • Flash player automatically delete SharedObjects # at the end

    Hello. I tried games stored on my local drive Flash and I have found that whenever the game is closed any given localhost is deleted. The only way I can keep the data is if I copy the files off SharedObjects # while Flash is running, and then paste in after closing. I have found nothing else a question like that, and I arrived at the end of my tether.

    OS: Windows 7 Ultimate SP 1

    Browser: IE 9

    Flash version: 11.5.502.146

    Are you IE running in InPrivate browsing mode?  Looks like some process causes your browser (and later flash cookies) cookies are evacuated during the shutdown.

    Thank you

    Chris

Maybe you are looking for