Problem getting the pageFlowScope number parameter in backing bean

Hi, I use a taskflow with parameters of type oracle.jbo.domain.Number.

I want to replace a method in my grain of support in order to take the value of the parameters pageflowscope.

(inMarkNbr, inColorNbr)

But I take as the result the following error:

Error: oracle.jbo.domain.Number cannot be cast to impossible

Error type: class java.lang.ClassCastException

StackTrace:

view.backing.pages.AutoProfile8.doApply(AutoProfile8.java:17)

Could you help me please?

//Some Imports
import java.sql.SQLException;
import java.util.Map;
import javax.faces.event.ActionEvent;
import oracle.adf.model.OperationBinding;
import oracle.adf.view.rich.context.AdfFacesContext;
import oracle.adf.share.logging.ADFLogger;
import oracle.jbo.domain.Number;

public class AutoProfile8 extends Auto{

    private static ADFLogger logger = ADFLogger.createADFLogger(AutoProfile8.class);

    public AutoProfile8() {
        super();
    }
    // here is the line of error
    @Override
    public void doApply(ActionEvent actionEvent) {
     
        Map<String, Object> map = AdfFacesContext.getCurrentInstance().getPageFlowScope();
        Object markObj = map.get("inMarkNbr");
        Object colorObj = map.get("inColorNbr");
     
        Number mark;
        Number color;
     
        try {
            mark = new Number(markObj);
        } catch (SQLException e) {
            logger.severe("Unable to find mark Number", e);
        }
     
        try {
            color = new Number(colorObj);
        } catch (SQLException e) {
            logger.severe("Unable to find color Number", e);
        }
     

        System.out.println(mark.getValue() + " "+color.getValue());
     
        if(mark != null)
        {
            OperationBinding oper1 = (OperationBinding) ADFUtils.findOperation("CallMethodFromAplModule");
            oper1.getParamsMap().put("markNbr", mark.getValue());
            oper1.getParamsMap().put("colorNbr", color.getValue());
            oper1.execute();
        }
     
        super.doApply(actionEvent);
    }
}

paste here shoot to screen with your definition of parameters TF and tell us, what exactly is the line

view.backing.pages.AutoProfile8.doApply(AutoProfile8.java:23)

ClassCastException occurs?

I suspect that you are a parameter defined as impossible. The exact type of the parameter must be oracle.jbo.domain.Number, exactly that.

In addition, a color as a set mark

Mark oracle.jbo.domain.Number;

color oracle.jbo.domain.Number;

mark = new oracle.jbo.domain.Number (markObj);

...

Tags: Java

Similar Questions

  • How can I get the total number of pages printed on my LaserJet 3055?

    I have a nice 1012 LaserJet that is not supported in Windows 7, but there is a solution which is to set up a Vista driver as if the printer is a LaserJet 3055.  It works, even if sometimes I get a printed statement that it does not work, and when that happens I just turn off the printer and turn on again immediately and it is fine.  I would like to know if there is anyway I can get the total number of pages printed at some point, as I could with the LaserJet 1012.

    P.S. This thread was moved from software for Laserjet. -Hp moderator of the Forum

    Please ignore my post on the LaserJet 3055.  With the help of a good soul on another thread of discussion, I was able to install and operate my LaserJet 1012 printer on Windows 7, exactly as it did in XP.  No errors, no slow printing, no problem.  The LaserJet 3055 thing helped initially as a work around, but the message about the bad personality who stopped the printer until you turned off and turned it back was boring.

  • Invalid code redemption after problems with the serial number.

    I was somehow began with two cats today in dealing with this problem.  I have all new software to Lightroom which was given to me as a gift.  I inserted the disc and downloaded on my computer, went to retrieve my serial number and that's when the problem started.  I got my redemption code, got my serial number, you click on the option 'Download', an error window emerged saying "the Web page could not be loaded at this time" and when I went back to get the serial number (press arrow to the left), he had disappeared.  It now has an invalid redemption code.  Help!  How can I use my software, get my serial number or get a new serial number?

    http://helpx.Adobe.com/x-productkb/policy-pricing/serial-number-retrieval-process-FAQ.html

  • When I try to install Microsoft Update (as opposed to using Windows Update), I get the error number: 0 x 80070002

    When I try to install Microsoft Update (as opposed to using Windows Update), I get the error number: 0 x 80070002

    Hello

    Look in Control Panel - updates of Windows to see what is the KB and post it here. It can indeed not necessary it and
    be able to make a right click on it and HIDE. Let us know what the update is so we can help advise.

    Also, if you don't need it you can try to download it here.

    Microsoft Download Center - research on KBxxxxxx the number of update for anchor xxxxxx
    http://www.Microsoft.com/downloads/en/default.aspx

    Download - SAVE - go to the place where your put it - click on - RUN as ADMINISTRATOR

    If you need to fix the error:

    Error message when you use the Windows Update Web site or the Microsoft Update Web site to install updates: "0 x 80070002.
    http://support.Microsoft.com/kb/956698

    Windows Update Error 80070002http://windowshelp.microsoft.com/Windows/en-us/help/c5f4d9e0-3eb6-426b-8118-0cedf489a75f1033.mspx#EJH

    Fix Error 80070002 when using Windows Update in Vista
    http://www.mydigitallife.info/2007/12/21/fix-Error-80070002-when-using-Windows-Update-in-Vista/
    Error Code 0 × 80070002 during Windows Vista SP1 Setup Install - SP2 might have similar problem
    http://www.tipandtrick.NET/2008/error-code-0x80070002-during-Windows-Vista-SP1-Setup-install/

    You receive an error '0 x 80070002' or '0 x 80070003' code after you download an update from Windows Update, Microsoft Update or Windows Server Update Services
    http://support.Microsoft.com/kb/910336

    Error message when you use the Windows Update Web site or the Microsoft Update Web site to install updates: "0 x 80070002.
    http://support.Microsoft.com/kb/956698

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Get the error number: 0 x 80244019

    Get the error number: 0 x 80244019 when trying to run Windows Update after you restore windows XP to the factory original install on compaq computer. Any help?

    Hugo,

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-windows_update/problems-installing-SP3/20345649-C6F1-4f24-A427-e79a6682ba2a>

    The time and date of this moment in California, the United States is

    16:30
    Saturday, April 27, 2013
    The time Pacific daylight time (PDT)-0700 UTC
     
    UTC/GMT is 23:30 on Saturday, April 27, 2013
                
    Current weather conditions in Los Angeles

    Just70 ° F / 21 ° C
  • Get the phone number of the address book on the menu, click

    My app (which has no UI) adds a new menu item to the contacts Blackberry address book... Now, if you click on this menu I would get the phone number to contact selected...

    I did it with the addition of the menu item... But how can I get the phone number of the address book when you click on the menu?

    using code i below contacts called from another application have also recovered the phone number...

    BlackBerryContactList contacts = (BlackBerryContactList) PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_ONLY);
    

    But how can I get in my current scenario?

    Oops... How did I miss the best way to get the coordinates of the context of the run method (of the added menu) parameter.

  • Can I get the total number of records that meet the conditions of a query using the Table API?

    Hello

    A < row > TableIterator is returned when I ask operations using the index of tables. If I want to get the total number of records, I count one by one using the returned TableIterator < row >.


    Can I get the total number of records directly meets the conditions of the query?

    I can get the total number of records directly the request of the meeting of the conditions of CLI using the command Global table - name tableName - count - index index-name-field fieldName - start startValue-end endValue.

    Can I get the same results using the Table API?

    I used MongoDB and NoSQL Oracle for about a year. According to the experience of the use of these dbs, I think mongoDB querying interface is powerful. In the contras, the query interface is relatively simple, which results is a lot of work that is usually a long time in the client side.

    Hello

    Counting records in a database is a tricky thing.  Any system that gives you an accurate count of the records will have a hotspot of concurrency on updates, namely the place where the counting is maintained.  Such a count is a problem of performance in addition to competitive access problem.   The problem is even more difficult in a system widely distributed such a NoSQL database.

    The CLI has overall command that counts, but does so by brutal force - iterate keys that correspond to the parameters of the operation.  This is how you must do this within the API.  There is not a lot of code, but you have to write.  You certainly want to use TableIterator TableAPI.tableKeysIterator (), because a key iteration is significantly faster than the iteration of lines.  Just one iteration and count.

    If you use TableAPI.multiGet () and a key with a touch of brightness full then, in fact, count the results as they are returned in a single piece (a list).

    Kind regards

    George

  • No way to get the serial number Photoshop elements 13. Is it possible to study of the "getserialcode" prepaid card download.

    Hello, I bought a code to purchase Photoshop Elements, I never managed to install the software that is not saved in my account. No way to get the serial number. Is it possible to study of the "getserialcode" prepaid card download.

    When I tried again to exchange with the serial code, the message was that it was already used.

    I have the proof of purchase and the card, and I am puzzled not having is not the product that has been a major investment for me.

    Is the customer able to advise and help support Office.

    Best regards

    Customer service does not help with purchases made elsewhere nor do they help with installation problems product aged.  If the indication is that you have already used the number, it is likely, you have done but never made use of it, in which case is is you keep it for you.  Your only recourse would be with the one who sold you the card.

  • How can I get the serial number for my copy of PSE 14 recorded in my account?

    I am the owner and that you have installed Photoshop Elements.  When I go into my account and see a list of my products and services, and most importantly, its serial number is not there, I don't I get the serial number "registered."

    It would SEEM that your serial number not is not properly registered

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • lost the cd to acrobat reader 9.5.5, how can I get the serial number before I recreate the image on the pc, what is?

    A few years, our company purchased Acrobat Reader 9.5.5 Pro for one of our employees. This employee is no longer with us, so we want to clean up the pc and re-purpose it. Unfortunately, we have more drive, in that the program has come. So the question is, how can we get the serial number for the program so that we can reinstall it once the pc is under image?

    Acrobat Reader is free. Acrobat Pro or Acrobat Standard costs money. The problem with serial number is delicate. If it is a payment business with a license so you can connect to your account a retrieve serial number. If it has been registered to the user and he registered the software on a corporate email account, you can probably log on the account and retrieve serial number (I don't know if it's legal, then you can check with your corporate lawyer). If is a an installation an installation of volume then check with the company you bought your contract in volume of might be the best route.

    If you have any of these options at your disposal, you can contact the customer service with proof of purchase in hand. No one will take the word of someone call on a phone, even if they do not tell the truth.

    Please be aware that Acrobat 9.5.5 will not work with several modern operating systems it's quite long in the tooth. You may be able to get some, but not all of the features to work.

  • Help! Unable to get the serial number.

    Is there anyone know the number of the media for adobe in Hong Kong.

    I can't get the serial number of the
    CS6 student vision. Just go around the circle on the site.

    Thank you very much

    Good

    Don't know phone for Hong Kong.  But I had similar problem in the United States and the representative of cat helped me.  I do not know the address of cat for Hong Kong, but perhaps someone on the chat site here can give you the number of Hong Kong phone or Chat address.  Address of cat for the USA is:

    Adobe ID, connect and help on accounts

  • How can I get the exact number of 19.99 * 100-1999?

    I have a problem when I need to show (19.99 * 100-1999) on the screen.

    When I draw it, it will show - 2.27373675443232e - 13.

    The problem is that 19.99 * 100! 1999 =.

    I can use Number ((19.99*100) m:System.NET.SocketAddress.ToString ()) to get 1999 exactly using Action Script 2, but this method has failed using ActionScript 3.

    Can someone help me to get the exact number?

    It is best to by rounding to avoid remainders of arithmetic floating point on computer.  Here is a link to find out why it happens if you want to...

    http://download.Oracle.com/docs/CD/E19957-01/806-3568/ncg_goldberg.html

  • I am trying to replace my iphone 6 s model n °: A1688, FCC ID: BCG-E2946A, IC: 579C-E2946A. but I can get the serial number because its doesn't turn only not on how can I replace it?

    I am trying to replace my iphone 6 s model n °: A1688, FCC ID: BCG-E2946A, IC: 579C-E2946A. but I can get the serial number because its doesn't turn only not on how can I replace it?

    Take it to your local Apple store. They will find it for you.

  • Can I get the serial number of the iOS, IMEI/MEID, CDN and ICCID by code device when I am developing an application?

    As the title suggests, can I get the serial number of the device iOS device, IMEI/MEID, CDN and ICCID by code, someone says I can't do that, I'm very confused. Can someone show me the Apple document on this subject?

    For reasons of confidentiality, Apple doesn't want you to access specific information of any peripheral such as MAC IMEI, UDID, address, serial number, etc and has been remove support for this kind of information the SDK for awhile now.  Your application will be rejected if you try to use private methods, that's probably what they were talking about.

  • How can I get the serial number if my MacBook Pro is lost or stolen?

    How can I get the serial number if my MacBook Pro is lost or stolen?

    Try the suggestions here > find the serial number of your Apple hardware product

Maybe you are looking for