Runtime Error that Seems to be Related to Dialog Boxes

Although I am currently taking a college course in Java and my code is based on a couple of questions from my Java textbook, I would like to make it perfectly clear that this is NOT homework. This is self-assigned for studying purposes and my professor will probably never see this, let alone grade it. Regardless, I suspect this to be a configuration-related issue as I had no such problems running this program in a Vista machine on campus. Assuming I am right, there shouldn't be any issue with any of this community's policies as I won't need to receive any "answer" code to solve this issue.
In NetBeans, my program compiles and works fine, but produces a couple of runtime errors. Any idea what could be going on here?
Here's my code:
import java.util.Scanner;       // Needed for console input.
import javax.swing.JOptionPane; // Needed for dialog boxes.
   This program performs the actions requested in questions 2.35 and 2.36 in the textbook.
* @author Dan
public class Pages98To99 {
    public static void main(String[]args){
        // Asks the user for what answer he/she wants to see.
        System.out.println("Do you want to see the answer to 2.35 or 2.36?");
        Scanner keyboard = new Scanner(System.in);  // Creates a scanner object.
        double answer = keyboard.nextDouble();
        if (answer == 2.35){
            //2.35
            JOptionPane.showMessageDialog(null, "Greetings Earthling.");
            JOptionPane.showInputDialog("Enter a number.");}
        else if (answer == 2.36){
            //2.36
            String str = JOptionPane.showInputDialog("Please enter your age.");
                                                 // Gets age.
            int age = Integer.parseInt(str);}    /* Converts age from a string to an
                                                    integer.*/
        else
            JOptionPane.showMessageDialog(null, "Go to another program.");
        System.exit(0); // Ends the program
}Here are the runtime errors produced by NetBeans:
2010-02-15 21:23:54.659 java[3891] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0xf203, name = 'java.ServiceProvider' See /usr/include/servers/bootstrap_defs.h for the error codes. 2010-02-15 21:23:54.660 java[3891] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)The following is a troubleshooting terminal session using both the newer version of JDK courtesy of SoyLatte ( [http://landonf.bikemonkey.org/static/soylatte/|http://landonf.bikemonkey.org/static/soylatte/] ), which fails to produce a dialog box) as well as the older one supplied by Apple as part of my OS (which like in NetBeans works fine otherwise) as well.
Last login: Sat Feb 20 00:12:55 on ttyp1
Welcome to Darwin!
Dans-MacBook:~ Dan$ cd /Volumes/Lexar/NetBeansProjects/MacBook-Made/test/;echo $PATH;java -version;javac -version;javac Pages98To99.java;java Pages98To99;PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin;java -version;javac -version;javac Pages98To99.java;java Pages98To99
/sw/bin:/sw/sbin:/Applications/soylatte16-i386-1.0.3/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
java version "1.6.0_03-p3"
Java(TM) SE Runtime Environment (build 1.6.0_03-p3-landonf_19_aug_2008_14_55-b00)
Java HotSpot(TM) Server VM (build 1.6.0_03-p3-landonf_19_aug_2008_14_55-b00, mixed mode)
javac 1.6.0_03-p3
Do you want to see the answer to 2.35 or 2.36?
0
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
        at sun.awt.X11.XToolkit.(XToolkit.java:89)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at java.awt.Toolkit$2.run(Toolkit.java:836)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:828)
        at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:120)
        at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1556)
        at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:130)
        at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1591)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:537)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:577)
        at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1331)
        at javax.swing.UIManager.initialize(UIManager.java:1418)
        at javax.swing.UIManager.maybeInitialize(UIManager.java:1406)
        at javax.swing.UIManager.getDefaults(UIManager.java:656)
        at javax.swing.UIManager.getString(UIManager.java:802)
        at javax.swing.UIManager.getString(UIManager.java:819)
        at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:592)
        at Pages98To99.main(Pages98To99.java:29)
java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-306)
Java HotSpot(TM) Client VM (build 1.5.0_19-138, mixed mode, sharing)
javac 1.5.0_19
javac: no source files
Usage: javac 
where possible options include:
  -g                         Generate all debugging info
  -g:none                    Generate no debugging info
  -g:{lines,vars,source}     Generate only some debugging info
  -nowarn                    Generate no warnings
  -verbose                   Output messages about what the compiler is doing
  -deprecation               Output source locations where deprecated APIs are used
  -classpath           Specify where to find user class files
  -cp                  Specify where to find user class files
  -sourcepath          Specify where to find input source files
  -bootclasspath       Override location of bootstrap class files
  -extdirs             Override location of installed extensions
  -endorseddirs        Override location of endorsed standards path
  -d              Specify where to place generated class files
  -encoding        Specify character encoding used by source files
  -source           Provide source compatibility with specified release
  -target           Generate class files for specific VM version
  -version                   Version information
  -help                      Print a synopsis of standard options
  -X                         Print a synopsis of nonstandard options
  -J                   Pass  directly to the runtime system
Do you want to see the answer to 2.35 or 2.36?
0
2010-02-20 00:16:09.967 java[4618] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0xf103, name = 'java.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2010-02-20 00:16:09.968 java[4618] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)
Dans-MacBook:/Volumes/Lexar/NetBeansProjects/MacBook-Made/test Dan$ Edited by: Viewer07 on Mar 6, 2010 12:15 AM

In terminal I've been using a JDK from Soylatte. I haven't tampered with the JDK that NetBeans uses.
About NetBeans (from the menubar returns the following):
Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.5.0_19; Java HotSpot(TM) Client VM 1.5.0_19-138
System: Mac OS X version 10.4.11 running on i386; MacRoman; en_US (nb)
Userdir: /Users/Dan/.netbeans/6.8

Similar Messages

  • My avast! antivirus software is identifying two Trojan viruses on my MacBookPro (Max OSX 10.7.5) that seem to be related to my Outlook for Mac.   An example of one of the file names is:  /.MobileBackups/Computer/2014-06-22-151618/Volume/Us

    My avast! antivirus software is identifying two Trojan viruses on my MacBookPro (Max OSX 10.7.5) that seem to be related to my Outlook for Mac.
    An example of one of the file names is:  /.MobileBackups/Computer/2014-06-22-151618/Volume/Users/stevekreitner/Documents /Microsoft User Data/Office 2011 Identities/Main Identity [Backed up 2014-06-22 12.48.35]/Data Records/Message Attachments/0T/0B/0M/9K/x26_9605.olk14MsgAttach
    Any suggestions on how to locate and remove these virsues?

    Actually, you can delete the entire Main Identity folder for Outlook that has a backup date in brackets [xxx] as part of its name since that was created when you used the Microsoft Database Utility to rebuild your email database. The folder that is only named Main Identity is the one in use. The other is now nothing.
    That should be true but sometimes users are in the wrong Identity. Outlook 'forgets' what is supposed to be the main default Identity and opens in the wrong one. You need to check the database file in the Identity to see date modified to know for sure.
    Typically, after rebuilding you delete the rebuild after a bit when you are satisfied with the rebuild. There should only be one Identity in the Identities folder. However, most users don't understand what to do with the copy that is made and never deletes anything.

  • Error when user hits Cancel in File Dialog Box

    Error 43 occurs when the user hits cancel about saving a file. I have a simple state machine, and when the user hits "RUN", the dialog box comes up. What if they change their mind? I have tried to use the "exception code" in the General Error Handler for Error 43 but I still end up with an error message or my VI stopping.
    Are there any templates for VIs that save your data only when you press a "SAVE" button, or either that don't freak out if you hit Cancel?
    p.s. I have LabVIEW 6.1.
    THANK YOU
    Lauren

    Hey, I got the same problem, Error 43 when cancel button is clicked, as I was going through one of the examples from "LabView for Everyone" book. I downloaded the Cancelled.vi example and constructed a case structure for it. However, the problem still occurs. When i ran highlight execution for the cancelled.vi example, as the cancel button is pressed the file dialog goes through and sends out boolean value of the cancel status. But for the file I'm working with, the boolean value is not send when cancel button is entered. File dialog sends out an error before the values are send out... Can someone explain? Thanks.
    Attachments:
    test.gif ‏14 KB
    test1.vi ‏48 KB

  • Trying to create a "Combine PDF" that also has a "save as" dialog box

    I am able to get the Combine PDF to work but it just saves them as randomly named files on the desktop that I then need to rename manually. Is there some way to make a "save as" dialog box pop up after combining the files? So if I had a bunch of PDFs it would go:
    Right Click on selected files > Automator > Combine PDF > Save As
    Is this possible?

    Set up you worflow as:
    Get Selected Finder Items
    Combine PDF Pages
    Open Images in Preview
    Run Applescript
    +copy this into the Applescript box+
    tell app "System Events"
    keystroke "s" using {command down, shift down}
    keystroke "d" using {command down}
    end tell
    I also like to add a Sort Finder Items after the Get Selected Finder Items.

  • How can I get rid of this dialogue box that seems to be related to Pixel Bender?

    I recently installed CS6 (not the cloud) on Windows 8 64 Bit.  On opening I get a dialogue box, which goes away if I click on "OK" after which CS6 loads.  I reinstalled, but I still get the dialogue box.  How can I fix it?

    right click>click "run as administrator".
    if that fails, run in compatibility mode for win 7.
    if that fails:
    uninstall ps cs6.
    run the cleaner, http://www.adobe.com/support/contact/cscleanertool.html
    restart your computer.
    reinstall ps cs6.

  • Getting a runtime error in block alv that field symbol has been assigned

    hi to all experts ,
    im getting a runtime error that field symbol has not been assigned in functionmodule reuse_alv_block_list_display
    i tried a lot to rectify the error ,im unable to do it thats i have posted here
    *& Report  ZHAI_ALV_BLOCK_LIST
    REPORT  ZHAI_ALV_BLOCK_LIST.
    type-pools:slis.
    tables:mara.
    DATA:BEGIN OF  IT_MARA OCCURS 0,
            MATNR LIKE MARA-MATNR,
            MBRSH LIKE MARA-MBRSH,
            MATKL LIKE MARA-MATKL,
            END OF IT_MARA.
    data: begin of IT_DESC OCCURS 0,
             MATNR like MAKT-MATNR,
             MAKTX like MAKT-MAKTX,
         end of IT_DESC.
    data: begin of IT_MARD occurs 0,
            MATNR like mard-matnr,
            WERKS  like  mard-werks,
            LGORT  like  mard-lgort,
            LABST like mard-labst,
          end of IT_MARD.
    data: IT_FCAT TYPE SLIS_T_FIELDCAT_ALV ,
          WA_FCAT LIKE LINE OF IT_FCAT,
          IT_FCAT1 type  slis_t_fieldcat_alv,
          WA_FCAT1 LIKE LINE OF IT_FCAT1,
          IT_FCAT2 TYPE SLIS_T_FIELDCAT_ALV,
          WA_FCAT2 LIKE LINE OF IT_FCAT2,
          wa_layout type  SLIS_LAYOUT_ALV,
          it_event type SLIS_T_EVENT,
          wa_event like line of it_event,
         wa_layout like line of it_layout,
          V_REPID LIKE SY-REPID.
    select-options:so_matnr for mara-matnr.
    start-of-selection.
    perform f_select_data.
    DEFINE ADD_CATALOGUE1.
    WA_FCAT-COL_POS = &1.
    WA_FCAT-fieldname = &2.
    WA_fcat-tabname = &3.
    wa_fcat-emphasize = &4.
    wa_fcat-ref_tabname = &5.
    APPEND WA_FCAT TO IT_FCAT.
    END-OF-DEFINITION.
    DEFINE ADD_CATALOGUE2.
    WA_FCAT1-COL_POS = &1.
    WA_FCAT1-fieldname = &2.
    WA_fcat1-tabname = &3.
    wa_fcat1-emphasize = &4.
    wa_fcat1-ref_tabname = &5.
    APPEND WA_FCAT1 TO IT_FCAT1.
    END-OF-DEFINITION.
    DEFINE ADD_CATALOGUE3.
    WA_FCAT2-COL_POS = &1.
    WA_FCAT2-fieldname = &2.
    WA_fcat2-tabname = &3.
    wa_fcat2-emphasize = &4.
    wa_fcat2-ref_tabname = &5.
    APPEND WA_FCAT2 TO IT_FCAT2.
    END-OF-DEFINITION.
    perform f_build_fcat.
    *perform f_build_fcat1.
    perform f_build_fcat2.
    PERFORM F_BUILD_LAYOUT.
    PERFORM F_BUILD_EVENTS.
    PERFORM F_BLOC_DISPLAY.
    *&      Form  f_select_data
    FORM f_select_data .
    select matnr
           mbrsh
           matkl
         from mara into  table it_mara where matnr
    in so_matnr.
    if it_mara[] is not initial.
    select matnr
           maktx
           from makt
           into   table it_desc
           for all entries in it_mara
           where matnr eq it_mara-matnr.
    endif.
    if it_desc[] is not initial.
    select matnr
           werks
           lgort
           labst
           from mard
           into  table it_mard
           for all entries in it_desc
           where matnr eq it_desc-matnr.
    endif.
    ENDFORM.                    " f_select_data
    *&      Form  f_build_fcat
    FORM f_build_fcat .
    ADD_CATALOGUE2:
    '1' 'MATNR' 'IT_MARA' 'C500' 'MARA',
    '2' 'MBRSH' 'IT_MARA' 'C600' 'MARA',
    '3' 'MATKL' 'IT_MARA' 'C300' 'MARA'.
    ENDFORM.                    " f_build_fcat
    **&      Form  f_build_fcat1
    FORM f_build_fcat1 .
    ADD_CATALOGUE1:
    '1' 'MATNR' 'IT_DESC' 'C500' 'MAKT',
    '2' 'MAKTX' 'IT_DESC' 'C600' 'MAKT'.
    ENDFORM.                    " f_build_fcat1
    *&      Form  f_build_fcat2
    FORM f_build_fcat2.
    ADD_CATALOGUE3:
    '1' 'MATNR' 'IT_MARD' 'C500' 'MARD',
    '2' 'WERKS' 'IT_MARD' 'C600' 'MARD',
    '3' 'LGORT' 'IT_MARD' 'C200' 'MARD',
    '4' 'LABST' 'IT_MARD' 'C300' 'MARD'.
    ENDFORM.                    " f_build_fcat2
    *&      Form  F_BLOC_DISPLAY
          text
    -->  p1        text
    <--  p2        text
    FORM F_BLOC_DISPLAY .
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
      EXPORTING
        I_CALLBACK_PROGRAM             = SY-REPID.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
      EXPORTING
        IS_LAYOUT                        = wa_layout
        IT_FIELDCAT                      = it_fcat
        I_TABNAME                        = 'IT_MARA'
        IT_EVENTS                        = it_event
      IT_SORT                          =
      I_TEXT                           = ' '
      TABLES
        T_OUTTAB                         = IT_MARA
    EXCEPTIONS
      PROGRAM_ERROR                    = 1
      MAXIMUM_OF_APPENDS_REACHED       = 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 'REUSE_ALV_BLOCK_LIST_APPEND'
      EXPORTING
        IS_LAYOUT                        = wa_layout
        IT_FIELDCAT                      = it_fcat1
        I_TABNAME                        = 'IT_DESC'
        IT_EVENTS                        = IT_EVENT
      IT_SORT                          =
      I_TEXT                           = ' '
      TABLES
        T_OUTTAB                         = IT_DESC
    EXCEPTIONS
      PROGRAM_ERROR                    = 1
      MAXIMUM_OF_APPENDS_REACHED       = 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 'REUSE_ALV_BLOCK_LIST_APPEND'
      EXPORTING
        IS_LAYOUT                        = wa_LAYOUT
        IT_FIELDCAT                      = IT_FCAT2
        I_TABNAME                        = 'IT_MARD'
        IT_EVENTS                        = IT_EVENT
      IT_SORT                          =
      I_TEXT                           = ' '
      TABLES
        T_OUTTAB                         = IT_MARD
    EXCEPTIONS
      PROGRAM_ERROR                    = 1
      MAXIMUM_OF_APPENDS_REACHED       = 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 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " F_BLOC_DISPLAY
    *&      Form  F_BUILD_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM F_BUILD_LAYOUT .
    wa_layout-edit = 'X'.
    wa_layout-window_titlebar = 'MOHAMMED ABDUL HAI'.
    wa_layout-zebra = 'X'.
    ENDFORM.                    " F_BUILD_LAYOUT
    *&      Form  F_BUILD_EVENTS
          text
    -->  p1        text
    <--  p2        text
    FORM F_BUILD_EVENTS .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
       I_LIST_TYPE           = 0
    IMPORTING
       ET_EVENTS             = IT_EVENT
    EXCEPTIONS
       LIST_TYPE_WRONG       = 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.
    SORT IT_EVENT BY NAME.
    READ TABLE it_event INTO wa_event WITH KEY NAME = 'TOP_OF_PAGE' bINARY
    SEArch.
    if sy-subrc eq 0.
    wa_event-form = 'F_TOP_OF_PAGE'.
    ENDIF.
    MODIFY IT_EVENT FROM WA_EVENT INDEX SY-TABIX TRANSPORTING FORM.
    READ TABLE IT_EVENT INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND' BINARY SEARCH.
    WA_EVENT-FORM = 'F_USER_COMMAND'.
    MODIFY IT_EVENT FROM wa_event INDEX SY-TABIX TRANSPORTING FORM.
    ENDFORM.                    " F_BUILD_EVENTS

    Hi,
    When does this runtime error occur? When displaying output (calling FM) or.....
    I copied your coding and made a few minor changes and It's working fine for my now:
    REPORT ZHAI_ALV_BLOCK_LIST.
    TYPE-POOLS:slis.
    TABLES:mara.
    DATA:BEGIN OF it_mara OCCURS 0,
    matnr LIKE mara-matnr,
    mbrsh LIKE mara-mbrsh,
    matkl LIKE mara-matkl,
    END OF it_mara.
    DATA: BEGIN OF it_desc OCCURS 0,
    matnr LIKE makt-matnr,
    maktx LIKE makt-maktx,
    END OF it_desc.
    DATA: BEGIN OF it_mard OCCURS 0,
    matnr LIKE mard-matnr,
    werks LIKE mard-werks,
    lgort LIKE mard-lgort,
    labst LIKE mard-labst,
    END OF it_mard.
    DATA: it_fcat TYPE slis_t_fieldcat_alv ,
          wa_fcat LIKE LINE OF it_fcat,
          it_fcat1 TYPE slis_t_fieldcat_alv,
          wa_fcat1 LIKE LINE OF it_fcat1,
          it_fcat2 TYPE slis_t_fieldcat_alv,
          wa_fcat2 LIKE LINE OF it_fcat2,
          wa_layout TYPE slis_layout_alv,
          it_event TYPE slis_t_event,
          wa_event LIKE LINE OF it_event,
    *      wa_layout like line of it_layout,
    v_repid LIKE sy-repid.
    SELECT-OPTIONS:so_matnr FOR mara-matnr.
    START-OF-SELECTION.
      PERFORM f_select_data.
      DEFINE add_catalogue1.
        wa_fcat-col_pos = &1.
        wa_fcat-fieldname = &2.
        wa_fcat-tabname = &3.
        wa_fcat-emphasize = &4.
        wa_fcat-ref_tabname = &5.
        append wa_fcat to it_fcat.
      END-OF-DEFINITION.
      DEFINE add_catalogue2.
        wa_fcat1-col_pos = &1.
        wa_fcat1-fieldname = &2.
        wa_fcat1-tabname = &3.
        wa_fcat1-emphasize = &4.
        wa_fcat1-ref_tabname = &5.
        append wa_fcat1 to it_fcat1.
      END-OF-DEFINITION.
      DEFINE add_catalogue3.
        wa_fcat2-col_pos = &1.
        wa_fcat2-fieldname = &2.
        wa_fcat2-tabname = &3.
        wa_fcat2-emphasize = &4.
        wa_fcat2-ref_tabname = &5.
        append wa_fcat2 to it_fcat2.
      END-OF-DEFINITION.
      PERFORM f_build_fcat.
      PERFORM f_build_fcat1.
      PERFORM f_build_fcat2.
      PERFORM f_build_layout.
      PERFORM f_build_events.
      PERFORM f_bloc_display.
    *& Form f_select_data
    FORM f_select_data .
      SELECT matnr
      mbrsh
      matkl
      FROM mara INTO TABLE it_mara WHERE matnr
      IN so_matnr.
      IF it_mara[] IS NOT INITIAL.
        SELECT matnr
        maktx
        FROM makt
        INTO TABLE it_desc
        FOR ALL ENTRIES IN it_mara
        WHERE matnr EQ it_mara-matnr.
      ENDIF.
      IF it_desc[] IS NOT INITIAL.
        SELECT matnr
        werks
        lgort
        labst
        FROM mard
        INTO TABLE it_mard
        FOR ALL ENTRIES IN it_desc
        WHERE matnr EQ it_desc-matnr.
      ENDIF.
    ENDFORM. " f_select_data
    *& Form f_build_fcat
    FORM f_build_fcat .
      add_catalogue2:
      '1' 'MATNR' 'IT_MARA' 'C500' 'MARA',
      '2' 'MBRSH' 'IT_MARA' 'C600' 'MARA',
      '3' 'MATKL' 'IT_MARA' 'C300' 'MARA'.
    ENDFORM. " f_build_fcat
    **& Form f_build_fcat1
    FORM f_build_fcat1 .
      add_catalogue1:
      '1' 'MATNR' 'IT_DESC' 'C500' 'MAKT',
      '2' 'MAKTX' 'IT_DESC' 'C600' 'MAKT'.
    ENDFORM. " f_build_fcat1
    *& Form f_build_fcat2
    FORM f_build_fcat2.
      add_catalogue3:
      '1' 'MATNR' 'IT_MARD' 'C500' 'MARD',
      '2' 'WERKS' 'IT_MARD' 'C600' 'MARD',
      '3' 'LGORT' 'IT_MARD' 'C200' 'MARD',
      '4' 'LABST' 'IT_MARD' 'C300' 'MARD'.
    ENDFORM. " f_build_fcat2
    *& Form F_BLOC_DISPLAY
    * text
    FORM f_bloc_display .
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          i_callback_program = sy-repid.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
      EXPORTING
      is_layout = wa_layout
      it_fieldcat = it_fcat1
      i_tabname = 'IT_MARA'
      it_events = it_event
    *IT_SORT =
    *I_TEXT =
      TABLES
      t_outtab = it_mara
      EXCEPTIONS
      program_error = 1
      maximum_of_appends_reached = 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 'REUSE_ALV_BLOCK_LIST_APPEND'
      EXPORTING
      is_layout = wa_layout
      it_fieldcat = it_fcat1
      i_tabname = 'IT_DESC'
      it_events = it_event
    *IT_SORT =
    *I_TEXT =
      TABLES
      t_outtab = it_desc
      EXCEPTIONS
      program_error = 1
      maximum_of_appends_reached = 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 'REUSE_ALV_BLOCK_LIST_APPEND'
      EXPORTING
      is_layout = wa_layout
      it_fieldcat = it_fcat2
      i_tabname = 'IT_MARD'
      it_events = it_event
    *IT_SORT =
    *I_TEXT = ' '
      TABLES
      t_outtab = it_mard
      EXCEPTIONS
      program_error = 1
      maximum_of_appends_reached = 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 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM. " F_BLOC_DISPLAY
    *& Form F_BUILD_LAYOUT
    FORM f_build_layout .
      wa_layout-edit = 'X'.
      wa_layout-window_titlebar = 'MOHAMMED ABDUL HAI'.
      wa_layout-zebra = 'X'.
    ENDFORM. " F_BUILD_LAYOUT
    *& Form F_BUILD_EVENTS
    FORM f_build_events .
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 0
        IMPORTING
          et_events       = it_event
        EXCEPTIONS
          list_type_wrong = 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.
      SORT it_event BY name.
    READ TABLE it_event INTO wa_event WITH KEY name = 'TOP_OF_PAGE' BINARY
    SEARCH.
      IF sy-subrc EQ 0.
        wa_event-form = 'F_TOP_OF_PAGE'.
      ENDIF.
      MODIFY it_event FROM wa_event INDEX sy-tabix TRANSPORTING form.
    READ TABLE it_event INTO wa_event WITH KEY name = 'USER_COMMAND' BINARY
    SEARCH.
      wa_event-form = 'F_USER_COMMAND'.
      MODIFY it_event FROM wa_event INDEX sy-tabix TRANSPORTING form.
    ENDFORM. " F_BUILD_EVENTS

  • Windows 7 Error Message: Microsoft Visual C++ Runtime Library Runtime Error.... Followed by Windows Explorer Has Stopped Working

    I am running a system that is not quite 6 months old, which is loaded with Windows 7 Professional, 64 bit. 
    The error message that I get is as follows: Microsoft Visual C++ Runtime Library.  Runtime error!  Program C:\windows\Explorer.exe.  This application has requested the runtime to terminate it in an unusual way.  Please contact the
    application's support team for more information.
    Once I respond to that message, I get a message that says "Windows Explorer has stopped working.  Then I get "Windows Explorer is re-starting"
    I don't know if the next event is related - today, immediately after getting the message above, I got a pop-up that said "An update to Adobe Flash Player is available" - and I am given the option of installing it or not.  Today, I did not install
    the update - although I recall having accepted this update in the past (again, I don't know if the two situations always occur together).
    Is there some help I can be provided to correct this problem?  I have looked at several related topics in this database, but have not found anything that seems to directly relate to my question. 
       Thanks!    Mark

    Hi,
    Did you try to reinstall the Microsoft Visual C++ 2008 Redistributable
    Package (x86) to check this issue?
    What about to boot the computer in safe mode and Clean Boot to test this issue?
    Regards,
    Vincent Wang
    TechNet Community Support

  • Runtime Error in Restorewiz.exe

    Hi -
    Can anyone offer a solution for the following error:
    Runtime Error!
    Program:c:\\Windows\SMINST\RESTOREWIZ.EXE
    The application has requested the Runtime to terminate in an unusual way.
    System crashed and I really need to recover my files but I can't seem to find a way around this error.
    Thanks much!!!

    I know this is an old post, and this may not work for everyone, but I wanted to add the solution that allowed me to get past a runtime error that may or may not be related...
    I had to run a checkdisk on the entire hard drive (all partitions including recovery). The checkdisk utility is included on most Windows recovery CDs and is a command-line program.
    In my case, the hard drive was failing, so I cloned all readable data to a new drive and then could not run the recovery, even though the recovery sector of the hard drive copied with no data loss using Clonezilla.
    Using checkdisk, I had to force-repair, which means some data loss and losing some files, but since I was attempting to do a full recovery anyway, it didn't really matter too much.
    If anyone has this issue, look up some guides on checkdisk online, my syntax (** which MAY CAUSE DATA LOSS **) was:
    *** MAY CAUSE DATA LOSS***
    chkdsk /R /F /I D:
    chkdsk /R /F /I C:
    chkdsk /R /F /I E:
    *** MAY CAUSE DATA LOSS***
    I had to do one checkdisk for each partition (C: - boot, D: - Windows install, E: - Recovery) of my drive. It took nearly nine hours for the whole drive to complete as many indexes were broken after cloning the bad data to my new drive.
    That said, once doing the checkdisk options, I no longer received the C++ runtime error.
    I hope this helps someone!

  • Handling runtime errors

    We have an AS3 application made in Flash Builder that I would like to compile such that the script continues to execute after encountering a runtime error.
    We made a simple AS3 test movie and compiled it with Flash CS3 and then Flash Builder.
    The movie tries to evaluate a variable that does not exist, and then puts a yellow square on the stage.
    Here is the core of the code:
    if(this["d"] == 1){ } // this line throws a runtime error because d is not declared.
    var s:Sprite = new Sprite();
    s.graphics.beginFill(0xFFCC00);
    s.graphics.drawRect(0,0,200,200);
    addChild(s);
    In the movie compiled in CS3 (with this code in a frame on the timeline) the runtime error seems to be ignored - and the square appears.
    In the movie compiled in FB with this code wrapped in a simple Class, or if this class is used as the document class for a CS3 movie - then the resulting swf throws the runtime error and does not add the sprite to the stage.
    Here is the simple Class:
    package
    import flash.display.MovieClip;
    import flash.display.Sprite;
    public class ErrorTest extends MovieClip
    public function ErrorTest()
    if(this["d"] == 1){ } // this line throws a runtime error because d is not declared.
    var s:Sprite = new Sprite();
    s.graphics.beginFill(0xFFCC00);
    s.graphics.drawRect(0,0,200,200);
    addChild(s);
    Why does it ignore the error when I just publish this code on the timeline?
    How can we compile a swf that will emulate this behavior using class files?
    Does the timeline code extend a class that ignores runtime errors?
    We read this http://livedocs.adobe.com/flex/3/html/help.html?content=11_Handling_er rors_03.html and it seems that the description in the documentation is inaccurate as is pointed out in the comment:
    The following statement regarding uncaught exceptions seems to be either inaccurate or misleading: 
    "At run time, Flash Player ignores, by design, uncaught errors and tries to continue playing if the error doesn't stop the current SWF file"    
    Script execution does NOT continue when hitting an error - even in a non-debug player.  Previous versions of AS/Flash Player used to continue.  For the non-debug Player, this is arguably a better approach as it prevents small errors from bringing down an entire block of script.
    Our experience confirms this.  Is there any way to globally specify that the application should continue on uncaught errors?
    We saw this class: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/events/UncaughtErrorEvents.html
    It seems to be only available in 10.1 - which is higher than we would like to target.

    Thanks Anirudh,
    In Flash Builder, try doing
    if(this.hasOwnProperty("d") && this["d"] == 1){ }
    I was just throwing this error as an example of throwing an error, and not looking to fix it in particular.  We have a large and complex application which is used by many people.  Unfortunately, some of our users are experiencing runtime errors that are stopping the execution of the script - and we do not know exactly where those are.  They may be easy to fix once we can locate them. Unfortunately, we have not been able to reproduce them locally.
    If the flash player encounters an error in the constructor of the sprite/movieclip which is the main class, it will not be able to continue. If this error had occurred in an event handler, then you'd be able to continue.
    Can you tell us more about the rules of uncaught runtime error handling? For example: when I compile this code - the sprite is not shown on the stage and the second trace is not executed - despite having moved the code to an event handler function.
    package
    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.TimerEvent;
    import flash.utils.Timer;
    import org.osmf.events.TimeEvent;
    public class ErrorTest extends MovieClip
    public function ErrorTest()
    var t:Timer = new Timer(100, 1);
    t.addEventListener(TimerEvent.TIMER, eventHandler);
    t.start();
    protected function eventHandler(e:Event):void {
    trace("1");
    if(this["d"] == 1){}
    trace("2");
    var s:Sprite = new Sprite();
    s.graphics.beginFill(0xFFCC00);
    s.graphics.drawRect(0,0,200,200);
    addChild(s);
    I'd like to publish our application such that it would ignore all run time errors. Are there any compiler or other options to achieve that.
    Ideally we'd like to collate the errors such that end users could open a hidden text field and copy the error messages and send them to us.

  • Runtime Error C++ etc..

    Hi. Frustrated.
    Ive been using Premier Elements 11 for sometime now. Maybe 6 months. All has been good. Loaded the program onto my new computer, all has been better. http://www.toshiba.com/us/computers/laptops/qosmio/X70/X75-A7298?src=ANEM&cm_mmc=SF_Google PLS&CAWELAID=400007100000000331&catargetid=400007100000000853&cadevice=c&cagpspn=pla
    Its a very good machine so things have been really slick.
    until this morning. Dreaded runtime error. Seems only to be when I click on the effects link at the bottom. Ive tried all i can think of. Everything is updated. Graphics card. Flash. every other program that might have an input.
    I went through a bunch of toshiba updates.
    The program wa working fine on this pc for about 6 weeks. One thing i thought it might be is i have just installed a wireless mouse, but even with this disabled the problem persists. And the program has worked with this mouse in the past.
    Not sure where to look.
    i know the issue is probably windows based, but hoped someone here might have a clue of what to try next.
    Many thanks, in advance.
    Looking forward to any replies.

    cappedup
    1. I tried to rename the preferences file, but, and this is weird, i couldnt find a folder named 'application data'. Searched my whole PC, a few times. Not really sure what thats about, but it was a dead end, nonetheless.
    Go the path in Windows 7, 8, or 8.1 64 bit
    Local Disc C
    Users
    Owner
    AppData
    Roaming
    Adobe
    Premiere Elements Folder
    11.0 Folder
    and in the 11.0 Folder is the Adobe Premiere Elements Prefs file that you delete. The key is to be working with Folder Option Show Hidden Files, Folders, and Drive active so that you can see the complete path.
    If the above does not help, then delete the whole 11.0 Folder in which the Adobe Premiere Elements Prefs file exists.
    Another important aspect of your presenation is "Is this problem with just this one project or does it apply to new projects as well?"
    If it applies to just this one project, then we need to dig deeper into this project.
    Please review and then we can decide what next.
    Thank you.
    ATR

  • Data Quality Runtime Error

    Hi all,
    Not sure if this is the right place but it seems the closest.
    I have installed Oracle Data Quality on a Windows 7 64-bit machine but every time I try to run the Profiler I get a C++ runtime error which when dismissed reveals an ODQ alert box that says a ReadProcessMemory or WriteProcessMemory did not complete.
    I installed the Linux version fine on VirtualBox (same machine 64-bit) but wanted to put this on my Windows Host so I could use the client.
    Has anyone encountered similar or does anyone have any ideas? I do not know where to start. Have tried a reinstall from a fresh download but get the same problem. The Metabase Server Admin tool works OK.
    Happy to supply any other info.
    If there's an ODQ forum please let me know and I will move.
    Thanks
    Dan

    Change the compatibility mode to windows XP service pack 2. I have this installed on a windows 2008 64bit server had to do that in order to get the metabase admin and the control center to work.

  • Help with a runtime error

    hey guys im getting a runtime error that i can't figure out.
    this is my code
    import java.io.*;
    public class InputOutput
         public static void main(String[] args) throws IOException
              int charCount=0,
                   wordCount=0,
                   nonCharCount=0,
                   lineCount=0;
              BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
              String fileName,outputFile, line;
              do
                   System.out.println("Enter input file name.");
                   fileName = input.readLine();
                   System.out.println("Enter output file name.");
                   outputFile = input.readLine();
                   char [] charArray = new char [26];
                   charArray[0] = 'a';
                   for (int i=1; i<charArray.length; i++)
                        charArray[i] += 'a' + i;
                   int [] countArray = new int [26];
                   try
                        BufferedReader inputFile = new BufferedReader(new FileReader(fileName),1);
                        PrintWriter output = new PrintWriter(new FileWriter(outputFile));
                        line = inputFile.readLine();
                        while(line!=null)
                             String word = new String();
                             char ch;
                             for(int i=1; i<=line.length(); i++)
                                  line = line.toLowerCase();
                                  ch = line.charAt(i);
                                  charCount++;
                                  if(ch>='a' && ch<='z')
                                       word +=ch;
                                       int index = (int)ch - (int)'a';
                                       countArray[index]++;
                                  else
                                       nonCharCount++;
                                       if(word!= "")
                                            output.println(word);
                                            word = "";
                                            wordCount++;
                             line = inputFile.readLine();
                             lineCount++;
                        output.println("Total number of words: "+wordCount);
                        output.println("Total number of lines: "+lineCount);
                        output.println("Total number of characters: "+charCount);
                        output.println("Total number of non-letter characters: "+nonCharCount);
                        for(int i=0; i<charArray.length; i++)
                             output.println(charArray[i] + " " + countArray);
                        output.close();
                        System.exit(0);
                        catch(IOException e)
                             System.out.println(e + ", try again");
                   while(true);
    this is the error that i am getting
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 35
         at java.lang.String.charAt(String.java:460)
         at InputOutput.main(InputOutput.java:52)

    Hi,
    The error is at line 52. You are trying to index an array with an index that is greater than the size of the array.
    /Kaj

  • Runtime error(Time limit exceeds)after executing select query

    Dear experts, whenever i executing the select query in this zprogram i am getting runtime error that time limit exceeds.i am using inner join and into table.after that also i am geetting error. how can i resolve it??
    SELECT LIKP~VBELN LIKP~WADAT_IST LIKP~VEHICLE_NO LIKP~TRNAME
              LIKP~VEHI_TYPE LIKP~LR_NO LIKP~ANZPK LIKP~W_BILL_NO
              LIKP~SEALNO1                                       " Seal NO1
              LIKP~SEALNO2                                       " Seal NO2
              LIPS~LFIMG
              VBRP~VBELN VBRP~VGBEL VBRP~MATNR VBRP~AUBEL VBRP~FKIMG
              VBAK~AUART
              VBRK~FKART VBRK~KNUMV VBRK~FKSTO
              FROM LIKP INNER JOIN LIPS ON LIKP~VBELN EQ LIPS~VBELN
                        INNER JOIN VBRP ON LIKP~VBELN EQ VBRP~VGBEL
                        INNER JOIN VBAK ON VBRP~AUBEL EQ VBAK~VBELN
                        INNER JOIN VBRK ON VBRP~VBELN EQ VBRK~VBELN
              INTO TABLE  I_FINAL_TEMP
              WHERE LIKP~VSTEL = '5100' AND
                 LIKP~WADAT_IST IN S_WADAT  AND
                    VBRP~AUBEL IN S_AUBEL AND
                    VBAK~AUART IN ('ZJOB','ZOR') AND
                    VBRK~FKART IN S_FKART AND
    *               VBRK~FKART IN ('ZF8','ZF2','ZS1') AND
                    VBRK~FKSTO NE 'X'.
    When I am debugging the select query.the cursor will not go to next step.after 15-20 minutes i am getting runtime error(time limit exceeds).
    how can i resolve it for that scenario??

    Looks like whole SD flow you trying to fetch in single query
    First you check the database statistic of these table are upto date in system ( Check with basis team )
    if this query was working fine earlier.
    Most of table involved are huge volume tables which queried with any primary key
    Any secondary index on created for LIKP on VSTEL WADET ?
    My suggestion would be split the selection queries and make use of primary or existing secondary index to fetch the desired result if possible. For testing purpose split the queries and find which is taking more time and which needs index by taking squel trace in ST05.
    Also take ST05 trace of this query in debugger ( New debugger -> special tool -> trace > ST05/SE30)

  • Whenever I try to print a pdf document I get a message saying there  a runtime error, I have adobe r

    Whenever I try to print a PDF document, I get a message indicating there is a runtime error, and for me to contact you. My system is Adobe reader 9.3

    A runtime error is a computer error that appears in the form  of a message box consisting of a particular code along with its  corresponding definitions. Usually, a user will notice that the computer  becomes noticeably slow before a runtime error appears.
    After the runtime error message has been displayed and closed, the software that shows this error would  normally close or freeze. In some cases, the operating system will  reboot.
    A wide variety of errors cause these problems. These include:
    conflicts between the TSR (Terminate and Stay Resident Program)
    currently running applications
    software issues
    memory problems
    and harmful applications such as computer viruses
    With this, the procedures necessary to correct this type of error  differs from one case to another. If the runtime error you are  experiencing were caused by a TSR then you can simply use the "end task"  function of the Task Manager.
    If you consequently encounter a runtime error  that is persistent, the software that displays the error message has  certain issues and problems. You can resolve this problem by visiting  the website of the software's developer and downloading and installing  all the updates and patches needed for the smooth running of the  software. However, if you have already installed all updates and patches  and the runtime error message still appears, you can opt to uninstall  and reinstall the program.
    Another type of runtime error is usually caused by memory issues. In  this case, it is a good idea to first contact the developer of the  application that caused the error message. More often than not, they can  provide you with a possible set of solutions. But if their given  solutions cannot resolve the issues, you need to contact the  manufacturer of your computer or motherboard and ask for a technician or  someone from the company who can assess your hardware.
    A different type of runtime error is caused by harmful programs such  as viruses and other malicious processes. These harmful programs are  capable of altering the computer's settings. With this, they are very  much capable of generating runtime errors. In order to prevent runtime  errors that are caused by such malicious programs, you need to  frequently update your antivirus software. If your PC does  not have a good software security program, you need to install one and scan your computer for possible threats  to the stability of your system and the security of your private data.
    What all that means is: There is something in the Adobe Reader that is not functioning properly once it is opened.
    The best way to resolve this is to:
    1. Uninstall Reader (using the Control Panel).
    2. Download and install the Windows Installer Cleanup Utility (msicuu2.exe)
    3. Run the Windows Installer Cleanup Utility to remove the installer for Reader 9 (and previous versions if they are still installed).
    4. Download and install a new copy of Reader, and update it (if required) to 9.3.1.

  • How do I find the "Preferences" file within Elements 10 to fix the runtime error?  I can't find it any where

    I am trying to fix the runtime error that occurs when I open the Photoshop Elements 10 editor and shuts down the program.  I am using the instructions found on the abode website here:
    http://helpx.adobe.com/x-productkb/global/troubleshoot-c-runtime-errors-products.html
    There are no good instructions telling me what the Preferences file is named or how to find it. If someone could help that would be great.

    If you are using Windows 7 then the preference file that needs to be renamed is at this location:
    <C:\Users\USERNAME\AppData\Roaming\Adobe\Photoshop Elements\10.0\Editor>
    In the above path, replace USERNAME with your windows profile name  which could be something like jblogetc or whatever.  Also the preference file is called: Adobe Photoshop Elements 10 Prefs.psp and this needs to be renamed to Adobe Photoshop Elements 10 Prefs.old
    Once this done, restart PSE 10 and then see if it works.

Maybe you are looking for

  • Color is off when viewing pdfs in reader

    I created a pdf of some 4 color art for a client. When other people in my department viewed it on their monitors, the color was muted and not true. Can anyone suggest why this may be?? My curiosity is that maybe their monitors are not as claibrated,

  • SIP Invite change for anonymous calls

    I noticed a change in IOS Gateways in how it deals with anonymous calls.  Anonymous calls in version 12.4(25g) generates an SIP INVITE: From: "anonymous" <sip:[email protected]> A anonymous calls on version 15.1(4)M8 generates a SIP INVITE: From: "an

  • Exchange 2007 to Exchange 2010 Transition

    I am in the process of transitioning a client from Exchange 2007 to 2010(clients are XP/Win 7 with Outlook 2007/Outlook 2010). I know if have to extend the schema for Exchange 2010 and there will be co-existence throughout the process. At this point,

  • Brush size acting up

    Hello guys this is a question I want to ask to you all. when I changed the brush size and paint it looks bigger/smaller but the cursor itself stays the same width other times as the brush got bigger the circle got bigger now its not so its hard to se

  • Without api

    hello guys, i am working in java, as u all know java uses standard api for everything i want some piece of code for say anything like opening a text file and reading its contents without using api means the coder will code from beginning... thanks.