Help me with exit

Hi,
When I go to SE18 and give ME_PROCESS_PO_CUST in the Definition Name Input Box and pressed Display I got the below msg.
'BADI Definition ME_PROCESS_PO_CUST doesn't exist'
Iam using 4.6C.
Is it my work to create the Definition.
Pls provide me with Documentation for the BADI ME_PROCESS_PO_CUST and ME_PROCESS_REQ_CUST or method PROCESS_ITEM.
Further more within this method I need to check
Account Assignment Category, Cost Center Category, External Tax Procedure and Material Group and based on the values I need to update Material (MATNR) and TXZ01(Short Text) fields.
Kindly confirm whether I can.

Could you give me any other BADI or user exit satisfying the same requirement.

Similar Messages

  • Please help me with user-exits or baids for TCode : FOE2 & FOE1

    Hi  Experts
    Please help me with user-exits or baids for TCode : FOE2 & FOE1.
    I found these but not picking values from VIMI01,VIOB03 and VIOB41.
    User-exits
    FVCH0001                                CH-specific enhancements: Esp. POR
    ISRE0001                                Determine bank procedure account no.
    ISRE0002                                IPD reporting data retrieval
    Business Add-in
    FVD_HANDLE_FORMULA                      Processing of Condition Formulas

    Hi,
    ASk your basis regarding the CI_CSKB table active issue, and first of all i dont see any table with the name CI_CSKB.
    And check this exit-COOMKS03 whether it works for your screen exits.
    Cheers!!
    VEnk@
    Edited by: Venkat Reddy on Nov 4, 2008 5:59 PM

  • An error encounter on test devise (real devise) i.e "apple mach -o linker error linker command failed with exit code 1", please any body help me to solve the problem

    Hello, I am using tesseract api in my app, which run perfectly on simulator but on test devise (real devise) it is showing an error i.e "apple mach -o linker error linker command failed with exit code 1", please any body help me to solve the problem

    if you can't compile the webutil.pll in your forms developer you need to set the forms_builder_classpath in you windows registry. You have to add the frmwebutil.jar,jacob.jar to the registry key. The configuration files you mention are for running the forms.

  • Help required with User exit logic

    Hi gurus,
    Please help me with the logic I wrote for the user exit for a PP Work Center View extract structure. Here is the details of the add on fields: VGW01, VGW02, VGW03, STEUS(from table PLPO); DataSource: 2LIS_04_P_ARBPL,
    data: l_s_pp1 like MC04P_0ARB(extract structure of 2LIS_04_P_ARBPL),
    l_tabix like sy-tabix,
    lv_VGW01 like PLPO-VGW01.
    lv_VGW02 like PLPO-VGW02.
    lv_VGW03 like PLPO-VGW03.
    lv_STEUS like PLPO-STEUS.
    tables : PLPO.
    case i_datasource.
    when '2LIS_04_P_ARBPL'.
    loop at c_t_data into l_s_pp1.
    select single vgw01into lv_vgw01
    from PLPO
    where field = l_s_pp1-field.
    if sy-subrc = 0.
    l_s_pp-zzvgw01 = lv_vgw01.
    l_s_pp-zzvgw02 = lv_vgw02.
    l_s_pp-zzvgw03 = lv_vgw03.
    l_s_pp-zzsteus  = lv_steus.
    endif.
    modify c_t_data from l_s_pp1 index l_tabix.
    endloop.
    Any additional comments welcome. Thanks in advance.

    Hi,
    Try coding as per the below code
    case i_datasource.
      When '2LIS_04_P_ARBPL'.
      DATA: lt_data TYPE TABLE OF MC04P_0ARB.
      FIELD-SYMBOLS: <ls_data> TYPE MC04P_0ARB.
    Internal table for
      TYPES:
            BEGIN OF ty_tbl1,
                     lv_VGW01 TYPE PLPO-VGW01,
                     lv_VGW02 TYPE PLPO-VGW02,
                     lv_VGW03 TYPE PLPO-VGW03,
                     l_bmsch  TYPE XXXX-XXXX,
                     l_plnnr  TYPE XXXX-XXXX
                     l_datuv  TYPE XXXX-XXXX
                     l_aennr  TYPE XXXX-XXXX
                     l_plnkn  TYPE XXXX-XXXX
                     l_plnal  TYPE XXXX-XXXX
            END OF ty_tbl1.
      DATA:
             lt_tb1 type standard table of ty_tbq,
             ls_tb1 type ty_tb1.
      lt_data[] = c_t_data[].
    Read data into internal memory using jOins
      select aVGW01 aVGW02 aVGW02 aVGW02 bbmsch bplnnr bdatuv baennr bplnkn bplnal into into  CORRESPONDING FIELDS OF TABLE
      lt_tb1 from PLPO as a innerjoin XXXX as b where aXXXX=bXXXX.        
    use the internal table to get the data to the enhaced fileds
    LOOP AT lt_data ASSIGNING <ls_data>.
        read table lt_tb1 into ls_tb1
             with key XXXXX = <ls_data>-XXXX .
        if sy-subrc eq 0.
          <ls_data>-lV_VGW01 = ls_tb1-lv_VGW01,
          <ls_data>-lV_VGW02 = ls_tb1-lv_VGW02,
          <ls_data>-lV_VGW03 = ls_tb1-lv_VGW03,
          <ls_data>-bmsch    = ls_tb1-bmsch,
          <ls_data>-plnnr    = ls_tb1-plnnr,
          <ls_data>-datuv    = ls_tb1-datuv,
          <ls_data>-aennr    = ls_tb1-aennr,
          <ls_data>-plnkn    = ls_tb1-plnkn,
          <ls_data>-pln1l    = ls_tb1-plnal.
          MODIFY lt_data FROM <ls_data>.
        endif.
      ENDLOOP.
      REFRESH c_t_data.
      c_t_data[] = lt_data[].
    Note that the code is not written with the exact fields. Change the fields where necessary(also i have joined only 2 tables if needs to be joind form more than 2  table change the join statement accordingly).
    Thanks,
    Nagarjuna
    Edited by: Nagarjuna Reddy on Oct 20, 2011 3:39 AM

  • HELP!! Process exited with exit code 128.

    Hi all,
    I am using JDeveloper 10G to develop a struts project. I use the struts-tiles.tld to construct the layout.
    &lt;tiles:insert page="classicLayout.jsp" flush="true"&gt;
    &lt;tiles:put name="title" value="User and Assigned Role" /&gt;
    &lt;tiles:put name="header" value="menuTemplate.jsp" /&gt;
    &lt;tiles:put name="menu" value="TestPoint.jsp" /&gt;
    &lt;tiles:put name="body" value="ARM001800.jsp" /&gt;
    &lt;tiles:put name="footer" value="DebugPage.jsp" /&gt;
    &lt;/tiles:insert&gt;
    However, when I run the project, then the OC4J Server terminated with this error code : Process exited with exit code 128.
    What happen??
    PS: I tried to remove the last 2 tags: body and footer. The Server did not terminate, but with some exceptions which related to tiles library.

    This type of error may occur because of developers mistake.
    This error occurs when any function is called recursively in a loop.
    The server calls the same function again and again in a loop and hence the server goes in infinite loop. This gives the error "Process exited with exit code 128".
    You need to check your code thoroughly for such mistake.
    Nital.
    i-engineering.com

  • Please help: Utility used to install the update failed with exit code {0}.

    Hi,
    I admit to being a relative newbie at Solaris 10 administration, so please exercise forbearance on my behalf.
    I have just installed Solaris 10 11/06 on my laptop x86. Everything went fairly smoothly. I used the Installation Check Tool 1.2 to decide if my machine was adequate to run the OS and with the exception of a NIC driver, it was. I downloaded the sfe driver and configured networking and it seems to work exceptionally well. However, when I run Update Manager in JDS (the only way I know how to run it), it fails to update some of the packages. Sometimes, if I retry the same packages, sometimes it will eventually work. But it keeps failing with the following error on a consistent basis over the last several days:
    Utility used to install the update failed with exit code {0}.
    I hunted around on the web and the results were not promising. Is there a log somewhere that will give me the actual error or do y'all know of a quick fix.
    Thanks,
    Will

    That is strange indeed, could you try downloading and
    applying the unsigned zip to see if that works?The problem persits:
    # patchadd -M /root/119116/
    Validating patches...
    Loading patches installed on the system...
    Done!
    Loading patches requested to install.
    Done!
    Checking patches that you specified for installation.
    Done!
    Approved patches will be installed in this order:
    119116-22
    Preparing checklist for non-global zone check...
    Checking non-global zones...
    Cannot open pkginfo file //var/sadm/pkg/.save.SUNWhea/pkginfo
    Non-global zone check failed. No change made to the System.
    Patchadd exiting.

  • Error while running a OA framework Page  Process exited with exit code 1.

    Hi all,
    I downloaded the Patch 4573517 from Metalink for JDEV with OA extension release 11i.I followed all the instruction of the setup init and installed the Jdev,also mytutorial pages got compiled successfully,but when i trie dto run the page
    Run > Run test_fwktutorial.jsp from the main menu.
    it gives me error.The error is as follows
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\D drive\OA_2008\jdevbin\jdk\bin\javaw.exe -client -classpath C:\D drive\OA_2008\jdevbin\j2ee\home\oc4j.jar;C:\D drive\OA_2008\jdevbin\jdev\lib\jdev-oc4j.jar -Xbootclasspath/p:C:\D drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\D drive\OA_2008\jdevbin\jdev\appslibrt\nls_charset12.zip -DFND_JDBC_STMT_CACHE_SIZE=200 -DCACHENODBINIT=true -DRUN_FROM_JDEV=true -mx256m -Doracle.j2ee.dont.use.memory.archive=false -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 com.evermind.server.OC4JServer -config C:\D drive\OA_2008\jdevhome\jdev\system9.0.3.5.1437\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    java.lang.NoClassDefFoundError: drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14/jar;C:\D
    Exception in thread "main"
    Process exited with exit code 1.
    I am not understanding why it is going in exception.One reason which i doubthere is the line
    java.lang.NoClassDefFoundError: drive\OA_2008\jdevbin\jdev\appslibrt\ojdbc14/jar;C:\D
    here in this line the last word is ojdbc14/jar,i think it should have been ojdbc14.jar.
    Can any body please help me out on how to correct this problem.Thanks
    Manish

    Manish,
    You should ask on the OA Framework Forum.
    john

  • Can someone pls help me with this code

    The method createScreen() creates the first screen wherein the user makes a selection if he wants all the data ,in a range or single data.The problem comes in when the user makes a selection of single.that then displays the singleScreen() method.Then the user has to input a key data like date or invoice no on the basis of which all the information for that set of data is selected.Now if the user inputs a wrong key that does not exist for the first time the program says invalid entry of data,after u click ok on the option pane it prompts him to enter the data again.But since then whenever the user inputs wrong data the program says wrong data but after displaying the singlescreen again does not wait for input from the user it again flashes the option pane with the invalid entry message.and this goes on doubling everytime the user inputs wrong data.the second wrong entry of data flashes the error message twice,the third wrong entry flashes the option pane message 4 times and so on.What actually happens is it does not wait at the singlescreen() for user to input data ,it straight goes into displaying the JOptionPane message for wrong data entry so we have to click the optiion pane twice,four times and so on.
    Can someone pls help me with this!!!!!!!!!
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import java.util.*;
    public class MainMenu extends JFrame implements ActionListener,ItemListener{
    //class     
         FileReaderDemo1 fd=new FileReaderDemo1();
         FileReaderDemo1 fr;
         Swing1Win sw;
    //primary
         int monthkey=1,counter=0;
         boolean flag=false,splitflag=false;
         String selection,monthselection,dateselection="01",yearselection="00",s,searchcriteria="By Date",datekey,smonthkey,invoiceno;
    //arrays
         String singlesearcharray[];
         String[] monthlist={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"};
         String[] datelist=new String[31];
         String[] yearlist=new String[100];
         String[] searchlist={"By Date","By Invoiceno"};
    //collection
         Hashtable allinvoicesdata=new Hashtable();
         Vector data=new Vector();
         Enumeration keydata;
    //components
         JButton next=new JButton("NEXT>>");
         JComboBox month,date,year,search;
         JLabel bydate,byinvno,trial;
         JTextField yeartext,invtext;
         JPanel panel1,panel2,panel3,panel4;
         JRadioButton single,range,all;
         ButtonGroup group;
         JButton select=new JButton("SELECT");
    //frame and layout declarations
         JFrame jf;
         Container con;
         GridBagLayout gridbag=new GridBagLayout();
         GridBagConstraints gc=new GridBagConstraints();
    //constructor
         MainMenu(){
              jf=new JFrame();
              con=getContentPane();
              con.setLayout(null);
              fr=new FileReaderDemo1();
              createScreen();
              setSize(500,250);
              setLocation(250,250);
              setVisible(true);
    //This is thefirst screen displayed
         public void createScreen(){
              group=new ButtonGroup();
              single=new JRadioButton("SINGLE");
              range=new JRadioButton("RANGE");
              all=new JRadioButton("ALL");
              search=new JComboBox(searchlist);
              group.add(single);
              group.add(range);
              group.add(all);
              single.setBounds(100,50,100,20);
              search.setBounds(200,50,100,20);
              range.setBounds(100,90,100,20);
              all.setBounds(100,130,100,20);
              select.setBounds(200,200,100,20);
              con.add(single);
              con.add(search);
              con.add(range);
              con.add(all);
              con.add(select);
              search.setEnabled(false);
              single.addItemListener(this);
              search.addActionListener(new MyActionListener());     
              range.addItemListener(this);
              all.addItemListener(this);
              select.addActionListener(this);
         public class MyActionListener implements ActionListener{
              public void actionPerformed(ActionEvent a){
                   JComboBox cb=(JComboBox)a.getSource();
                   if(a.getSource().equals(month))
                        monthkey=((cb.getSelectedIndex())+1);
                   if(a.getSource().equals(date)){
                        dateselection=(String)cb.getSelectedItem();
                   if(a.getSource().equals(year))
                        yearselection=(String)cb.getSelectedItem();
                   if(a.getSource().equals(search)){
                        searchcriteria=(String)cb.getSelectedItem();
         public void itemStateChanged(ItemEvent ie){
              if(ie.getItem()==single){
                   selection="single";     
                   search.setEnabled(true);
              else if (ie.getItem()==all){
                   selection="all";
                   search.setEnabled(false);
              else if (ie.getItem()==range){
                   search.setEnabled(false);
         public void actionPerformed(ActionEvent ae){          
              if(ae.getSource().equals(select))
                        if(selection.equals("single")){
                             singleScreen();
                        if(selection.equals("all"))
                             sw=new Swing1Win();
              if(ae.getSource().equals(next)){
                   if(monthkey<9)
                        smonthkey="0"+monthkey;
                   System.out.println(smonthkey+"/"+dateselection+"/"+yearselection+"it prints this");
                   allinvoicesdata=fr.read(searchcriteria);
                   if (searchcriteria.equals("By Date")){
                        System.out.println("it goes in this");
                        singleinvoice(smonthkey+"/"+dateselection+"/"+yearselection);
                   else if (searchcriteria.equals("By Invoiceno")){
                        invoiceno=invtext.getText();
                        singleinvoice(invoiceno);
                   if (flag == false){
                        System.out.println("flag is false");
                        singleScreen();
                   else{
                   System.out.println("its in here");
                   singlesearcharray=new String[data.size()];
                   data.copyInto(singlesearcharray);
                   sw=new Swing1Win(singlesearcharray);
         public void singleinvoice(String searchdata){
              keydata=allinvoicesdata.keys();
              while(keydata.hasMoreElements()){
                        s=(String)keydata.nextElement();
                        if(s.equals(searchdata)){
                             System.out.println(s);
                             flag=true;
                             break;
              if (flag==true){
                   System.out.println("vector found");
                   System.exit(0);
                   data= ((Vector)(allinvoicesdata.get(s)));
              else{
                   JOptionPane.showMessageDialog(jf,"Invalid entry of date : choose again");     
         public void singleScreen(){
              System.out.println("its at the start");
              con.removeAll();
              SwingUtilities.updateComponentTreeUI(con);
              con.setLayout(null);
              counter=0;
              panel2=new JPanel(gridbag);
              bydate=new JLabel("By Date : ");
              byinvno=new JLabel("By Invoice No : ");
              dateComboBox();
              invtext=new JTextField(6);
              gc.gridx=0;
              gc.gridy=0;
              gc.gridwidth=1;
              gridbag.setConstraints(month,gc);
              panel2.add(month);
              gc.gridx=1;
              gc.gridy=0;
              gridbag.setConstraints(date,gc);
              panel2.add(date);
              gc.gridx=2;
              gc.gridy=0;
              gc.gridwidth=1;
              gridbag.setConstraints(year,gc);
              panel2.add(year);
              bydate.setBounds(100,30,60,20);
              con.add(bydate);
              panel2.setBounds(170,30,200,30);
              con.add(panel2);
              byinvno.setBounds(100,70,100,20);
              invtext.setBounds(200,70,50,20);
              con.add(byinvno);
              con.add(invtext);
              next.setBounds(300,200,100,20);
              con.add(next);
              if (searchcriteria.equals("By Invoiceno")){
                   month.setEnabled(false);
                   date.setEnabled(false);
                   year.setEnabled(false);
              else if(searchcriteria.equals("By Date")){
                   byinvno.setEnabled(false);
                   invtext.setEnabled(false);
              monthkey=1;
              dateselection="01";
              yearselection="00";
              month.addActionListener(new MyActionListener());
              date.addActionListener(new MyActionListener());
              year.addActionListener(new MyActionListener());
              next.addActionListener(this);
              invtext.addKeyListener(new KeyAdapter(){
                   public void keyTyped(KeyEvent ke){
                        char c=ke.getKeyChar();
                        if ((c == KeyEvent.VK_BACK_SPACE) ||(c == KeyEvent.VK_DELETE)){
                             System.out.println(counter+"before");
                             counter--;               
                             System.out.println(counter+"after");
                        else
                             counter++;
                        if(counter>6){
                             System.out.println(counter);
                             counter--;
                             ke.consume();
                        else                    
                        if(!((Character.isDigit(c) || (c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)))){
                             getToolkit().beep();
                             counter--;     
                             JOptionPane.showMessageDialog(null,"please enter numerical value");
                             ke.consume();
              System.out.println("its at the end");
         public void dateComboBox(){          
              for (int counter=0,day=01;day<=31;counter++,day++)
                   if(day<=9)
                        datelist[counter]="0"+String.valueOf(day);
                   else
                        datelist[counter]=String.valueOf(day);
              for(int counter=0,yr=00;yr<=99;yr++,counter++)
                   if(yr<=9)
                        yearlist[counter]="0"+String.valueOf(yr);
                   else
                        yearlist[counter]=String.valueOf(yr);
              month=new JComboBox(monthlist);
              date=new JComboBox(datelist);
              year=new JComboBox(yearlist);
         public static void main(String[] args){
              MainMenu mm=new MainMenu();
         public class WindowHandler extends WindowAdapter{
              public void windowClosing(WindowEvent we){
                   jf.dispose();
                   System.exit(0);
    }     

    Hi,
    I had a similar problem with a message dialog. Don't know if it is a bug, I was in a hurry and had no time to search the bug database... I found a solution by using keyPressed() and keyReleased() instead of keyTyped():
       private boolean pressed = false;
       public void keyPressed(KeyEvent e) {
          pressed = true;
       public void keyReleased(KeyEvent e) {
          if (!pressed) {
             e.consume();
             return;
          // Here you can test whatever key you want
       //...I don't know if it will help you, but it worked for me.
    Regards.

  • Can you help me with an jsp execption please?

    Hello!
    Could you please try to help me with this code
    that brings me an exception?
    this is the jsp page :
    <%@ page import="java.io.*,javax.servlet.http.HttpServletRequest,javax.servlet.ServletInputStream" %>
    <%@ page import="java.io.FileWriter,java.io.IOException" %>
    <%
        String savePath = "", filepath = "", filename = "";
        String contentType = "", fileData = "", strLocalFileName = "";
        int startPos = 0;
        int endPos = 0;
    %>
    <%!
        temp data buffer
        void copyByte(byte [] fromBytes, byte [] toBytes, int start, int len){
           for(int i=start;i<(start+len);i++)
              toBytes[i - start] = fromBytes;
    %>
    <%
    int BOF = 0, EOF = 0;
    contentType = request.getContentType();
    out.println("<br>Content type is :: " +contentType);
    if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0)) {
         DataInputStream in = new DataInputStream(request.getInputStream());
         DataInputStream in1 = in;
         int formDataLength = request.getContentLength();
         byte dataBytes[] = new byte[formDataLength];
         int byteRead = 0;
         int totalBytesRead = 0;
         while (totalBytesRead < formDataLength){     
              byteRead = in1.read(dataBytes, totalBytesRead, formDataLength);
              totalBytesRead += byteRead;
         out.println("<br>totalBytesRead : " + totalBytesRead + " : formDataLength = " + formDataLength);
         byte[] line = new byte[128];
         if (totalBytesRead < 3){
         return;     //exit if file length is not sufficiently large
         String boundary = "";
         String s = "";
         int count = 0;          
         int pos = 0;
         do{
         copyByte(dataBytes, line, count ,1);     //read 1 byte at a time
         count+=1;
         s = new String(line, 0, 1);
         fileData = fileData + s;
         pos = fileData.indexOf("Content-Disposition: form-data; name=\""); //set the file name
         if(pos != -1)
         endPos = pos;
         }while(pos == -1);
         boundary = fileData.substring(startPos, endPos);
         startPos = endPos;
         do{
         copyByte(dataBytes, line, count ,1);     //read 1 byte at a time
         count+=1;
         s = new String(line, 0, 1);
         fileData = fileData + s;
         pos = fileData.indexOf("filename=\"", startPos); //set the file name
         if(pos != -1)
    startPos = pos;
         }while(pos == -1);                         
         do{
         copyByte(dataBytes, line, count ,1);     //read 1 byte at a time
         count+=1;
         s = new String(line, 0, 1);
         fileData = fileData + s;
         pos = fileData.indexOf("Content-Type: ", startPos);
         if(pos != -1)
              endPos = pos;                              
         }while(pos == -1);
         filename = fileData.substring(startPos + 10, endPos - 3);     //to eliminate " from start & end
         strLocalFileName = filename;
         int index = filename.lastIndexOf("\\");
         if(index != -1)
         filename = filename.substring(index + 1);
         else
         filename = filename;
         boolean blnNewlnFlag = false;
         startPos = endPos;     //added length of "Content-Type: "
         do{
         copyByte(dataBytes, line, count ,1);     //read 1 byte at a time
         count+=1;
         s = new String(line, 0, 1);
         fileData = fileData + s;               
         pos = fileData.indexOf("\n", startPos);
         if(pos != -1){
              if(blnNewlnFlag == true)
                   endPos = pos;                         
              else{
              blnNewlnFlag = true;
              pos = -1;
         }while(pos == -1);
    contentType = fileData.substring(startPos + 14, endPos);
         startPos = count + 1;
         do{
         copyByte(dataBytes, line, count ,1);     //read 1 byte at a time
         count+=1;
         s = new String(line, 0, 1);
         fileData = fileData + s;
         pos = fileData.indexOf(boundary, startPos);     //check for end of file data i.e boundry value               
         }while(pos == -1);
         endPos = count - boundary.length();
         out.println("<br><br>0. Local File Name = " + strLocalFileName);
         out.println("<br><br>1. filename = " + filename);
         out.println("<br>2. contentType = " + contentType);
         out.println("<br>3. startPos = " + startPos);
         out.println("<br>4. endPos = " + endPos);
         out.println("<br>5. boundary = " + boundary);
         String appPath = application.getRealPath("/");
         out.println("<br>appPath : " + appPath);
         String destFolder = appPath + "images/";
    String name = request.getParameter("signinName").trim();
    String email = request.getParameter("signinEmail").trim();
    String age = request.getParameter("signinAge").trim();
    String passwd = request.getParameter("signinPassword").trim();
    String profile = request.getParameter("signinProfile").trim();
    String type = filename.substring(filename.lastIndexOf("."));
         filename = destFolder + name + type;
         fileOutputStream fileOut = new FileOutputStream(filename);
         fileOut.write(dataBytes, startPos, (endPos - startPos));
         fileOut.flush();
         fileOut.close();
         out.println("<br>File saved as >> " + filename);
         else {
              out.println("Error in uploading ");
    %>
    this is the exception:
    exception
    org.apache.jasper.JasperException: java.lang.NullPointerException
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:382)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    root cause
    java.lang.NullPointerException
         org.apache.jsp.uploadFile_jsp._jspService(uploadFile_jsp.java:190)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)Thanks a lot !!

    root cause
    java.lang.NullPointerException
         org.apache.jsp.uploadFile_jsp._jspService(uploadFile_jsp.java:190)Some variable is getting null value ..so debug it.
    Best way is to start putting System.out's ....
    System.out.println("Step ############1");
    Put the incremental numbering between several code blocks. Check the log output. You will surely be able to find out till what point ur code is Ok.
    -Rohit

  • Help needed with passing data between classes, graph building application?

    Good afternoon please could you help me with a problem with my application, my head is starting to hurt?
    I have run into some difficulties when trying to build an application that generates a linegraph?
    Firstly i have a gui that the client will enter the data into a text area call jta; this data is tokenised and placed into a format the application can use, and past to a seperate class that draws the graph?
    I think the problem lies with the way i am trying to put the data into co-ordinate form (x,y) as no line is being generated.
    The following code is from the GUI:
    +public void actionPerformed(ActionEvent e) {+
    +// Takes data and provides program with CoOrdinates+
    int[][]data = createData();
    +// Set the data data to graph for display+
    grph.showGrph(data);
    +// Show the frame+
    grphFrame.setVisible(true);
    +}+
    +/** set the data given to the application */+
    +private int[][] createData() {+
    +     //return data;+
    +     String rawData = jta.getText();+
    +     StringTokenizer tokens = new StringTokenizer(rawData);+
    +     List list = new LinkedList();+
    +     while (tokens.hasMoreElements()){+
    +          String number = "";+
    +          String token = tokens.nextToken();+
    +          for (int i=0; i<token.length(); i++){+
    +               if (Character.isDigit(token.charAt(i))){+
    +                    number += token.substring(i, i+1);+
    +               }+
    +          }     +
    +     }+
    +     int [][]data = new int[list.size()/2][2];+
    +     int index = -2;+
    +     for (int i=0; i<data.length;i++){+
    +               index += 2;+
    +               data[0] = Integer.parseInt(+
    +                         (list.get(index).toString()));+
    +               data[i][1] = Integer.parseInt(+
    +                         (list.get(index +1).toString()));+
    +          }+
    +     return data;+
    The follwing is the coding for drawing the graph?
    +public void showGrph(int[][] data)  {+
    this.data = data;
    repaint();
    +}     +
    +/** Paint the graph */+
    +protected void paintComponent(Graphics g) {+
    +//if (data == null)+
    +     //return; // No display if data is null+
    super.paintComponent(g);
    +// x is the start position for the first point+
    int x = 30;
    int y = 30;
    for (int i = 0; i < data.length; i+) {+
    +g.drawLine(data[i][0],data[i][1],data[i+1][0],data[i+1][1]);+
    +}+
    +}+

    Thanks for that tip!
    package LineGraph;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.util.List;
    public class GUI extends JFrame
      implements ActionListener {
      private JTextArea Filejta;
      private JTextArea jta;
      private JButton jbtShowGrph = new JButton("Show Chromatogram");
      public JButton jbtExit = new JButton("Exit");
      public JButton jbtGetFile = new JButton("Search File");
      private Grph grph = new Grph();
      private JFrame grphFrame = new JFrame();   // Create a new frame to hold the Graph panel
      public GUI() {
         JScrollPane pane = new JScrollPane(Filejta = new JTextArea("Default file location: - "));
         pane.setPreferredSize(new Dimension(350, 20));
         Filejta.setWrapStyleWord(true);
         Filejta.setLineWrap(true);     
        // Store text area in a scroll pane 
        JScrollPane scrollPane = new JScrollPane(jta = new JTextArea("\n\n Type in file location and name and press 'Search File' button: - "
                  + "\n\n\n Data contained in the file will be diplayed in this Scrollpane "));
        scrollPane.setPreferredSize(new Dimension(425, 300));
        jta.setWrapStyleWord(true);
        jta.setLineWrap(true);
        // Place scroll pane and button in the frame
        JPanel jpButtons = new JPanel();
        jpButtons.setLayout(new FlowLayout());
        jpButtons.add(jbtShowGrph);
        jpButtons.add(jbtExit);
        JPanel searchFile = new JPanel();
        searchFile.setLayout(new FlowLayout());
        searchFile.add(pane);
        searchFile.add(jbtGetFile);
        add (searchFile, BorderLayout.NORTH);
        add(scrollPane, BorderLayout.CENTER);
        add(jpButtons, BorderLayout.SOUTH);
        // Exit Program
        jbtExit.addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent e) {
             System.exit(0);
        // Read Files data contents
         jbtGetFile.addActionListener(new ActionListener(){
         public void actionPerformed( ActionEvent e) {
                   String FileLoc = Filejta.getText();
                   LocateFile clientsFile;
                   clientsFile = new LocateFile(FileLoc);
                        if (FileLoc != null){
                             String filePath = clientsFile.getFilePath();
                             String filename = clientsFile.getFilename();
                             String DocumentType = clientsFile.getDocumentType();
         public String getFilecontents(){
              String fileString = "\t\tThe file contains the following data:";
         return fileString;
           // Register listener     // Create a new frame to hold the Graph panel
        jbtShowGrph.addActionListener(this);
        grphFrame.add(grph);
        grphFrame.pack();
        grphFrame.setTitle("Chromatogram showing data contained in file \\filename");
      /** Handle the button action */
      public void actionPerformed(ActionEvent e) {
        // Takes data and provides program with CoOrdinates
        int[][]data = createData();
        // Set the data data to graph for display
        grph.showGrph(data);
        // Show the frame
        grphFrame.setVisible(true);
      /** set the data given to the application */
      private int[][] createData() {
           String rawData = jta.getText();
           StringTokenizer tokens = new StringTokenizer(rawData);
           List list = new LinkedList();
           while (tokens.hasMoreElements()){
                String number = "";
                String token = tokens.nextToken();
                for (int i=0; i<token.length(); i++){
                     if (Character.isDigit(token.charAt(i))){
                          number += token.substring(i, i+1);
           int [][]data = new int[list.size()/2][2];
           int index = -2;
           for (int i=0; i<data.length;i++){
                     index += 2;
                     data[0] = Integer.parseInt(
                             (list.get(index).toString()));
                   data[i][1] = Integer.parseInt(
                             (list.get(index +1).toString()));
         return data;
    public static void main(String[] args) {
    GUI frame = new GUI();
    frame.setLocationRelativeTo(null); // Center the frame
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setTitle("Clients Data Retrival GUI");
    frame.pack();
    frame.setVisible(true);
    package LineGraph;
    import javax.swing.*;
    import java.awt.*;
    public class Grph extends JPanel {
         private int[][] data;
    /** Set the data and display Graph */
    public void showGrph(int[][] data) {
    this.data = data;
    repaint();
    /** Paint the graph */
    protected void paintComponent(Graphics g) {
    //if (data == null)
         //return; // No display if data is null
    super.paintComponent(g);
    //Find the panel size and bar width and interval dynamically
    int width = getWidth();
    int height = getHeight();
    //int intervalw = (width - 40) / data.length;
    //int intervalh = (height - 20) / data.length;
    //int individualWidth = (int)(((width - 40) / 24) * 0.60);
    ////int individualHeight = (int)(((height - 40) / 24) * 0.60);
    // Find the maximum data. The maximum data
    //int maxdata = 0;
    //for (int i = 0; i < data.length; i++) {
    //if (maxdata < data[i][0])
    //maxdata = data[i][1];
    // x is the start position for the first point
    int x = 30;
    int y = 30;
    //draw a vertical axis
    g.drawLine(20, height - 45, 20, (height)* -1);
    // Draw a horizontal base line4
    g.drawLine(20, height - 45, width - 20, height - 45);
    for (int i = 0; i < data.length; i++) {
    //int Value = i;      
    // Display a line
    //g.drawLine(x, height - 45 - Value, individualWidth, height - 45);
    g.drawLine(data[i][0],data[i][1],data[i+1][0],data[i+1][1]);
    // Display a number under the x axis
    g.drawString((int)(0 + i) + "", (x), height - 30);
    // Display a number beside the y axis
    g.drawString((int)(0 + i) + "", width - 1277, (y) + 900);
    // Move x for displaying the next character
    //x += (intervalw);
    //y -= (intervalh);
    /** Override getPreferredSize */
    public Dimension getPreferredSize() {
    return new Dimension(1200, 900);

  • Process exited with exit code 128 using embedded OC4J (jdevsetudio1013)

    I've just downloaded Oracle JDeveloper (10.1.3) - Production JAN 2006 version (Studio Edition), installied and configure as the install guide, downladed SU5 (Studio Edition version 10.1.3.0.4 Build JDEVADF_10.1.3_NT_060125.0900.3673) and JUnit extensions and SR. When I tried to run Oracle ADF SRDEMO Application, I´ve just got this error message:
    [EJB 3.0]: Assigning default-data-source=jdbc/SRDemoDS, specified in projects EJB 3.0 properties
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    E:\mywork\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
    "C:\Program Files\Java\jdk1.5.0_08\bin\javaw.exe" -ojvm -classpath E:\jdevstudio1013\j2ee\home\oc4j.jar;E:\jdevstudio1013\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config E:\mywork\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Process exited with exit code 128.
    I'm using a Microsoft Windows Server 2003 Standard Edition Service Pack 1 inside a VMware workstation (version 5.5.2.build-29772) with 1.4GB of RAM with an Oracle 10gR2 for windows (10.2.0.1.0)
    I don´t know if it is a configuration problem or that Windows Server 2003 SP1 is not supported or any other problem.
    Any help you can give on this would be much appreciated.
    Thanks,
    Orlando

    thanks for your idea...but in my environment there no JAVA_OPTIONS defined. This is a copy of my console after running set:
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    ANT_HOME=C:\apache-ant-1.6.5
    APPDATA=C:\Documents and Settings\Administrator\Application Data
    APR_ICONV_PATH=C:\Program Files\Subversion\iconv
    CATALINA_HOME=C:\ASF\Tomcat 5.5
    ClusterLog=C:\WINDOWS\Cluster\cluster.log
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=OGJEE
    ComSpec=C:\WINDOWS\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\Administrator
    JAVA_HOME=C:\Program Files\Java\jdk1.5.0_08
    JBOSS_HOME=C:\jboss-4.0.4.GA-Patch1
    LOGONSERVER=\\OGJEE
    M2_HOME=C:\ASF\maven-2.0.4
    M2_REPO=C:\Documents and Settings\Administrator\.m2\repository
    MAVEN_OPTS=-XX:MaxPermSize=128m -Xmx512m
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Path=E:\oracle\product\10.2.0\db_1\bin;C:\Program Files\Support Tools\;c:\Progra
    m Files\Windows Resource Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\S
    ystem32\Wbem;;C:\Program Files\Subversion\bin;C:\Program Files\Java\jdk1.5.0_08\
    bin;C:\ASF\maven-2.0.4\bin;C:\Program Files\MySQL\MySQLServer5.0\bin;C:\apache-a
    nt-1.6.5\bin;;C:\Program Files\STI\bin\pc-win95
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PERL5LIB=E:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86;E:\oracle\prod
    uct\10.2.0\db_1\perl\5.8.3\lib;E:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWi
    n32-x86;E:\oracle\product\10.2.0\db_1\perl\site\5.8.3;E:\oracle\product\10.2.0\d
    b_1\perl\site\5.8.3\lib;E:\oracle\product\10.2.0\db_1\sysman\admin\scripts;
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 8, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0d08
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:\WINDOWS
    TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    USERDOMAIN=OGJEE
    USERNAME=localadmin
    USERPROFILE=C:\Documents and Settings\Administrator
    windir=C:\WINDOWS
    tthanks anyway

  • Process exited with exit code -1073741819+jdeveloper 9.0.5.1

    Hi,
    I am using JDeveloper 9.0.5.1 version.When i am compiling the java file it is compiling fine. But when I am running it it is throwing the error
    Process exited with exit code -1073741819.
    What is that error code means........?

    Hello,
    It could mean that the cause is a StackOverflowError.
    It could be that you are not running against your JDeveloper 9.0.5.1
    embedded OC4J, but without noticing it, you are running your program
    against another OC4J which would be incompatible!
    May be you are running several JDevelopers on your machine, or
    having a standalone OC4J and deployed your application against
    such a different OC4J.
    Try shutting down all the OC4J listeners on your machine, restart JDev
    and run your java code again.
    Hope this can help you.
    Stephan

  • Process exited with exit code 1.

    Hi all,
    I am trying to run the XML Page .can you please help me how to resolve this type of issue?
    D:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config>
    D:\OAF\jdevbin\jdk\bin\javaw.exe -hotspot -classpath D:\OAF\jdevbin\j2ee\home\oc4j.jar;D:\OAF\jdevbin\jdev\lib\jdev-oc4j-embedded.jar -DFND_JDBC_STMT_CACHE_SIZE=200 -DCACHENODBINIT=true -DRUN_FROM_JDEV=true -mx256m -XX:MaxPermSize=256M -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    15/04/10 09:51:19 Error initializing server: IO Error: The device is not ready
    15/04/10 09:51:19 Fatal error: server exiting
    Process exited with exit code 1.
    Thanks

    Sorry,
    I don't have a 10.1.3 Jdev installed in my machine at the moment.
    May be under Tools --> Preferences ?
    Please some of the suggestions from the below links :
    Solution to the OC4J startup bug: "Error initializing server: IO Error" - JDeveloper and ADF
    Error initializing server: IO Error: The device is not ready
    Cheers
    AJ

  • Install failed with exit code 11?

    Hi,
    I am trying to deploy a language pack and set the override language to English-US which I have created 2 programs for in my package. When the first program runs I am getting an error in the execmgr.log that "Install failed with exit code 11" Any
    ideas what this means? When I run this command manually on the machine it works fine:
    "C:\WINDOWS\System32\Dism.exe" /online /add-package /packagepath:"en-us\lp.cab"
    I checked the dism.log as well but I don't see any errors. Both logs are below, any help or suggestions would be greatly appreciated TIA
    <![LOG[Command line = "C:\WINDOWS\System32\Dism.exe" /online /add-package /packagepath:"en-us\lp.cab", Working Directory = C:\WINDOWS\ccmcache\4j\]LOG]!><time="08:00:28.447+300" date="01-27-2015" component="execmgr"
    context="" type="1" thread="4976" file="scriptexecution.cpp:352">
    <![LOG[Running "C:\WINDOWS\System32\Dism.exe" /online /add-package /packagepath:"en-us\lp.cab" with 32bitLauncher]LOG]!><time="08:00:28.447+300" date="01-27-2015" component="execmgr" context=""
    type="1" thread="4976" file="scriptexecution.cpp:370">
    <![LOG[Created Process for the passed command line]LOG]!><time="08:00:28.509+300" date="01-27-2015" component="execmgr" context="" type="1" thread="4976" file="scriptexecution.cpp:513">
    <![LOG[Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramStartedEvent
     AdvertisementId = "LIA20115";
     ClientID = "GUID:428D91E4-84BD-4740-97D9-9177C39FA3F0";
     CommandLine = "\"C:\\WINDOWS\\System32\\Dism.exe\" /online /add-package /packagepath:\"en-us\\lp.cab\"";
     DateTime = "20150127130028.509000+000";
     MachineName = "";
     PackageName = "";
     ProcessID = 2012;
     ProgramName = "Install";
     SiteCode = "";
     ThreadID = 4976;
     UserContext = "NT AUTHORITY\\SYSTEM";
     WorkingDirectory = "C:\\WINDOWS\\ccmcache\\4j\\";
    ]LOG]!><time="08:00:28.509+300" date="01-27-2015" component="execmgr" context="" type="1" thread="4976" file="event.cpp:715">
    <![LOG[Raised Program Started Event for Ad:LIA20115, Package:LIA002A0, Program: Install]LOG]!><time="08:00:28.509+300" date="01-27-2015" component="execmgr" context="" type="1" thread="4976"
    file="executioncontext.cpp:459">
    <![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="LIA002A0",ProgramID="Install", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="08:00:28.509+300"
    date="01-27-2015" component="execmgr" context="" type="1" thread="4976" file="event.cpp:405">
    <![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="LIA002A0",ProgramID="Install", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="08:00:28.509+300"
    date="01-27-2015" component="execmgr" context="" type="1" thread="4976" file="event.cpp:405">
    <![LOG[MTC task with id {B7EEE891-740D-4762-8D2B-BA2D7E351F1D}, changed state from 4 to 5]LOG]!><time="08:00:28.525+300" date="01-27-2015" component="execmgr" context="" type="1" thread="5904"
    file="execreqmgr.cpp:6288">
    <![LOG[Program exit code 11]LOG]!><time="08:00:28.650+300" date="01-27-2015" component="execmgr" context="" type="1" thread="2488" file="scriptexecution.cpp:676">
    <![LOG[Looking for MIF file to get program status]LOG]!><time="08:00:28.650+300" date="01-27-2015" component="execmgr" context="" type="1" thread="2488" file="executionstatus.cpp:282">
    <![LOG[Script for Package:LIA002A0, Program: Install failed with exit code 11]LOG]!><time="08:00:28.650+300" date="01-27-2015" component="execmgr" context="" type="3" thread="2488" file="executionstatus.cpp:252">
    <![LOG[Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramErrorEvent
     AdvertisementId = "LIA20115";
     ClientID = "GUID:428D91E4-84BD-4740-97D9-9177C39FA3F0";
     DateTime = "20150127130028.650000+000";
     ExitCode = "11";
     MachineName = "";
     PackageName = "LIA002A0";
     ProcessID = 2012;
     ProgramName = "Install";
     SiteCode = "";
     ThreadID = 2488;
     UserContext = "NT AUTHORITY\\SYSTEM";
    ]LOG]!><time="08:00:28.650+300" date="01-27-2015" component="execmgr" context="" type="1" thread="2488" file="event.cpp:715">
    <![LOG[Raised Program Error Event for Ad:LIA20115, Package:LIA002A0, Program: Install]LOG]!><time="08:00:28.650+300" date="01-27-2015" component="execmgr" context="" type="1" thread="2488"
    file="executioncontext.cpp:572">
    <![LOG[Execution is complete for program Install. The exit code is 11, the execution status is FailureNonRetry]LOG]!><time="08:00:28.665+300" date="01-27-2015" component="execmgr" context="" type="1"
    thread="1956" file="execreqmgr.cpp:4165">
    <![LOG[Requesting MTC to delete task with id: {B7EEE891-740D-4762-8D2B-BA2D7E351F1D}]LOG]!><time="08:00:28.681+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956"
    file="executionrequest.cpp:9041">
    <![LOG[MTC task with id: {B7EEE891-740D-4762-8D2B-BA2D7E351F1D} deleted successfully.]LOG]!><time="08:00:28.681+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956"
    file="executionrequest.cpp:9070">
    <![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="LIA002A0",ProgramID="InstallEN", actionType 10l, value Result:FALSE, user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="08:00:28.697+300"
    date="01-27-2015" component="execmgr" context="" type="1" thread="1956" file="event.cpp:405">
    <![LOG[Deleting request for program Install. Failing parent program InstallEN]LOG]!><time="08:00:28.697+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956" file="execreqmgr.cpp:8147">
    <![LOG[Requesting MTC to delete task with id: ]LOG]!><time="08:00:28.697+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956" file="executionrequest.cpp:9041">
    <![LOG[This execution request does not have a corresponding task in MTC.]LOG]!><time="08:00:28.697+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956" file="executionrequest.cpp:9059">
    <![LOG[Requesting MTC to delete task with id: {B7EEE891-740D-4762-8D2B-BA2D7E351F1D}]LOG]!><time="08:00:28.697+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956"
    file="executionrequest.cpp:9041">
    <![LOG[This execution request does not have a corresponding task in MTC.]LOG]!><time="08:00:28.697+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956" file="executionrequest.cpp:9059">
    <![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="LIA002A0",ProgramID="Install", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="08:00:28.697+300"
    date="01-27-2015" component="execmgr" context="" type="1" thread="1956" file="event.cpp:405">
    015-01-27 08:00:28, Info                  DISM   DISM.EXE:
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE:
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE: Host machine information: OS Version=6.3.9600, Running architecture=x86, Number of processors=4
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE: Dism.exe version: 6.3.9600.16384
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE: Executing command line: "C:\WINDOWS\System32\Dism.exe" /online /add-package /packagepath:"en-us\lp.cab"
    2015-01-27 08:00:28, Info                  DISM   DISM Provider Store: PID=5984 TID=4336 Getting Provider FolderManager - CDISMProviderStore::GetProvider
    2015-01-27 08:00:28, Info                  DISM   DISM Provider Store: PID=5984 TID=4336 Provider has not previously been encountered.  Attempting to initialize
    the provider. - CDISMProviderStore::Internal_GetProvider
    2015-01-27 08:00:28, Info                  DISM   DISM Provider Store: PID=5984 TID=4336 Loading Provider from location C:\WINDOWS\System32\Dism\FolderProvider.dll
    - CDISMProviderStore::Internal_GetProvider
    2015-01-27 08:00:28, Info                  DISM   DISM Provider Store: PID=5984 TID=4336 Connecting to the provider located at C:\WINDOWS\System32\Dism\FolderProvider.dll.
    - CDISMProviderStore::Internal_LoadProvider
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE:
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE:

    Thanks, it seems as though it is not doing anything now. I just see that the policy has arrived in the log below but it is not installing it? The dism.log hasn't changed at all so it seems that it isn't even executing the command now? Am I missing something
    else? I even tried re-advertising it though client center.
    Command is now:
    C:\WINDOWS\sysnative\Dism.exe  /online /add-package /packagepath:"en-us\lp.cab"
    <![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="LIA002A0",ProgramID="InstallEN", actionType 45l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="08:52:28.943+300"
    date="01-27-2015" component="execmgr" context="" type="1" thread="5036" file="event.cpp:405">
    <![LOG[Policy arrived for child program Install]LOG]!><time="09:12:48.440+300" date="01-27-2015" component="execmgr" context="" type="1" thread="3528" file="execreqmgr.cpp:6867">
    <![LOG[Policy arrived for parent package LIA002A0 program InstallEN]LOG]!><time="09:12:48.487+300" date="01-27-2015" component="execmgr" context="" type="1" thread="3528" file="execreqmgr.cpp:6893">
    <![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="LIA002A0",ProgramID="InstallEN", actionType 6l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="09:12:48.487+300"
    date="01-27-2015" component="execmgr" context="" type="1" thread="3528" file="event.cpp:405">
    <![LOG[Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramOfferReceivedEvent
     AdvertisementId = "LIA20116";
     ClientID = "GUID:428D91E4-84BD-4740-97D9-9177C39FA3F0";
     DateTime = "20150127141248.502000+000";
     MachineName = "";
     ProcessID = 2012;
     SiteCode = "";
     ThreadID = 3528;
    ]LOG]!><time="09:12:48.502+300" date="01-27-2015" component="execmgr" context="" type="1" thread="3528" file="event.cpp:715">
    <![LOG[The user has logged off.]LOG]!><time="09:36:59.174+300" date="01-27-2015" component="execmgr" context="" type="1" thread="4320" file="execreqmgr.cpp:5138">

  • Please help me with the homework given to me by my teacher

    hello,i am new in java programming please help me with the home work given to me by my teacher at school, help me to build an interface that can work with this code.i can build an interface but i dont just understand this code.
    //references:
    //http://forums.techguy.org/development/570048-need-write-java-program-convert.html
    import java.util.Map;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.io.FileReader;
    public class Translate
      public static void main(String [] args) throws IOException
        if (args.length != 2)
          System.err.println("usage: Translate wordmapfile textfile");
          System.exit(1);
        try
          HashMap words = ReadHashMapFromFile(args[0]);
          System.out.println(ProcessFile(words, args[1]));
    catch (Exception e)
          e.printStackTrace();
      // static helper methods
       * Reads a file into a HashMap. The file should contain lines of the format
       *    "key\tvalue\n"
       * @returns a hashmap of the given file
      @SuppressWarnings("unchecked")
      private static HashMap ReadHashMapFromFile(String filename) throws FileNotFoundException, IOException
        BufferedReader in = null;
        HashMap map = null;
        try
          in = new BufferedReader(new FileReader(filename));
          String line;
          map = new HashMap();
          while ((line = in.readLine()) != null)
            String[] fields = line.split("\\t", 2);
            if (fields.length != 2) continue; //just ignore "invalid" lines
            map.put(fields[0], fields[1]);
    finally
          if(in!=null) in.close(); //may throw IOException
        return(map); //returning a reference to local variable is safe in java (unlike C/C++)
       * Process the given file
       * @returns String contains the whole file.
      private static String ProcessFile(Map words, String filename) throws FileNotFoundException, IOException {
        BufferedReader in = null;
        StringBuffer out = null;
        try {
          in = new BufferedReader(new FileReader(filename));
          out = new StringBuffer();
          String line = null;
          while( (line=in.readLine()) != null ) {
            out.append(SearchAndReplaceWordsInText(words, line)+"\n");
        } finally {
          if(in!=null) in.close(); //may throw IOException
        return out.toString();
       * Replaces all occurrences in text of each key in words with it's value.
       * @returns String
      private static String SearchAndReplaceWordsInText(Map words, String text) {
        Iterator it = words.keySet().iterator();
        while( it.hasNext() ) {
          String key = (String)it.next();
          text = text.replaceAll("\\b"+key+"\\b", (String)words.get(key));
        return text;
       * @returns: s with the first letter capitalized
      String capitalize(String s)
        return s.substring(0,0).toUpperCase() + s.substring(1);
    }... here's the head of my pirate_words_map.txt
    hello     ahoy
    hi     yo-ho-ho
    pardon me     avast
    excuse me     arrr
    yes     aye
    my     me
    friend     me bucko
    sir     matey
    madam     proud beauty
    miss     comely wench
    stranger     scurvy dog
    officer     foul blaggart
    where     whar
    is     be
    are     be
    am     be
    the     th'
    you     ye
    your     yer
    tell     be tellin'

    Heres your answer. Run it in on your pc.
    public class Annoy
    public static void main(String[] args)
       System.out.println("I am a triple poster.");
       System.out.println("I can not understand why I can not understand the help I have receved to date on the java forums.");
    }

Maybe you are looking for