Strange behavior in Oracle 11 g 2 forms

Hello

First post here so forgive me if I missed any info.

In the logon trigger ONE of my form, I have the following code...

declare

l_local varchar2 (30);

Start

tool_env. GetVar ('LOCAL', l_local);

Logon (NULL, ' @' | l_local);

end;

When I run the form, I get the following window...

logon.png

If the user tries to log in with an expired password Oracle - or - they enter the wrong password, one of the following counters should appear...

expired.pnginvalid.png

However, some users (not all) have reported that the windows above are not displayed and their browser window is "frozen".

After further investigation, the window above seems to have triggered but does not and will not let you continue.

We see only when you press Alt - Tab to see all the open windows and it is listed in the Task Manager as a javaw process.

The only way to continue is at the end of the task in the process.  Any help would be appreciated.

We all use IE10 with Forms version 11 GR 2 (64-bit) and JDK 7u55.

Our computers are all Windows 7 Enterprise SP1 64 bit.

Our database is Oracle 11.2.0.4.0

I narrowed the problem down for the self-signed certificate.  We have self-signed the jar of jacob and created a certificate that import us certificates to the user managed in Java Control Panel.

If the certificate has not yet been activated by a call to jacob.jar, then the dialog boxes above fails to demonstrate and the application crashes as described above.

Once you accept the risk and run the application by checking that the "do not display this new editor applications and the location above", then the dialog boxes is displayed as expected.

However, this does not require the user to log on with success and appeal to jacob.jar so they can check the box for "do not show again".

Once they do it all later connections that produce dialog boxes (ie: expiry of passwords, has no connections) will appear.

Tags: Oracle Development

Similar Questions

  • strange behavior while I work on my form.

    Hello world
    I realize strange behavior while I work on my form.
    I realize that the number of tables are becoming bigger and bigger.

    I did a check in sql liked and realized that there are other tables system inside... I remember for my project, I started an own database.

    http://img18.imageshack.us/img18/779/oracle.th.gif


    can someone tell me if I have to remove them? and if so, how to remove?
    and also how can I prevent it from happening?

    Edited by: diskhub may 7, 2010 01:02

    Hello

    I realize strange behavior while I work on my form.
    I realize that the number of tables are becoming bigger and bigger.

    I couldn't see any problem form here. I think it has to do with the database. But seeing the picture I think you use the 10 g or version and you dropped some tables. Database is in the Recycle Bin you can delete from the Recycle Bin by using...

    PURGE RECYCLEBIN;
    

    can someone tell me if I have to remove them? and if so, how to remove?
    and also how can I prevent it from happening?

    This statement will drop the table and will not keep in the trash of db.

    DROP TABLE TABLE_NAME PURGE;
    

    But personally I would not not to use because in error table is deleted if we can use flashback to go back. But there are also some restrictions.

    If the link below also.
    http://www.Oracle.com/technology/pub/articles/10gdba/week5_10gdba.html

    -Clément

  • Strange behavior with V$ PDB and CDB_SEGMENTS views of Oracle 12 c

    Hello

    I am trying to run a query between the CDB_SEGMENTS and the views V$ PDB on the container ROOT, but I have a strange behavior:

    SQL*Plus: Release 12.1.0.1.0 Production on Fri Sep 6 12:33:25 2013
    
    Copyright (c) 1982, 2013, Oracle. All rights reserved.
    
    
    Connected to:
    Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
    
    SYS@orcl12c 06.09.2013> show con_id
    
    CON_ID
    ------------------------------
    1
    SYS@orcl12c 06.09.2013> show con_name
    
    CON_NAME
    ------------------------------
    CDB$ROOT
    SYS@orcl12c 06.09.2013> SELECT B.NAME
     2 , A.CON_ID
     3 , A.TABLESPACE_NAME
     4 FROM CDB_SEGMENTS A
     5 INNER JOIN V$PDBS B
     6 ON B.CON_ID=A.CON_ID;
    
    no rows selected
    
    SYS@orcl12c 06.09.2013 12:34:17> SELECT B.NAME
     2 , A.CON_ID
     3 , A.TABLESPACE_NAME
     4 FROM CDB_TABLESPACES A
     5 INNER JOIN V$PDBS B
     6 ON B.CON_ID=A.CON_ID;
    
    NAME CON_ID TABLESPACE_NAME
    ------------------------------ ---------- ------------------------------
    PDB$SEED 2 SYSTEM
    PDB$SEED 2 SYSAUX
    PDB$SEED 2 TEMP
    PDBORCL 3 SYSTEM
    PDBORCL 3 SYSAUX
    PDBORCL 3 TEMP
    PDBORCL 3 USERS
    PDBORCL 3 EXAMPLE
    ...
    
    23 rows selected.
    
    SYS@orcl12c 06.09.2013> SELECT *
     2 FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR('asa03y45g99zb'));
    
    PLAN_TABLE_OUTPUT
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    
    SQL_ID asa03y45g99zb, child number 0
    -------------------------------------
    SELECT B.NAME , A.CON_ID , A.TABLESPACE_NAME FROM
    CDB_SEGMENTS A INNER JOIN V$PDBS B ON B.CON_ID=A.CON_ID
    
    Plan hash value: 3590150304
    
    -------------------------------------------------------------------------------------------------------------------------------------------
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Pstart| Pstop | TQ |IN-OUT| PQ Distrib |
    -------------------------------------------------------------------------------------------------------------------------------------------
    | 0 | SELECT STATEMENT | | | | 1 (100)| | | | | |
    | 1 | NESTED LOOPS | | 333 | 14985 | 0 (0)| | | | | |
    |* 2 | FIXED TABLE FULL | X$CON | 2 | 30 | 0 (0)| | | | | |
    | 3 | PX COORDINATOR | | | | | | | | | |
    | 4 | PX SEND QC (RANDOM) | :TQ10000 | 167 | 5010 | 0 (0)| | | Q1,00 | P->S | QC (RAND) |
    | 5 | PX PARTITION LIST AND | | 167 | 5010 | 0 (0)|KEY(AP)|KEY(AP)| Q1,00 | PCWC | |
    |* 6 | FIXED TABLE FIXED INDEX| X$CDBVW$e7cdf8a6 (ind:11) | 167 | 5010 | 0 (0)| | | Q1,00 | PCWP | |
    -------------------------------------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
     2 - filter(("CON_ID">1 AND "INST_ID"=USERENV('INSTANCE')))
     6 - filter("CON_ID"="CON_ID")
    
    
    25 rows selected.
    
    SYS@orcl12c 06.09.2013> select con_id,count(*) from cdb_segments group by con_id;
    
     CON_ID COUNT(*)
    ---------- ----------
     1 5795
     4 4397
     3 3923
     2 3401
    
    4 rows selected.
    

    Basically, I would like to display the container_name of segments within all PDB files, but the join between CDB_SEGMENTS and views of V$ PDB does not work (lines 20-25) pending the join between CDB_TABLESPACES and V$ PDB works very well (lines 29-34). I've posted the execution plan (lines 50-82).

    You have ideas about this behavior?

    Thank you in advance,

    Arnaud.

    Hello

    Not 100% sure that this is a bug or just something about the way containers works now - however this select seems to work OK:

    SELECT B.NAME, A.CON_ID, A.TABLESPACE_NAME

    OF CDB_SEGMENTS, V$ PDB B

    where to_char (B.CON_ID) = to_char (A.CON_ID)

    See if it works for you too?

    See you soon,.

    Harry

  • Loss of data of strange behavior.

    Hi all

    I am facing a strange behavior, I have a table and a form of the VO even pointing the same iterator in the binding.i to change in shape and support bean that I try to get the new values by using the code below:

    DCIteratorBinding iterIntegration = (DCIteratorBinding) UtilityBean.getBindings () .get ("Integration1Iterator");

    Line = iterIntegration.getCurrentRow ();

    getAttributes

    but I get the old values. even if I try to commit before using:

    OperationBinding operationBinding is getBindings () .getOperationBinding ("Commit");.

    operationBinding.execute ();

    the form is loaded with the old values of the table.

    Thank you

    In test form to define the components (inputText, selectOneChoice..), autoSubmit = 'true '.

  • Strange behavior of the browser blocks SQLDEV DM

    Hello

    I feel some strange behaviors in the browser of Datamodeler.

    After the opening of my model

    I have doubleclick in the window of the browser to fetch a few properties of the index:

    Drawings and models > MyModel > relational models > my RelModel > models > Oracle Database 10g > Tables

    So far, everything that happens.

    -I can select the tables and

    -doubleclicking shows the properties of the table.

    -I can scroll vertically

    -Select other tables

    -open and close the subtree of this physical tables

    Now, as soon as I click on any 'more' in the physical tables (for example, the index node or node of the plate) the browser "tri-de gel".

    The tree is distorted, scrolling seems erratic and it is impossible to select. Most of the time the main menu is also distorted.

    If I make the browser window, most of the time I'm able to hit the "file > save" from the menu. The model seems to be registered properly.

    No damage seems to have been done to the template on the reopening

    I'm on Windows 8 pro with the 64-bit version of datamodeler version 4.1.2.895 (from datamodeler - x 64 - 4.1.2 - 895.zip)

    Any ideas anyone?

    any response greatly appreciated.

    concerning

    Wouter

    Hi Wouter,

    I'm sorry, this is a bug and we are preparing a new version with this bug fixed.

    If I make the browser window, most of the time I'm able to hit the "file > save.

    Close the Data Modeler (X - close button in the upper right corner) and it will ask to save the drawing it is changed.

    Philippe

  • Strange behavior of the ADF in IE

    Dear Guru,

    We have an application developed using Jdeveloper - 11.1.2.3 and deployed to production WLS - 10.3.5, when running applications through internet Explorer became 'with the exception of compatibility"then we added under settings in the application (as suggested in many blogs) Web.XML and deployed the same,

    < context-param >

    oracle.adf.view.rich.HIDE_UNSUPPORTED_BROWSER_ALERTS < param-name > < / param-name >

    IECompatibilityModes < param-value > < / param-value >

    < / context-param >

    Now not to launch except for compatibility but demand was showing strange behavior as

    (1) after that expiry of the IE user page should clear the cache to re-login to the application, that is not the case in chrome and mozilla.

    (2) little components or records show not yet what is normal in chrome and mozilla.

    Please help me out.

    Best regards,

    Hello

    Please specify the version of Internet Explorer. Remove the entry mask not supported.

    To set this feature, use the following:

    1. for 11.1.1.6.0, 11.1.2.0.0, 1. 11.1.2.2.0 and 11.1.2.3.0, download and apply the hotfix 14400317 in your JDeveloper/ADF environment.

    2. for all the above mentioned versions, add the context-param for version detection of agents activated using the version of Trident on the version of the browser in the Web.XML in your ViewController project:


    org.apache.myfaces.trinidad.Agent #OVERRIDE_IE_COMPATIBILITY_MODE
    true

    I also tried this and his work in my environment of webcenter for IE 8 and 9.

    Reference:something about the Fusion Middleware: work around IE (IE8/9) Compatibility Mode in ADF/WebCenter App

    Thank you
    Amey

  • Strange behavior Skillbuilders great lov in 5 APEX

    I've updated our 5 APEX test system.

    Installed the new APEX skillbuilders lov 5 great plugin.

    When I access a searchstring in the super-lov domain and press the searchicon, modal page with the result set is in place as it should.

    When I access a searchstring in the super-lov domain and press ENTER, the modal page displays for a short time, then disappears?

    Why does this happen?

    When I try the DEMO page at https://apex.oracle.com/pls/apex/f?p=102231:110, this strange behavior does not occur.

    Someone at - it an idea how I can fix it.

    Kind regards

    Marinus Verseput

    I found a work around for this behavior.

    Change the field hidden for a text field and a $(«__ITEM_ID").hide (); in the section "Run when the page loads" of the manufacturer.

  • Shape the strange behavior - Bug?

    Hey there, can anyone explain this strange behavior?

    After Effects CC 2015.3, Windows 7.

    Create a form, just STROKE-> convert to a path and simply animate the path...

    Watch the video:
    2016 09 23 19 48 25 253 - YouTube Bandicam

    Thank you

    Try this. After you convert the rectangle to a Bézier path select the pen tool, hold the tool Ctrl/Cmnd to change from the point to add to the direct Selection tool, drag the selection over the left upper point Bezier path, click right and choose the mask and path of shape > define a first Summit.

    Now animate your side and everything should be fine. The problem is that it seems to be no first vertex set when you create a Bezier path from a form. This happens with all forms converted into paths. If you hold down the Alt/Option key when creating a path of a shape tool a Bezier curve is created instead of a parametric form and the problem does not exist.

    I'm going to file a bug report.

  • [MAF - AMPA] Strange behavior of the MAF with REST service

    Hi MAF Experts.

    I just noticed that there is a strange behavior in my application of the MAF. The first loading of the page, amx:page does not make its contents (of REST). However if I kill the app and relaunch the app, content appears.

    Pattern:

    1. Start of the CRG App
    2. Opening of session
    3. Dashboard (the content is rendered)
    4. Go to any other aspect (lets say a list of products)
    5. Open product list (content do not get returned)
    6. Kill the MAF application
    7. Start of the CRG App
    8. Dashboard (the content is rendered)
    9. Go to the product list
    10. List of products (content gets rendered)

    I put a few breakpoints on EntityCRUDService and RestPersistenceManager.

    So far it return the list of entities and display the correct data (from watches in debug mode)

    Last thing I noticed is the red color below. She defined the EntityList with the new value of REST (This displays a correct value).

    TaskExecutor.getInstance (.execute (isDoRemoteReadInBackground ())

    , () -> {

    Auto Sync all actions pending first, pass false for inBackground because

    We want to process actions pending before the reading distance

    getDataSynchManager (.synchronize (false));

    The list of entities < E > = executeRemoteFindAll();

    If (entities! = null)

    {

    When an error occurs (for example server is not available, the method returns the value zero)

    setEntityList (entities);

    }

    });

    Any suggestion?

    All the rest service are configured with AutoQuery = true in the persistence - mapping.xml

    See you soon,.

    Hendry

    Hendry,

    Thanks your testcase, I was able to understand the problem.

    It turns out that MAF 2.1 has problems dealing with the advanced way in which AMPA running background tasks with the help of a thread in all of features.

    We have slightly modified the implementation in AMPA to use one thread per function and now the update issue is resolved. I sent you a link to new construction.

    We will publish the new generation soon on GitHub so that others can benefit in the same solution.

    Steven Davelaar,

    Oracle Mobile A-team.

  • Strange behavior of the rectangle tool

    I drew a rectangle with the rectangle tool and got a form than of a conical label around the rectangle. Never seen that before and I could not duplicate once I opened the application again. This seems a strange behavior of the app, or is there something that I don't know this tool? Please tell me this is something lacking in my knowledge base. It drives me crazy

    Monika, yes it was. He worked with the forward Warp effect. Thank you for your response. Mental health is back thank you for your kindness

  • foreign key 'generate' strange behavior check box, any idea?

    Summary: in the properties of the table, the foreign keys, the box generate behaves badly, and I don't understand why or how I got there.

    Oracle Data Modeler 4.0.2.840 8.1 X 64 Windows, jdk1.7.0_55

    the behavior is:

    (1) add the foreign key (two different more to see strange behavior)

    (2) uncheck 'generate' on a foreign key

    (3) apply, Ok

    (4) ask 'Preview DDL', a foreign key constraint is generated, SO FAR SO GOOD, I'm happy

    5-now click on the button 'generate the DDL' for any design = > * * TWO foreign keys are generated?

    (6) even more strange: sometimes the 'generate' check itself after step 5, most of the time is not

    (7) at the beginning this has occurred for a couple of foreign key 'uncheckees', now it almost always happens.

    The relational model was built by importing the SQL scripts already exist (try to migrate the Data Modeler). No too complex ~ 115 tables, 12 times.

    I think it's a bug, but I can't find any reference on the web, maybe I do something wrong?

    Hi Michel,.

    The generation is different depending on whether or not the relevant storage design is open.

    If the design of the storage is not open, the option "Generate DDL" on the foreign key is taken into account (for an overview of the DDL or full generation of DDL).  For an entire generation of DDL, the foreign key will initially not selected phase in the generation of the DDL if Options the option "Generate DDL" on the foreign key has been disabled.  (This change in the phase of the generation of DDL Options will also cause the option "Generate DDL" on the foreign key update.)

    If the design of the storage is open, the option 'generate DDL"on the foreign key has no effect (in a Preview of DDL or full DDL generation).

    Also in a generation full of DDL, an object will be initially marked as not selected if it has been disabled in the previous generation of DDL.

    I hope that this helps to explain the behavior that you find.

    David

  • Date value, have a strange behavior

    Hi people, I am facing a strange situation in 11.2.0.3 EE 64 bit:

    SQL >! uname - a

    SunOS < hostname > 5.11 11.1 sun4v sparc sun4v

    SQL > np_dn_range desc;

    Name                                      Null?    Type

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

    DN_START NOT NULL VARCHAR2 (18 CHAR)

    ACTIVATION_DATE NOT NULL DATE

    SQL > select ACTIVATION_DATE from the np_dn_range where DN_START = 528717163931;

    ACTIVATION_DATE

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

    54890110070000

    SQL > SELECT TO_CHAR (ACTIVATION_DATE, ' dd/mm / yyyy:hh24 - mi - ss') from np_dn_range where DN_START = 528717163931;

    TO_CHAR (ACTIVATION_

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

    00/00/0000:00-00-00

    This should not show as 10/01 / 5489:07:00:00? If I do the same with other values, it works fine:

    SQL > SELECT TO_CHAR (ACTIVATION_DATE, ' dd/mm / yyyy:hh24 - mi - ss') from np_dn_range where DN_START = 525549998051;

    TO_CHAR (ACTIVATION_

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

    02/07 / 2013:07 - 00-00

    07/06 / 2021:07 - 00-00

    Of course the 5489 year is strange, it's an unexpected value. This value is not strange really because of this behavior, also it does not show if I publish the following:

    SQL > select ACTIVATION_DATE from the np_dn_range where ACTIVATION_DATE > sysdate;

    Oracle can make errors with math? This line just seems to come from an import of a database that was corrupt, blocks which can be the cause of this strange behavior?

    Thank you.

    Yes it is strange.

    The first octet must be the century + 100, and the second byte must be 100 + year.

    Then... (in the order of the those first followed by bad)...

    120 113 is equivalent to 2013

    120 121 equals 2021

    46,11 equals (46-100) = - 54 and (11-100) =-89... and there is no year-54-89

    Just check the other bits...

    The 3rd octet is the month, if you have months of 7, 6 and 1... they are ok.

    The 4th byte is the day, if you have days 2, 7 and 10... they are ok

    The 5th byte is time + 1, so you have 8 for everyone, which means 07:00,... they are all ok

    The 6th byte is the minutes + 1, if you have 1 for all those, which is 0 minutes... they are ok

    Octet 7 seconds + 1, if you have 1 for everyone, i.e. 0 seconds... they are ok

    So in terms of months to the time you have:

    July 2 07:00

    June 7 07:00

    10 January 07:00

    These part of all date/times are ok, it's just the century and year who were corrupt.

    Now, if I force the same corrupted data in my version of the same table using my function of date gross and put my NLS_DATE_FORMAT the same as yours... I can reproduce your problem...

    SQL > insert into np_dn_range values ('2345 ', raw_date (chr (46) |)) Chr (11) | Chr (1) | Chr (10) | Chr (8) | Chr (1) | Chr (1)));

    1 line of creation.

    SQL > alter session set nls_date_format = 'YYYYMMDDHH24MISS ';

    Modified session.

    SQL > select * from np_dn_range;

    DN_START ACTIVATION_DAT
    ------------------ --------------
    2345 54890110070000

    SQL > select to_char (activation_date, "HH24:MI:SS DD/MM/YYYY) of np_dn_range;

    TO_CHAR (ACTIVATION_
    -------------------
    00/00/0000 00:00:00

    Your data are certainly corrupted, so everything you use to import or create these data is the problem.  It certainly isn't the way that Oracle is the treatment of the date, it's just the fact that corrupted data has been forced in.

  • Strange behavior while making the table operation DOUBLE... !

    Hello

    Can we do DML/DDL operation on table DOUBLE?

    To know the answer, I have done below the operation and found a strange behavior...

    -run 5 times...
    INSERT INTO DOUBLE
    VALUES ('P');

    commit;

    Select * twice;
    o/p-
    MODEL
    1 P
    2 P
    3 P
    4 P
    5 P

    ---------------------------------
    updated double
    MODEL of value = "K";
    commit;

    Select * twice;
    o/p-
    MODEL
    2 h
    2 P
    3 P
    4 P
    5 P

    Odd: 1 single line update... Why? I was updating all the lines.

    If I run new update of command like below...

    updated double
    set MODEL = 'K', where dummy = "P";
    commit;

    Select * twice;
    o/p-
    MODEL
    2 h
    1 h
    3 P
    4 P
    5 P

    STRANGE: Now next updated record with 'K'... like that, if I run 5 times this o/p is as below...

    MODEL
    2 h
    1 h
    6.
    4 K
    6: 00
    -------------------------------------
    REMOVE double; -This also has data of delting 1 by 1 row... Why?

    Can anyone tell me about this operation of behaivor?

    Please provide any information about the DML/DDl operation on DUAl

    Rgds,
    PC

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:7955478831730544:P11_QUESTION_ID:1562813956388

    Tom says:

    Let me start by saying:-DOUBLE is owned by SYS. SYS is the owner of the data dictionary,
    so DOUBLE fits in the data dictionary. You must not modify the data dictionary
    through SQL ever - weird things can and will happen - you are just a few of
    them. We can do a lot of strange things happen in Oracle by updating the data dictionary.
    It is recommended, supported or a very good idea.

    Double is just a convienence table. You do not need to use it, you can use anything you
    Here you are. The advantage to double is the optimizer includes double is a special line, a
    column table - when it is used in queries, it uses this knowledge during the development of the
    plan.
    ...
    the optimizer includes double is a special, magical table 1 row... It's just the way it works. If all goes well
    you reset double back to 1 row after your tests, or you've just totally broken your database!
    .. .dual = magic. Dual is a table of a line but with more than 1 or less is
    dangerous. You update the data dictionary. You should expect naturally very bad
    things are happening.

  • Strange behavior of POF in 3.6.1.3

    Hi all

    We have seen some strange behaviors of POF in 3.6.1.3 paricularly around classes with Boolean fields.

    Here is my test scenario:
    package org.gridman.pof;
    
    import com.rbs.odc.dashboard.server.cluster.model.Case;
    import com.tangosol.io.pof.ConfigurablePofContext;
    import com.tangosol.io.pof.PofReader;
    import com.tangosol.io.pof.PofWriter;
    import com.tangosol.io.pof.PortableObject;
    import com.tangosol.io.pof.reflect.PofValue;
    import com.tangosol.io.pof.reflect.PofValueParser;
    import com.tangosol.io.pof.reflect.SimplePofPath;
    import com.tangosol.util.Binary;
    import com.tangosol.util.ExternalizableHelper;
    
    import java.io.IOException;
    
    public class JK implements PortableObject {
    
        private String stringField;
        private boolean booleanFieldOne;
        private boolean booleanFieldTwo;
    
        public JK() {
        }
    
        public JK(boolean booleanFieldOne, boolean booleanFieldTwo, String stringField) {
            this.booleanFieldOne = booleanFieldOne;
            this.booleanFieldTwo = booleanFieldTwo;
            this.stringField = stringField;
        }
    
        @Override
        public void readExternal(PofReader pofReader) throws IOException {
            stringField = pofReader.readString(0);
            booleanFieldOne = pofReader.readBoolean(1);
            booleanFieldTwo = pofReader.readBoolean(2);
        }
    
        @Override
        public void writeExternal(PofWriter pofWriter) throws IOException {
            pofWriter.writeString(0, stringField);
            pofWriter.writeBoolean(1, booleanFieldOne);
            pofWriter.writeBoolean(2, booleanFieldTwo);
        }
    
        public static void main(String[] args) {
            ConfigurablePofContext pofContext = new ConfigurablePofContext("jk-pof-config.xml");
    
            JK value = new JK(false, true, "JK");
    
            Binary binary = ExternalizableHelper.toBinary(value, pofContext);
    
            PofValue pofValue = PofValueParser.parse(binary, pofContext);
            PofValue childOne = new SimplePofPath(0).navigate(pofValue);
            PofValue childTwo = new SimplePofPath(1).navigate(pofValue);
            PofValue childThree = new SimplePofPath(2).navigate(pofValue);
    
            System.out.println(childOne.getValue());
    
            try {
                System.out.println(childTwo.getValue());
            } catch (Exception e) {
                System.out.println("Exception: " + e.getMessage());
            }
    
            try {
                System.out.println(childThree.getValue());
            } catch (Exception e) {
                System.out.println("Exception: " + e.getMessage());
            }
    
        }
    }
    and the config.xml file - pof - jk used above...
    <pof-config>
        <user-type-list>
            <include>coherence-pof-config.xml</include>
    
            <user-type>
                <type-id>3001</type-id>
                <class-name>org.gridman.pof.JK</class-name>
            </user-type>
    
        </user-type-list>
    </pof-config>
    When you run the main method of the class above you could expect to get
    JK
    false
    true
    ... but what you get is...
    JK
    null
    Exception: -34 is an invalid type
    What is going on? The booleanFieldOne seems to have been serialized as the type-34 which is PofConstants.V_BOOLEAN_TRUE which makes sense, but the code to deserialize the field cannot handle type-34. The booleanFieldTwo returned null and is serialized as the type-65 which is PofConstants.T_UNKNOWN

    Where we have a problem, is if we do a query with a filter like this...
    new EqualsFilter(new PofExtractor(null, 1), true);
    .. .it will break whenever he tries to extract the POF value, where booleanFieldOne is true.

    I know that we can solve this problem by always specifying the type, so it does not work
    new EqualsFilter(new PofExtractor(Boolean.class, 1), true);
    and it works, too, considering that it fails without specifying the type...
    childTwo.getValue(Boolean.class);
    Although there are alternatives, it seems very strange.

    What's even stranger, is that if you do not serialize the stringField so writeExtrnal and readExternal methods look like this
    @Override
    public void readExternal(PofReader pofReader) throws IOException {
        //stringField = pofReader.readString(0);
        booleanFieldOne = pofReader.readBoolean(1);
        booleanFieldTwo = pofReader.readBoolean(2);
    }
    
    @Override
    public void writeExternal(PofWriter pofWriter) throws IOException {
        //pofWriter.writeString(0, stringField);
        pofWriter.writeBoolean(1, booleanFieldOne);
        pofWriter.writeBoolean(2, booleanFieldTwo);
    }
    You will get this output...
    null
    false
    Exception: -34 is an invalid type
    iNow the stringField is null (that we have not serialized it) but the booleanFieldOne now is desrialized correctly as a Boolean false. We have noticed that if you have a Boolean value as the first field you serialize in the method writeExternal methods then it is serialized as the type POF - 11 which is PofConstants.T_BOOLEAN and is deserialized as the correct value true or false value.

    See you soon,.
    JK

    Hi Jonathan -.

    For the purposes of tracking, JIRA COH-5231 opened for this issue.

    Mark J
    The Oracle coherence

  • strange behavior with script times

    Hi all

    I have strange behavior with one of my scripts, and I can't understand where is the problem.

    Before you post the code, here's the principle.

    My form has two fields of time: "Time of Injection" and "Post injection time.

    The script runs when the output of "injection time" event and look if the injection time is before time "post injection.

    Here is my code:

    //get the value of the field "Injection time"
    var injection = this.formattedValue;
    
    //create an new Date object
    var injectionTime = new Date();
    
    //split the string to get the HH MM and SS values of the formattedValue (HH:MM:SS)
    var injectionTimeHoursString = injection.substr(0,2);
    var injectionTimeMinutesString = injection.substr(3,2);
    var injectionTimeSecondsString = injection.substr(6,2);
    
    //parse the strings into integer
    var injectionTimeHoursInt = parseInt(injectionTimeHoursString);
    var injectionTimeMinutesInt = parseInt(injectionTimeMinutesString);
    var injectionTimeSecondsInt = parseInt(injectionTimeSecondsString);
    
    //set the integer values into my Date object
    injectionTime.setHours(injectionTimeHoursInt, injectionTimeMinutesInt, injectionTimeSecondsInt,0);
    
    
    //do the same for the other time field "Post injection time"
    var post = post_injection.post_time.formattedValue;
    var postTime = new Date();
    var postTimeHoursString = post.substr(0,2);
    var postTimeMinutesString = post.substr(3,2);
    var postTimeSecondsString = post.substr(6,2);
    var postTimeHoursInt = parseInt(postTimeHoursString);
    var postTimeMinutesInt = parseInt(postTimeMinutesString);
    var postTimeSecondsInt = parseInt(postTimeSecondsString);
    postTime.setHours(postTimeHoursInt, postTimeMinutesInt, postTimeSecondsInt,0);
    
    
    //calculate the difference between both
    var diff = postTime.getTime() - injectionTime.getTime();
    
    //if the difference gives a negative result, display a message, empty the fields and set focus
    if(diff<0) {
         xfa.host.messageBox("The time of injection should be sooner than the time of post-injection activity measure.\n\nPlease re-enter correct times.","Incompatibility of times");
         this.rawValue = "";
         post_injection.post_time.rawValue = "";
         xfa.host.setFocus(post_injection.post_time);
    }
    

    The code seems to run pretty well... except with certain values.

    If postTime is 12:00

    and injetion is 12:04

    I get the error message and everything, so it's OK

    BUT

    When postTime is 12:00

    and injectionTime is 12:08

    No message! as if the difference was not negative! (the difference is zero...)

    When I display the time in a messagebox, 12:04 12:04:00 GMT blah blah... gives but 12:08 gives 12:00:00 GMT etc...

    same problem with 12:09, but not 12:10 for example...

    Any thoughts?

    Thank you.

    Thank you, but since I'm used to javascript, I'll stick to it.

    I understand the problem. It's a javascript with the ParseInt method bug!

    Check here: http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256C85006A6604

    parseInt("08") = 0.

    How to lose 2 hours for a stupid bug...

Maybe you are looking for

  • The name of the line, Miss is the address bar, also called the toolbar URL or address bar. Firefox calls it the Awesome Bar.

    When he disappeared the personal bar took its place completely. With the bar, I could see on the 8 favorites now I see 13. I would really like that Awesome Bar back!

  • Question about connecting to the network with a Terminal window

    Windows XP Pro, SP2, Fritz-card PCMCIA- HelloI am trying to create a connection from computer to computer by ISDN telephone line.I didn't install any software of specific composition, I only use the parameter of MS WinXP.Hardware works fine, I tested

  • Satellite Pro A120 does not pass the POST

    Hello I'm a character 'J' on the upper left side of the screen immediately after the post (power on self test)?It will not go any futher. I got into the bios and everything seems fine here, I can boot from a cd, but that's all.Hard drive turn but not

  • Error-2147312566: Excel 2013, LV2015

    Hello world I know that this subject has been discussed long ago. I tried the solution, but it did not work, and I have no idea how to proceed. My Testsystem has: -LabVIEW 2015 SP1 + Report Generation Toolkit -Office 2010 My PC has: -LabVIEW 2015 SP1

  • HP Support Assistant Hung

    The HP Support Assistant is hung up.  I get a notification that "important action."  When I click, I get a dialog box stating: HPSF.exe has stopped working.  This application has encountered a problem and needs to close.  Click 'Ok' to restart automa