Problem of composite key chain BigDecimal, pair

JDeveloper 12.1.3

I have OS based on a table that has the following PK

Task_Id NUMBER

Id_ressource Varchar2 (6)

Using the EO above, I have a VO to view data in the user interface. I get the problem in the bean to support (test code below)

            DCBindingContainer dcbindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding iterator = dcbindings.findIteratorBinding("TaskCalendarIterator");
            System.out.println(activity.getProvider().getId());
            //Key key = new Key(new Object[] { activity.getId(),activity.getProvider().getId() });
            java.math.BigDecimal key1= new BigDecimal(140080);
            String key2="ds1";
            Key key = new Key(new Object[] { key1,key2 });
            System.out.println(activity.getId());
            System.out.println(key);
            RowSetIterator rsi = iterator.getRowSetIterator();
            Row row = rsi.findByKey(key, 1)[0]; //!!!!!!!!!!!!!!!!!!!!!!!!!!!! Here is where exception is thrown
            rsi.setCurrentRow(row);

Caused by: oracle.jbo.domain.DataCreationException: Houston-25009: failed to create an object of type: java.math.BigDecimal type: java.lang.String with value: ds1

Recording with the key 140080, ds1 exists in the iterator.

I thought that the key can be anything, including channels?

OK, I got the problem solved. The order of the key attributes must be identical to the order of these attributes in the original Version, NOT in OT

The order was therefore, in my case in OT, TaskId, ResourceId

Vo to ResourceId, TaskId

That's why in the bean to support code, it must be:

java.math.BigDecimal key1= new BigDecimal(140080);  //This is TaskId
String key2="ds1";  //This is ResourceId
Key key = new Key(new Object[] { key2,key1 });

Tags: Java

Similar Questions

  • Coby dp - 151 photo key chain-Windows cannot format.

    Coby dp - 151 photo key chain-Windows cannot format.  What should I do?

    Hello

    You receive an error message/code?

    I suggest you to check if the problem persists with the other computer.

    I suggest you to put the computer in a clean boot state .

    To help resolve the error and other messages, you can start Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See the link below for more details:

    How to troubleshoot a problem by performing a clean boot in Windows 7:
    http://support.Microsoft.com/kb/929135
    Note: When you are finished troubleshooting, follow these steps in the section above to reset the computer to start as usual.

    If the problem persists, contact the manufacturer support for assistance.

    Coby Support Center

    http://www.cobyusa.com/?p=support

  • How to update a record, if it is a composite key (primary key is based on two columns) in the OPS? page?

    Hello

    Actually I got to know this update of a record must be made when the primary key is based on two columns.

    Previously, I used SPEL for a column. It was working fine.

    But I came to know that regardless of the folder I try to update, it was the update page is coming up with the first combination of the record.

    As if RC 131

    RC 124

    RC 125 are the records.

    If I click on update of RC 124 also, the update page is coming up with RC 131 values as it is the first.

    So I understand that the SPEL should be based on two parameters, because it is a composite key.

    How to do?

    Please let me know if you don't understand the problem.

    Thank you.

    Wow!

    I got it.

    Thank you brothers, always a hope that you could help me

  • is it better to use the rowid function or a composite key

    I have a clue about 2 fields so that I can make my form based on these 2 fields
    But now since I spend my app in 4.2 that I intend to do everything depended of rowid function

    Is this the right approach
    I currently facing problems as 1422 extract extract several lines even if the primary key is defined as key composite column 2

    Your primary key must never rest on 'natural touches', that is to say the actual data in your table. The fact that you are talking about a composite key means that you think that do. You can create an index that is UNIQUE on these types of fields to maintain the integrity of the data, but they do not have the pharmacokinetics of the table.

    My primary keys are always a NUMERIC field, populated by a combination of sequence/relaxation. Because the data in the ID field have no connection with the data in the table - there is never any need/reason to change. As has been mentioned above, ROWID changes rarely, but it is possible for them. I use ROWID in the Apex and when I have forms to keep tiny (maybe 5-10 lines) lookup tables that are used to populate LOVs create a primary key is excessive.

  • Integrate Hibernate L2 cache with consistency in the composite key of reference

    Hi all:
    I have a problem when I activate the Hibernate l2 cache integrated with consistency. When the entity class using this string or unique integer primary key, the L2 cache has worked well. But when I use the entity with composite key class, I had the problem.
    I wrote a script to test junit to test the session.get method, when I run the test cases for the first time, the miss of the entity to load the object from the cache, Hibernate will trigger a DB query so it box as an object, then put it in the cache. But when I run the test case, again, I found the Hibernate trigger a query once again, which was strange... (it should not have happened, I should got the object from the cache), then, I used the console cache coherence to list the data in the cache and finding himself under the information:
    ###########################################
    (Hi) map: list
    model. SiteUserInfo #model. SiteUserID@323819 = Item {version = null, freshTimestamp = 1333943690484
    model. SiteUserInfo #model. SiteUserID@323819 = Item {version = null, freshTimestamp = 1333943600419
    ###########################################
    There are two keys with the same value cached... (I put already implemented method hashcode and equals to SiteUserID object). someone there has the same problem? Or L2 Hibernate with composite key can integrate with consistency?

    Rip off code SiteUserID
    #####################################
    @Override
    public boolean equals (Object obj) {}
    If (obj == this) {}
    Returns true;
    }
    If (!) () obj instanceof SiteUserID)) {}
    Returns false;
    }
    SiteUserID id = (SiteUserID) obj;
    return new EqualsBuilder () .append (sid, id.getSid ()) .append (name, id.getName ()) .isEquals ();
    }

    @Override
    public int hashCode() {}
    return new HashCodeBuilder () .append (sid) .append (name) .toHashCode ();
    }
    ###################################

    Hi John,.

    I think there may be another problem.

    Please reference:
    http://blackbeanbag.NET/WP/2010/06/06/coherence-key-HOWTO/
    For entry cache, partitioned cache is placed in backup card in binary form.
    The main objects of the same data must always be serialized in binary form even.

    Unfortunately, use Hibernate CacheKey is as key cache L2.
    And CacheKey is somewhat complex, some related attributes use TreeMap as their type.
    "Java gives no guarantee on the order in a hash table and serialization is dependent on the command."
    (reference http://stackoverflow.com/questions/9337126/how-can-oracle-coherence-get-fail-with-retrieved-key-object)

    So... you may need to modify the source code of some Hibernate, ex: replace the FastHashMap in TreeMap...
    I tried, it looks like work. I'll send you have modified source codes.

    Best regards
    Leon

  • CQL Join on the coherence of Cache with Composite key

    I have a coherence of Cache with a composite key, and I want to join a channel for the records that cache with a CQL processor. When I deploy the package that contains the processor, I get the following error:

    + italics14:32:35, 938. modify the beginning of query SimpleQuery | [ACTIVE] ExecuteThread: '7' for the queue: "weblogic.kernel.Default (self-adjusting) | CQLServer | FATAL +.
    + 14:32:35, 938. change query > > SimpleQuery < < start +.
    + specified predicate requires a comprehensive analysis of the external source that is not supported. Please change the join predicate. [ACTIVE] ExecuteThread: '7' for the queue: "weblogic.kernel.Default (self-adjusting) | CQLServer | FATAL +.

    I think I use the key. If I change the key to a single field, it is OK. I found a similar problem when I defined a Java class to represent the composite key. It is possible to join this way on a composite key cache?

    I could define another area that is the concatenation of fields in the composite key, but it's a little messy.

    My config is as below:

    < wlevs: caching system id = "MyCache" provider = 'coherence' / >

    < wlevs:event - type-repository >
    < wlevs:event - type the type name = "SimpleEvent" >
    < wlevs:properties >
    < name wlevs:property = 'field1' type = "char" / >
    < name wlevs:property = 'Field2' type = "char" / >
    < / wlevs:properties >
    < / wlevs:event - type >
    < / wlevs:event - type-repository >

    < wlevs: channel id = "InChannel" - type of event = "SimpleEvent" >
    < wlevs:listener ref = "SimpleProcessor" / >
    < / wlevs: channel >

    < wlevs:processor id = "SimpleProcessor" >
    < wlevs:listener ref = "OutChannel" / >
    < wlevs:cache - Ref source = "SimpleCache" / >
    < / wlevs:processor >

    < wlevs: channel id = "OutChannel" - type of event = "SimpleEvent" >
    < / wlevs: channel >

    < wlevs:cache id = value 'SimpleCache"type ="SimpleEvent.
    Properties-key = "Field1, Field2.
    system caching = "MyCache" >
    < / wlevs:cache >

    and the processor CQL is as follows:

    < processor >
    < name > SimpleProcessor < / name >
    < rules >
    < request id = "SimpleQuery" >
    <! [CDATA]
    Select I.field1, I.field2 from InChannel [now] as I,
    SimpleCache as S where
    I.Field1 = S.field1 and
    I.Field2 = S.field2
    []] > < / query >
    < / rules >
    < / processor >

    Thank you
    Mike

    Unfortunately, join him on composite keys in coherence is not supported in the released versions. He will be supported in release 12g.

    As you mention, setting another field as the key, which is the concatenation of the original keys is the workaround.

  • Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    Kev2012 wrote:

    Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    It would depend on what you're trying to link to?

    Here are the supported Bluetooth profiles an Apple device can connect to iOS: Bluetooth profiles supported - Apple Support

  • SideWinder X 6 problems with certain keys

    Hey, I have a new sidewinder x 6 and it was send me problems with some keys. Whenver I want to press 'e' or 'v' (and perhaps others, but those are the ones that I noticed to be more frequent) I sometimes have to press several times on it or it will not be saved.  This problem started yesterday and its getting boring.

    I love my Sidewinder and I wouldn't go back to a normal keyboard
    Please any ideas would help!

    LD49,
    I know you said that you used canned air to blow out the keyboard, but have you tried turning upside down and tapping gently on the bottom to see if something grave?  The keys you are having issues with that are all in the same general area of the keyboard, for the most part using the same finger to activate.  You might have something like a trombone, a small piece of paper, or whatever it be as incorporated under the keys.  Or is it possible that something sticky might have gotten there from your hands like a few drops of soda or candy?  Which might make the keys stick.  You can take some cotton pads with a small amount of alcohol on them and clean between the keys to see if they are stuck together.

    Other than that, you can try unplugging the keyboard and plugging, reload the driver and checking all macros that can be assigned to these keys.

    Also, check the keyboard settings in the control panel and play with the repeat delay and speed to see if that will solve your problem of repetition.

    Let us know if you need help.
    Thank you
    Gloria
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Pavilion 15-e070sl: problem with the key "cancelled."

    Hi guys,.

    I have some problems with the key "cancelled." It does not work for a few months. But the more serious problem is that sometimes when I double click on a file or a folder with my mouse compares the window cancellation asking me to confirm moving the file to the trash. This window disappears until I have restart the system. He thus annoyng. It seems that the key 'cancelled' suddenly to work again when I double click on something.

    I hope you find a solution

    With the availability!

    Hi @MichaelMazz ,

    Thank you for visiting the Forums HP's Support and welcome. I looked in your question about your HP Pavilion Notebook 15-e070sl and the keys does not properly.  Select an on-screen keyboard layout using this document , as this could be the problem.

    If this is not enough, try this document on troubleshooting the keyboard. You can watch the laptop marked key stuck section.

    Here is a link to uninstall the keyboard. Restart the computer after the uninstall, it must be reinstalled automatically.

    Have you tried to clean the key or use air to blow the key there could be debris in the key itself?

    I hope this helps.

    Thank you.

  • I have a problem with the key, I aktivate Photoshop CS 6 after buying fo little years. But the drive hard ist crasht a moment the aktivate display the error. Please you can reset the key?

    I have a problem with
    the key, I have aktivate Photoshop CS 6 after buying fo little years. But the
    Drive hard ist crasht a moment the aktivate display the error. Please you can reset the
    key?

    Hi berndp3095653,

    Greetings.

    You must contact the customer as some changes to do on the backend

    Contact the customer service

    Concerning

    Rohit

  • Index on the Composite key to solve enq: TM - contention

    Version: Oracle 10g

    Hello

    I had enq: TM - restraints in my database, and I want to apply the index on the foreign key of one of the table column.

    But I see there are composite foreign keys and foreign keys unique in the table.

    Only foreign key I can easily create the index, but my doubt is that, for a composite foreign key,.

    Do I need to create the composite indexes on each column of the composite key or composite foreign key columns, I have to apply clue to solve the enq: TM - restraints question.

    For example: I have a foreign key below

    "FK_RECONDATA_DRIVER" CONSTRAINT FOREIGN KEY ('NRT', 'DADDRESSTYPE', 'DADDRESSNR')
    REFERENCES 'COL '. "" TURN ON THE FAZGFUEHRER ' ('NRT', 'ANSCHTYP', 'ANSCHNR'),
    "FK_RECONDATA_PRODUCT' FOREIGN KEY ('NRT',"PRODUCTNR") CONSTRAINT
    REFERENCES 'COL '. "" ENABLE SORT "("FNR","SORTENNR")

    Here the column FNR is common in both the foreign key.

    Please help me find how to create indexes on these columns.

    An index defined as ind_fk (a, b, c, e, f) will cover (1) (a) FK and FK (a, b, c).

    It however will not cover FK(a,e,f) because it does not start by all the columns of the FK.

    You must create an additional index that begin with (a, e, f).

    Best regards

    Mohamed Houri

  • Composite key mapping.

    I have the table that has a composite key as the primary key. (I'm creating entity of the editor. Base_de_donnees contains several tables, where the list tables are not displayed in the data model editor)

    When creating entity I have traced the two field (which are primary keys of database) as fields Id (OrderNumber and number)

    After the model on the deployment server and running code, I get no result.

    Also, no error message appears on the console of the server of LCD screens.

    Composite key can be used in data modeling. If so, what is a good way to set up the composite key.

    I use screens LCD 3.1 and latest version of the plugin for Flash Builder 4

    < entity name='LineItemBean' persistent='true'>

                < annotation name="VisualModeler" width="239" height="123" x="293" y="51"/>

    <annotation ='ServerProperties' from the name of ServerType='LCD'/ >

                < annotation name="DMS" Table="ADVJPMT. Of the ELEMENTS' using transactions='false'/ >

    <annotation name='ActionScriptGeneration' package='valueObjects' ImplicitServicePackage='services'/ >

                < id name="orderNumber" type="integer" generated="false">

                      < annotation name="DMS" ColumnName="ORDER_NUMBER"/>

                </ id >

                < id name="itemNumber" type="integer" generated="false">

    <annotation ='DMS' from the name of ColumnName='ITEM_NUMBER'/ >

    <annotation name='ActionScriptGeneration' DisableAutoReCalc='true'/ >

                </ id >

                < property name="quantity" type="integer">

                      < annotation name="DMS" ColumnName="QUANTITY"/>

    <annotation name='ActionScriptGeneration' DisableAutoReCalc='true'/ >

                </ property >

          </ entity >

    Hi Amit,

    This use case must certainly work, and I don't see anything bad in your model as it is. Can you give some more information about what exactly are you trying to run? You run LineItemBeanService.getAll ()? It is the simplest filling/filter, you can try to see if the template has been correctly configured.

    To see what can go wrong, you can try a few things:

    1. enable debug logging. Open services - config.xml in the directory WEB-INF/flex to your LCDS webapp. At the bottom of the file, find the logging-> target and replace the level attribute 'Debug '.

    2. try to get the data from the table of the ELEMENTS with a direct SQL query ("" Select * elements "") in the viewer request RDS (point of view of data model, RDS Dataview)

    See if you directly to the database running the query gives the expected result and if so, check the server logs to see what happens when the server receives the request count with all.

    _______________

    That said, the LineItemBean entity in your model that makes me think you may also have an OrderBean and an ItemBean entity in your model. I'm guessing an order consists of a few command elements, each with a certain amount, and a given element can appear on many orders. If this is the case, you should consider these data modeling with the associations between the entity of LineItemBean and the OrderBean and ItemBean entities. This would mean that the ORDER_NUMBER and ITEM_NUMBER columns in your table will be the primary keys and foreign keys, and your model will look like this:

    Give it a try, if that seems reasonable (I just guess on your case of use here)

    Thank you

    Svetlin

  • Searching on KeyField composite key

    I have a composite key with several KeyFields. I'm not allowed to create SecondaryKey on any KeyField (or better said, I've not found a way to do this). How would a search using the first KeyField? Are there examples? Thank you. Peter

    Hi Peter,.

    This thread answered your question? :

    Re: Help definition index

    No, there is no example of this.

    -mark

  • Problem opening Composition in CS4 on Windows 7 (which worked in Vista) 32-bit

    Hello

    Merry Christmas! I hope that everyone is having a better that I am right now!

    With little information about what I have and what is happening.

    My machine is a machine made to measure with a motherboard ASUS P5KC, Intel Quad Core Q6600 @ 2.40 GHz and 4.00 GB of RAM DDR3 with an NVIDIA GeForce 8800 GTX.

    Yesterday, when I was working on this video, I got Windows Vista Home 32-bit installed. All fonts, images, plug-ins, etc were there, works very well. The project has had several compositions with some 3D elements.

    Somehow this computer has been infected with a nasty little trojan; clean it enough to get my files out there and make a backup.

    I then installed Windows 7 Professional 32 - bit, re-installed After Effects CS4, copied all video Copilot Evolution and Pro Scores, sound effects designer and Action Movie Essentials to the machine; installed fonts and plugins again.

    I tried to start After Effects and open the project; everything was good, he acknowledged that there were 53 of the elements that are not found (not coupled images). However, once it has loaded and it started to load the last composition I had opened (which is be the only big enough with 3-d elements), it would just freeze and become 'unresponsive. '

    I tried this several times; no luck.

    I then started a new project and the project "drug" existing to the new. This allowed me to open the project without opening the previous composition. I was then able to add a link to images and sounds. I was then able to open the other compositions, but at the time wherever I tried to open the composition that I tried earlier, it froze again.

    So I thought, well maybe, I can just make or make a power of Attorney, etc.

    The two have not. Even when I add to render queue, as soon as it adds, before I even click start making it freeze.

    I thought maybe it was a problem of memory; I did some stuff to allow After Effects use all the memory and all the hearts of the procesor, check the status of the OpenGL and allow him to use 80% of the physical RAM on the video card - still no luck.

    I tried the project to clean and purge from memory; no luck.

    I can post the project file ASP for anyone who is ready to help.

    Maybe install a 64 bit version of Windows 7 would be useful, but I do not understand what this question is the steam of.

    Thank you
    Travis

    The problem seems to be in the publication named "Running". When I tried to open this composition, After Effects has entered an attempt apparently endless to make the first image, using a lot of CPU power, but not a lot of memory to do so. So, this doesn't seem to be a memory problem. I was able to open the composition by pressing the Caps Lock key before doing anything; This tells After Effects to not try to render frames. If I had to troubleshoot this further, I would open this publication, disable all layers and then turn them back on one at a time to see which are the source of the problem.

    I hope that's enough to help you get started.

    BTW, I checked this on Windows Vista 64-bit. I would be really surprised if it had something to do with the specific operating system.

  • Satellite M50 Pro: Problem with keyboard - key Crtl gets stuck

    Jin

    have a little problem with the keyboard, and I was wondering if there was something I could do...

    the problem is sometimes when I am typing the keyboard, it will get stuck at random with the Ctrl key is pressed. I did no successful diagnosis as to what could be the cause of this, so I hope I can get it fixed here.

    Thanks in advance,

    NovaKry

    Hello

    I can give you some suggestions. I think the key Ctrl mechanism fits because of the debris under the key cutting.
    It of possible to remove the cup from the keyboard. Check the place around the key and try to clean it up.

Maybe you are looking for

  • Camera / Webcam quality on Satellite C660-155

    Hello I bought a brand new Toshiba Satellite C660-155 only 3 days back. However, on the first day, the quality of the built-in webcam is very very poor.The picture seems very noisy and only dorts and distortions appears even in full sun. Can what ste

  • in Linux, how to kill firefox with a shell so that firefox restarts without page "restore Session"?

    Murder firefox from a script with works of 'kill the nest', but there is a good chance the next time you start firefox, you get the page to "Restore Session" instead of the home page. It's not nice to my 'professional' request to be transferred to th

  • toolbar - unable to see time in the toolbar

    original title: toolbar I know it's a minor thing... but if my time is on the toolbar (date, hour, day) it's square.  I don't like the place because I do not see the date at all with bringing to the toolbar up to 2 inches and its expansion.  There mu

  • Trying to enter the product key

    I entered the product key correctly but when I hit the enter button its not available so I can't do anything. What can I do? It's not even say whether its wrong or not the option to continue or enter is not available when I get in there.

  • Update Windows 9

    I got my email from Windows for a' 9 free"to download on my computer, but when I try it states that it can not download an update. Please help with this. Thanks Sharon