Bug in 10.1.3 production: Cannot register Custom ViewCriteriaAdapter

Hi
I think there is a bug in JDeveloper 10.1.3 production. I cannot register a custom ViewCriteriaAdapter (see also Thread BUG in 10.1.3 EA: Can't register custom ViewCriteriaAdapter
This is my code:
public class myAdapter implements ViewCriteriaAdapter
  public String getViewCriteriaClause(ViewObject viewobject, ViewCriteria viewcriteria)
    System.out.println("***** \"myAdapter\" successfully called ***** ");
    return "My ViewCriteria Clause";
public class tester
  public static void main(String[] args)
    System.out.println("Check if you see a line which states that, that myAdapter was successfully called:");
    AppModuleImpl module = (AppModuleImpl) Configuration.createRootApplicationModule("project1.AppModule", "AppModuleLocal");
    ViewObjectImpl vo = module.getArticlesView1();
    vo.setViewCriteriaAdapter(new myAdapter());
    ViewCriteria vc = vo.createViewCriteria();
    ViewCriteriaRow vcRow = vc.createViewCriteriaRow();
    vcRow.setAttribute("ArticleNo", "like 'DV%'");
    vc.addElement(vcRow);   
    vo.applyViewCriteria(vc);
    vo.executeQuery();
    System.out.println("You didn't see such a line? This means 'myAdapter' has not been called, which is a bug!");
}

Some investigations discovered that the problem seems to be, that method "applyViewCriteria" in ViewObjectImpl resets the Custom ViewCriteriaAdapter.
So the problem seems to be solved if you override ViewObjectImpl.applyViewCriteria() like this:
    public void applyViewCriteria(ViewCriteria viewcriteria)
      super.applyViewCriteria(viewcriteria);
      setViewCriteriaAdapter(new myAdapter());
    }Another workaround is to set property "jbo.ViewCriteriaAdapter" to "project1.myAdapter" in the Configuration of all ApplicationModules (or at least in the one which is first instantiated).
Hope this helps.
Frank Brandstetter

Similar Messages

  • BUG in 10.1.3 EA: Can't register custom ViewCriteriaAdapter

    I am following Steve Muench's "Implementing a View Criteria Adapter to Customize Query By Example Functionality" article to create custom ViewCriteriaAdapter.
    BUT, framework seams to ignore my attempts to register custom adapter. I am using code like this:
    setViewCriteriaAdapter(something);I also try setting jbo.ViewCriteriaAdapter property but with no result.
    No matter what I do, it uses default OracleSQLBuilderImpl.
    Realy simple test case can be found at http://www.sharanet.org/~icuric/Test_BUG_1.zip (zipped application workspace).

    In case you didn't see it in subject, I am using JDeveloper 10.1.3 EA.
    Client is ADF Swing.
    I tried the same code in JDeveloper 10.1.2 and it works as advertised :)

  • I purchased illustrator online and followed download instructions, it prompted me to download a trial, I did, now i cannot download the purchased product or register my lic #, any help would be great.

    I purchased illustrator online and followed download instructions, it prompted me to download a trial, I did, now i cannot download the purchased product or register my lic #, any help would be great.

    You might try here for more direct help
    Downloading, Installing, Setting Up

  • Clean reinstall XP but cannot register O/S - Microsoft does not accept product key

    Hardware : Lenovo ThinkPad X60,    Type 1707-CTO,     Product ID : 1707-W4G
    Software :   Windows XP Pro version 2002  with SP3 
    I purchased my laptop second-hand and did not have the installation CD.    I borrowed a friend's CD and did a full reinstall .  The reinstall went well, but I cannot register the license.  Microsoft always returns error message saying product key invalid.    I am sure that the product key is valid - the sticker is still on the unit.   I finally got in touch with Microsoft. They told me I would need a recovery CD from Lenovo.  Is this correct?  What do I have to do to get a recovery CD ?  Any help would be appreciated - only a few days remaining to register.  

    http://support.lenovo.com/en_US/downloads/detail.page?DocID=HT035659
    T430u, x301, x200T, x61T, x61, x32, x41T, x40, U160, ThinkPad Tablet 1838-22R, Z500 touch, Yoga Tab 2 Windows 8.1, Yoga Tablet 3 Pro
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    If someone helped you today, pay it forward. Help Someone Else!
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • I downloaded photoshop elements 13 and cannot register it.

    I downloaded photoshop elements 13 and cannot register it or find a code.  I received no email. I have followed all the various instructions with no luck.  What can I do?

    Photoshop Elements is not part of the Cloud, I will move this to that forum
    Photoshop Elements Forum http://forums.adobe.com/community/photoshop_elements
    Select a topic, then click I STILL NEED HELP to activate Photoshop Elements Online chat
    -http://helpx.adobe.com/contact.html?product=photoshop-elements or
    http://helpx.adobe.com/photoshop-elements/kb/troubleshoot-installation-photoshop-elements- premiere.html

  • I get the warning: "The serial number you entered is valid, but a qualifying product cannot be found

    I get the warning: "The serial number you entered is valid, but a qualifying product cannot be found on this computer."  I have CS2 on my M:/ not my C:/, how do I get the Setup.exe to find it there?

    Having a similar issue,
    I purchased an acrobat upgrade for my Mac OS 10.7.3. I have the CS4 version and now I wanted Acrobat 10. Entered the first serial number no problem, the second serial number won't allow me to register the product. Even after a reinstall of Acrobat 9 just to verify the serial number was correct. Is there a stand-alone serial number that I am unaware of? I can't find it in the CS4 Design Premium collection packaging...
    Gautham K, You make it sound like it's a one or the other when entering the old serial number. On my system you have a dropdown to choose the current version you have currently installed on your machine and then the serial. The "next" button stays greyed out.
    Additionally adobe "call back" and "schedule call back" pages are down on the web site currently.

  • Cannot register Adobe XI Pro

    Hi All,
    I cannot register Adobe XI Pro and getting error message 'Please connect to the internet and retry' while registering product.

    Moved to Acrobat Installation & Update Issues

  • Error 1904 "Cannot register ExportSDK.dll" when installing BOXI

    When installing BO Entreprise XI Release 2 on my PC WXP SP2, had 2 error messages 1904 "Cannot register dll" on :
    - ExportSDK.dll
    - importent6.dll
    I had to ignore both errors to complete install.
    Although BOXI seams to work fine, should I fix the error and how to ?
    Marc

    Hi Marc,
    Could you please review the following information it might help you to resolve the issue.
    Hi Chris,
    This is with reference to the information provided by you.
    Could you please test the following solutions to resolve the issue?
    Solution1:
    1. Log in as u2018Computer Administratoru2019.
    2. Make sure that no anti-virus program or spy ware is running on your machine.
    3. Copy and paste all the installation files of BOXI to your local drive of your machine.
    4. Start the installation by running the setup file from your local machine.
    5. Click ignore to all the 1904 errors you get while installing and it should finish the install process
    6. Once the install is complete, go to the Control Panel -> Add/Remove Programs and reinstall BOXI.
    7. The installation the second time should register those dlls without error
    8. After successful installation, restart your machine.
    9. Open BOXIR2 and let me know what happens
    If the above mentioned solution doesnu2019t works then could you please apply the following solution?
    Solution2:
    You need to disable the DEP option for all services and programs other than those needed by the Operating System, before installing the product.
    To disable DEP:
    1) Go to Start > Settings > Control Panel > System > Advanced tab > Settings button > Data Execution Prevention tab.
    2) Select the top radio button and restart the system for changes to take effect.
    3) Upon completing these steps, you can now successfully install the product.
    Solution3:
    Sometimes we fail to register the .DLL using REGSVR32 because in the system there is the alias copy of these DLLs. Therefore, could you please check the system folders that is there any alias .DLLs are present for ExportSDK.dll and Import6.dll if there is any such .DLLs could you please remove the dlls and try to register again.
    In case of queries please do revert we will be glad to help you.
    Regards,
    Sarbhjeet Kaur

  • In my computer I changed my motherboard from Intel I5 to I7 processor. Now i cannot register my license of Photoshop Elements.

    In my computer I changed my motherboard from Intel I5 to I7 processor. I did not change my periphals as harddrive and so on.
    Now i cannot register my license of Photoshop Elements again.
    Adobe reports the serial number is already registered to another computer.
    What is the solution for this problem?

    Actually, you want activation support for this, not regular customer care. Activation is tied to hardware, so when you change the hardware in your computer PSE thinks it's on a new machine.
    https://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
    Scroll down to "Still need help? Contact us" and work your way through the links and eventually you will be able to start a chat session and get it straightened out.

  • Cannot register external hard drive

    I just tried to register an external hard drive, serial number 73BDWC84TSX3, via this site: support.toshiba.com/register and received a general error message: "This product cannot be registered." I have tried using both Google and Firefox; should I try a different browser? Thank you!
    This product cannot be registered.

    External hard drives don't need to and can't be registered. If you need to make a warranty claim in the future, you'll need  copy of your receipt.
    - Peter

  • Cannot register macbook pro

    I am trying to register a computer using the supportprofile website, but all I get after entering my serial number is an error that says "i cannot register using supportprofile at this time." Is this temporary?
    I am trying to register a product that I bought in 2010, so that I can report it stolen. I recieved a confirmation email, but it does not give my serial number, or any other infomation.

    cfcj wrote:
    I am trying to register a product that I bought in 2010, so that I can report it stolen.
    Too late!  You are suppose to register Mac products as soon as you get it because Apple's standard warranty lasts one year from the purchase date.   Apple Care last an extra 2 years.
    How to report lost or stolen Apple product

  • I cannot register my serial number emailed to me after the purchase of cs6 extended

    I cannot register my serial number emailed to me after the purchase of cs6 extended. The istall went fine but registration says invalid serial number.

    Hey beccac85068042,
    Adobe will provide you the serial number only if you are a registered user.
    Please refer the following link to know more on registration for Adobe products:
    Adobe product registration FAQ
    You might Contact Customer Care and seek help on the same.
    Regards,
    Anubha

  • Cannot register my Q10 to my iCloud mail using Imap

    Just cannot register my Q10 to my icloud email using IMAP. I have tried every permutation there is but continue to get error messages. Really fed up and need a hand. I have no problem setting up a separate YAHOO and GMAIL account. My supplier is GiffGaff if that helps. I show the settings below which various web sites state is correct but STILL get error messages. A typical error message is:“the server for account imap email:icloud – (my email address) port 587 can't be reached. please check etc”What you see below is exactly what my Q10 setup look like.From settings:IMAP description ….....icloudyour name …......*******username …......... My email address ending in @icloud.comemail address.........My email address ending in @icloud.compassword............ ***********server address …......... imap.mail.me.comport …..........................993encryption …............sslimap path prefix …......left blanksmtp username ….......my email address againsmtp password ….......my password againsmtp server address ….....smtp.mail.me.comsmtp port …....................587smtp encryption ….........sslpush …..........................onappend etc …................onsync interval...............15 minssync timeframe …......7 days tap done HELP?

    THIS IS A PROBLEM, had .mac iCloud mail running fine on my Q10 until JULY 1. Mail was received but could not send out. Checked settings-did not connect to server. Deleted account and re entered information. TriediCloud.com and me.com substitutions to username and that did not work. Apparently something has changed on the Blackberry end since I can reach my mail on other devices and other mail clients. If can't resolve this week may have to get rid of Blackberrry product as much as I like them

  • My cisco conference phone cannot register with my CME router

    Hi,
    I am trying to configure my conference phone cp8831 on CME 3945 but the phone cannot register.
    The status of the phone "phone not registered"
    CME version
    #sh telephony-service
    CONFIG (Version=10.0)
    =====================
    Version 10.0
    Max phoneload sccp version 17
    Max dspfarm sccp version 18
    Cisco Unified Communications Manager Express
    For on-line documentation please see:
    http://www.cisco.com/en/US/products/sw/voicesw/ps4625/tsd_products_support_series_home.html
    IOS version
    #sh version
    Cisco IOS Software, C3900 Software (C3900-UNIVERSALK9-M), Version 15.4(2)T1, RELEASE SOFTWARE (fc3)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2014 by Cisco Systems, Inc.
    Compiled Thu 26-Jun-14 10:22 by prod_rel_team
    Someone can help me with this issue?

    Hello,
    Is your conference phone getting an ip address?  If yes, it is on the correct subnet?
    Thanks,

  • Cannot register iPod!!

    When I get to the "Welcome to your new iPod - let's get started page" I cannot see the whole page. Much of the right hand side is cut off, i only get the register later button...i have no register now choice. No matter how I try to navigate or resize the page I cannot register my iPod. I went to the register an apple product page as a second option and registered my product, but when i then plug my ipod in..I end up on the same welcome to my iPod page!! What do I do?

    Try increasing your screen resolution so you can see the whole page, you'll find the instructions on this Microsoft page: Windows XP - Change your monitor resolution

Maybe you are looking for

  • How to get the version no of a document created/updated in KM

    Hi All, We are currently working on SAP 7.0 SP16. We have used the KM API to store our documents into the KM repositories. The problem we are facing here is related to the version no of the documents created. I will explain this with an example : I h

  • Generics in swing?

    Just wondering -- Are there any plans to use generics with swing classes? In particular, ListModel, TableModel, and (perhaps) TreeModel? After all, the default implementations of the first two must now be based on Vector<E> ...

  • Merge Clips Question - Sound merged into one track?

    Hi there, I've just switched over a feature project from 5.5 to 6 and a new, infinitely better equipped operating system. As I finally delve into the synched footage (merged in 5.5 but just about to start cutting in 6), however, I'm realizing that it

  • EBS database  pre-upgrade tool

    Hi All, I am upgrading EBS database from 10.2.0.3 to 11.2.0.3 OS - RHEL 5 EBS - 12.1.3 While running pre-upgrade too , utl112i.sql am getting some warning. Please help me what step I can follow for this warning. WARNING: --> Database contains schemas

  • Tuxedo Load Balancing & MSSQ

    Hi, We have a performance situation where Tuxedo is favouring one MSSQ out of the 8 available across 2 boxes. Our configuration is that we have 8 Tuxedo Servers each publishing 4 instances of a particular E2A adapter service (a total of 32 instances