Runtime exceptions from listeners

          When a servlet context listener throws a runtime exception, does the container
          catch it? It seems that
          the container just ignores the exception and tries to go on with life as usual.
          It does not even log the
          exception trace in the server log. Out of desperation, I finally put my entire
          contextInitialized() method
          in a try-block, and created a catch-block for RuntimeException which prints the
          exception stack-trace to
          the console.
          

          "Daniel Steinberg" <[email protected]> wrote:
          >
          >"Chuck Nelson" <[email protected]> wrote:
          >>
          >>Runtime exceptions can occur anywhere in a program and in a typical
          >program
          >>can
          >>be very numerous. The cost of checking for runtime exceptions often
          >exceeds
          >>the
          >>benefit of catching or specifying them. Thus the compiler does not require
          >>that
          >>you catch or specify runtime exceptions, although you can
          >>
          >>Take a look at the following link on a discussion of runtime exceptions
          >>
          >>http://java.sun.com/docs/books/tutorial/essential/exceptions/runtime.html
          >>
          >>Chuck Nelson
          >>Developer Relations Engineer
          >>BEA Technical Support
          >>
          >
          >If a servlet throws a runtime exception, the request fails and
          >exception information is written to the console and to the server
          >log. I would expect similar behavior when a listener throws a
          >runtime exception. A runtime exception generally indicates
          >a precondition violation by the client class (see Bloch,
          >Effective Java, p. 172). So when such an exception ocurrs, the
          >request should die and the developer should be informed of the
          >situation.
          >exception ocurrs, the program should die,
          >
          It seems that I'm not the only one bothered by this behavior
          (which is unspecified in the Servlet 2.3 spec).
          See Bug #4519704 in the JDC Bug Parade.
          

Similar Messages

  • Runtime Exception from WDP generated interface class

    Hi,
    I am having runtime class cast exceptions from the Internal component file. There is no errors in compiling/building. The application is trying to use another method in the component in another DC. I believe some generated files may have go corrupt but i am not sure how to fix this. Anyone have any suggests? Or maybe other ideas what might be causing this.
    java.lang.ClassCastException
    at com.xxx.yyy.component.wdp.InternalABCComp.wdGetTestInterface(InternalABCComp.java:694)

    Hi,
        If this DC is using is using other components then the problem may be with the UsedDCs. Check if any one of them or their models are changed. Then you have to reimport the models in that DCs. (Hint: Build and deploy those DCs if there have problems you can find)
    REgards,
    Siva

  • Throwing Runtime Exceptions from BPM. How?

    Hi !
    I want to make appear a red flag in the SXMB_MONI as a result of a custom condition inside a BPM. I tried with the control step, but it makes no "red flag".
    Should I make a transform step between 2 dummy message types with a UDF that throws the runtime exception there?? is there another way ?? We want a red flag as a result of a expired deadline while waiting a file adapter transport acknowledgement.
    Thanks !!
    Matias.

    Matias,
    As you said before you want the BPM to be errored out if it reach the deadline, am I right. In control step if u say cancel process it equivalent to logically deleting the work items, so obviously you will get an succesfull message. What I suggest you to do is in  Deadline branch - control branch select throw exception. The exception name has to be defined in Block level. So if you throw an exception it will look for the exception branch in the same block level if not the higher(super)block level, if it couldn't find the exception branch it will run out to error. Actually the exception branch is used to catch that exception and continue the rest of the process, so i think there is no need for defining the exception branch itself.
    Hope it helps you!!!
    Best regards,
    raj.

  • Runtime Exception in Creating DataSink from Applet

    Hi All
    I am capturing screen and recording audio using JMF utilities. The application is working fine in applet viewer but as soon as I run the application from browser, a runtime exception is thrown while creating the datasink. The exact exception is "*create the DataSink: java.lang.RuntimeException: No permission to write files from applets*".
    Although I am able to create files and have set read/write permissions as well.
    The jar file I am using is self signed.
    Please suggest what should I do.
    Thanks in advance.
    Best Regards
    Kuldeep

    This post is made assuming that my earlier assertion is correct.
    user5450182 wrote:
    ..the thing is how would it help if someone else opens this application on his/her system from the browser. .. It Wouldn't. It would however, help the end user not to be 'spied on by web pages'. It is up to you to explain to the end user about the default option and convince them to change it.
    ..Would it be able to capture the user screen and.. No.
    ..generate the .mov file?Yes. No problem there.
    Can you please explain the root cause of this problem? Which part of my explanation are you having trouble with?
    .. I am newbie to applets and jmf .. That is a recipe for disaster. Applets are a PITA at the best of times. Now throw in an abandoned API on top of that, some 'high security' concerns & I can see much frustration for you.
    It might make it simpler if you abandon the applet and instead use a webstart launched (J)Frame.

  • Throwing Exceptions from a new Thread

    Please help if you can.........
    I have a very simple RMI server, that is used to run processes in seperate threads on a server machine, that are kicked off by a client GUI.
    All works fine, except if the process can not be found, then the server generates an IOException. How can I get the thread to throw the exception back to the RMI Server, and then back to the GUI.
    I have tried to throw Runtime Exceptions but that did not work, and I can not declare the run method of the thread to throw a remote exception......
    Any help would be most appriciated...
    G

    /* the listener interface */
    public interface ExceptionListener {
      void exceptionOccured(Throwable t);
    /* the runnable object */
    public class WorkerThread implements Runnable {
      List exceptionListenerList;
      public void addExceptionListener(ExceptionListener l) {
        exceptionListenerList(l);
      public void run() {
        try {
        // do the work, e.g some JDBC stuff
        } catch(Throwable t) {
          // error occured, first do some logging, then notify all listeners
          t.printStackTrace();
          for(i=0; i<exceptionListenerList; i++) {
            (ExceptionListener)exceptionListenerList.get(i).exceptionOccured(t);
    /* this clas creates and & runs the thread; before doing this it
    registers itself as an ExceptionListener to the runnable object */
    public class ThreadStarter implements ExceptionListener {
      public final void exceptionOccured(Throwable t) {
        // do whatever you want to do with the exception
      public final void startThread() {
        WorkerThread wt = WorkerThread();
        wt.addExceptionListener(this);
        new Thread(wt).start();
    }By the way: I "borrowed" the ExceptionListener / ExceptionCallback idea from the book "java thread programming - the authorative solution" by paul hyde.

  • A RunTime exception in JMS

              I am using weblogic server 6.0 service pack 2.
              The problem is in runtime exception in JMS.
              Here is an exception I am getting:
              java.lang.RuntimeException: Client possibly malfunctioning as RuntimeException thrown
              from the onMessage routine of the client
              at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1938)
              at weblogic.jms.client.JMSSession.run(JMSSession.java:881)
              at weblogic.jms.backend.BEServerSession.execute(BEServerSession.java:83)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              This occurs in the line
              >bsender = bsession.createSender(bqueue);
              of the class, in the onMessage method.
              What is the reason for the exception? What can be done to fix it? I just need to
              process several messages in parallel.
              I have a startup class RateQuoteJMSResponse, that calls JMS.
              This happens only when I have a message listeners pool. When I did not use the pool,
              it worked OK. But I want to allow processing messages in parallel, and as I understand,
              there is no other option except using ServerSessionPool.
              When I tried to do that just with QueueReceiver, it worked OK:
                        qreceiver = qsession.createReceiver (queue);
                        qreceiver.setMessageListener (this);
                        qcon.start();
              However, that way messages were not processed in parallel.
              Here is my code:
              package com.bbb.object.jms;
              import java.io.*;
              import java.util.*;
              import javax.jts.*;
              import javax.naming.*;
              import javax.jms.*;
              import com.bbb.object.*;
              import com.bbb.object.RateQuote.*;
              import org.apache.crimson.tree.*;
              import org.w3c.dom.*;
              import weblogic.jms.extensions.JMSHelper;
              import weblogic.jms.ServerSessionPoolFactory;
              public class RateQuoteJMSResponse implements MessageListener
                   private final static String JNDI_FACTORY="weblogic.jndi.WLInitialContextFactory";
                   private final static String JMS_FACTORY="weblogic.closs.jms.QueueConnectionFactory";
                   private final static String SESSION_POOL_FACTORY="weblogic.jms.ServerSessionPoolFactory:ClossJMSServer";
                   private final static int ALL_OCCUPIED = -1;
                   private static REServer servers [];
                   private static REServersThrottle throttle;
                   private QueueConnectionFactory qconFactory;
                   private QueueConnection qcon;
                   private QueueSession qsession;
                   private QueueSession bsession;
                   //private QueueReceiver qreceiver;
                   private QueueSender bsender = null;
                   private Queue queue;
                   private Queue bqueue;
                   private ServerSessionPoolFactory sessionPoolFactory;
                   private ServerSessionPool sessionPool;
                   private ConnectionConsumer consumer;
                   private int findUnoccupiedServer ()
                        for (int ii = 0; ii < servers.length; ii++)
                             if (servers[ii].isActive () && !servers [ii].isOccupied ())
                                  return ii;
                        return ALL_OCCUPIED;
                   private synchronized void updateServers (ActiveServers activeServers)
                        for (int ii = 0; ii < servers.length; ii++)
                             boolean wasActive = servers[ii].isActive ();
                             boolean nowActive = activeServers.isAlive (servers[ii].getHostName ());
                             if (wasActive && !nowActive)
                                  throttle.removeResource ();
                                  Logging.debugInfoLog ("Resource removed");
                             else if (!wasActive && nowActive)
                                  throttle.addResource ();
                                  Logging.debugInfoLog ("Resource added");
                             servers [ii].setActive (nowActive);
                   // MessageListener interface
                   //public void processMessage (Message msgIn)
                   public void onMessage (Message msgIn)
                        Logging.debugInfoLog ("Starting onMessage");
                        ActiveServers activeServers = null;
                        try
                             activeServers = new ActiveServers();
                        catch (Exception ignored) {}
                        Logging.debugInfoLog ("Active Servers file read");
                        updateServers (activeServers);
                        Logging.debugInfoLog ("Servers updated");
                        throttle.getResource ();
                        Logging.debugInfoLog ("Resource got");
                        try
              Logging.debugInfoLog ("0");
                        String msgTextIn;
                             ObjectMessage msgOut;
                             RateQuoteGetBase rateQuoteGet;
                             RateQuoteGetXML rateQuoteGetXML;
              Logging.debugInfoLog ("1");
                             if (msgIn == null)
              Logging.debugInfoLog ("2");
                                  rateQuoteGet = new RateQuoteGetBase ("Cannot receive a rate quote back from JMS.");
                                  msgTextIn = "";
                             else
              Logging.debugInfoLog ("3");
                                  if (msgIn instanceof TextMessage)
                                  msgTextIn = ((TextMessage)msgIn).getText();
                                  else
                                  msgTextIn = msgIn.toString();
              Logging.debugInfoLog ("4");
                                  bqueue = (Queue) msgIn.getJMSReplyTo ();
              Logging.debugInfoLog ("8");
                                  bsender = bsession.createSender(bqueue);
              Logging.debugInfoLog ("9");
                                  bsender.setDeliveryMode (javax.jms.DeliveryMode.NON_PERSISTENT);
              Logging.debugInfoLog ("10");
                                  Logging.debugInfoLog ("Prepareing to find unoccupied server");
                                  int selectedServer = findUnoccupiedServer ();
                                  Logging.debugInfoLog ("Unoccupied server found: " + selectedServer);
                                  if (selectedServer == ALL_OCCUPIED)
                                       rateQuoteGet = new RateQuoteGetBase ("No nonoccupied rating engines found.");
                                       msgTextIn = "";
                                  else
                                       servers [selectedServer].setOccupied ();
                                       Logging.debugInfoLog ("Set occupied: " + selectedServer);
                                       String hostname = servers [selectedServer].getHostName ();
                                       int portId = servers [selectedServer].getPortId ();
                                       rateQuoteGet = new RateQuoteGetBase (hostname, portId);
                                       rateQuoteGetXML = new RateQuoteGetXML (new RateQuoteGet (rateQuoteGet));
                                       rateQuoteGetXML.prepareXML ();
                                       servers [selectedServer].setUnOccupied ();
                                       Logging.debugInfoLog ("Set unoccupied: " + selectedServer);
                                       if (!rateQuoteGetXML.hasErrorOccured ())
                                            rateQuoteGet.sendXML (msgTextIn);
                                            rateQuoteGet.prepareXML ();
                             Logging.debugInfoLog("Message Received: " + msgTextIn );
                             msgOut = bsession.createObjectMessage ();
                             msgOut.setObject (rateQuoteGet);
                             bsender.send (msgOut, javax.jms.DeliveryMode.NON_PERSISTENT,
                                            javax.jms.Message.DEFAULT_PRIORITY, 18000000L);
                        Logging.debugInfoLog("Message Sent Back: " + rateQuoteGet.getXML());
                             Logging.debugInfoLog ("End of massage sent back");
                             rateQuoteGet.debugPrint ();
                        catch (JMSException jmse)
              Logging.debugInfoLog ("5");
                        jmse.printStackTrace();
              Logging.debugInfoLog ("6");
                        try
                             if (bsender != null)
                                  bsender.close ();
                        catch (JMSException ignored) {}
                        finally
                             bsender = null;
              Logging.debugInfoLog ("7");
                        try
                             throttle.freeResource ();
                             Logging.debugInfoLog ("Resource freed");
                             Logging.debugInfoLog ("Finishing onMessage");
                        catch (Exception ignored) {}
              * Create all the necessary objects for receiving
              * messages from a JMS queue.
                   public void init(Context ctx, String queueName, int countListeners) throws NamingException,
              JMSException
                        //Logging.debugInfoLog ("Class name: " + this.getClass().getName());
                        qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);
                        qcon = qconFactory.createQueueConnection();
                        qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
                        bsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
                        try
                        queue = (Queue) ctx.lookup(queueName);
                        catch (NamingException ne)
                             ne.printStackTrace ();
                             //queue = (Queue) ctx.lookup (queueName);
                        //queue = qsession.createQueue (queueName);
                             //queue = JMSHelper.createPermanentQueueAsync(ctx, "closs", "ClossJMSServer",
              queueName, JNDI_FACTORY);
                             //JMSHelper.createPermanentQueueAsync(ctx, "ClossJMSServer", queueName, JNDI_FACTORY);
                             //queue = qsession.createQueue("ClossJMSServer/" + queueName);
                             //queue = createPermanentQueueAsync(ctx, jmsServerName, queueName, jndiName);
                        //ctx.bind(queueName, queue);
                        //qreceiver = qsession.createReceiver (queue);
                        //qreceiver.setMessageListener (this);
                        qcon.start();
                        sessionPoolFactory = (ServerSessionPoolFactory) ctx.lookup (SESSION_POOL_FACTORY);
                        sessionPool = sessionPoolFactory.getServerSessionPool (     qcon,
                                                                          countListeners,
                                                                          false,
                                                      Session.AUTO_ACKNOWLEDGE,
                                                      this.getClass().getName());
                        ConnectionConsumer consumer = qcon.createConnectionConsumer (queue, "", sessionPool,
              3*countListeners);
              * Close JMS objects.
                   public void close()
                        try
                             //if (qreceiver != null)
                             //     qreceiver.close();
                             if (consumer != null)
                                  consumer.close();
                        catch (JMSException ignored){}
                        //qreceiver = null;
                        consumer = null;
                        try
                             if (qsession != null)
                                  qsession.close();
                        catch (JMSException ignored){}
                        qsession = null;
                        try
                             if (bsender != null)
                                  bsender.close();
                        catch (JMSException ignored){}
                        bsender = null;
                        try
                             if (bsession != null)
                                  bsession.close();
                        catch (JMSException ignored){}
                        bsession = null;
                        try
                             if (qcon != null)
                                  qcon.close();
                        catch (JMSException ignored){}
                        qcon = null;
              * Receive a JMS message.
                   //public Message receive() throws JMSException
                   //     return qreceiver.receive ();
                   public static void main (String[] args) throws Exception
                        Message msg;
                        int len = args.length;
                        if (len %2 != 0 || len == 0)
                        Logging.debugInfoLog("Usage: java RateQuoteJMSResponse hostname portid hostname
              portid ...");
                        return;
                        int reCount = len/2;
                        throttle = new REServersThrottle (0);
                        servers = new REServer [reCount];
                        for (int ii = 0; ii < reCount; ii++)
                             servers [ii] = new REServer (args [2*ii], args [2*ii + 1]);
                        //Logging.debugInfoLog ("Arguments: " + args[0] + " " + args[1]);
                        InitialContext ic = getInitialContext (ClickProperties.getInitialContext());
                        RateQuoteJMSResponse qr = new RateQuoteJMSResponse ();
                        qr.init (ic, ClickProperties.getJMSQueue(), reCount);
                        Logging.debugInfoLog("JMS Rating Engine Responser Is Ready To Receive Messages.");
                        // Wait until a "quit" message has been received.
                        //synchronized (qr)
                   //     while (true)
                        //          msg = qr.receive ();
                        //          Logging.debugInfoLog ("Message received");
                        //          qr.processMessage (msg);
                        //qr.close();
                   private static InitialContext getInitialContext (String url) throws NamingException
                        Hashtable env = new Hashtable();
                        env.put (Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
                        env.put (Context.PROVIDER_URL, url);
                        return new InitialContext(env);
              And here is the output from weblogic console:
              <May 15, 2002 11:11:57 AM EDT> <Debug> <Debug Info Log> <Active Servers file rea
              d>
              <May 15, 2002 11:11:57 AM EDT> <Debug> <Debug Info Log> <Throttle max increased
              to: 1>
              <May 15, 2002 11:11:57 AM EDT> <Debug> <Debug Info Log> <Resource added>
              <May 15, 2002 11:11:57 AM EDT> <Debug> <Debug Info Log> <Servers updated>
              <May 15, 2002 11:11:57 AM EDT> <Debug> <Debug Info Log> <Throttle count increase
              d to: 1>
              <May 15, 2002 11:11:57 AM EDT> <Debug> <Debug Info Log> <Resource got>
              <May 15, 2002 11:11:57 AM EDT> <Debug> <Debug Info Log> <0>
              <May 15, 2002 11:11:57 AM EDT> <Debug> <Debug Info Log> <1>
              <May 15, 2002 11:11:57 AM EDT> <Debug> <Debug Info Log> <3>
              <May 15, 2002 11:11:57 AM EDT> <Debug> <Debug Info Log> <4>
              <May 15, 2002 11:11:57 AM EDT> <Debug> <Debug Info Log> <8>
              java.lang.RuntimeException: Client possibly malfunctioning as RuntimeException t
              hrown from the onMessage routine of the client
              at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1938)
              at weblogic.jms.client.JMSSession.run(JMSSession.java:881)
              at weblogic.jms.backend.BEServerSession.execute(BEServerSession.java:83)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              [config.xml]
              

              Thanks. It creates a new class each time onMessage () is called. I thought it uses
              an existing instance of the class.
              "Zach" <[email protected]> wrote:
              >You need to trap the exception inside the onMessage so you can see the
              >exception that is being thrown by the bsession.createSender call. This
              >stack trace doesn't give enough information. It is just a message saying
              >your code failed to handle and leaked an exception out of the onMessage.
              >If that is the line that failed, then try catch around it and look at the
              >stack trace for that exception.
              >
              >_sjz.
              >
              >"Alexander Rabinowitz" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> I am using weblogic server 6.0 service pack 2.
              >> The problem is in runtime exception in JMS.
              >> Here is an exception I am getting:
              >> java.lang.RuntimeException: Client possibly malfunctioning as
              >RuntimeException thrown
              >> from the onMessage routine of the client
              >> at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1938)
              >> at weblogic.jms.client.JMSSession.run(JMSSession.java:881)
              >> at
              >weblogic.jms.backend.BEServerSession.execute(BEServerSession.java:83)
              >> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >>
              >> This occurs in the line
              >>
              >> >bsender = bsession.createSender(bqueue);
              >>
              >> of the class, in the onMessage method.
              >>
              >> What is the reason for the exception? What can be done to fix it? I just
              >need to
              >> process several messages in parallel.
              >
              >
              >
              

  • Crystal Runtime exception: Missing parameter values

    Our company did a PeopleTools upgrade at one of our clients recently. We upgraded them to PeopleTools 8.50.08. We had to convert all the Crystal Reports to the 2008 format using the RPT converter which is included in the Client install of PeopleTools.
    The only problem now is that a lot of the Crystal processes in PeopleSoft are failing with the following error:
    Crystal Runtime exception: Missing parameter values.
    I've checked the parameters which are being passed to the report and I see both parameters are filled:
    E:\HR881\BIN\CLIENT\WINX86\PSCRRUN.EXE -CTORACLE -CDHRMKPDEV -COPSDUT -CPOPRPSWD -I218609 -RP"PUP202K" -OT6 -OP"G:\PS\PSPRCS\log_output\HRMKPDEV\CRW_PUP202K_218609" -LGDUT -OF2 -ORIENTL "2000-10-01" "2002-06-30"
    Database type is Oracle. HRMS version is 8.8. I can run the Query which gets the data in just fine and I can also run the report from Crystal fine. This only happens with Crystal reports which have a date field as a parameter/prompt in the report.
    There's currently an SR open at Oracle, but I was hoping that someone here can help me nail this issue. I'm not too happy with the quallity of Oracle support, but that's a whole different story.

    <s>Just to be sure, did you put a space after each parameter name or is it a typo over here ?
    E:\HR881\BIN\CLIENT\WINX86\PSCRRUN.EXE -CT ORACLE -CD HRMKPDEV -CO PSDUT -CP OPRPSWD -I 218609 -RP "PUP202K" -OT 6 -OP "G:\PS\PSPRCS\log_output\HRMKPDEV\CRW_PUP202K_218609" -LG DUT -OF 2 -OR IENTL "2000-10-01" "2002-06-30"</s>
    Nicolas.
    sorry, it was wrong assumption.
    Edited by: N Gasparotto on Jun 2, 2010 5:11 PM

  • Acrobat SDK C# Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)

    Hi,
    Here I want to known one thing clearly, that is I was developed one application in C# with Acrobat SDK.
    In my application I am using Acrobat AxAcroPDFLib.AxAcroPDF and  also some other acrobat class.
    In my development system i am using Acrobat 7.0.
    When my application installed in my client system I am faced different types of problem.
    System 1
    System Configuration
    OS : XP
    Acrobat 7.0
    Result : Success
    System 2
    System Configuration
    OS : XP
    Acrobat 5.0
    Acrobat 7.0
    Result : Fail
    Error : Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)
    System 3
    System Configuration
    OS : XP
    Acrobat 7.0
    Adobe Reader 9
    Result : Success
    Note:
    But I having problem when I am use my application while Adobe Reader 9 is open.
    What is problem?
    Error is related to ActiveX COM fail like
    Error HRESULT E_FAIL has been returned from a call to a COM component.
    Retrieving the COM class factory for component with CLSID {FF76CB60-2E68-2E68-101B-B02E-04021C009402} failed due to the following error: 80080005
    System 4
    System Configuration
    OS : XP
    Acrobat 7.0
    Result : Success
    Problem:
    At the time of tool installation the system configuration will be as mention above, after by mistake they installed Adobe Reader 5.0. I faced the problem to use my application ActiveX COM failed
    So I was un installed Adobe Reader 5, and tried but I got the following error,
         System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception      from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
    at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
    at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
    at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
    at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
    at System.Windows.Forms.AxHost.CreateInstance()
    at System.Windows.Forms.AxHost.GetOcxCreate()
    at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
    at System.Windows.Forms.AxHost.CreateHandle()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.AxHost.EndInit()
    at Greenleaf_MetaData.ArticleMetaData_Jnl.InitializeComponent()
    at Greenleaf_MetaData.ArticleMetaData_Jnl..ctor()
    at Greenleaf_MetaData.MainForm.btn_Process_Click(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)   
    So, I am advised my System Admin team to Re-Install the Acrobat 7.0, after the Re-Installation of Acrobat 7.0, all the problem get solved.
    But I want to known what is problem?
    And also what is the Adobe COM connection between Acrobat ActiveX and my Application(C#, VB, etc…).
    So Please give clear information and guidance...
    Thanks & Regard
    Thirusanguraja Venkatesan

    A simple google can get:
    Common problems such as Windows Error Code 0x80040154 can be resolved with without too much difficulty. In this article we will go through solving the problem and how to prevent it in the future.
    What happens
    If you are registering an ATL server, you may see this error code. In the case of DLLs, regsvr32.exe will generate this error. In the case of EXEs, calling _Module::RegisterServer (CComModule::RegisterServer) in _tWinMain() will generate this error.
    For detail: http://www.error.info/windows/registry-0x80040154.html
    Cheers,
    andy

  • A problem with 3 exceptions from 1 method!!!

    I don't like it and I need advice on how to avoid it. I have been given an interface and am required to use ech of its methods. Here is what happened...
    The interface declares that when a record is searched for in the database and cant be found then a database exception must be thrown.
    When a operation is performed on a record it gets locked with a lock cookie and this cookie must be the same when the lock is released at the end of the operation or a Security Exception gets thrown.
    The file accessing itself throws IO exception which ofcourse has to be handled too.
    So far I have done the following(data level). I have a general databaseException which is a parent to all database exceptions. This means my Security and RecNotFound exceptions can be caught by one exception as they bubble up the stack. My IOException gets converted to a runtime exception and will be converted back to a checked exception in the GUI layer where I cater for all exceptions (The user does not see them).
    Moving on....
    In my service layer layer I have a business Exception to all business logic errors. Here is why it gets tricky...
    A record can not be booked if it is already booked. So I have a bookedRecException and the booking process involves locking the record(throws databaseException as mentioned). I also catch my RuntimeIOExceptions and throw them in my service layer up the stack as an IOException which gets handled in the GUI.
    As you can see this does not look good and I want to fix it. I thaught of making my databaseException into a IOE my service interface methods are all throwing DatabaseException AND IOExceptions.
    Edited by: Yucca on Apr 2, 2009 8:37 PM

    Yucca wrote:
    morgalr wrote:
    So what you are saying is: you don't want to deal with all the different exceptions?
    No what I am saying Is it's the SCJD and I am trying to avoid messy code with 3 exceptions. I am very much for custom exceptions where having a strongly typed exception tells you enough just by the fact that AlreadyBookedRecordException in your stack explains it all.That is not apparent from you post, what you seem to be saying is that you don't want them. In any case I've never found it messy to handle all exceptions individually, nor have I found it messy to use the method I mentioned.

  • Runtime exception for Date format

    Hi,
    Scenario : RFC to IDOC
    found the error in my payload :
    RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ZORDERS06/IDOC/E1EDK03/DATUM. The message is: Unparseable date: "2008-05-19" at com.sap.aii.mappingtool.tf3.AMappingProgram.start
    Here i has used DateTransformation from the Date Function.
    How can i give the format for Target side here.
    Regards,
    yeswanth.

    Hello Yeshwanth,
    RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ZORDERS06/IDOC/E1EDK03/DATUM. The message is: Unparseable date: "2008-05-19" at com.sap.aii.mappingtool.tf3.AMappingProgram.start
    Here i has used DateTransformation from the Date Function.
    In Date Trans Properties:
    In Format Source date u select : yyyy-mm-dd
    In Target Format u select: yyyy/mm/dd
    Thanks,
    Satya

  • Runtime exception occurred during execution of application mapping program

    Hi all
    while testing intergase mapping i am getting this error----->
    com/sap/xi/tf/_XI_FI_BAPI_CC_DOCUMENT_POST_REQ_MM:
    com.sap.aii.utilxi.misc.api.BaseRuntimeException;RuntimeException in Message-Mapping transgormation:Runtime exception during processing target field mapping
    /ns1:BAPI_ACC_DOCUMENT_POST/DOCUMENTHEADER/HEADER_TXT. THE message is:Exception:[java.lang.NullPointerException] in class com.sap.aii.mappingtool.flib3.TextFunction s method substring [null,com.sap.aii.mappingtool.tf3.rt.Context@2388897239]
    I had used  in the message mapping two user defined function scan you please look into the user defined functions, getPriviousMounthLastDate and  FileName in the mapping for the target DocDate field
    ihave used even this getPriviousMounthLastDate user defined function before using FileName
    this is  the code of  userdefined function  getPriviousMounthLastDate
    Calendar cal = Calendar.getInstance();
    SimpleDateFormat output = new SimpleDateFormat("yyyyMMdd");
    cal.add(Calendar.MONTH,1);
    cal.set(Calendar.DAY_OF_MONTH,1);
    cal.add(Calendar.MONTH,-1);
    cal.add(Calendar.DATE,-1);
    StringBuffer dateBuffer = new StringBuffer();
    output.format(cal.getTime(),dateBuffer,new FieldPosition(0));
    return dateBuffer;
    this is the code of  userdefined function FileName
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
    "http://sap.com/xi/XI/System/File",
    "FileName");
    String valueOld = conf.get(key);
    return valueOld;
    thanks sandep
    Edited by: sandeep pendyala on Feb 6, 2008 6:52 AM

    Hi Sandeep,
                     please check the trace file in SXMB_MONI,
                     which is avialble in response node.
                      if you analyze the trace, u can find-out....
                     error happend because of ehich field.
                    first copy the inbound xml from MONI and test it at message mapping.
                     then also, u can find-out the error.
    regards
    mahesh.

  • Multi Mapping Base Runtime Exception

    Hi all
    Im getting a Base Runtime Excecption in Multi mapping. My scenario is File to IDocs.
    when i test the message is IR its successful. However while testing End to end im getting Base Runtime excception.
    Any pointers to this
    --Keerthi

    Hi Abhishek,
    I tested from ID-Tools-Test configuration
    Its stopping at the Interface Detarmination&Mapping step. Now the Base Runtime exception is gone. Geeting a new error"Messages in multi-message format can only be sent to one Adapter Engine".
    According to the forum i've removed the Messages and Message 1 tag and tested.. But still the same error.
    My scenario is File to IDOCs using multi -mapping. I've changes the occurece to unbounded.. Used Enhanced Receiver determination..All my configuration seems perfect Also in SXMB_MONI multiple messages as desired are present under 'Message Branch According to Receiver List'
    But the error "Messages in multi-message format can only be sent to one Adapter Engine" is still there
    --Keerthi

  • Reg: Runtime exception occurred during application mapping

    Dear SAP Gurus,
    This is Amar Srinivas Eli working currently on SOAP to SOAP Scenario on PI 7.1 Server.
    I Would like to inform you that I have done all steps regarding DESIGN and CONFIG and also regarding SERVICE REGISTRY part successfully.
    While Testing the data in the WS Navigator by giving the input parameters I am getting an error that
    *<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>*
    *- <!--  Request Message Mapping*
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_HRS_LISTReferral_Response_MM_</SAP:P1>
      <SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>
      <SAP:P3>on: Cannot create target element /ns1:PI_ListRefer</SAP:P3>
      <SAP:P4>ral_Response_MT. Values missing in queue context.~</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_HRS_LISTReferral_Response_MM_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns1:PI_ListReferral_Response_MT. Values missing in queue context.~</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    These are the steps I did while implementing..
    1. Importing the XSD's successfully
    2. Developed the design and config part and also checked nearly 3-4 times regarding both REQ and
        RESPONSE Mappings.
    3. I already checked the link of WSDL once again...
    4. Even I found REsponse Interface once again...
    Still I am not getting where the error was ? Please guide me in detail in a right way in this issue.
    Regards:
    Amar Srinivas Eli
    Edited by: Amar Srinivas Eli on Jan 13, 2009 7:53 AM

    Hello,
    I already checked all those queues and context fields////
    Based on my Observation I found
    1) As I am unable to view the SOAP BODY I increased the RUN TIME Trace Level to 3 and LOG_VAlue to 3
    2) ANother most Important that I found later doing these settings are....
        I found Receiver Pay LOAD and I copied that entire pay load and pasted it in
        REceiver Message Mapping> Test Tab and Code->PASTED...and compared all those parameters
        in the TEST TAB and DEFINITION TAB in Tree View whether all the mandatory receiver mapped
        elements are  coming I mean passing from source or not...
    OBSERVATION::
    I found that for nearly 3 fields there is a difference when I compared on Tree View in DEFINITION TAB and also parallely in the TEST TAB Tree View which I got by copied from MONI,,,,
    see for example ::
    CENTRE <----
    > DISCHARGE DATE..
    For going to CENTRE..here I found that in DEfiniition TAB...
    Control Act Event-->Subject->document-->Component>Structured body> component> Section>Component>PatientCareProvisionEvent->EffectiveTime-->CENTRE
    But immediately I have gone to TEST TAB and TREE VIEW and I found that respective field CENTRE is posting I mean passing any value or parameter to Discharged Date or not...
    But I found that...
    Control Act Event-->Subject->document-->Component>Structured body> component> Section>Component-->_PatientCareProvisionEvent_
    This Implies that Effective Time and Centre are missing in the XML and I mean no values are passing to receiver right..
    In PI XSD 's it is there but in I think after Compiling REQUEST MAPPING and while in returning to RESPONSE MAPPING I mean whenever the Response is posting to SOAP WEBSERVICE it is unable to found those target elements and I think due to this...
    Am I Correct ?
    If that is the case...Let me know where the issue is whether in the data present in the WEBSERVICE created on target side or in PI Side..any issue...
    Regards:
    Amar Srinivas Eli
    Edited by: Amar Srinivas Eli on Jan 13, 2009 10:00 AM

  • Runtime exception occurred during application mapping in SAP PI

    Hi Team,
    Please help me regarding this issue is very urgent:
    Runtime Error in configuration part:
    Here i test the XML message in Receiver Determintion:
    Below i am getting error:
    Runtime exception occurred during application mapping com/sap/xi/tf/_MaterialStockUpdate_Multi_AllPlant~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:The processing instruction target matching "[xX][mM][lL]" is not allowed
    SXMB_MONI:
    I am getting below error:
    Runtime exception occurred during application mapping

    Hi,
    Actually my problem is what i am getting,I am trying to test the data in runtime workbench and configuration part copied from inbound payload XML structure .
    I already sent the screenshots of above errors,
    Configuartion:
    Runtime workbench:
    This the error i am getting below in "Runtime Workbench"
    Error While Sending Message: Additional error text from response: com.sap.engine.interfaces.messaging.api.exception.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve outbound binding for the given P/S/A values: FP=;TP=;FS=MHEPL_Sandbox_100;TS=;AN=MaterialStockUpdate_Multi_AllPlants_N;ANS=http://www.manipalhospitals.com/his/mm; in the current context [Unknown].

  • Runtime exception occurred during application mapping "EXCEPTION_DURING_EX"

    Hi Gurus,
    I am getting following error in MONI:
    SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_MDM_CMS_Backfeed_Group_</SAP:P1>
      <SAP:P2>com.sap.aii.mappingtool.tf7.MessageMappingExceptio</SAP:P2>
      <SAP:P3>n: Runtime exception when processing target-field</SAP:P3>
      <SAP:P4>mapping /ns0:BackfeedGroup/group/MasterId; root m~</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_MDM_CMS_Backfeed_Group_; com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-fieldmapping /ns0:BackfeedGroup/group/MasterId; root m~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I have tried to refresh the mapping cache and restart the message but stil this message persists.
    For me it seems an issue with a wrong mapping or some wrong value in the inbound scenario.
    Please suggest if any one of you had come across this error before.
    With Reg,
    Vikash

    Hi Vikash
    Whenever you have a problem in your mapping you will get this kind of error in monitoring
    According to your log the problem is in parameter  /ns0:BackfeedGroup/group/MasterId
    First of all check your mapping. If it is fine than check the value of this parameter from your payload.
    Also try to copy your xml and test the mapping in IR. Check wether you are getting same error there .
    If same error comes than try to manipulate the value of that field and try the same test again
    Regards,
    Shradha

Maybe you are looking for

  • In ios7 is there a way to change the colour of a sent text?

    Since upgrading to ios7 & on my iphone 5 the sent text messages in a conversation (my messages) are white on green and I don't find it that easy to read when I want to look back over a conversation. I tried making it bold in the Accessibility area of

  • IPhone 5 shuts down as soon as battery goes below 20%

    I have had my iPhone 5 for about a year, still have until Jan 2015 on Verizon contract. I am running iOS 7.0.4. My battery drains relatively quickly, but usually lasts about 8-9 hours for me on a full charge. However, the phone just shuts down and sh

  • Itunes wont open (sometimes)

    I just started to use i tunes and i phone. Sometimes i tunes works perfectly and I can sync and see my music etc. But other times when trying to open nothing happens. i tunes wont open. I don't see any error message and I do see it as running in task

  • Alternative usage of proprty file reading in ejb

    Hi , As IO is not advisable in EJB, can anyone tell me that any alternative is there to use properties Thanks in advance Venkatesh

  • Photo effect - pop art

    Has anyone been able to apply the effects from photo booth - namely pop art - to photos in iPhoto? Alternatively, has anyone been able to import a photo into photo booth and apply any of those effects? Thanks in advance for any help.