POF type-id validation on Put()

From an extend client I am able to create an object that implements IPortableObject in .NET. I can define it in the Extend Client's POF file allowing me to put it in a distributed cache.
However, the object is not defined nor even exists in the cluster. The put works fine (since its storing the serialized version) and the only problems arise when I perform an operation that requires object deserialization inside the cluster.
An example would be passing back an EqualsFilter on a specific property. As you know, if the property is non-indexed, the cache must deserialize all of the objects to perform the comparison. Since the rogue object is not deserializable on the cluster an exception is thrown
Caused by: Portable(java.lang.IllegalArgumentException): unknown user type: 6000
Once this exception is thrown, the operation exits and my query with the filter is rendered useless.
Is there a way to force coherence to validate the type id of the pof stream when an object goes into the cache initially, disallowing the put in the first place?
Someone experimenting in our dev environment rendered the client application useless by inserting two rogue objects like this without realizing what they were doing. The specific cache was basically down until I removed these two objects.
Thanks!

Hi Jarrod,
You can force deserialization on put by configuring a dummy cache store for your cache, or by creating and configuring a backing map listener that attempts to deserialize the object. That way you will fail early, but because both of these approaches introduce additional overhead, you will probably want to disable them in production (I'd probably use BML which can be configured via system property to either validate the object or not. That way you can simply disable the validation in production, without having to maintain multiple cache config files).
However, if you are using Coherence 3.5, you have some other options:
1. You can create a backing map listener that uses PofValue to extract POF type id from your serialized object, and check if the type is registered with the PofContext. The problem with this approach is that you will only be able to validate that the top-level type is registered. You might still run into issues if the type of one of the nested objects is not registered.
2. You can use PofExtractor instead of default ReflectionExtractor for your queries, index creation, etc. This will actually eliminate the need for the Java class completely, so it might save you a significant amount of work (if you don't need Java class for other reasons, that is).
Regards,
Aleks

Similar Messages

  • The interface type is valid, but the specified interface number is not configured

    Hi
    I'm all new to using LabVIEW, which I have to use for a project. I'm trying to make a setup with a Keithley 2000 multimeter and an Agilent U2722A SMU. But I can't figure out how to get these instruments to communicate with LabVIEW. I can see and send commands to the Keithley 2000, but not the Agilent U2722A, with Agilent Connection Expert. But when I use LabVIEW I can't see any of them, and if I use the drivers I've found with "NI Instrument Driver Finder - Configure Search" I pops up with an error message saying
    "Error -1073807195 occurred at VISA Open in Keithley 2000.lvlib:Initialize.vi->Keithley 2000 Read Multiple.vi?            
    Possible reason(s):
    VISA:  (Hex 0xBFFF00A5) The interface type is valid, but the specified interface number is not configured.?"
    I've read all the threads I could find about this problem, but none of them helped. I've checked that the NiVi488.dll is checked in MAX under the VISA options. When I open the VISA Interactive Control I see an ASRL1>>ASRL1::INSTR and ASRL10>>ASRL10::INSTR. I don't know why it says ASRL, when I'm using an USB/GPIB interface, but the Keithley 2000 have 10 as the address. (the Agilent U2722A is connected directly by USB)
    Assume I know nothing.
    Thanks

    I'm using the GPIB-USB-HS. I also used this on the development PC when I exported the hardware configuration.
    This shows up in my MAX config and when I scan instruments, all of them show up. I can query them in MAX no problem.
    My installer includes all the .exe's from my project. As I said, I've done this with my previous 2009 installer without any issue. I upgraded my installer since I upgraded my project for version 2013. The error only happens when I run my code.
     

  • HT1918 hey am stranded its like a month now my account does not have  the None in the payment type section i had put my visa info but not now i want to remove them please urgent help

    hey am stranded its like a month now my account does not have  the None in the payment type section i had put my visa info but not now i want to remove them please urgent help

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • Customization + SD + Add a Document Type as Valid

    Hi Experts
    This is related to Customization in SAP.
    I have the requirement that under Sales Document types, I need to remove a Blocked status of a document type and add this type as Valid document.
    I followed the below path:
    SPRO-> Sales & Distribution -> Sales -> Sales Documents -> Define & Assign Reason for Blocking.
    But, I could not make out where and what to do?
    Plz help.

    No response. Closed!

  • When asked to put in a 24 didgit serieal number my serial numbeer has  letters and it won`t allow me to type in when i put in the letter,what am I doing wrong?

    when asked to put in a 24 didgit serieal number my serial numbeer has  letters and it won`t allow me to type in when i put in the letter,what am I doing wrong?

    If it has letters it is not a serial number.  It is likely a redemption code.
    Redemption Code Help
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • Should customised row validation rules put in EntityImpl.java or EntityDefImpl.java?

    Qestion:
    1) Should customised row validation rules put in EntityImpl.java or EntityDefImpl.java?
    2) Where am I recommended to define customized Exceptions?
    Thanks for any replies!

    Qestion:
    1) Should customised row validation rules put in EntityImpl.java or EntityDefImpl.java?If you want to write validation logic in java, EntityImpl subclass is the place to do it. You may choose to write validation per attribute in the relevant setXXX methods (where XXX is attribute name)
    or in the validateEntity() method (before/after calling super.validateEntity() as your case may be).
    2) Where am I recommended to define customized Exceptions?You should define new exceptions in a package separate from your server classes, (so that you can download them to client-side incase you are in a thin-client environment).
    Exceptions should be a sub-class of JboException if you want these exceptions to be tier-independent and work without conversions in Bc4J.
    If the exceptions are part of validation logic you may choose to subclass ValidationException or one of the subclasses thereof.
    Thanks for any replies!

  • How to check list of users from OS level with type and validity AIX+DB2

    Hi,
    We have 40 clients in our ECC -PRD system. we do not have authorizations to login all clients , only we have 000 accessonly.
    we need to check all users type and validity in the system. can any one please help me this script.
    regards,
    balarami

    Hello,
    Yes you can check the user validity and tye from OS level with DB script.
    ORACLE SQL scripts : I assume that schema for your system as sapr3.
    First you check the table fields by desc sapr3.usr02;
    then can select these fields for user as select <field name1>, <field name2> from sapr3.user02 where uname=<required user name> and mandt=<client>;
    check exact details before you execute script @ ORA level*
    If you want to see logged on users - you can see them with your '000' ID for all 40 clients.
    Hope this helps.
    Thanks,
    Amit Thombare

  • Which table has Role Type and Validity

    I do have role name - agr_name, which table will hold the role type - Single or Composite and Valid till date?

    Welcome to SDN.
    Check following tables -
    AGR_AGRS                       Roles in Composite Roles
    AGR_AGRS2                      Role definition
    AGR_ATTS                       Role attributes
    AGR_CUSTOM                     Role Customizing objects
    AGR_DATEU                      Personal settings for roles
    AGR_DEFINE                     Role definition
    AGR_FAVOS                      Personal settings for PFCG
    AGR_FLAGS                      Role attributes
    AGR_FLAGSB                     Role attributes
    AGR_USERS                      Assignment of roles to users
    AGR_USERT                      Assignment of roles to users
    Regards,
    Amit

  • Simple Type Format Validation

    Hi,
    I have a simple type Buil-In Type double with External Representation->Format as follows: "$ ###,##0.00"
    My attribute is binded to an Inputfield and the data is presented correcty, for example "$ 2,000.00".
    But my problem is when the user wants to change that value and gives for example "1000" on that same Inputfield, on any action the framework is validating that the input data is in incorrect format, and the user has to enter explicit the format with the currency symbol "$"...
    Is there a way I can avoid this validation?
    I do want the framework to validate if the value is a Build-in type double and showed as currency on screen, but let the user the capability to enter any number without the format with the sign "$"
    Is this possible???
    Thanks in advance.

    Hi Alan,
    You can use the concept of calculated attribute for achieving this. Create a calculated attribute based on this attribute.
    Once the user enter something in the input field and some action is called by framework, the caculated setter method will be called and then  you can change the format in which ever way you want.
    A calculated attribute is an attribute that is not stored by the element, but calculated each time the attribute is accessed. Therefore it must be marked in the IDE and controller methods must be declared.
    Calculated attributes can have getters and (unless they are read only) setters. The getter calls the declared controller method with the following signature:
                          AttrClass getNodenameAttributename(NodenameElement element);
    It is expected to calculate and return the value based on other values of the element.
    The setter is only generated if the attribute is not marked read only. It has the following signature:
                          void setNodenameAttributename(NodenameElement element, AttrClass value);
    This method is expected to modify other attributes of the element based on the given value. It does not mark anything changed by itself. Only the modification of other attributes leads to updates of the GUI.
    (The above method names are proposals of the IDE. You may change them.)
    Refer to these links as well:
    http://help.sap.com/saphelp_sm32/helpdata/de/7f/a0384162316532e10000000a1550b0/frameset.htm
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/1ee0e990-0201-0010-75bf-a087c241cb83
    https://wwwn.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/0c0dcacd-0401-0010-b4bd-a05a0b4d68c8
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/uuid/bad3e990-0201-0010-3985-fa0936d901b4
    No need to remove the validation code. That is actually a good feature provided by the framework. Why to remove that?
    I hope that helps!! Please revert back in case you have further issues.
    Thanks and Regards,
    Pravesh

  • HT1349 I changed my passcode lock and typed it in 2x to confirm it. Now that I type exactlly what I put in it keeps telling me to connect to ITunes. Now I dont know how to change it from there

    I just changed my passcode lock for my I-pod touch 4g because some people found out my code. I confirmed it and everything but it still will not work. It said' Passcodes match' now every time  I type in the same exact thing it says "Connect to I-tunes". I have connected to I-Tunes a ton of times but i don;t know how to change it. Can someone please help me and tell me where I need to go to change it?

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • XSD Type not validating

    Hi I have a xsd for the inut of my BPEL process with one of the fields being of type int. (<xsd:element name="source_id" type="xsd:int">)
    However if I call this process from another BPEL process passing a string as parameter I don't receive an error? Is this correct? Shouldn't it validate the type and throw an error on if it don't match?
    Thanks
    Marinus

    Hi Marinus,
    There is a property in Bpel called "validateXML". You can find it in :
    Oracle BPEL Control under Manage BPEL Domain > Configuration
    By default is set to false .
    If you set to true, the Oracle BPEL Process Manager applies schema validation for incoming and outgoing XML documents.
    Regards ,
    Mihai

  • Excise Condition Types with validity

    Dear All
    Is it possible to maintain tax conditions with validity periods. for ex: jmop 8% from 1/1/2010 to 26/02/2010....10% from 27/02/2010 to 31//3/2010..If Yes, what tax rate will be triggered for existing open PO's. If the GRPO date is 27.02.2010 or 28.02.2010
    Kindly throw some light
    Regards
    JK

    Hi,
    As per our observations,
    If PO is before 27.2.2010 and GRN on or after 27.2.2010, system will calculate JMOP @ 10% only.(.(Condition Record JMOP-8%-1.1.2001 -26.2.2010) & ( 10% from 27.2.2010-31.12.2010 )
    If GRN Booked before 27.2.2010 and invoice booking on or after 27.2.2010 Cenvat Clearing will be @8% only.(Condition Record JMOP-8%-1.1.2001 -26.2.2010) & ( 10% from 27.2.2010-31.12.2010 )
    IF PO is on or after 27.2.2010 JMOP @ 10% only.
    Experts Pl. comment on this.
    Regards,
    Rajeswari

  • Changing a fields type after validation

    I am having an issue with trying to figure out how to change a fields type (i.e. User Entered - Required) after I validate a test sheet that the user filled out. It is basically an interactive answer sheet that grades itself when the user is finished answering the questions, I just need to know how to make that field read-only after the user has finished the test. Any ideas on how to go about doing this?
    Thanks,
    Ryan Crocker

    No, it would be
    GradeTest.access = "open";
    You can see the Object Model reference guide at: http://www.adobe.com/devnet/livecycle/articles/Adobe_XML_Form_Object_Model_Reference.pdf
    Chris
    Adobe Enterprise Developer Support

  • MacBookPro: HD formatted with same type computer - impossible to put OSX 10.5 on it. Any help???

    Hi there,
    I'm fully new with Mac. I'm aware of PC but Mac is of course a different story.
    Mac 1 is the bad one. Mac 2 is fully functioning.
    I did twice the hardware tests on Mac 1: both tests didn't mention any problem.
    I formatted the HD from Mac 1 with Mac 2.
    I switched both HD's. Mac 1 was perfectly working, Mac 2 mentioned an empty HD.
    After I copied the original OSX 10.5 to HD 1 with Mac 2, I let read Mac 2 the contents of HD 1.
    Everything fine. Put HD 1 in Mac 1, a map with a question sign appears... nothing else.
    Is ther a way to let it work? What did or do I wrong?
    Any help??????????????????
    greatings, Bob.

    OK, this is just a suggestion.  You might want to wait and see if other froum members think this will work, try at your own risk.
    If both Macbooks are really the same see if this works.
    get Carbon Copy Cloner (CCC)
    http://www.bombich.com/
    or
    SuperDuper
    http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html
    Which you will have to dowload onto a fully working Macbook and a HD with a working operating system  (I will call this Mac A) before doing the following.  Shut Down Mac A.
    Be sure to carefully read what these programs do.  They do erase things, so be careful!!!!!
    Start up Mac A, but start up in firewire target disk mode by holding down the "T" when it restarts.  You should see yellow/orange firewire symbols on Mac A screens.  Hook it up via a FW cable to Mac B.  Startup Mac B now, and hold down the "option" key when it restarts.  Then select the hard drive in Mac A.  Mac B should now boot up using the disk that is in Mac A.  Now you need to clone the Mac A system to Mac B. 
    Use SuperDuper or CCC to "clone" Mac A  to the HD in Mac B.  Then go to system prefs, and select the drive in Mac B as the startup drive.
    Shutdown.  Disconnect Mac A from Mac B.  Turn off Mac B using power button.  Startup both macs, which should now be basically clones of each other.

  • I am trying to download microsoft office and it comes up "apple" and then password. I just put in my apple password that doesn't work. I type over "apple" and put my id in and then password and still no luck. Any suggestions please?

    I am trying to download microsoft office mac but it comes up "apple" and then on new line password. Have put in my apple password with no luck then typed over apple and put in my id and then password but still no luck.

    OS X Lion>: How to Easily Reset the Administrator Password

Maybe you are looking for

  • Windows6.1-KB976462-v2-x64 update is not applicable to computer

    I am installing share point server 2010 in window 7 profession (64 bit ) so hot fix Windows6.1-KB976462-v2-x64 is required for is but when i am going to install this hot fix then it is giving me Message like this -> update is not applicable to comput

  • Print Dialog box issues

    When I make changes to a print parameter, ie add crop marks, the changes only appear if I select a different media size than what I was working in. Say I was working in CUSTOM. If I add crop marks, I have to chose another media size, say, LETTER, the

  • ITunes died

    iTunes has encountered a problem and needs to close. This message appears when I try to open the iTunes. First time it happened was when someone accidently turned off my computer without shutting it down. When I started it up again, iTunes didn't wor

  • In Design CS5 Problem

    Guten Tag. Ich brauche dringend Hilfe um mein InDesign CS5 wieder zum laufen zu bringen. Seit einiger Zeit funktioniert es nicht mehr, aber alle anderen Adobe Programme funktionieren, daher denke ich das es am InDesign selber legen muss.. Ich habe al

  • GUI Garbage Collection

    Hi Everyone. This is very urgent. I need to perform a possible garbage collection of a heavy GUI stuff when it is not in use. Each of the GUI stuff is created from an action listener for the various menu items. I did try using WeakReference but its v