How can I raise an UI error message??

Hello  all,
I want to display a custom error in the UI interface (WebCenteSirtes 11g) before the asset is saved.
Somebody can help me, please?
Thanks a lot!

Hello Elena,
If you want to prevent the asset saving in my opinion you have to control (for example in a filter) and throw an AssetException:
For example:
if (myVar != "HelloWorld") {
  throw new AssetException(new StringBuilder()
  .append("An error ocurred when bla bla bla ").toString());
This error message will be shown in the Contributor UI as a error.
Hope it helps!
Gerardo

Similar Messages

  • How can I get past the error messages that keep popping up when I try to download Flash player?

    How can I get past the error messages that keep popping up every time I try to download anything?

    Hi
    Could you please let us know more about the error messages that you got?
    The following page has information on the error messages: http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html
    Thanks,
    Sunil

  • How can I put all output error message into a String Variable ??

    Dear Sir:
    I have following code, When I run it and I press overflow radio button, It outputs following message:
    Caught RuntimeException: java.lang.NullPointerException
    java.lang.NullPointerException
         at ExceptionHandling.ExceptTest.actionPerformed(ExceptTest.java:72)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)Caught RuntimeException: java.lang.NullPointerException
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)I hope to catch all these error message into a String Variable such as StrErrorMsg, then I can use System.out.println(StrErrorMsg) to print it out or store somewhere, not only display at runtime,
    How can I do this??
    Thanks a lot,
    See code below.
    import java.awt.Frame;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.FileInputStream;
    import javax.swing.ButtonGroup;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JRadioButton;
    public class ExceptTest extends JFrame implements ActionListener {
        private double[] a;
      private JRadioButton divideByZeroButton;
      private JRadioButton badCastButton;
      private JRadioButton arrayBoundsButton;
      private JRadioButton nullPointerButton;
      private JRadioButton negSqrtButton;
      private JRadioButton overflowButton;
      private JRadioButton noSuchFileButton;
      private JRadioButton throwUnknownButton;
      public ExceptTest() {
        JPanel p = new JPanel();
        ButtonGroup g = new ButtonGroup();
        p.setLayout(new GridLayout(8, 1));
        divideByZeroButton = addRadioButton("Divide by zero", g, p);
        badCastButton = addRadioButton("Bad cast", g, p);
        arrayBoundsButton = addRadioButton("Array bounds", g, p);
        nullPointerButton = addRadioButton("Null pointer", g, p);
        negSqrtButton = addRadioButton("sqrt(-1)", g, p);
        overflowButton = addRadioButton("Overflow", g, p);
        noSuchFileButton = addRadioButton("No such file", g, p);
        throwUnknownButton = addRadioButton("Throw unknown", g, p);
        getContentPane().add(p);
      private JRadioButton addRadioButton(String s, ButtonGroup g, JPanel p) {
        JRadioButton button = new JRadioButton(s, false);
        button.addActionListener(this);
        g.add(button);
        p.add(button);
        return button;
      public void actionPerformed(ActionEvent evt) {
        try {
          Object source = evt.getSource();
          if (source == divideByZeroButton) {
            a[1] = a[1] / a[1] - a[1];
          } else if (source == badCastButton) {
            Frame f = (Frame) evt.getSource();
          } else if (source == arrayBoundsButton) {
            a[1] = a[10];
          } else if (source == nullPointerButton) {
            Frame f = null;
            f.setSize(200, 200);
          } else if (source == negSqrtButton) {
            a[1] = Math.sqrt(-1);
          } else if (source == overflowButton) {
            a[1] = 1000 * 1000 * 1000 * 1000;
            int n = (int) a[1];
          } else if (source == noSuchFileButton) {
            FileInputStream is = new FileInputStream("Java Source and Support");
          } else if (source == throwUnknownButton) {
            throw new UnknownError();
        } catch (RuntimeException e) {
          System.out.println("Caught RuntimeException: " + e);
          e.printStackTrace();
          System.out.println("Caught RuntimeException: " + e);
        } catch (Exception e) {
          System.out.println("Caught Exception: " + e);
      public static void main(String[] args) {
        JFrame frame = new ExceptTest();
        frame.setSize(150, 200);
        frame.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            System.exit(0);
        frame.show();
    }

    yes, I update as follows,
    but not looks good.
    import java.io.*;
    public class UncaughtLogger implements Thread.UncaughtExceptionHandler {
        private File file;
        private static String errorMessage;
        public UncaughtLogger(File file) {
            this.file = file;
            //Thread.setDefaultUncaughtExceptionHandler(this);
        public UncaughtLogger(String str) {
            this.errorMessage = str;
            Thread.setDefaultUncaughtExceptionHandler(this);
        //@Override()
        public void uncaughtException(Thread t, Throwable e){
            try {
                log(e);
            } catch (Throwable throwable) {
                System.err.println("error in logging:");
                throwable.printStackTrace();
        private void log(Throwable e) throws IOException {
            PrintWriter out = new PrintWriter(new FileWriter(file, true));
            try {
                e.printStackTrace(out);
            } finally {
                out.close();
        private static UncaughtLogger logger = new UncaughtLogger(new File("C:/temp/log.txt"));
        private static UncaughtLogger logger2 = new UncaughtLogger(errorMessage);
        public static void main(String[] args) {
                String s1 = "Hello World!";
                s1 = null;
                String s2 = s1.getClass().getName();
                System.out.println(s1);
                System.out.println(s2);
                System.out.println("errorMessage =" + errorMessage);
    }

  • How can I get rid of error message?

    Have tried to set up my pop3 email on my 6700 slide using the same settings I've always used on previous phones/pc and for some reason emails just won't send.  However my main problem is that I keep getting a message flash on screen saying 'Unable to send message:[Email address].  As soon as I clear it, it comes back about 2 seconds later and just won't go away.  Stops me doing anything on the phone as I have to keep clearing the message every few seconds.  I've gone into drafts/outbox, every folder I can find in 'Messaging' and there's no copy of the email to even delete it.  I've even gone to my mail server on the web and the message isn't showing.  From the mailbox itself on the phone, I've tried to folders under 'More folders' but there's nothing showing - no sent or drafts folders.  How can I stop this error message appearing every 2 seconds?

    Hello, Sorry to hear that you can't get rid of this message from your device. I suggest you try going to http://email.nokia.com and register there. I think you'll find your email experience much more to your liking there.
    Chris McK - Nokia Messaging/Social Product Marketing

  • How can I stop getting the error message of firefox not being permitted into a website?

    Okay so yesterday while on my school site trying to do work and access my course, this error message popped up saying either my internet connection is not good, which it is working, or that the website is busy but it wasn't so it had to be with my firewall and firefox. So I went to firefox website to see if I can fix it, I did what they said to do and to remove firefox from the list of programs I'm allowing in and then to allow it back in. And it didn't work. So i updated firefox and it worked perfectly.
    Until today, I tried to access my course and it popped up with the same message. So I tried to do what I did yesterday with removing it from the list and allowing it back in but it didn't work. And firefox is up to date so I honestly don't know what else to do. Can you help?

    Sounds like you were 'fixing' the firewall for Firefox access. If Firefox is working everywhere except your school website, I doubt if your issue is with the firewall.
    Please provide a screenshot of that error message.
    https://support.mozilla.org/en-US/kb/how-do-i-create-screenshot-my-problem
    It is best to use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed a maximum file size of 1 MB.
    Then use the '''Browse ....''' button below the '''''Post a Reply''''' text box to upload the screenshot.

  • How can I do to customized error messages?

    Hi People:
    I'd like know: How can I do to customize the error messages that are generated automatically by the profile in the mapping? In short, I want to know how to customize the errors that are listed in the tables calls TMP___TABLENAME_ERR.
    Thank for your help!
    Edited by: user6367764 on 12/12/2008 13:05

    Thanks Cheers, but I refer to the error messages that appear on the field ERR$$$_ERROR_REASON of the TMP___NAMETABLE_ERR or NAMETABLE_ERR tables. For example, instead of giving the error as 'Parent Key NAME_FK failed on attribute NAMETABLE.FIELD' showing a more appropriate message to the user, such as 'The value of the field X is not on the table NAMETABLE.' To that I mean being able to customize messages.
    These messages are generated from the correction profile and are incorporated in the tables of error when you run the mapping. I hope I have been more clear now.

  • How can I cure/stop this error message on startup 'Exc in ev handl: TypeError: this.oRoot.enable is not a function'

    When starting Firefox 8.0, I get the above JavaScript Application error. When I click 'OK' in dialogue box, Firefox appears to start normally.
    What could be the cause, and how can I cure it?

    This issue can be caused by the McAfee Site Advisor extension
    * https://community.mcafee.com/message/203466
    Start Firefox in Safe Mode to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How can I stop getting this error message?

    Ive been having a problem with AA3 since I installed it and I cant seem to figure it out. It doesnt happen everytime, but usually when I open AA3, load or start a session, and press the play or record button, AA3 crashes giving me the following error message.
    Does anyone have any tips on how I can stop this from happening? It makes doing projects in AA3 extremely nerve wracking, never knowing if it could crash in the next second. And especially when you cant get the project to load up without crashing, extremely embarrasing when there is a band with me.
    Anyway thanks for the help.

    >So is this a problem with other devices using the same sound card?
    Yes. You can only use an ASIO driver (which is what Audition now uses) with one program at a time. I suspect that when Audition opens, it finds what it thinks is a legitimate device, but no legitimate means of accessing it. You can't blame Adobe either - this is purely an ASIO limitiation, and Adobe only introduced ASIO because people clamoured for it for years (most of them not realising the downside to it).
    You
    might find that you can get around this by using the (free)
    ASIO4ALL driver, which converts Audition's ASIO output to WMD, which has rather less problems from this POV.

  • How can I desactivate an "-3 error" message box?

    Hi everyone,
    The last time I ran my program I got  the error message : -3 at an unknown place  (see .png).
    I had already run it several times  (for something like 40h each time) without any problem.
    I have only connected and configured the error messages/boxes in some places in my program but not everywhere.
    Could someone tell me if this kind of message can pop up when you haven't connected and configured all the messages/boxes? If so, I suppose I just need to configure all of them to avoid this kind of pop up?
    Or could I get this kind of message anyway? If so, is there a way to desactivate this kind of pop up window message so that my program doesn't stop (although I understand there has been an error somewhere on the line)
    Labview 10
    Thanks,
    User
    Solved!
    Go to Solution.
    Attachments:
    Forum error message.PNG ‏14 KB

    Hey!
     You can disable error handling dialog box. Tools > Options > Block Diagram
    See attached picture!
    Paul
    Attachments:
    disable error dialog.png ‏37 KB

  • How can get Dreamweaver to stop error message: an ftp error has occurred- cannot connect to host?

    Dreamweaver is locking me out when I try to connect to the host via ftp. I get the error message: "An ftp error has occurred - cannot make connection to host". This error message started yesterday when I used the wrong host ftp address too many times. I have since received the correct ftp address from my website host, but the system won't even let me log in...it just gives me that error message when I click the connection button on the panel. My website host recommends that I uninstall Dreamweaver and re-install it again. My concern is, if I un-install the Dreamweaver app, which I downloaded from the Cloud, will the Cloud know I've un-installed Dreamweaver and allow me to download it again? Please help.

    See my response in your most recent thread. Please don't double post like that - it can confuse things considerably when replies come in to both threads.

  • How can I add json with error message?

    just reformatted computer today. I cannot import json file, get this error: A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
    Script: file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/modules/utils.js:1407

    I have updated to Firefox 8.0 and the same error message will not allow me to add my saved .json bookmark file. Thanks for your advice

  • How can I cure/stop this error message on startup 'Exc in ev handle: TypeError: this.oRoot.enable is not a function'

    When starting Firefox 8.0, I get a '[JavaScript Application]' dialogue box with the above error message. When I click OK in dialogue box, Firefox then appears to start normally.
    What could be the cause, and how do I go about curing it?

    Duplicate - [https://support.mozilla.com/en-US/questions/896648 questions/896648]

  • How can I get a SOAP Error message in ABAP ?

    Dear all.
    I'm trying to get SOAP Error message during XI Interface.
    I've got an Error ( T-code : sxi_monitor ) and I need to get the Error message and write to screen.
    I used
    CATCH CX_AI_APPLICATION_FAULT.
    CATCH CX_AI_SYSTEM_FAULT.
    but couldn't get the error message.
    The Error occured as below.
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ZTSD0030' (structure 'stmt1'): java.sql.SQLException: FATAL ERROR: Column 'ORDER' does not exist in table 'ZTSD0030'</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I exactly need 'BOLD' style message.
    Any help is appreciated.
    Thanks!

    Hi,
      This is an application fault,
      error log clearly saying that''ORDER' does not exist in table 'ZTSD0030'.
      these are specific to interfaces, in order to handle those
    u need to configure apllication log at 'SLG1' t.code.
    i mean, u have to use following function moules to handle application log in ABAP Proxy .
    i.e
    APPL_LOG_WRITE_HEADER
    APPL_LOG_WRITE_MESSAGES
    APPL_LOG_WRITE_DB.
    warm regards
    mahesh.

  • TS3297 How can I fix my 1202 error message??

    I used ITunes for ages with no trouble.  I've always used the same computer, nothing has changed.  I have tried checking my date and time as suggested in other discussions, updating my certificates, I've tried deleting and reinstalling.  I am getting nowhere...please help!!!

    WHAT error message?
    Please read, and reply back here with information https://forums.adobe.com/thread/1499014
    -try some steps such as changing browsers and turning off your firewall
    -also flush your browser cache so you are starting with a fresh browser
    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip/
    http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • How can I get past the error message "Variables are not compatible DMB00"?

    Hello,
    I'm working in Desktop Intelligence XI and I'm using an Excel data provider and a universe data provider. I've linked the two providers on the common field "Cost_Code". The Excel data provider also has a "Cost_Code_Descr_xls" field so I've created a new variable that makes this description field a detail object associated with the "Cost_Code" dimension. This allows me to use both objects in the report.
    Some of the cost codes in my universe data provider are not found in my cost_code Excel provider so I'm trying to create a simple formula to deal with these null values:
    = if isnull(<Cost_Code_Descr_xls>) then "Unclassified" else <Cost_Code_Descr_xls>
    This is where I get the "Variables are not compatible" error.
    Any ideas on how to get around this error?
    Thanks!
    David

    Hi David,
    I might have been a bit to quick with just saying that the only thing you needed to do was replacing the object with the variable you created.
    The variable is only compatible with 'Cost Code' dimension, but not with any of the other dimensions in the report. Your header probably only contains the 'Cost Code' dimension and as such the formula isn't giving any problems. But your details contain ohter incompatible dimensions.
    What you need to do is also create detail variables for the other dimensions and relate those to the 'Cost Code' dimension. Use those newly created detail variables  in your report.
    Regards,
    Harry

Maybe you are looking for

  • WYSIWYG Color not showing in PDF

    Output Designer 5.6 Hi , I have two color shaded boxes on my form - a yellow -and- a light blue. When I output to PDF these show as grey :( . However to test if color is working I included some Blue text in Arial to the form and this prints as Blue !

  • Problem Dragging a photo into a BOOK project

    I did this last week. But now I can't seem to drag a photo out of one album into a book album so that I can add this photo to the book during the layout process. There doesn't seem to be a work-around for this. When I called Apple, they wanted $199.0

  • Zen V Plus - how to change quality in video convert

    Hi there, I?ve just bought the ZEN V Plus MP3 player and I?m very disappointed with the Video Convertor. I would love to watch video files on my ZEN, but, when I want to copy file to memory, I have to convert it with that program, but, it'ss impossib

  • Time Base / Carry Forward / Copy Last years balances

    Hi Experts, Can anyone throw light on how would the TIME=BASE function as used in the script below help in carry forward ? Is the below syntax correct ? *XDIM_MEMBERSET DATASRC=%MyDataSrc% *XDIM_MEMBERSET TIME=BASE,%TIME_SET% *XDIM_MEMBER ACCTDETAIL=

  • What can i use instead of timeservices API ?

    Hi, Timeservices API are deprecated. What can i use instead of this API to execute an action every minit for example. (Weblogic Server 6.1) Thank you in advance.