Runtime problem in custom program

I have created a program awhile back that calculates the sales tax and total price for a product. I successfully compiled and ran the terminal version, but due to some problems, I decided to make a GI version. However, I'm having problems. After what felt like many trials and error, I finally got it to compile and show the window but after typing in the info to test my program, the dialog box will not show up with the results. here is the code I put into the program.
import javax.swing.*;
import java.text.*;
import java.awt.*;
import java.lang.*;
import java.awt.event.*;
class SwingWindow extends JFrame
          JLabel messageLabel;
          JLabel messageLabel2;
          JTextField num1;
          JTextField num2;
          JButton calcButton;
          JPanel panel;
     public SwingWindow()
          super("Sales Tax calculator");
          setSize(400, 150);
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          messageLabel = new JLabel("Enter your sales tax rate:");
          num1 = new JTextField(10);
          messageLabel2 = new JLabel("Enter the listed price of the product:");
          num2 = new JTextField(10);
          calcButton = new JButton("Calculate");
          calcButton.addActionListener(new CalcButtonListener());
          panel = new JPanel();
          panel.add(messageLabel);
          panel.add(num1);
          panel.add(messageLabel2);
          panel.add(num2);
          panel.add(calcButton);
          setVisible(true);
          Container contentArea = getContentPane();
          contentArea.setBackground(Color.white);
          contentArea.add(panel);
          setContentPane(contentArea);
     private class CalcButtonListener implements ActionListener
          public void actionPerformed(ActionEvent e)
               NumberFormat cf = NumberFormat.getCurrencyInstance();
               String str1;
               String str2;
               float rate;
               float total;
               str1 = num1.getText();
               str2 = num2.getText();
               rate = Float.parseFloat(str1) * Float.parseFloat(str2);
               total = rate + Float.parseFloat(str2);
               JOptionPane.showMessageDialog(null, cf.format(str2) + "is the listed price and" + str1 + "is your sales tax rate and" + cf.format(rate) + "is the sales tax for the product and" + cf.format(total) + "is the overall cost for the product.");
public class Salestax
     public static void main(String[] args)
          SwingWindow Salestax = new SwingWindow();
}What can I do or need to do to make that dialog box appear when the Calculate button is clicked? I looked at a tutorial on frames from Sun, but I had troubles compiling afterwards. I'm using Java version 6, if that helps any.
Edited by: gotenks05 on Sep 18, 2008 11:54 AM

Hello, I'm the one who posted this thread this is just a different name because I could not figure out how to get back under the name I posted as. I know that when compiling being syntax error free does not guarantee an error free runtime, but nobody can run a program if it is not or cannot be compiled. This is why I need help. I want the dialog box to appear and the code to be syntax error free. When I ran the program from terminal, I got the following:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Cannot format given Object as a Number     at java.text.DecimalFormat.format(DecimalFormat.java:487)
     at java.text.Format.format(Format.java:140)
     at SwingWindow$CalcButtonListener.actionPerformed(Salestax.java:51)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
     at java.awt.Component.processMouseEvent(Component.java:6126)
     at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
     at java.awt.Component.processEvent(Component.java:5891)
     at java.awt.Container.processEvent(Container.java:2102)
     at java.awt.Component.dispatchEventImpl(Component.java:4497)
     at java.awt.Container.dispatchEventImpl(Container.java:2160)
     at java.awt.Component.dispatchEvent(Component.java:4327)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4366)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4030)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3960)
     at java.awt.Container.dispatchEventImpl(Container.java:2146)
     at java.awt.Window.dispatchEventImpl(Window.java:2440)
     at java.awt.Component.dispatchEvent(Component.java:4327)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:300)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:210)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:200)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:195)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:187)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)>
I know there is something that needs to be done with the source, but I don't what it is, especially since I did not get this problem when I compiled the text based version.
update: I got the dialog box to show, but I want the numbers in currency format.
update 2: I finally got the result I wanted, with a bit of tweaking thanks for the help so far given. I just made another variable to show the number as a float, then used cf.format for currency.
Edited by: realgotenks05 on Sep 18, 2008 1:55 PM
Edited by: realgotenks05 on Sep 18, 2008 2:10 PM

Similar Messages

  • Customizing program in abap

    Hai All,
    i'm new in abap programming.
    Currectly i facing a problem in customizing program which is i need to debug it. can anyone guide me on it? if possible pls give me some useful link in abap.
    Thank you so much...............

    Hi Jee Jee,
    Please reward points if helpful. Good luck and welcome to the world of abap!
    Check out the following links for how to debug your program.
    This link is a <b>demo</b> on how to debug your program :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9cbb7716-0a01-0010-58b1-a2ddd8361ac0
    <b>other links on debugging :</b>http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm
    http://www.sap-basis-abap.com/sapab002.htm

  • Font problems in Mail sent from a Custom program

    Hi,
    There is a custom program which retrieves data from spool using function module 'RSPO_RETURN_SPOOLJOB' and the list returned by the above function module is moved to table Objbin and passed to function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' for sending the email. eversince upgrade,we are facing problems with the Font of the mail generated via the above function module. The font is really small. the sample code is given below:
       CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            EXPORTING
                 document_data              = doc_chng
                 put_in_outbox              = 'X'
            TABLES
                 packing_list               = objpack
                 contents_bin               = objbin
                 receivers                  = reclist
            EXCEPTIONS
                 too_many_receivers         = 1
                 document_not_sent          = 2
                 document_type_not_exist    = 3
                 operation_no_authorization = 4
                 parameter_error            = 5
                 x_error                    = 6
                 enqueue_error              = 7
                 OTHERS                     = 8.

    this is how the code looks like:
    CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'                             EXPORTING                                                       rqident       = spool_number               IMPORTING                                                       real_type      = g_doc_type                      TABLES                                            
         buffer          = compressed_list        
            EXCEPTIONS                                                             no_such_job        = 1                      
               job_contains_no_data = 2                      
                 selection_empty    = 3                      
                 no_permission      = 4                      
                 can_not_access     = 5                      
                 read_error         = 6                      
                 type_no_match      = 7                     
                 OTHERS             = 8.                     
    IF sy-subrc <> 0.                                       
         MESSAGE e132 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.    ENDIF.                                                   * move the list to the official table ojbin
       MOVE compressed_list[] TO objbin[].
    create the document which is to be sent
       doc_chng-obj_name = 'list'.
       doc_chng-obj_descr = 'Inbound PO Faxes to Jobber'.      
       CLEAR objpack-transf_bin.
       objpack-head_start = 1.
       objpack-head_num   = 0.
       objpack-body_start = 1.
       objpack-body_num = '0'.
       objpack-doc_type = 'RAW'.
       APPEND objpack.
       DESCRIBE TABLE objbin LINES tab_lines.
       objpack-transf_bin = 'X'.
       objpack-head_start = 1.
       objpack-head_num   = 0.
       objpack-body_start = 1.
       objpack-body_num = tab_lines.
       objpack-doc_type = g_doc_type.
       objpack-obj_name = 'Attachment'.
       objpack-obj_descr = 'PO Order'.  
       READ TABLE objbin INDEX tab_lines.          
       doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).  
      objpack-doc_size = doc_size.                            
       APPEND objpack.
       IF sy-sysid NE 'PC2'.
                                                                 recipient_int-address = ws_dummy_fax.
       ELSE.
                                                                 concatenate int_customer-fax_number
                      ws_fax_address
         INTO recipient_int-address.
       ENDIF.
       reclist-receiver = recipient_int.
       reclist-rec_type = 'U'.
       APPEND reclist.
       CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            EXPORTING
                 document_data              = doc_chng
                 put_in_outbox              = 'X'
            TABLES
                 packing_list               = objpack
                 contents_bin               = objbin
                 receivers                  = reclist
            EXCEPTIONS
                 too_many_receivers         = 1
                 document_not_sent          = 2
                 document_type_not_exist    = 3
                 operation_no_authorization = 4
                 parameter_error            = 5
                 x_error                    = 6
                 enqueue_error              = 7
                 OTHERS                     = 8.
       IF sy-subrc <> 0.
         MESSAGE e133 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
                                                             ELSE.
    COMMIT WORK.

  • Custom program problem

    Moderator message - please use meaningful subject in future
    Hi,
    My requirement is :
    We get a input file in .XLS format. To load, it has to be converted to .TXT format. But this conversion sometimes creates junk characters in the load file.
    so to rectify it we need to build a custom program and then Pass the .XLS file as input file for custom program
    then Convert it to .TXT and download it
    Then read .XLS cell by cell and compare it with the .txt format which  just downloaded.
    I am building a custom program but while downloading using gui_download i am getting a dump.
    how do i go about it.any pointers will be helpful.The piece of code i am using is:
    DATA : it_tab TYPE STANDARD TABLE OF  alsmex_tabline.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_dpath
          i_begin_col             = c_begin_col
          i_begin_row             = c_begin_row
          i_end_col               = c_end_col
          i_end_row               = c_end_row
        TABLES
          intern                  = it_tab
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
    *   BIN_FILESIZE                    =
          filename                        = p_dpath
    *   FILETYPE                        = 'ASC'
    *   APPEND                          = ' '
    *   WRITE_FIELD_SEPARATOR           = ' '
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    *   WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
    *   SHOW_TRANSFER_STATUS            = ABAP_TRUE
    * IMPORTING
    *   FILELENGTH                      =
        TABLES
          data_tab                        = it_tab
    *   FIELDNAMES                      =
       EXCEPTIONS
         file_write_error                = 1
         no_batch                        = 2
         gui_refuse_filetransfer         = 3
         invalid_type                    = 4
         no_authority                    = 5
         unknown_error                   = 6
         header_not_allowed              = 7
         separator_not_allowed           = 8
         filesize_not_allowed            = 9
         header_too_long                 = 10
         dp_error_create                 = 11
         dp_error_send                   = 12
         dp_error_write                  = 13
         unknown_dp_error                = 14
         access_denied                   = 15
         dp_out_of_memory                = 16
         disk_full                       = 17
         dp_timeout                      = 18
         file_not_found                  = 19
         dataprovider_exception          = 20
         control_flush_error             = 21
         OTHERS                          = 22
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Please give pointers on this.
    Regards,
    Rahul
    Edited by: Matt on Jan 29, 2009 2:13 PM - added  tags

    ALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
       EXPORTING
    *     I_FIELD_SEPERATOR          =
         i_line_header              = 'X'
         i_tab_raw_data             = it_raw
         i_filename                 = pfile
       TABLES
         i_tab_converted_data       = lt_excel[].
    *   EXCEPTIONS
    *     CONVERSION_FAILED          = 1
    *     OTHERS                     = 2
    IF sy-subrc = 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                    =
        filename                        = 'D:\Documents and Settings\chenna.kesava.reddy\Desktop\Book1.txt'
       FILETYPE                        = 'ASC'
    *   APPEND                          = ' '
    *   WRITE_FIELD_SEPARATOR           = ' '
       HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
       WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
       CONFIRM_OVERWRITE               = 'X'
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    *   WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
    *   SHOW_TRANSFER_STATUS            = ABAP_TRUE
    * IMPORTING
    *   FILELENGTH                      = '2000'
      tables
        data_tab                        =  lt_excel.
    *   FIELDNAMES                      =
    * EXCEPTIONS
    *   FILE_WRITE_ERROR                = 1
    *   NO_BATCH                        = 2
    *   GUI_REFUSE_FILETRANSFER         = 3
    *   INVALID_TYPE                    = 4
    *   NO_AUTHORITY                    = 5
    *   UNKNOWN_ERROR                   = 6
    *   HEADER_NOT_ALLOWED              = 7
    *   SEPARATOR_NOT_ALLOWED           = 8
    *   FILESIZE_NOT_ALLOWED            = 9
    *   HEADER_TOO_LONG                 = 10
    *   DP_ERROR_CREATE                 = 11
    *   DP_ERROR_SEND                   = 12
    *   DP_ERROR_WRITE                  = 13
    *   UNKNOWN_DP_ERROR                = 14
    *   ACCESS_DENIED                   = 15
    *   DP_OUT_OF_MEMORY                = 16
    *   DISK_FULL                       = 17
    *   DP_TIMEOUT                      = 18
    *   FILE_NOT_FOUND                  = 19
    *   DATAPROVIDER_EXCEPTION          = 20
    *   CONTROL_FLUSH_ERROR             = 21
    *   OTHERS                          = 22
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Edited by: Matt on Jan 29, 2009 2:14 PM - added  tags

  • Facing a problem with standard text in custom program

    Hi,
    As per my requirement i need to create a standard text (transaction code s010 ) in custom program using below code. But when click save button then it needs to be come out of the screen without click back button.
    CALL FUNCTION 'CREATE_TEXT'
        EXPORTING
          FID         = G_THEAD-TDID
          FLANGUAGE   = G_THEAD-TDSPRAS
          FNAME       = G_THEAD-TDNAME
          FOBJECT     = G_THEAD-TDOBJECT
          SAVE_DIRECT = 'X'
          FFORMAT     = '*'
        TABLES
          FLINES      = I_TLINE
        EXCEPTIONS
          NO_INIT     = 1
          NO_SAVE     = 2
          OTHERS      = 3.
      IF SY-SUBRC <> 0.
      ELSE.
        CALL FUNCTION 'EDIT_TEXT'
          EXPORTING
            HEADER        = G_THEAD
            SAVE          = 'X'
          TABLES
            LINES         = I_TLINE
          EXCEPTIONS
            ID            = 1
            LANGUAGE      = 2
            LINESIZE      = 3
            NAME          = 4
            OBJECT        = 5
            TEXTFORMAT    = 6
            COMMUNICATION = 7
            OTHERS        = 8.
        IF SY-SUBRC <> 0.
        ENDIF.
      ENDIF.
    Can you please help me how to do this
    Regards
    nag

    But when click save button then it needs to be come out of the screen without click back button.
    can you explain me, what do you mean by that.
    ~satya

  • Error while executing web part: System.InvalidProgramException: Common Language Runtime detected an invalid program.

    hello,
    we have 3 server sharepoint 2010 farm as a live system and a 1 server for development and test system. I've got a problem with one of our portals that gives correlation ID (in 2 or 3 times a week) on all my dataview web parts (total 8 Dataview
    WP) until i make IIS reset for that portal. (but same portal works like magic on test system over 3 weeks now). there is no custom code in the page other than the customized masterpage and css. and just reseting the IIS solves the problem for a couple
    of days but i need to fix that permanantly. if anyone can help me about that i will be happy. thank you all in advance.
    here is the log for the correlation ID;
    11/08/2011 09:40:11.72  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Name=Request (GET:http://www.efesithelpdesk.com:80/defaulttr.aspx) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:11.79  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (GetFileAndMetaInfo). Execution Time=63,946744628158 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:11.79  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (GetWebPartPageContent). Execution Time=64,2515319684485 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:11.79  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Site=/ 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:11.79  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (PostResolveRequestCacheHandler). Execution Time=65.3603321092485 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.22  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=361.680395134018 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.25  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.25* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.25  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (DataBinding DataFormWebPart (HelpDesk)). Execution Time=391.723110060077 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.25  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (Activate web part connections). Execution Time=416.389513192319 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.28  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.28* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.30  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=18.8157992147047 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.34  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.34* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.34  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (DataBinding DataFormWebPart (Related Items in Approves)).
    Execution Time=56.5768833748423 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.36  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=16.99475771362 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.41  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.41* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.41  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (DataBinding DataFormWebPart (Related Items in Tasks)).
    Execution Time=59.0992011554541 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.43  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=20.8265994700444 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.44  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.44* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.46  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=18.1539832576487 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.47  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.47* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.49  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=13.4458429772499 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.49  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.49* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.52  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=23.1282886512113 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.53  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.InvalidProgramException: Common Language
    Runtime detected an invalid program.     at Execute(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
    closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)     at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable
    input, XsltArgumentList arguments, XmlWriter results)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)    
    at Microsoft.SharePoint.WebPar... 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.53* w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Web Parts                      89a1 High     ...tPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 841eadfa-2a71-4cd3-85a4-7b1e3d75355f
    11/08/2011 09:40:12.57  w3wp.exe (0x1AF4)                        0x0BB4 SharePoint Foundation        
     Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (GET:http://www.efesithelpdesk.com:80/defaulttr.aspx)). Execution
    Time=845.499567682485 841eadfa-2a71-4cd3-85a4-7b1e3d75355f

    Nicholas Mulder's summary is exactly the issue our server is facing. App pool recycle kicks-off at 2:04am and by 2:06am all our data view web parts are displaying "Unable to display web part ..." I get the same error messages in ULS logs every
    time it recycles, however it is able to correct itself some of the time. The other times which is every few days, the web parts never come back up.
    Here are a few lines from the log leading up to the recycle and a few after.
    -The application domain /LM/W3SVC/1304874868/ROOT-1-130058022909222844 is unloading and going to be recycled.
    -Shutdown Reason: HostingEnvironment initiated shutdown  HostingEnvironment caused shutdown
    -AppDomain shutdown initiated
    -Flushing connection pool 'Data Source=SPSQL;Initial Catalog=SharePoint_Config;Integrated Security=True;Enlist=False;Connect Timeout=15'
    -An application domain named /LM/W3SVC/1304874868/ROOT-1-130058174460198926 has just been loaded.
    -Failed to look up string with key "FSAdmin_SiteSettings_UserContextManagement_ToolTip", keyfile Microsoft.Office.Server.Search.
    -Error initializing Safe control - Assembly:Microsoft.Office.SharePoint.ClientExtensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c TypeName: Microsoft.Office.SharePoint.ClientExtensions.Publishing.TakeListOfflineRibbonControl Error:
    -No webtemp*.xml files found for language 1033 and product version 3.
    -No webtemp*.xml files found for language 1033 and product version 2.
    -Failed to find generic XML file at "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\SiteTemplates\STS\xml\stdview.xml"
    -Failed to find generic XML file at "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\SiteTemplates\STS\xml\stdview.xml"
    -Error while executing web part: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    -Error while executing web part: System.ArgumentException: An item with the same key has already been added.   
    -Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.  
    -AddWithFile:DfwpXslFilesHashCache=Microsoft.SharePoint.WebPartPages.CloneableHashTable
    -Error while executing web part: System.InvalidProgramException: Common Language Runtime detected an invalid program. 

  • Weblogic Commerce Server 3.5 runtime failure in custom tag

    An error occurred:
    javax.servlet.ServletException: runtime failure in custom tag 'process'
         at jsp_compiled._tools._property._propset_create._jspService(_propset_create.java:641)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:149)
         at com.beasys.commerce.foundation.flow.ServletDestinationHandler.handleDestination(ServletDestinationHandler.java:51)
         at com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:540)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    I just started getting this error after a year in production environment without any problems. Did you every find out what caused this or better yet how to prevent this?
              Dan.
              

  • POSTING G/L account documents through custom program

    While posting the documents through the tcode fb01,
    when I tick at PA segement button ASSIGNMENT TO
    PROFITABILITY SEGMENT screen opens, DERIVATION
    BUTTON is activated/enabled . But through a custom program when session is
    processed and when PA segement button is ticked on
    ASSIGNMENT TO PROFITABILITY SEGMENT screen, DERIVATION BUTTON is not visible. I can only see Continue, Next Page, Delete Assignment, and Cancel buttons. Where do I need to check this problem?

    Hi,
    Nope, in standard SAP you can not do that.
    You would need to develop your custom program for it.
    Regards,
    SDNer

  • Object Custom Program Name of class RE and language EN does not exist

    Hi All,
             We are getting this bbelow error while running a custome program ,
    Object <Custom Program Name> of class RE and language EN does not exist
    Do any one has faced this similar issue earlier.
    Regards,
    Sen

    Hi,
    How did you resolve this problem ?
    Re: Object <Custom Program Name> of class RE and language EN does not exist.
    I am also encountering the same issue when I am executing the report.
    Regards,
    SSR.

  • ABAP CUSTOM PROGRAMS vs SOX - What is your best approach?

    SOX defines you must put in place controls to be sure your users can do only those activities wich are not able to create a risk for your company assets.
    You can use GRC AC to get clean and stay clean, but the problem is in your custom developments. Indirectly called transactions are not included in the transaction start check, so I think you must use "authority checks" to validate either stantdard authorization objetcs (sy-tcode, company code...) or custom authorization objects before to call a transacction/BAPI inside a custom program to be sure the user has the right permissions to complete this task.
    Should i validate any single authoritation object defined in SU24 for each single transaction called Indirectly?
    Any other quick win approach?
    thx.

    Manuel,
    There are various types of controls that could be put in place for accomplishing this. Below are some things you could consider to mitigate this risk as I have done in the past which has been sufficent to auditors.
    1) Have a solid review process for Functional Design Specs (FDS) reviews of RICEFW objects being developed into your SAP enviroment and be sure to have the process and review documented. This process will allow you to proactively seek out potential issues before they are coded to senstive areas where the potential risk to financial reporting could arise.
    2) Implement coding standards for Security such as use of Program Auth Groups, Table Auth Groups, and implement certian SAP notes to secure S_DEVELOP object properly. Refer to https://websmp110.sap-ag.de/securitynotes for security notes.
    3) Have a review/monitoring process in place to review access and authorizations to critical objects and transactions. GRC AC is one way to approach this.
    You can use abap program "RSABAPSC : Statistical program analysis to find ABAP language commands" to seek out Authority-Checks in custom development as part of a quality review.
    Thanks,
    Matt

  • Javax.servlet.ServletException: runtime failure in custom tag 'content'

    Hi When iam trying to click on a link which takes to an another JSP.
              iam getting this error after few minutes and that page doesnt display at
              all.
              can anybody help me out????
              ==vasan++;
              <Jan 9, 2001 11:50:10 AM PST> <Error> <HTTP>
              <[WebAppServletContext(627219,console)] exception raised on
              '/console/panels/mbean/Server.jsp'
              javax.servlet.ServletException: runtime failure in custom tag 'content'
              at
              weblogic.management.console.pages._panels._mbean._server._jspService(_server
              .java:9798)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :208)
              at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:1127)
              at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :1529)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              <Jan 9, 2001 11:50:10 AM PST> <Error> <HTTP>
              <[WebAppServletContext(627219,console)] Root cause of ServletException
              java.net.SocketException: Connection reset by peer: socket write error
              at java.net.SocketOutputStream.socketWrite(Native Method)
              at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
              at
              weblogic.servlet.internal.ChunkUtils.writeHeaderChunk(ChunkUtils.java:127)
              at
              weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:
              345)
              at
              weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseIm
              pl.java:683)
              at
              weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamI
              mpl.java:124)
              at
              weblogic.servlet.internal.ServletOutputStreamImpl.flushWithCheck(ServletOutp
              utStreamImpl.java:451)
              at
              weblogic.servlet.internal.ServletOutputStreamImpl.print(ServletOutputStreamI
              mpl.java:243)
              at
              javax.servlet.ServletOutputStream.println(ServletOutputStream.java:286)
              at
              weblogic.servlet.jsp.JspWriterImpl.println(JspWriterImpl.java:204)
              at
              weblogic.management.console.pages._common._requestinfo.print(_requestinfo.ja
              va:68)
              at
              weblogic.management.console.pages._common._requestinfo._jspService(_requesti
              nfo.java:224)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :208)
              at
              weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
              l.java:249)
              at
              weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
              l.java:167)
              at
              weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:104)
              at
              weblogic.management.console.pages._common._error._jspService(_error.java:162
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :208)
              at
              weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
              l.java:149)
              at
              weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:100)
              at
              weblogic.management.console.pages._panels._mbean._server._jspService(_server
              .java:9830)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :208)
              at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:1127)
              at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :1529)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              

    I just started getting this error after a year in production environment without any problems. Did you every find out what caused this or better yet how to prevent this?
              Dan.
              

  • Runtime failure in custom tag

              I was curious if you knew what specifically you did to remove the runtime error.
              I am also getting the runtime failure. The try/catch that another discussion thread
              suggested does not catch the error since the exception is thrown prior to the
              doStart and doEnd Tag methods. I know that the exception is thrown immediately
              after the constructor is called for the tag and before the setParent method is
              called.
              Anyway, thank you in advance for any suggestions you might have.
              try { // begin instantiate/release try/catch/finally block... //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
                   westerncommon_jsptag_HeaderTag_0 = (western.common.jsptag.HeaderTag)java.beans.Beans.instantiate(getClass().getClassLoader(),
              "western.common.jsptag.HeaderTag"); //[ /wattage/wtgMainMenu.jsp; Line: 36]
              westerncommon_jsptag_HeaderTag_0.setPageContext(pageContext); //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
              westerncommon_jsptag_HeaderTag_0.setParent(null); //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
                   westerncommon_jsptag_HeaderTag_0.setNavMenuHREF(weblogic.utils.StringUtils.valueOf("wtgLogout.jsp"));
              //[ /wattage/wtgMainMenu.jsp; Line: 36]
              westerncommon_jsptag_HeaderTag_0.setNavMenu(weblogic.utils.StringUtils.valueOf("Logout"));
              //[ /wattage/wtgMainMenu.jsp; Line: 36]
              westerncommon_jsptag_HeaderTag_0.setTitle(weblogic.utils.StringUtils.valueOf("Main
              Menu")); //[ /wattage/wtgMainMenu.jsp; Line: 36]
              int int0 = westerncommon_jsptag_HeaderTag_0.doStartTag(); //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
                   if (_int_0 == BodyTag.EVAL_BODY_TAG) { //[ /wattage/wtgMainMenu.jsp; Line: 36]
                        throw new JspTagException("Since tag class western.common.jsptag.HeaderTag does
              not implements BodyTag, it cannot return BodyTag.EVAL_BODY_TAG"); //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
              } //[ /wattage/wtgMainMenu.jsp; Line: 36]
              /*** sync AT_BEGIN TagExtra Vars here ***/ //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
              if (_int_0 != Tag.SKIP_BODY) { // begin !SKIP_BODY... //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
                        //[ /wattage/wtgMainMenu.jsp; Line: 36]
                        out.print("\r\n");
                             //[ /wattage/wtgMainMenu.jsp; Line: 37]
                   } // end !SKIP_BODY //[ /wattage/wtgMainMenu.jsp; Line: 37]
              if (_western_common_jsptag_HeaderTag_0.doEndTag() == Tag.SKIP_PAGE) return;
              //[ /wattage/wtgMainMenu.jsp; Line: 37]
              } catch (java.lang.Exception javalang_Exception_0) { // instantiate/release
              try/catch/finally //[ /wattage/wtgMainMenu.jsp; Line: 37]
                   throw new ServletException("runtime failure in custom tag 'HeaderTag'", javalang_Exception_0);
              //[ /wattage/wtgMainMenu.jsp; Line: 37]
              } finally { // instantiate/release try/catch/finally block... //[ /wattage/wtgMainMenu.jsp;
              Line: 37]
                   if (_western_common_jsptag_HeaderTag_0 != null) westerncommon_jsptag_HeaderTag_0.release();
              //[ /wattage/wtgMainMenu.jsp; Line: 37]
              } //[ /wattage/wtgMainMenu.jsp; Line: 37]
              ----------CONSOLE OUTPUT-------------
              Getting Page permissions for page: wtgMainMenu.jsp user: 0
              Page Permissions: Insert-1 View-1 Update-1 Delete-1
              HeaderTag -- Constructing
              Thu Apr 05 11:19:00 CDT 2001:<E> <ServletContext-General> exception raised on
              wattage/wtgMainMenu.jsp'
              javax.servlet.ServletException: runtime failure in custom tag 'HeaderTag'
              at jsp_servlet.wattage.wtgmainmenu._jspService(wtgmainmenu.java:398)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:124)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:744)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:692)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:251)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:363)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    I just started getting this error after a year in production environment without any problems. Did you every find out what caused this or better yet how to prevent this?
              Dan.
              

  • Runtime exceptions in custom taglib

    I am getting errors of the type:
              javax.servlet.ServletException: runtime failure in custom tag
              The problem is the error is happening in a taglib, but Weblogic is hiding the
              original stack trace, and substituting it's own, which is useless in this case. Is
              there any way to get the original stack trace?
              -Jeff
              

    With custom tags, each interface method needs to be entirely in a try..catch
              to support debugging. WL hides the exact exception information. For
              example:
              public int doEndTag() throws JspException
              try
              catch (Throwable e)
              throw e instanceof JspException ? (JspException) e : new
              JspTagException(e.getMessage());
              Cameron Purdy
              [email protected]
              http://www.tangosol.com
              WebLogic Consulting Available
              "Brian Homrich" <[email protected]> wrote in message
              news:[email protected]...
              > I'm getting the same type of error in the situation where an error has
              occured
              > in a page, my client uses "Back" on the browser, then tries another page
              > (which uses a custom taglib).
              >
              > If I stop, then restart WL, all is ok. The page where the runtime
              failure
              > occured is ok now.
              >
              > Have you made any progress getting a stack trace, and have you found
              anything
              > interesting?
              >
              > Does anyone know why a failure on one page would cause the custom tags
              > on another to fail like this? (Both pages use the same tag, but aren't
              calls
              > to a tag done independently?)
              >
              > Brian
              >
              > Jeff Nowakowski wrote:
              >
              > > I am getting errors of the type:
              > >
              > > javax.servlet.ServletException: runtime failure in custom tag
              > >
              > > The problem is the error is happening in a taglib, but Weblogic is
              hiding the
              > > original stack trace, and substituting it's own, which is useless in
              this case. Is
              > > there any way to get the original stack trace?
              > >
              > > -Jeff
              >
              

  • Oracle11i AP positive Pay customized program setting

    Hi
      I need to know how to set up a new customized program for Positive Pay file for payment batch where the checkbox is in actions panel so once it is clicked by the user the program will be triggered
    Thanks

    ISUTri wrote:
    Thank you for your reply Hussein. Those documents don't appear to address the specific problem we seem to be having. Out of the log file that I posted I have been concentrating my search on this error message. Let me know if you have any other tips.
    java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at "APPS.IBY_EXTRACTGEN_PVT", line 380
    ORA-06512: at line 1
    Is there a way I can get additional information that might help me track down what is happening? I have an SR on this but Oracle seems to be as stumped as I am.R12: Troubleshooting Payment Process Request (PPR) Errors: Comprehensive Listing of Errors and Solution Documents [ID 1314118.1]
    IBY_FD_PAYMENT_FORMAT_TEXT Format Payment Instructions Errors with ORA-06502 [ID 1073786.1]
    Thanks,
    Hussein

  • Printing Purchase Order from ME9F using custom program and smartform

    I was able to use my custom program which calls a smartform to print purchase orders from transaction ME9F. I did this using transaction NACE.
    However, when I call "Output Message" from ME9F, the output always fails (shown by an 'X' icon after the checkbox). When I try to put back the standard program in NACE, it does not show an 'X' but a check which indicates that the printing was successful.
    Do you know why this happens? What did I miss?
    Here's my call to my smartform from my custom driver program:
        " Change Smartform ZP_MMSF_P01_PURCHASE_ORDER
        " to internal Function module name
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
            EXPORTING
                FORMNAME   = 'ZP_MMSF_P01_PURCHASE_ORDER'
            IMPORTING
                FM_NAME    = fmname
        wa_cparam-no_dialog = 'X'.
        wa_output-tddest = 'LOCL'. "or 'LP01'.  "Spool: Output device
        CALL FUNCTION fmname
            EXPORTING
                control_parameters         = wa_cparam
                output_options             = wa_output
                i_data                     = i_data
                wa_lookup                  = wa_data_lookup
                goods_amt                  = goods_amt
                discount_amt               = discount_amt
                vat                        = vat
                total_amt                  = total_amt
                total_amt_inwords          = total_amt_inwords

    Vijaya,
    I have this problem though,
    Whenever I try to provide values for CONTROL_PARAMETERS and OUTPUT_OPTIONS to the sapscript call in your code, the PO printing (even the preview) does not proceed. I do this because I wanted to suppress the printer dialog.
    here is a fragment of the code:
    " code I added
    LS_COMPOSER_PARAM-tddest = 'LOCL'. "or 'LP01'.  "Spool: Output device
    LS_COMPOSER_PARAM-bcs_langu = sy-langu.
    LS_CONTROL_PARAM-preview = 'X'.
    LS_CONTROL_PARAM-no_open = 'X'.
    LS_CONTROL_PARAM-no_close = 'X'.
    LS_CONTROL_PARAM-device = 'PRINTER'.
    LS_CONTROL_PARAM-no_dialog = 'X'.
    DO NAST_ANZAL TIMES.
    *--In case of repetition only one time archiving
    * if sy-index > 1 and nast-tdarmod = 3.
    * nast_tdarmod = nast-tdarmod.
    * nast-tdarmod = 1.
    * ls_composer_param-tdarmod = 1.
    * endif.
    IF SY-INDEX NE 1 AND REPEAT IS INITIAL.
    REPEAT = 'X'.
    ENDIF.
    CALL FUNCTION LF_FM_NAME
    EXPORTING
    ARCHIVE_INDEX = TOA_DARA
    ARCHIVE_PARAMETERS = ARC_PARAMS
    CONTROL_PARAMETERS = LS_CONTROL_PARAM
    MAIL_RECIPIENT = LS_RECIPIENT
    MAIL_SENDER = LS_SENDER
    OUTPUT_OPTIONS = LS_COMPOSER_PARAM
    USER_SETTINGS = SPACE
    IS_NAST = NAST
    IS_REPEAT = REPEAT
    I tried to trace it to the function module generated by smartform. The error propagates this way: From the function module, there is a call to function SSFCOMP_PROCESS_DOCUMENT. Then inside that function, there is a perform operation to tr_ssfcomp_process_doc
    perform tr_ssfcomp_process_doc using startpage docstruc
                                           header.
    Inside that form, it calls the macro tr_active which checks the value of ssfcstat-trlevel (tracelevel) against c_trlevel_document. In the macro, if ssfcstat-trlevel is less than c_trlevel_document, the smartform will fail. c_trlevel_document is 15 and ssfcstat-trlevel is 0, and so the smartform fails.
    (you can see the macro tr_active in include LSTXBCMAC and the form tr_ssfcomp_process_doc is in the include LSTXBCFTR)
    When I do not put values in CONTROL_PARAMETERS and OUTPUT_OPTIONS, everything is ok.
    Do you know why this happens?
    Thanks in advance!
    Edit: I have found out about transaction SFTRACE, but this is disabled.
    Kyle

Maybe you are looking for