Bean Forms does not change picked up the pot updated

I have an existing Bean, working with a single static method that my forms use to check the date of last change on a file. I tried to add a second method, without success. In an attempt to see if my new pot has been picked up, I changed the existing method to just return 'testChange. When he continued to return the file modified date representation, I took my change of pot has not been read.

However, I finally tried to create my new method in a separate class, this time not extending kifani and include it in the same container. Now, I can run my new method very well.

My questions are
(1) why adding the new method to the existing class did not work?
(2) given that I can show my change jar is used by the form, how the hell the old method always returns the date of the file, when the code is not doing this?

I've got it to work, but I would really like to understand why my previous attempts failed.

Origin of the class:

public class myClass extends kifani
{
public static String getLastModified (String filename)
{
= New File (filename);
Return Long.toString (file.lastModified ());
}
}

Invocation of forms:
FUNCTION get_last_modified_date (file_name_in IN SWtype.SW_long_string)
DATE OF RETURN
AS
v_last_modified SWtype.sw_long_string;
BEGIN
v_last_modified: =.
fbean.invoke_char ('SW_WEBUTIL_BLK.) ' SWFILEUTILS
1
, 'getLastModified '.
file_name_in
);
return TO_DATE (January 1, 1970 00:00:00 ', "DD/MM/YYYY HH24:MI:SS")
+ v_last_modified /(86400 * 1000);
END;

Modified to test method:
public class myClass extends kifani
{
public static String getLastModified (String filename)
{
Return "testChange;
}
}

New method:
Boolean public static isValidUTF8 (String filename) throws FileNotFoundException,.
IOException
{
< if no valid UTF8 >
Returns false;
Returns true;
}

Call to the new method when he was in the bean (just returned null):

v_result: = fbean.invoke_bool('SW_WEBUTIL_BLK.) ' SWFILEUTILS
1
, "isValidUTF8".
,: my_blk.file_name
);

Calling the method imported from Java now that he's in his own class:
v_result: = myfilevalidator.isValidUTF8(:upload_blk.source_file);

In case it is relevant, I use JDeveloper 10.1.3 and Forms Builder 10.1.2.0.2, running forms locally on my OC4J instance.

Hello

Use System.out.println () to output to the Java console during execution. If you do not see the messages, probably the new JAR is not loaded. You can clear the Java cache in the control panel-> Java-> temporary Internet files: settings...

François

Tags: Oracle Development

Similar Questions

  • Updated this AM - now does not work - application on the (0xc000001d) update error

    Updated this AM - now does not work - application on the (0xc000001d) update error

    Now what?

    JohnC salvation,

    For a fix, update for first Pro CC 2015 (9.2).

    Thank you

    Kevin

  • When you surf, the URL does not change to reflect the page I'm. Also, if I have two consecutive sites, he is stuck with the first favicon and don't change either.

    Let's say I'm surfing a Web site. Any Web site. I type domain.com and start riding on the inside pages. "Domain.com" in the URL bar does not change.

    Also, if I visit two sites in a row and both have some favicons, I'll be stuck with the favorite of the first icon.

    They seem to be indications that the file that contains the details of the bookmarks and history is locked or damaged. This link should help - http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • The menu system default language does not change according to the location that uses in-app

    Hello

    I have an emergency in application if you can reply me as soon as possible.

    In fact, I've implemented localization in application for Os 5.0 for 7.0.But, I extract some problems on specific devices so can you help me out for short.

    My problem: -.

    I use both languages in my application 1. Netherland and 2. English.

    Then 2 type of different scenario produced

    1. whenever the user change language of application at this time menu default language (Close, keyboard and Application Switch) no change. These are the ways that they change language according to the language of the camera. But this problem go get some specific device as 9850 for Os 7.0 and 9300 for Os 6.0.

    2 even conducted no user in another device like 9300 Os 5.0,8900 Os 5.0,9800 Os 6.0, 9900 Os 7.0 and Os 7.0 9320 ect... When this default menu (Close, Application Switch) changing the language according to the language of demand. These are the ways that they do not change language according to the language of the camera.

    Hello

    It's the Os.

    I confirm with the BlackBerry support team.

  • Facebook, Gmail and MétéoMédia works does not for me with the last update, even in safe mode

    That pretty much sums up it. Since yesterday, with the most recent update, firefox does not display correctly these sites. Someone else posted a question similar to this topic. It has been marked as resolved, but there is no solution posted. Here's his question: https://support.mozilla.org/en-US/questions/963125 I have the same problem as him with fb. In addition to the problem with fb, Gmail doesn't end loading. And MétéoMédia do not display the weather forecast. I'm sure that many other sites are affected as well.

    All sites work properly in Seamonkey, which I use once again, now. I went to oldapps download v. 22 of ff, but whatever the most recent update changed only came when I installed v.22. The problem persists. I could uninstall it completely and then new installation v.22, I guess, but I'm afraid that my browsing history, sessions, passwords, etc., would be affected, and I don't want to find all the files and support first. It's a hassle. Since the sites work in Seamonkey, I'm guessing that's not the fact that I have updated flash at the same time. I don't know how much these sites use flash, either. But if it's a problem of flash, I tell myself I should have the same problem in Seamonkey, and I did not.

    I wish that you guys would have an easy option to restore your updates because it's pretty darn annoying when they cause problems. Usually, they are not lethal problems, however, and the browser still works. Now ff does not work for some sites I use most often.

    Hello

    Many issues of the site can be caused by corrupted cookies or cache. To try to solve these problems, the first step is to clear cookies and cache.
    Note: This will be you temporarily disconnect all sites, you're connected to.
    To clear the cache and cookies to do the following:

    1. Go to Firefox > history > clear recent history or (if no Firefox button is displayed) go to tools > clear recent history.
    2. Under "Time range to clear", select "all".
    3. Now, click the arrow next to details to toggle the active details list.
    4. In the list of details, see the Cache and Cookies and uncheck everything.
    5. Now click the clear now button.

    More information can be found in article to clear your cache, history, and other personal information in Firefox .

    __________________________________________________________________

    Also, some Firefox problems can be solved by performing a clean reinstall. This means that you remove Firefox program files, and then reinstall Firefox. Please follow these steps:

    Note: You can print these steps or consult them in another browser.

    1. Download the latest version of Firefox from http://www.mozilla.org office and save the installer to your computer.
    2. Once the download is complete, close all Firefox Windows (click on quit in the file menu or Firefox).
    3. Remove the Firefox installation folder, which is located in one of these locations, by default:
      • Windows:

        • C:\Program Files\Mozilla Firefox
        • C:\Program Files (x 86) \Mozilla Firefox
      • Mac: Delete Firefox in the Applications folder.
      • Linux: If you have installed Firefox with the distribution-based package manager, you must use the same way to uninstall: see Install Firefox on Linux. If you have downloaded and installed the binary package from the Firefox download page, simply remove the folder firefox in your home directory.
    4. Now, go ahead and reinstall Firefox:
      1. Double-click on the downloaded Setup file and go through the steps in the installation wizard.
      2. Once the wizard is completed, click to open Firefox directly after clicking the Finish button.

    This will remove not essential info unless you check the box "delete all my personal data too.

    Please report back to see if this helped you!

    Thank you.

  • Satellite A210-199 does not start successfully after the BIOS update

    Hello

    I've got Sat A210-199.
    Yesterday I updated the BIOS, and after that problems occurred:

    While restarting my computer does not start. When I enter the BIOS after a while, it shuts down.
    I guess all this because the temperature of the CPU:

    When I do nothing it is 77 C. I don't think it's normal: (.)
    Computer is very recent, so it's probably not dust inside. And it's so hot from the start, but after the new BIOS, something bad happens.

    Why this temp is so high?
    There is no any process background or something.
    Is this normal?
    And what about this new BIOS?

    To be honest, something like this should not happen. I really don't understand why this is happening. I have updated the BIOS on friends A200 and mine P200 and everything works fine. Here on this forum we can only speculate on this issue, but what you need exactly's professional opinion.

    This probably not help but install recovery image and check with the factory settings. Make sure you also on the lower side cooling fan is not blocked and the laptop can be cooled properly. If the problem persists, you should contact the nearest authorized maintainer and clarify this issue.

    Sorry, but I don't really know what you can do in this situation. I don't see any other way to solve this problem.

    Good luck!

  • Menu text does not show up with the new update

    When you use the new reactive update in Adobe Muse, the Menu text is not displayed when the image previewed in the browser. It appears on all pages when publishing in Muse.

    Is this a bug or I do something wrong?

    Thank you!

    Select menu and confirm that it is not browser pinned to the bottom of the browser window or define a footer element (which would cause it to move down in the white area). You can also temporarily replace the filling of the page to help you determine where the text is moving to.

  • After expiry of the period of freeAVG, Windows security shows virus protection is disabled and does not change if I click on "update" Please help.

    My AVG free Internet security 2013 just expire and alert Security informed Windows that I have no protection against the virus.
    In another finding, I note that it says that you should not have more than one market protection, they will conflict and slow down the computer. I thought I had with Windows and Firefox. My TalkTalk broadband services provider, may also provide protection. How can I get it sorted as soon as possible with a free antivirus? I am a novice and the grandmother and worry about safety online. Thank you.

    No Trusteer Raport is completely different and concerns authorizing bank transactions.

    Also note Trusteer post report when overwhelmed sometimes is involved in Firefox crashes so if you have accidents are trying first of all the update and then if necessary uninstall Trusteer.

  • I have again to win 8 pc. PS 64-bit does not install correctly. get the error update failed

    I install on a new pc win 8 PS CC. I think it installs, because I can open it. But on the CC site, when I press the button to update, the update fails.  told to try again. fails. I have all the drivers to date and updates of windows 64-bit win 8.

    I'll answer my own question in the hope that it helps someone else. I had the problem immediately after installing PS CC.  Once I restarted the computer and tried again, it worked.

  • Button value change records in the structure of the event, but does not change appeaance?

    Hello world

    A quick question... I hope someone can answer...

    I have a code that uses a PS button within a structure of event to trigger a signal of AO... My code is below. The code works fine and the OD goes off when you press the button E-Stim... But when pushed the button does not change with reliability the appearance (i.e. of the gray 'off' red 'on' color)... Sometimes color changes; no other time not... If I remove the structure of the event and the survey button in the appearance changes as expected.

    What is going on? I would like the button to change the colors on the user interface to indicate that it works... Should I programmatically control the color?

    Kind regards

    Jack

    I guess that when query you the button you have some delay in your loop? Locking means that the button will change its value when you press it, then switch back to the original value once the value of the control has been used by the code. When you ask, this means that until he reaches the next iteration of the loop, but in the case where the structure that will happen immediately.

    The default setting for the buttons to modify its behavior as in most of the application would be latch releasing. You then raise the event when the button of the mouse over the control. This also allows "drag" control if you push down on the subject, given that you do not release control in this case.

  • Global VI on the low level does not change from front panel indicator

    I attributed to a global variable (CMM_SN_Global 3.vi) to a value in a Subvi two levels down from the façade. When I run the VI of Panel before a flag set by the overall does not change even if the global variable is assigned the correct value until later in the program. Shouldn't be an indicator on the Panel before the value assigned to the global as soon as the world is assigned a value. Or is it not true?

    Thank you.

    Chuck M.

    Hi Chuck,

    If you asked for examples:

    What we have here:

    -the select node with these 3 Boolean constants is really absurd (aka RubeGoldberg) the output is always TRUE!

    -l' 'position' indicator belongs outside the case statement, any write on this indicator ("unnecessary local"!)

    -Why is there an additional wait inside the case? Do you really need that as you expect in the while loop?

    -It is not recommended to compare floats for equality - as you do here with the structure of your case when wire you a DBL to the input switch. Why not convert the data itself in full to be on the safe side?

    Then you say: "my plan is to have ten independent loops like the top.

    This is the reason for using subvis. You can have as many loops as you want, but only need to code once the algorithm ("duplicate code").

    More comments on why I recommend some "realignment"?

  • Why can you not change currency on the model of cost in CB 1.5?

    Hello

    I wonder why not change you the currency on the model of existing costs?

    Thank you

    Hello

    Just to add to this answer, the chargeback does not change currency for the following reasons.

    1. as opposition to the payment does not have currency conversions, cost values must be converted correctly, which includes the configuration cost changes history as well.

    2 If a cost template is updated with a new currency, all costs associated with this cost model fixed (with history) are also must be updated.

    Because this operation could potentially lead to inconsistencies, chargeback does not allow it.

    If it is freshly created with incorrect currency cost model and therefore you do not want to change to the good motto, you could create a new model of cost with the appropriate currency.

    However, if you are using the cost model for some time in a single currency and now you want to change to another currency. Could you please let us know here your use cases?

    Kind regards

    Agnes

  • Foreground color does not change when I use the color picker.  CS6.

    Foreground color does not change when I use the color picker.  CS6.

    Your document is in grayscale, convert color (Image > Mode).

  • Submit the State does not change the button in the Contact form

    the function of sending work (I tried pressing "enter key" and the message was sent), but the button is very static. It does not change color when turning or when you press on it and does not respond when you press to send the message. Any idea?

    You probably have an invisible element overlapping your button. Everything on the page do a select for hilite and make sure you have nothing running in the key. You can also go to the layers panel and be sure that your shape layers are above everything.

  • basejpi.htm does not allow to load the form on some machines

    Dear gurus... when I add the following parameters in my part of the configuration of the formsweb.cfg, my form does not load in the browser and it gives also no error. Values as given:

    baseHTML = basejpi.htm
    baseHTMLjinitiator = basejpi.htm
    baseHTMLjpi = basejpi.htm

    I copied this portion of a place to configure webutil although webutil also works without these values. Can someone tell me what what is the purpose of thise settings and why these values block form? This behavior is not the same on all machines. I think that his happens on systems with different bridge than these machines on which form is running.

    Hello

    All three parameters are different htm file names as values. The content of all htm files three are different.

    So, to change as follows.

    baseHTML = base.htm
    baseHTMLjinitiator = basejini.htm
    baseHTMLjpi = basejpi.htm

    Arun-

Maybe you are looking for