How to throw the exception in the Module of the Application

Hello

Jdev Version 12.1.3

I have the custom in the request Module method that is exposed as a Client Interface. It is added as a button to the page.

If I need to throw and exception in this method, how do I do that. Could you please give me a code example?

See you soon

AJ

Hello

Try this

  public void methodInAppModuleImpl()
  {
    throw new oracle.jbo.JboException("error message");
  }

Tags: Java

Similar Questions

  • How to view the application menu in the app?

    Hi all

    Does anyone know how to view the application menu in the app?
    The ultimate effect is that when you see the user swipe down from the top of the screen, the menu of the application.

    Thank you very much.

    Please check the recent threads or duplicate search before posting questions: http://supportforums.blackberry.com/t5/Cascades-Development/Application-Menus/td-p/1785653

  • How to hide the application programmatically?

    Hello

    How to hide the application by programtically?

    Thank you.

    Just to clarify this point, here's what you need to do to use the lines that I gave you:

    In the fieldChanged for the button method, you must run the lines that I showed you.

    This will put your UiApplication in the background.  The user will be able to bring to the forefront again by pressing the icon or choosing the form of application for the selector of the task.

    The user can in fact do roughly the same thing by pressing menu and selecting ' Application Switch, if it appears in the menu.  And that's roughly the same by pressing the menu key and then selecting another application in the selector of the task.

    If this isn't what you want, then please describe what you want again and why it's different from this.

  • How to install the application in the folder "Applications" on Storm (Bold).

    Hi guys.

    I'm looking for how to install the application in the Applications folder on the storm.

    Google map is installed in the folder "Applications" when installing it from the web.

    I would like to know how to do it.

    Please share the knowledge.

    Thanks in advance.

    Take a look at this thread.

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=31323&query.ID=68...

    Concerning

    Bika

  • I downloaded Photpshop elements 13: how to open the application?

    I downloaded Photpshop elements 13: how to open the application?

    for windows, you have downloaded an exe and a 7z file. put them both in the same directory, then click on the exe file.

  • How to improve the application starts?

    Hello

    I have a user interface that uses fx: include to include a handful of knots in a StackPane.  So far, I have less than 10 components and I can already see a delay of about 3 seconds (on an older machine) when the initial stage is built.  It is particularly notable because I use a front loader with a progress bar.  The progress bar is smooth until the start() pre-loader calls on my request.  After that, the scene is built on the thread of the application, the progress bar does not get more updates.  It looks like the progress bar freezes until the main stage is built and illustrated.

    I was hoping that I could build the main stage on the thread of JavaFX Launcher, but it does not work.  I tried and, unsurprisingly, get an exception to not being on the thread of the application.  What are the options, if any, to apply for a start-up feel a little smoother?

    I found that it is often the reflection of FXML which makes things slowly (and Yes, for application of reasonable size with a lot of controls it is really quite slow IMO).

    There is another potential break when you add controls to an hour of active scene the first and made initial these controls occurs, but it is usually less overhead due to reflection FXML.

    You can load the FXML out of the thread of the application.  I know you tried and encountered problems, but should be fixed issues for Java 8u40 (if you can wait as long...).  The fix is for RT-17716 some controls cannot be created on the FX application thread , which should be available in access at the beginning of 8u40.  So you can try again and see if FXML creation out of the thread of the application doesn't really now for popup controls such as ToolTips and ComboBoxes, that has already failed.  If it still does not work, please file a new bug, because it is annoying that the FXML of loading is both so slow and must be made on the application thread.

    The other option is to precompile the FXML in binary java so that at run time, your username doesn't have to wait as the logic of thinking slow to run.  Maybe it's better anyway.  There is an already css source the compiler to binary file in the packaging of java software, but not (yet) an equivalent to FXML.  There was third party efforts to get the binary compilation FXML working by Tom Schindl, who do so much.  I do not know how to complete the third cross compilers are. little I guess you could try for your application and see.  You might want to prod the openjfx-dev mailing list to see what the current status of this type of technology.

    See also this thread: performance problem FXML with bombers of static, the BeanAdapter methods are slow, which means a scenario of degradation of specific performance, which may or may not affect you.

    You could make an architectural change to your application to instantiate lazily your 10 components when they are used rather than the start (for example if they are the tab panes that are not immediately visible or could be initially with a placeholder that is replaced by "real content" over time, because the loading process completes for each component - kind of like loading the data of the image in html).  Depends on your application, which, easy or difficult, it would be to do.

    It is probably useful to do a quick reference point, which measures twice:

    1. the fxml loading time without attaching one of the nodes in instantiated to a scene active.

    2. the times takes to show your scene the first time after you have fixed node instantiated at the scene.

    This way you can tell if the performance problem is FXML related loading or something else.

    * 8/27: edited to correct the link to RT-17716

  • How to disable the Application Transport Security (ATS) in the Adobe AIR application?

    Hi all

    How do disable us ATS in Adobe AIR app for the application to run on iOS 9? I am getting error then tried to launch the adobe air below test application:

    iPhone-6 AdobeAirPluginTest [520] < error >: App Transport Security has blocked a clear text HTTP (http://) load of resources because it is not secure. Temporary derogations can be configured by your application's Info.plist file.

    Is it possible to disable the indicator of the ATS in Adobe AIR or that we will succeed in Xcode?

    AIR allows to add some things in the info.plist file, if you are looking for the syntax required to add an exception. He would go in your tag in your application descriptor file.

  • How to change the application installed HARD disk?

    My PC following setting:

    C: is for Window XP OS

    D: is installed application

    because the disc is not enough space and need to buy a new SATA III HARD disk after formatting under drive Z:

    I copy everything in D: z: readers and I would exchange the disks for the following parameter:

    D: old drive will become Z: drive for backup

    Z: old disk will become D: drive for installed application, because many applications and installed adjustment use the D: drive for application, so I'd like to preserve the D: drive for application, but I get no idea on how to swap the disks.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    This article describes how to change the drive letters on drives:

    "How to change drive letter assignments in Windows XP"
      <>http://support.Microsoft.com/kb/307844 >

    HTH,
    JW

  • How to exit the application and jump to the top any screen battery by single click?

    Hello

    for example,.

    My application contains some screen battery and train to do a task,

    the user now wants to exit the application and go to the blackberry icon page.

    How can I do that.

    Thank you best regards &,.

    Narendra Shekhawat.

    Hello

    System.Exit (0);

    or UiApplication.getUiApplication.requestBackground ();

    Kind regards

    Jochen

  • How to test the application with the size of the diff display to ensure effective operation on all devices?

    Hello

    I work on one application and right now testing my application on BB Dev Alpha. As the resolution of the screen are different, I want to know how can I test the app on the screen size all supported?

    Take a look at this document:

    https://developer.BlackBerry.com/Cascades/documentation/UI/resolution/

    It should provide enough information about how to support the future 720 devices.

  • How to increase the application version number in the eclipse runtime Android plugin

    I use BlackBerry Android plugin eclipse runtime to code sign my application. She is successful the first time, later I changed some code and code sign again and error

    Error: Code signing request failed because this file was previously signed.    .bar //dist/Android 2.3.1 ------.bar BlackBerry previously signed

    Then, I read a few post on this forum and find a version in .xml number must be increased to fix my mistake, but I can't find such a file and the version number in the eclipse project. He would be grateful if someone can tell me how to increase the version number in a project created by BlackBerry Android plugin eclipse runtime.

    You must edit the AndroidManifest.xml file you will find in the root of the project in Eclipse.

    Just increase the parameter 1 versionCode.

    http://developer.Android.com/Guide/publishing/versioning.html

  • How to detect the application is closed

    Hello

    I would like to ask how to detect closing the application? I would like to add an action (for example, backup settings and etc.) when a user closes the application. Thank you

    In the Cascades you usually want to hang a slot for the aboutToQuit() signal.

    Documentation here should lead you to everything you need to know: https://developer.blackberry.com/cascades/reference/bb__cascades__application.html#setautoexit

  • How to configure the application runs at startup under netbeans?

    Hello

    i've got app that extends the Application. I want to start after installation and after each reboot of the device. I know it can be done very easy-properties and setting "auto-run" under eclipse Drinking now, I started using netbeans-does anyone of you know how can I do this in netbeans? or maybe I should add proper line in the *.jad file?

    concerning

    It seems that it's not impossible. also, it is not possbile to generate the adequate *.cod file, can cause the netbeans for blackberry plugin is very simple and do not have a lot of options, it should have. It looks like this project has left behind a year or two he y a. and it seems that he has only jde or eclipse to choose.

    concerning

  • How to upgrade the application through Blackberry Desktop

    Hello.

    Situation of Stange. Could you please give me a hint, how do I overcome that?

    1. I've compiled and signed the application. Alx file created. Two files are created "bb_application.cod" and "bb_application.alx".
    2. I run Blackberry Desktop, ran the Application Loader and specified my project as the location of the files folder and installed the application.
    3. I decided to change something in my application. I changed the code java, recompiled and signed the application. And also alx-file created.
    4. I run Blackberry Desktop, ran the Application Loader and saw that my request is already shown in the window of the Application Loader that checked. When I clicked on the button "Add" and specified the location of the updated alx file I get the following error: "no additional applications designed for your device were found".

    How can question - I change application already installed without uninstalling? If I uninstall this application - all the information stored in the store persistent will be lost.

    Here is my point of view on what is happening here.

    You have added an alx for the application loader, so that he knows that cods you attempt to load on the device.  If you add an another alx with the same cod, he rejects this, by you saying "no additional demand.  In this case, it should probably say "cod application already added.

    Now the application loader is sometimes his own worst enemy, but he tries to be smart and it will remember, for every alx you added, the level of the alx.  So if you change that alx to a level later, the application loader will tell you, that you need to update.  If change you to a previous level (i.e. lower) it will tell you are without downgrading and then ignore the downgrade (which can be a bit annoying...).  Doing so, in my experience, it takes without notice of the date of compilation of the cod file - this only on the level in the alx details.

    So in your case, you simply update the alx that points to the application loader whenever you put cod involved level (and sign)...

  • How to install the application via the web browser?

    Hi guys,.

    How to install the blackberry web browser application?

    Thanks in advance,

    Similar discussion.

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=38549&query.ID=10...

Maybe you are looking for