Urgent help on BW and R/3 data mismatch.

Hi,
I had a delta load on 18th of december which failed showing the reason : 'Processing the request in the BW system is taking a long time and the processing step Update rules has still not been executed.' Now there has been a successfull delta load on 24th December and its reflecting data from 19th Dec onwards. But data for 17 and 18 is missing and when we compare R/3 data with BW we could see the mismatch. PSA is having wrong data and we are not having any ODS in this case. The data is directly loaded to Infocube.
Please let me know how can I get the R/3 data into BW.
Thanks!

Hi,
I have incorrect data in PSA and also requests are undergoing compression I cant load data from PSA.
My understanding is that the data wont be avaliable in R/3 as well. So i need to take a down time and load all the data again, This i am talking about 2LIS_03_BF extractor which is inventroy having huge amount of data. I have a option to create an ODS and then start full load so that downtime of R/3 wont be needed and any records coming In will be handled by ODS as data is overwritten in ODS and currently we are loading directly in Infocube where data gets duplicated.
Thanks

Similar Messages

  • URGENT HELP NEEDED!!! No data connectivity after a while, weird errors

    I am using T-Mobile's regular prepaid web plan and Wi-Fi just fine, no need for BIS, Rich Email, or BBM (SMS and MMS is just fine). All I ever use are apps that SPECIFICALLY state that they work over standard TCP/IP and Wi-Fi. The problem is, after some time, the apps that one worked over regular data connections and MMS don't connect anymore. Even though the apps said that no BIS is needed, they can't access data. Even RIM's own Facebook app, which claims to work over Wi-Fi (and does) loses data connectivity after a day or so without a full reboot. The only thing that works is the BlackBerry Browser, which still connects to the internet. Along with the apps failing to work, MMS messages also can't be sent.
    Rebooting the phone by a battery pull or alt-shift-delete allows the apps and MMS to work, which after a day (sometimes even shorter) stops working again.
    Here's what I've done so far:
    - Checked and made sure that all permissions for data access
    - Checked that my APN settings are correct: epc.tmobile.com
    - Checked my Wi-Fi router for connectivity
    - Called  T-Mobile tech support for help, wiped my phone upon their instruction
    - Reinstalled my apps and contacts, T-Mobile sent me new service books
    Still the SAME THING with apps and MMS not working after a while. I've narrowed it down to entries in the event log that show up as this, which shows up seconds before my apps and MMS stop working:
    a net.rim.hrtRT - PUpI - 9/23 17:06:58
    a net.rim.hrtRT - EPdp 0x3 - 9/23 17:06:58
    a net.rim.tunnel - Clos-blackberry.net - 9/23 17:06:58
    a net.rim.hrtRT - CClG 0x2 - 9/23 17:06:58
    W net.rim.hrtRT - XMax - 9/23 17:06:58
    W net.rim.hrtRT - XBad - 9/23 17:06:58
    E net.rim.mdp - TEma - 9/23 17:06:58
    W net.rim.mdp - TDtm - 9/23 17:06:58
    i net.rim.mdp - TTex - 9/23 17:06:58
     Can any experts or developers tell me what these Warnings and Errors mean? I am pretty sure that whatever "net.rim.mdp" and "net.rim.hrtRT" is doing isn't good.

    anyone care to help???
    Also, on the 18th I wiped my phone again, and three days later (longest time with no mdp error) the same error occurred in the event log, no internet connectivity afterwards on Wi-Fi or Mobile Network...
    The Tunnel Engineering Screen under Multi-WAF Encineering Screens shows the following:
    1 VPN <7.105.226.218>
    Tunnel ID: 1
    Tunnel Type: VPN
    Tunnel State: UNEXPECTED ERROR
    Tunnal IP Address: 7.105.226.218
    2 WLAN <192.168.1.x>
    Tunnel ID: 2
    Tunnel Type: WLAN
    Tunnel State: UNEXPECTED ERROR
    Tunnel IP Address: 192.168.1.x
    3 3GPP blackberry.net <22.185.134.169>
    Tunnel ID: 3
    Tunnel Type: 3GPP
    Tunnel State: UNEXPECTED ERROR
    Tunnel IP Address: 22.185.134.169
    4 3GPP epc.tmobile.com <26.203.192.238>
    Tunnel ID: 4
    Tunnel Type: 3GPP
    Tunnel State: UNEXPECTED ERROR (shows OPEN_READY only when browsing webpages)
    Tunnel IP Address: 26.203.192.238
    Something tells me that the tunnels are being blocked, since closing and recreating them does the same thing. Anyone else have this problem???

  • I NEED URGENT HELP IN JDEVELOPER AND OID

    Hello.
    Please I need to know about some tutorial that this explains step to step a code in JDeveloper that obtains and send data of the Oracle Internet Directory (OID).
    The only code source that I found is the Grocery Store but I need to know more, from the beginning.
    Please I need HELP, it is really URGENT.

    Hi,
    Try http://java.sun.com/products/jndi/reference/codesamples/index.html. I think Oracle is not using their own JNDI wrapper any more and just using the regular API.
    Good luck, Hernando
    hjbconsulting at comcast dot net

  • Urgent Help Regarding PDF and Word Document Downloading

    Many Thanks Shaik for you humble help. Actually now what I did in the past 3 days,
    I used Oracle Intermedia to store my PDF and Word Documents in the database using Oracle SQL Loader. Then I used PL/SQL Server Pages and Oracle Web Toolkit for the downloading of my documents.
    Now the problem is I saved all my formatted documents in the databse and for retrieval I am using following code in my stored procedure
    * Select BLOB Data
    select blob_data into myblob from mytable where blob_name = name;
    Setup headers which describes the content
    owa_util.mime_header('text/html', FALSE);
    htp.p('Content-Length: ' || dbms_lob.get_length(myblob));
    owa_util.http_header_close;
    Initiate Direct BLOB download
    wpg_docload.download_file(myblob);
    end;
    The structure of the mytable table:
    create table mytable
    doc_id varchar2(128),
    doc_name varchar2(128),
    blob_data blob
    But when it prompt the client to download the file actually it gives the junk file name like 'B104ea56' (which i understand is the address of the blob address). What I want is to show the "SAVE AS" download box with the proper document name which is stored in my field in the following way
    1 SALES.PDF
    2 PLANNING.PDF
    3 MANUAL.DOC
    4 STANDARD.TXT
    If I set the MIME type for the file format than it automatically starts download the file to the client browser, that I do not want, It should ask the user to download with the proper document name.
    Waiting consiously for your help
    Regards

    Presumedly you'd like those documents being accessiable by users as well, so they should be put on a web server, ftp or nfs sharing. You can just add the urls to those documents, or the directory they are in, into robot system as starting points and let robot run to collect them.

  • Need some urgent help // Streaming windows and Mac Pro

    HI ,
    I have a nice "issue" here.
    At present I am in a project.
    We save the video images and sound by capture in FCP PRO with Mac Intel. Ans next to that using a Windows PC to stream live to internet.
    We send the video by using a converter from analog to digital using S-video in and out Firewire. (from the converter).
    After the converter we send the the firewire signal to a belkin hub to distribute to Mac and PC.
    Evenrything goes fine. But the MAc responds to the PC and the Mac to the PC . When the PC blocks (the image for streaming) the Mac stops capturing. When I (the Mac) cancel capturing the PC stops streaming
    PLease assist if you can .. how to handle. we guess that the hub creates the issues ...
    Should we use a more link switch ? like a network switch ?

    Our video runs through a video switcher which then outputs the signal to a PC (live streaming) and into a DRS-11 DV deck for recording as well as converting to FW which goes into the Mac for a live capture (redundancy) as well.
    <
    Yar, you want deal with the VIDEO, not the data stream, which is what you get on FW.
    Use a video/audio distribution amplifier to send duplicate versions of your program video and audio content to two or more different encoding/processing systems.
    Your boss/clients are not going to understand the technical requirements if they're Web geeks. Try this: If you want two copies of the same book, you don't use a copier. You buy two copies from the printer. You can't use a copier to distribute copies of a book in real time; each page has to be scanned and copied, one at a time, and they have to be collated separately. Anything that interrupts the process, like pulling out the stacks to staple them into, say, chapters (or insert your own metaphor here), causes the copier to stop since it can no longer knows the collation is correct.
    bogiesan

  • Need Urgent Help with Apache and PHP

    I have been struggling with apache and php for a week now and I finally broke down to post a message.
    I have apache 1.3 running on my mac mini g4 with 10.4.9 and I installed sql. I went to the entropy website and downloaded php5 to install without knowing I already had php4 on the machine. I installed 5 but could not get it to work. I then went back to httpd.conf and tried to install php4 by uncommenting out the loadmodule and addmodule lines. I restarted apache but php still did not work. I tested the phpinfo.php script but all I got was the script in Safari and not the actual page. At the moment, I have php4 and php5 on my machine but can't get either one to work. I am sure there is an easy fix but I don't know it. Please help.

    The problem is not terribly complicated, but Apache will not start with the entropy file in the folder
    /etc/httpd/users/
    Let me experiment on you. Rename the entropy file and then try to start Apache. To do this, open Terminal and paste this command:
    <pre>sudo mv /etc/httpd/users/+entropy.conf /etc/httpd/users/+entropy<pre>
    Now check the Apache configuration:
    <pre>apachectl configtest<pre>
    If it says "Syntax OK", start Apache:
    <pre>sudo apachectl start<pre>
    Since we only disabled the entropy file, you should be able to enable PHP5 with some more advanced configuring.

  • Need urgent help on JTable and cell

    Hi,
    I've got problem in validating the cell in Table.
    If user enters data in a cell i would like to validate the data in cell and if it is wrong i would like to give a dialog and keep the cursor in the same cell. So that i can restrict the user to enter valid data.
    How do i capture the event when he is leaving the cell using tab/mouse press?
    Suppose if the cursor is in once cell from a row (the rew contains different cell renderers,) then he wish to delete the row then i would like to save the data in the model and delete it.
    I'm getting class cast exception as i have got differnt components inside row.
    Thanks

    Hi,
    Try out the following code.
    import javax.swing.*;
    import javax.swing.table.*;
    class EditingTest
         EditingTest()
              JFrame frame = new JFrame("Editing Test");
              frame.setBounds(10,10,750,550);
              JTable table = new JTable(5,5);
              TableCellEditor tableCellEditor = new CustomEditor(new JTextField());
              for(int i = 4; i > -1; --i)
                   table.getColumnModel().getColumn(i).setCellEditor(tableCellEditor);
              JScrollPane scrollpane = new JScrollPane(table);
              frame.getContentPane().add(scrollpane);
              frame.setVisible(true);
         public static void main(String [] args)
              EditingTest appln = new EditingTest();
    class CustomEditor extends DefaultCellEditor
         CustomEditor(JTextField editorComponent)
              super(editorComponent);
         public boolean stopCellEditing()
              try
                   String editingValue = (String)getCellEditorValue();
                   if(editingValue.length() != 5)
                        JOptionPane.showMessageDialog(null,"Please enter string with 5 letters.", "Alert!",JOptionPane.ERROR_MESSAGE);
                        return false;
              catch(ClassCastException exception)
                   return false;
              return super.stopCellEditing();
    }

  • Help on parsing and storing XML data

    Hi :
    I have a huge file with a format similar to this.
    <EmployeeDB>
    <employee>
    <name>Steve</name>
    <salary>20000</salary>
    <address>898 nobel drive</address>
    <city>san diego</city>
    </employee>
    <employee>
    <name>Ray</name>
    <salary>20000</salary>
    <address>898 nobel drive</address>
    <city>san diego</city>
    </employee>
    <employee>
    <name>Prag</name>
    <salary>20000</salary>
    <address>898 nobel drive</address>
    <city>san diego</city>
    </employee>
    </EmployeeDB>
    I have a table in my database with 2 columns one is a nsystem generated id and another column is of xmlType.
    What I want to do is store each employee's XML as a seperate record.
    For example: My table data should look like this
    EmployeeID(Number) EmployeeXML (XMLType)
    1 <employee>
    <name>Steve</name>
    <salary>20000</salary>
    <address>898 nobel drive</address>
    <city>san diego</city>
    </employee>
    2 <employee>
    <name>Ray</name>
    <salary>20000</salary>
    <address>898 nobel drive</address>
    <city>san diego</city>
    </employee>
    What I need is a code to take the document and insert the records as above.
    Please send me the code if you have to [email protected]

    Yes, I am using oralce 9i release 2

  • Need Urgent Help! RAM and Scratch Disk Problem

    I was recently working on making a gigapixel panorama.  I made the panorama in AutopanoGiga and rendered it as a .psb.  I went to go fix some stuff on the file and the first thing I did was content aware fill.  The panorama ended up being 4 gigapixels before cropping.  So I wanted to try content aware fill on a small portion of the image.  I am using a 12-core Mac Pro with 20GB 1333 MHz RAM.  I have an SSD as my boot drive and four 2TB mechanical drives, none of which in a RAID. 
    When I first installed Photoshop on my Mac Pro, I went into the preferences to change the memory and scratch disk settings.  The first thing I did was set Photoshop to use 12GB RAM.  Then I went to the scratch disk and noticed that only my SSD was set up as a scratch disk.  So I unchecked the activate box next to the SSD, activated all 4 other drives, and moved the SSD to the bottom of the list. 
    So I started content aware fill and saw that it would take some time.  So I left and when I came back a little over an hour later, Photoshop gave me a message saying that the scratch disk was full and it couldn't complete the content aware fill.  Why did this happen????? I deactivated my SSD and activated four separate 2TB drives!
    I went on MacRumors Forums and asked some people, and the only advice I got was to reset my settings.  I did that, redid my scratch disk settings, and it is still using my SSD as the scratch disk!  Can someone please help??

    CAF is processor and memory intensive... most of the flashy demos of this feature have been on much smaller images.
    CAF has also been known to kick RAM errors when it simply farts and dies. Is CS5 fully patched?
    Wear a helment when you try to hit your head on the ceiling. 

  • Need urgent help with service and file removal

    Hi,
    I need a powershell script that would stop a windows service ,wait for 2 mins, delete a particular file from C:\documents&settings and then start the service again.Is this possible ?
    Thanks

    Thanks for the reply chen. May be i was not clear in my query
    I plan this because a particular file of configmgr is corrupt on workstations. So the service has to be stopped first before the deletion. I need to run this on many computers remotely. The import file will have the machines that need the script to be run.
    The script has to run all the four steps on the machines based on the import file and export to a file with the results.How can i modify ?
    The sequence will be as follows
    Stop-Service -Name BITS -Verbose
    Start-Sleep -Seconds 120
    Remove-Item -Path C:\documents&settings\***** -Force -Verbose
    Start-Service -Name BITS -Verbose
    Regards
    Sd

  • Urgent help in Life and Work Events

    How to initiate a process in Life and Work events.
    I am always getting the initiation screen.
    I want to configure My Benefits to the End User i.e. employee .How to do this one.
    Initiate Process screen is coming when i click on the My benefits.
    Can anyone say how to configure from here for the employee to get the final screens.
    Thanks a lot,
    Devi

    I answer to you in Employee Self Service
    Sónia

  • Urgent help(xml, java and  asp)

    Hi all,
    I,m new with XML and i have to convert a VB application that connects to an ASP using Microsoft XML and I need to know if I can connect from a java application to an ASP using XML for transfering the infornation.
    In the ASP side it uses DOM, and I would like not to touch the ASP and create a new application with java and get rid of the VB application

    DrClap what I have in the VB side is this:
    Private Function SetBalanceForReal(Amount As Currency, Action As String) As Boolean
    On Error GoTo ehSetBalance
    Dim ohttp As New MSXML.XMLHTTPRequest
    Dim oResponseXML As New MSXML.DOMDocument
    Dim oDoc As New MSXML.XMLDSOControl
    Dim oElement As MSXML.IXMLDOMElement
    Dim oNode As MSXML.IXMLDOMNode
    ohttp.open "POST", ServerUrl & "ActualizaBalance.asp", False
    Set oElement = oDoc.XMLDocument.createElement("ActualizaBalance")
    Set oNode = oElement.appendChild(oDoc.XMLDocument.createNode(1, "Client", ""))
    Set oNode = oElement.appendChild(oDoc.XMLDocument.createNode(1, "Action", ""))
    Set oNode = oElement.appendChild(oDoc.XMLDocument.createNode(1, "Amount", ""))
    oElement.childNodes.Item(0).Text = Trim(ClientLogin)
    oElement.childNodes.Item(1).Text = Action
    oElement.childNodes.Item(2).Text = Amount
    ohttp.send (oElement.xml)
    oResponseXML.loadXML (ohttp.responseText)
    If oResponseXML.documentElement.childNodes.Item(1).Text = "OK" Then
    Available = oResponseXML.documentElement.childNodes.Item(0).Text
    Else
    Available = 0
    End If
    Set ohttp = Nothing
    Set oResponseXML = Nothing
    Set oDoc = Nothing
    Set oElement = Nothing
    Set oNode = Nothing
    SetBalanceForReal = True
    Exit Function
    ehSetBalance:
    Set oNode = Nothing
    Set oElement = Nothing
    Set oDoc = Nothing
    Set oResponseXML = Nothing
    Set ohttp = Nothing
    Available = 0
    SetBalanceForReal = False
    End Function
    Public Function GetConsecutive(Game As String) As Boolean
    On Error GoTo ehGetConsecutive
    Dim ohttp As New MSXML.XMLHTTPRequest
    Dim oResponseXML As New MSXML.DOMDocument
    Dim oDoc As New MSXML.XMLDSOControl
    Dim oElement As MSXML.IXMLDOMElement
    Dim oNode As MSXML.IXMLDOMNode
    ohttp.open "POST", ServerUrl & "ObtieneConsecutivo.asp", False
    Set oElement = oDoc.XMLDocument.createElement("ObtieneConsecutivo")
    Set oNode = oElement.appendChild(oDoc.XMLDocument.createNode(1, "Game", ""))
    oElement.childNodes.Item(0).Text = Game
    ohttp.send (oElement.xml)
    oResponseXML.loadXML (ohttp.responseText)
    Consecutive = oResponseXML.documentElement.childNodes.Item(0).Text
    Set ohttp = Nothing
    Set oResponseXML = Nothing
    Set oDoc = Nothing
    Set oElement = Nothing
    Set oNode = Nothing
    GetConsecutive = True
    Exit Function
    ehGetConsecutive:
    Set oNode = Nothing
    Set oElement = Nothing
    Set oDoc = Nothing
    Set oResponseXML = Nothing
    Set ohttp = Nothing
    Consecutive = 0
    GetConsecutive = False
    End Function
    and the ASP code is this:
    <%@LANGUAGE=VBScript%>
    <%
         'Variables Simples
         Dim Cliente
         Dim Accion
         Dim Monto
         'Variables Complejas
         Dim oClienteBD
         Dim oClienteInfoXML
         Dim oDoc
         Dim oElemento
         Dim oNode
         'Inicializacion de Variables Complejas
         Set oClienteBD = Server.CreateObject("Casino_Clases.CClient")
         Set oClientInfoXML = Server.CreateObject("MSXML.DOMDocument")
         Set oDoc          = Server.CreateObject("MSXML2.DSOControl")
         oClientInfoXML.async=false     
         oClientInfoXML.load(Request)
         Cliente = oClientInfoXML.documentElement.childNodes.item(0).text
         Accion = oClientInfoXML.documentElement.childNodes.item(1).text
         Monto = oClientInfoXML.documentElement.childNodes.item(2).text
         Set oElemento = oDoc.XMLDocument.createElement("Resultado")
         Set oNode = oElemento.appendChild(oDoc.XMLDocument.createNode(1, "AVAILABLE",""))     
         Set oNode = oElemento.appendChild(oDoc.XMLDocument.createNode(1, "ESTADO",""))
         If oClienteBD.UpdateBalance(Cliente, Accion, Monto) = True Then
              If oClienteBD.GetClientBalance(Cliente) = True Then
                   oElemento.childNodes.Item(0).Text = oClienteBD.Available
                   oElemento.childNodes.Item(1).Text = "OK"
              else
                   oElemento.childNodes.Item(0).Text = 0
                   oElemento.childNodes.Item(1).Text = "BAD"
              end If
         else
              oElemento.childNodes.Item(0).Text = 0
              oElemento.childNodes.Item(1).Text = "BAD"
         end If
         Response.Write(oElemento.xml)
         Set oClientInfoXML = Nothing
         Set oDoc = Nothing
         Set oClienteBD = Nothing
         Set oNode          = Nothing
         Set oElemento     = Nothing
    %>
    What I need to do is to change the VB part for a Java application and basicly, I don't know what Class of Java I have to use to connect to the ASP.
    If you were so kind of giving me an example to do this I will appreciate it.
    Ocorella

  • Urgent Help in Tranformation

    Hello
    Urgent Help Required
    I am extracting Master data from CRM 5.0.
    Infoobject 0BPARTNER is enhanced to accommodate a attribute called NAS(data is filled).
    So for every BP no it has NAS no too
    For The Revenue of Business partner I am extracting from old Legacy System(through DB Connect).
    This legacy table does not BP number it has another Key called NAS.
    BP no is additional field in the ODS.
    I want to write a routine in the transformation(ODS and Data source). SO that the BP number for corresponding NAS is filled into the ODS.

    Laura,
    Goods issues are linked as you described because components consumed by a production order have reservations (RESB) and are assigned to an operation (AFVC).  Goods receipts, on the other hand, do not have reservations and therefore don't have this link to the work center.
    If you are using automatic goods receipt, then one of the operations in the production order will have a control key set up for automated goods receipt (PP03 is the standard, and it's usually the last operation).  The business would likely see this work center as being logically tied to the goods receipt of the produced material.

  • Urgent help needed to get this home page up!

    Hi,
    I need urgent help with this and it is driving me crazy. For
    some reason my animation starts at its fastest and won't stop until
    you click the area then it works properly. I have no clue why it is
    doing this and only seems to do it on a PC browser not on a Mac.
    Can anyone help please!!!!!
    Link to sample:
    http://www.totalamber.com/test.html
    Link to fla:
    http://www.totalamber.com/flash/homepage.fla
    Thanks so much for anyone who can help or tries to help me.
    Neil
    Ps this is urgent and i can't find a solution by searching on
    here

    Thanks to anyone who has looked at this but i have found the
    answer.
    It is due to what many of the users on here will already know
    and can be explained in this link:
    http://blog.deconcept.com/swfobject/
    I had forgot about the legal patent going on with microsoft!
    Hope it helps anyone else as bad as i am.
    Neil

  • (Urgent help needed) how to read txt file and store the data into 2D-array?

    Hi, I have a GUI which allow to choose file from the file chooser, and when "Read file" button is pressed, I want to show the array data into the textarea.
    The sample data is like this followed:
    -0.0007     -0.0061     0.0006
    -0.0002     0.0203     0.0066
    0     0.2317     0.008
    0.0017     0.5957     0.0008
    0.0024     1.071     0.0029
    0.0439     1.4873     -0.0003
    I want my program to scan through and store these data into 2D array.
    However for some reason, my source code issues errors, and I don't know what's wrong with it, seems to have a problem in StringTokenizer though. Can anybody help me?
    Thanks in advance.
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.StringTokenizer;
    public class FileReduction1 extends JFrame implements ActionListener{
    // GUI features
    private BufferedReader fileInput;
    private JTextArea textArea;
    private JButton openButton, readButton,processButton,saveButton;
    private JTextField textfield;
    private JPanel pnlfile;
    private JPanel buttonpnl;
    private JPanel buttonbar;
    // Other fields
    private File fileName;
    private String[][] data;
    private int numLines;
    public FileReduction1(String s) {
    super(s);
    // Content pane
         Container cp = getContentPane();
         cp.setLayout(new BorderLayout());     
    // Open button Panel
    pnlfile=new JPanel(new BorderLayout());
         textfield=new JTextField();
         openButton = new JButton("Open File");
    openButton.addActionListener(this);
    pnlfile.add(openButton,BorderLayout.WEST);
         pnlfile.add(textfield,BorderLayout.CENTER);
         readButton = new JButton("Read File");
    readButton.addActionListener(this);
         readButton.setEnabled(false);
    pnlfile.add(readButton,BorderLayout.EAST);
         cp.add(pnlfile, BorderLayout.NORTH);
         // Text area     
         textArea = new JTextArea(10, 100);
    cp.add(new JScrollPane(textArea),BorderLayout.CENTER);
    processButton = new JButton("Process");
    //processButton.addActionListener(this);
    saveButton=new JButton("Save into");
    //saveButton.addActionListener(this);
    buttonbar=new JPanel(new FlowLayout(FlowLayout.RIGHT));
    buttonpnl=new JPanel(new GridLayout(1,0));
    buttonpnl.add(processButton);
    buttonpnl.add(saveButton);
    buttonbar.add(buttonpnl);
    cp.add(buttonbar,BorderLayout.SOUTH);
    /* ACTION PERFORMED */
    public void actionPerformed(ActionEvent event) {
    if (event.getActionCommand().equals("Open File")) getFileName();
         if (event.getActionCommand().equals("Read File")) readFile();
    /* OPEN THE FILE */
    private void getFileName() {
    // Display file dialog so user can select file to open
         JFileChooser fileChooser = new JFileChooser();
         fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
         int result = fileChooser.showOpenDialog(this);
         // If cancel button selected return
         if (result == JFileChooser.CANCEL_OPTION) return;
    if (result == JFileChooser.APPROVE_OPTION)
         fileName = fileChooser.getSelectedFile();
    textfield.setText(fileName.getName());
         if (checkFileName()) {
         openButton.setEnabled(false);
         readButton.setEnabled(true);
         // Obtain selected file
    /* READ FILE */
    private void readFile() {
    // Disable read button
    readButton.setEnabled(false);
    // Dimension data structure
         getNumberOfLines();
         data = new String[numLines][];
         // Read file
         readTheFile();
         // Output to text area     
         textArea.setText(data[0][0] + "\n");
         for(int index=0;index < data.length;index++)
    for(int j=1;j<data[index].length;j++)
    textArea.append(data[index][j] + "\n");
         // Rnable open button
         openButton.setEnabled(true);
    /* GET NUMBER OF LINES */
    /* Get number of lines in file and prepare data structure. */
    private void getNumberOfLines() {
    int counter = 0;
         // Open the file
         openFile();
         // Loop through file incrementing counter
         try {
         String line = fileInput.readLine();
         while (line != null) {
         counter++;
              System.out.println("(" + counter + ") " + line);
    line = fileInput.readLine();
         numLines = counter;
    closeFile();
         catch(IOException ioException) {
         JOptionPane.showMessageDialog(this,"Error reading File",
                   "Error 5: ",JOptionPane.ERROR_MESSAGE);
         closeFile();
         System.exit(1);
    /* READ FILE */
    private void readTheFile() {
    // Open the file
    int row=0;
    int col=0;
         openFile();
    System.out.println("Read the file");     
         // Loop through file incrementing counter
         try {
    String line = fileInput.readLine();
         while (line != null)
    StringTokenizer st=new StringTokenizer(line);
    while(st.hasMoreTokens())
    data[row][col]=st.nextToken();
    System.out.println(data[row][col]);
    col++;
    row++;
    closeFile();
    catch(IOException ioException) {
         JOptionPane.showMessageDialog(this,"Error reading File",
                   "Error 5: ",JOptionPane.ERROR_MESSAGE);
         closeFile();
         System.exit(1);
    /* CHECK FILE NAME */
    /* Return flase if selected file is a directory, access is denied or is
    not a file name. */
    private boolean checkFileName() {
         if (fileName.exists()) {
         if (fileName.canRead()) {
              if (fileName.isFile()) return(true);
              else JOptionPane.showMessageDialog(null,
                        "ERROR 3: File is a directory");
         else JOptionPane.showMessageDialog(null,
                        "ERROR 2: Access denied");
         else JOptionPane.showMessageDialog(null,
                        "ERROR 1: No such file!");
         // Return
         return(false);
    /* FILE HANDLING UTILITIES */
    /* OPEN FILE */
    private void openFile() {
         try {
         // Open file
         FileReader file = new FileReader(fileName);
         fileInput = new BufferedReader(file);
         catch(IOException ioException) {
         JOptionPane.showMessageDialog(this,"Error Opening File",
                   "Error 4: ",JOptionPane.ERROR_MESSAGE);
    System.out.println("File opened");
    /* CLOSE FILE */
    private void closeFile() {
    if (fileInput != null) {
         try {
              fileInput.close();
         catch (IOException ioException) {
         JOptionPane.showMessageDialog(this,"Error Opening File",
                   "Error 4: ",JOptionPane.ERROR_MESSAGE);
    System.out.println("File closed");
    /* MAIN METHOD */
    /* MAIN METHOD */
    public static void main(String[] args) throws IOException {
         // Create instance of class FileChooser
         FileReduction1 newFile = new FileReduction1("File Reduction Program");
         // Make window vissible
         newFile.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         newFile.setSize(500,400);
    newFile.setVisible(true);
    Java.lang.NullpointException
    at FileReductoin1.readTheFile <FileReduction1.java :172>
    at FileReductoin1.readFile <FileReduction1.java :110>
    at FileReductoin1.actionPerformed <FileReduction1.java :71>
    .

    1) Next time use the CODE tags. this is way too much unreadable crap.
    2) The problem is your String[][] data.... the only place I see you do anything approching initializing it is
    data = new String[numLines][];I think you want to do this..
    data = new String[numLines][3];anyway that's why it's blowing up on the line
    data[row][col]=st.nextToken();

Maybe you are looking for

  • User Function Name wrong resultset in Oracle Apps Query

    Hi, I am using the below query to extarct the user function names alonng with responsilibity .But doing so i am getting a User Function Name for eg 'Cross Validation Rules' under Order Management User.But thats wrong.Cross validation rules should exi

  • Unable to deploy a simple ADF Mobile app to iPhone

    I have been able to deploy the app on iOS simulator, and also on an Android device. I have also created provisioning profile and certificate from apple developer site. My XCode is also setup properly and can deploy the app on iPhone. However when i t

  • Default Screen Resolution 15"

    What is the default screen resolution for a macbook 15"? I have found that people say 1440x900 but that is not even an option on my computer. Also, my icons on my desktop are miniature. How do I fix that? My screen resolution was fine until I plugged

  • Problem with .ModifyUserPaperSize

    I am having difficulty getting the CR viewer to display custom/user paper sizes. If the paper size is a valid CR size, it works OK but if any odd size is used, it displays a paper size roughly 3"x2" and cannot be oriented. Here is my code... With Cry

  • Flash Player 11 disappears on iMac Maverick & Safari 7

    file:///.file/id=7692994.26file:///.file/id=7692994.26Flash Player 11 keeps disappearing after finishing the installation on iMac Maverick & Safari 7.