Null pointer problems. Need help

I have a class that scrolls text across the screen. the class is a Jpanel and uses a thread to produce a scroller effect. The panel is created and called in the constructor and uses a String Array.
This application is now a client and its server sends over a new String array as an object to the client uses stream sockets. I wish to use this new Server string array but since no array exists until it connects i suppse thats the reason im getting null pointer exceptions.
What can i do to solve this problem?

Do you get a stack trace printed to the console window? Look at the stack trace. It tells you in which line of your source code the NullPointerException occurred. Go to that place in your source code and find out what happens. Fix the problem in the source code.

Similar Messages

  • Still stuck with the same old producer consumer weight problem need help

    Hello All,
    This is the problem I am stuck with right now.
    I have two array lists one producer array list and one consumer array list denoted by a and b
    P1 P2 P3 P4 P5
    5 6 7 8 9
    C1 C2 C3 C4 C5
    2 3 4 5 6
    Now we find all those producer consumer pairs which satisfy the criteria Pi>=Ci
    We have the following sets
    (5,2)(6,2)(7,2),(8,2),(9,2)
    (5,3)(6,3)(7,3),(8,3),(9,3)
    (5,4)(6,4)(7,4),(8,4),(9,4)
    (5,5)(6,5)(7,5),(8,5),(9,5)
    (6,6)(7,6)(8,6),(9,6)
    Let us done each of them with Si
    so we have S1,S2,S3,S4,S5
    we assign a third parameter called weight to each element in Si which has satisfied the condition Pi>=Ci;
    so we we will have
    (5,2,ai),(6,2,bi),(7,2,ci)....etc for S1
    similarly for S2 and so on.
    We need to find in each set Si the the pair which has the smallest weight.
    if we have (5,2,3) and (6,2,4) then 5,2,3 should be chosen.We should make sure that there is only one pair in every set which is finally chosen on the basis of weight.
    Suppose we get a pair (5,2,3) in S1 and (5,2,3) in S2 we should see that (5,2,3) is not used to compare to compare with any other elements in the same set S2,
    Finally we should arrive at the best element pair in each set.They should be non repeating in other sets.
    Given a problem
    P0 P1 P2 P3 P4
    9 5 2 2 8
    6 5 4 5 3
    C0 C1 C2 C3 C4
    we have So as (P0,C0) and (P4,C0)
    assuming that the one with the smaller index has lesser weight PO is selected.In the program I have used random weights.from set S1 we select the pair PO,CO
    S1 =(P0,C1),(P1,C1) and (P4,C1)
    since P0 and P4 are already used in previous set we dont use them for checking in S1 so we have (P1,C1) as best.
    S2=(P0,C2),(P1,C2) and (P4,C2) so we dont use P0,C2 and P1 and C2 because PO and P1 are already used in S1.
    So we choose P4,C2
    in S3 and S4 ae have (P0,C3),(P1,C3),(P4,C3) so we dont choose anything
    and same in S4 also.
    So answer is
    (P0,C0),(P1,C1) and (P4,C2).
    My program is trying to assign weights and I am trying to print the weights along with the sets.It doesnt work fine.I need help to write this program to do this.
    Thanks.
    Regards.
    NP
    What I have tried till now.
    I have one more question could you help me with this.
    I have an array list of this form.
    package mypackage1;
    import java.util.*;
    public class DD
    private  int P;
    private  int C;
    private int weight;
    public void set_p(int P1)
    P=P1;
    public void set_c(int C1)
    C=C1;
    public void set_weight(int W1)
    weight=W1;
    public int get_p()
    return P;
    public int get_c()
    return C;
    public int get_x()
    return weight;
    public static void main(String args[])
    ArrayList a=new ArrayList();
    ArrayList min_weights_int=new ArrayList();
    ArrayList rows=new ArrayList();
    ArrayList temp=new ArrayList();
    Hashtable h=new Hashtable();
    String v;
    int o=0;
    DD[] d=new DD[5];
    for(int i=0;i<4;i++)
    d=new DD();
    for(int i=0;i<4;i++)
    d[i].set_p(((int)(StrictMath.random()*10 + 1)));
    d[i].set_c((int)(StrictMath.random()*10 + 1));
    d[i].set_weight(0);
    System.out.println("Producers");
    for(int i=0;i<4;i++)
    System.out.println(d[i].get_p());
    System.out.println("Consumers");
    for(int i=0;i<4;i++)
    System.out.println(d[i].get_c());
    System.out.println("Weights");
    for(int i=0;i<4;i++)
    System.out.println(d[i].get_x());
    for(int i=0;i<4;i++ )
    int bi =d[i].get_c();
    ArrayList row=new ArrayList();
    for(int j=0;j<4;j++)
    if( d[j].get_p() >=bi)
    d[j].set_weight((int)(StrictMath.random()*10 + 1));
    row.add("(" + bi + "," + d[j].get_p() + "," +d[j].get_x() + ")");
    else
    d[j].set_weight(0);
    row.add("null");
    rows.add(row);
    System.out.println(rows);
    int f=0;
    for(Iterator p=rows.iterator();p.hasNext();)
    temp=(ArrayList)p.next();
    String S="S" +f;
    h.put(S,temp);
    String tt=new String();
    for(int j=0;j<4;j++)
    if(temp.get(j).toString() !="null")
    // System.out.println("In if loop");
    //System.out.println(temp.get(j).toString());
    String l=temp.get(j).toString();
    System.out.println(l);
    //System.out.println("Comma matches" + l.lastIndexOf(","));
    //System.out.println(min_weights);
    f++;
    for(Enumeration e=h.keys();e.hasMoreElements();)
    //System.out.println("I am here");
    int ii=0;
    int smallest=0;
    String key=(String)e.nextElement();
    System.out.println("key=" + key);
    temp=(ArrayList)h.get(key);
    System.out.println("Array List" + temp);
    for( int j=0;j<4;j++)
    String l=(temp.get(j).toString());
    if(l!="null")
    System.out.println("l=" +l);
    [\code]

    In your example you selected the pair with the greatest
    distance from the first set, and the pair with the least
    distance from the second. I don't see how the distance
    function was used.
    Also it's not clear to me that there is always a solution,
    and, if there is, whether consistently choosing the
    furthest or the closest pairs will always work.
    The most obvious approach is to systematically try
    all possibilities until the answer is reached, or there
    are no possibilities left. This means backtracking whenever
    a point is reached where you cannot continue. In this case
    backtrack one step and try another possibility at this
    step. After all possible choices of the previous step,
    backtrack one more step and so on.
    This seems rather involved, and it probably is.
    Interestingly, if you know Prolog, it is ridiculously
    easy because Prolog does all the backtracking for you.
    In Java, you can implement the algorithm in much the same
    way as Prolog implementations do it--keep a list of all the
    choice points and work through them until success or there
    are none left.
    If you do know Prolog, you could generate lots of random
    problems and see if there is always a solution.

  • WL 6.1 jsp null pointer problem

              Under heavy load during our load testing, I am seeing an intermittment error.
              Turns out, after serving 1.5 million requests, the stack trace is thrown about
              200-300 times.
              This is funny, because a null pointer would be evident in every request.
              If anyone has seen this or has any ideas, please let me know.
              The session timeout is configured for 2 minutes for the testing.
              20 users using JMeter were thrown at the application which is a jsp page that
              includes 4 other jsp pages
              all reading data from the controller servlet by use of a helper and a delegate.
              This uses Local interfaces.
              Let me know if you need any more information.
              Thanks,
              cb
              The stack trace follows:
              <Aug 12, 2001 7:16:51 PM EDT> <Error> <HTTP> <[WebAppServletContext(2072757,xp3,
              /xp3)] Servlet failed with Exception
              java.lang.NullPointerException
              at jsp_servlet._template._1.__test_splash._jspService(__test_splash.java
              :97)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:263)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:200)
              at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
              cherImpl.java:190)
              at com.synapse.xp.control.web.helper.TemplateControllerHelper.processReq
              uest(TemplateControllerHelper.java:124)
              at com.synapse.xp.control.web.TemplateController.service(TemplateControl
              ler.java:99)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:263)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:200)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:2390)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:1959)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              

    Did you use -keepgenerated and check line 97 of the JSP->Java code?
              Peace,
              Cameron Purdy
              Tangosol Inc.
              << Tangosol Server: How Weblogic applications are customized >>
              << Download now from http://www.tangosol.com/download.jsp >>
              "cb4158" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Under heavy load during our load testing, I am seeing an intermittment
              error.
              > Turns out, after serving 1.5 million requests, the stack trace is thrown
              about
              > 200-300 times.
              > This is funny, because a null pointer would be evident in every request.
              >
              > If anyone has seen this or has any ideas, please let me know.
              > The session timeout is configured for 2 minutes for the testing.
              > 20 users using JMeter were thrown at the application which is a jsp page
              that
              > includes 4 other jsp pages
              > all reading data from the controller servlet by use of a helper and a
              delegate.
              > This uses Local interfaces.
              >
              > Let me know if you need any more information.
              >
              > Thanks,
              > cb
              >
              > The stack trace follows:
              >
              > <Aug 12, 2001 7:16:51 PM EDT> <Error> <HTTP>
              <[WebAppServletContext(2072757,xp3,
              > /xp3)] Servlet failed with Exception
              > java.lang.NullPointerException
              > at
              jsp_servlet._template._1.__test_splash._jspService(__test_splash.java
              > :97)
              > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > pl.java:263)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > pl.java:200)
              > at
              weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
              > cherImpl.java:190)
              > at
              com.synapse.xp.control.web.helper.TemplateControllerHelper.processReq
              > uest(TemplateControllerHelper.java:124)
              > at
              com.synapse.xp.control.web.TemplateController.service(TemplateControl
              > ler.java:99)
              > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > pl.java:263)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > pl.java:200)
              > at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              > rvletContext.java:2390)
              > at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              > pl.java:1959)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > >
              

  • Zen Vision:M problem, NEED HELP!

    My zen vision:m is starting to run slowly. It started right after my player froze and i reset it.Now its really slow and barely even switches screens sometimes.Right now its just a black screen with the keypad lit up.Whats wrong with it'sI NEED HELP!

    johnnnyp wrote:
    hi, i have a problem with my creative vision m. i wanted to watch a movie and it froze. i tried to shut it down but it wouldnt respond, and now is frozen. please help me if you can!
    You know its kinda rude to derail XBenzinoFla thread with your own problems, make your own thread next time.
    But to the both of you especially XBenzinoFla, try putting your ZVM in rescue mode and run scan disk to see if it hel
    ps.

  • Zen Micro problem need help

    Today i was listening to music and my zen micro just froze while playing and no buttons could be pressed and the lock button wasnt on. So i took the battery out and rebooted the player but it froze at the creative screen. I went home and i went to recovery mode and tried to reload the firmware but it said erasing firmware for more than 2 hours. So then i tried a format but it said formating for the same amount of time. I need help please. Also, recently i've had problems witht the headphone jack. When ever i would stick it in it would sound distorted and i would have to move it around until i got it to a certain spot to hear it good again. If anyone else has this problem please tell me. One more thing i had returned my other micro zen in for hard dri've probems and this was my new one do u think if i have to return in (hopefully not) that they would accept it.

    If the functions in Rescue Mode aren't working properly then you need to contact Creative Support.

  • Ipod problem NEED HELP ASAP

    Hello guys,my ipod touch has battery problems and internal speaker are not working and will apple replace me a new one,i even have 1 year warranty and i want a new ipod touch white instead of black<<<plz plz plz reply ASAP plz really need HELP!THANK YOU

    If you iPod is defective, in warranty and not abused Apple will replace it with a refurbished one.  They may or may not replace it with the white one.  You will have to ask.
    Other users have asked the same question but I hav never heard them come back with whether or not they go the color changed.

  • Another Infinite Login Loop Problem - need help badly

    Hello. I need help.
    When I start up my iMac (24 inch last generation model) I can't log into the OS. When I enter my password I see the default OS wallpaper (nothing else) then it kicks me to a blue screen then right back to the login. Same thing over and over. I've already ran disk utility off of the install CD to repair permissions, etc... but no luck. This even happens when I enter into safe mode. I'm running the latest version of the OS.
    Can anyone help me?

    Restore the bootable backup/clone or Time Machine backup. Without one, you have a difficult situation. First thing to try is boot with your install disc, run Disk Utility, and repair the disk.

  • Ipod nano Problems need help fast!!!!!!

    I got my nano in october everything was working fine.Until 2 weeks ago my ipod wasnt getting reconized by itunes.Im really getting frustrated and i need help.

    Welcome to Apple Discussions!
    Read through this...
    http://docs.info.apple.com/article.html?artnum=61711
    btabz

  • Urgent Problem, need help asap.

    Hello everyone,
    I'm sorry for the alarmist title, but I need help and I need it badly. Just last night, my macbook froze with nothing working. The mouse froze, the interrupt keys didn't work, nothing. I shut down the laptop, and tried to restart. I noticed a clicking sound coming from the lower left hand corner of the macbook. I'm assuming this is the hard drive.
    What happens is that there will be two clicks happening in a rythmic fashion, and after 15 second of booting up, a folder will appear with a question mark on the screen. The only thing I can do is power it down. Can someone please describe what is happening and make suggestions?
    The kicker is that I'm a college student studying in Denmark for the semester. The laptop is my only lifeline to back home. Please, any help is greatly appreciated.
    Matt

    You may have a disk failure or simply corrupted files. If you have a bootable backup that is working, then you can boot from it, erase your hard drive, then restore your backup. If not then do this:
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger and Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.0 for Tiger, and 4.1 for Leopard) and/or TechTool Pro (4.6.1 for Leopard) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    If the drive is OK then you can reinstall OS X:
    How to Perform an Archive and Install
    An Archive and Install will NOT erase your hard drive, but you must have sufficient free space for a second OS X installation which could be from 3-9 GBs depending upon the version of OS X and selected installation options. The free space requirement is over and above normal free space requirements which should be at least 6-10 GBs. Read all the linked references carefully before proceeding.
    1. Be sure to use Disk Utility first to repair the disk before performing the Archive and Install.
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.0 for Tiger) and/or TechTool Pro (4.5.2 for Tiger) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Do not proceed with an Archive and Install if DU reports errors it cannot fix. In that case use Disk Warrior and/or TechTool Pro to repair the hard drive. If neither can repair the drive, then you will have to erase the drive and reinstall from scratch.
    3. Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When you reach the screen to select a destination drive click once on the destination drive then click on the Option button. Select the Archive and Install option. You have an option to preserve users and network preferences. Only select this option if you are sure you have no corrupted files in your user accounts. Otherwise leave this option unchecked. Click on the OK button and continue with the OS X Installation.
    4. Upon completion of the Archive and Install you will have a Previous System Folder in the root directory. You should retain the PSF until you are sure you do not need to manually transfer any items from the PSF to your newly installed system.
    5. After moving any items you want to keep from the PSF you should delete it. You can back it up if you prefer, but you must delete it from the hard drive.
    6. You can now download a Combo Updater directly from Apple's download site to update your new system to the desired version as well as install any security or other updates. You can also do this using Software Update.

  • Serius project problems - Need help please

    Hi,
    I'm using adobe premiere and after effects to my last film (this is not the first time). I'm using DV 1280*720 default sound settings (as I did before in other movies). I have an Imac C2D and plenty of hard disk space.
    Yesterday when I import new takes and done some light fx's (blur 10% and tint) when I saved the premiere frozen for 30 minutes and then I had to force quit.
    When I've tried to open that project again, it just don't open. I've tried everything. See if there was any corrupted file, checked for Hard drive problem (it doesn't have any) and I delete the previous rendered files (as I saw on some tutorial).
    At least I could recover that project using autosaved and previous project backup (I take care always of saving backups).
    But when I saved again (the new recovered and rendered project) it freezes on quit and there comes again. (it seems that premiere it is getting something from the old(damaged) project and just stack there !!!!!!
    The project then it just don't open (I don't see any error message) I just see after 1 hour my premiere freezed and there is no way to see the timeline to fix anything.
    I assume that I have to recover again and to all work over and over. I saw some forums talking about adobe "broken links" something related to video files source and corrupted files, but I still don't get it (since premiere doesn't tells me what is going wrong!!!!!!). They talk about deleting MACC file on windows but I'm on a mac. I didn't saw any tutorial about recovering.
    whe this thing happens I see my timeline with video and audio. I can render but when I quit the program doesn't load the project again.
    Please any help...... I'm working since a month ago on this movie and I need to deleiver that asap.
    Is it better to export the video in parts and them join in a new project or there is any other thing that I can do without missing my month of work.
    ohhh man I just want to scream

    For any reason that I can't explain when I arrived home after day work, I've tried last time before looking my backups and Premiere loaded my project
    Before save and quit I've take a look in all file (check the link and where is the source) I found 2 still frames (photos) were lost ( i mean from my hard drive).
    My biggest clue now it is, when I deleted some video file before, when I enter the premiere project 1st thing that show it is a windows asking me to "point" where is that file.
    But when happens with a photo, premiere doesn't say that this files are lost. It just stucks your project. Any tip to prevent this again?
    Hardware Overview:
      Model Name:    iMac
      Model Identifier:    iMac7,1
      Processor Name:    Intel Core 2 Duo
      Processor Speed:    2.4 GHz
      Number Of Processors:    1
      Total Number Of Cores:    2
      L2 Cache:    4 MB
      Memory:    4 GB
      Bus Speed:    800 MHz
    Intel ICH8-M AHCI:
      Vendor:    Intel
      Product:    ICH8-M AHCI
      Speed:    3 Gigabit
      Description:    AHCI Version 1.10 Supported
    WDC WD3200AAJS-40VWA1:
      Capacity:    298.09 GB
      Model:    WDC WD3200AAJS-40VWA1
      Revision:    58.01D02
      Native Command Queuing:    Yes
      Queue Depth:    32
      Removable Media:    No
      Detachable Drive:    No
      BSD Name:    disk0
      Mac OS 9 Drivers:    No
      Partition Map Type:    GPT (GUID Partition Table)
      S.M.A.R.T. status:    Verified
      Volumes:
    iMac:
      Capacity:    297.77 GB
      Available:    158.68 GB
      Writable:    Yes
      File System:    Journaled HFS+
      BSD Name:    disk0s2
      Mount Point:    /
    ps: about your question "Next, please verify your Project/Sequence Presets. Do they match your footage 100%?" I've changed 2 video files, they were pretty bigger than the part I was taking for this project, so I edit and save just the part that I am using.
    Btw I've heard that Journaled HFS+ it is not good on Imac to use premiere render option. Is that right?
    Many thanks in advance.

  • Searching Problem, need help plz...

    Hi All,
    I have a problem. After created index my_doc_idx1, i’m searching a word on all document i stored but find nothing. Everytime i search there’s no rows selected.
    anybody help me please?
    I including my code.
    My documents are:
    1. doc1.html contain:
    “Oracle interMedia audio, document, image, and video is designed to manage Internet media content”
    2. doc2.html contain:
    “Oracle interMedia User’s Guide and Reference, Release 9.0.1”
    3. word1.doc contain:
    “Oracle application server.”
    4. oracletext.pdf contain:
    “Stages of Index Creation.”
    Oracle9i 9 realese 2, Windows XP
    Thanks,
    Robby
    set serveroutput on
    set echo on
    -- create table
    create table my_doc (
    id number,
    document ordsys.orddoc);
    INSERT INTO my_doc VALUES(1,ORDSYS.ORDDoc.init());
    INSERT INTO my_doc VALUES(2,ORDSYS.ORDDoc.init());
    INSERT INTO my_doc VALUES(3,ORDSYS.ORDDoc.init());
    INSERT INTO my_doc VALUES(4,ORDSYS.ORDDoc.init());
    COMMIT;
    -- create directory
    create or replace directory dir_doc as 'e:\projects'
    -- import data
    DECLARE
    obj ORDSYS.ORDDoc;
    ctx RAW(4000) := NULL;
    BEGIN
    SELECT document INTO obj FROM my_doc WHERE id = 1 FOR UPDATE;
    obj.setSource('file','DIR_DOC','doc1.html');
    obj.import(ctx,FALSE);
    UPDATE my_doc SET document = obj WHERE id = 1;
    COMMIT;
    SELECT document INTO obj FROM my_doc WHERE id = 2 FOR UPDATE;
    obj.setSource('file','DIR_DOC','doc2.html');
    obj.import(ctx,FALSE);
    UPDATE my_doc SET document = obj WHERE id = 2;
    COMMIT;
    SELECT document INTO obj FROM my_doc WHERE id = 3 FOR UPDATE;
    obj.setSource('file','DIR_DOC','word1.doc');
    obj.import(ctx,FALSE);
    UPDATE my_doc SET document = obj WHERE id = 3;
    COMMIT;
    SELECT document INTO obj FROM my_doc WHERE id = 4 FOR UPDATE;
    obj.setSource('file','DIR_DOC','oracletext.pdf');
    obj.import(ctx,FALSE);
    UPDATE my_doc SET document = obj WHERE id = 4;
    COMMIT;
    END;
    -- check properties
    DECLARE
    obj ORDSYS.ORDDoc;
    idnum INTEGER;
    ext VARCHAR2(5);
    dotpos INTEGER;
    mimetype VARCHAR2(50);
    fname VARCHAR2(50);
    ctx RAW(4000) := NULL;
    BEGIN
    fname:= '';
    DBMS_OUTPUT.PUT_LINE('----------------------------------------');
    FOR I IN 1..4 LOOP
    SELECT id, document INTO idnum, obj FROM my_doc
    WHERE id = I;
    fname := obj.getSourceName();
    dotpos := INSTR(fname, '.');
    IF dotpos != 0 THEN
    ext := LOWER(SUBSTR(fname, dotpos + 1));
    ext := LOWER(ext);
    mimetype := 'application/' || ext;
    IF ext = 'doc' THEN
    mimetype := 'application/msword';
    obj.setFormat('DOC');
    ELSIF ext = 'pdf' THEN
    mimetype := 'application/pdf';
    obj.setFormat('PDF');
    ELSIF ext = 'ppt' THEN
    mimetype := 'application/vnd.ms-powerpoint';
    obj.setFormat('PPT');
    ELSIF ext = 'txt' THEN
    obj.setFormat('TXT');
    END IF;
    obj.setMimetype(mimetype);
    END IF;
    DBMS_OUTPUT.PUT_LINE('Document ID: ' || idnum);
    IF TO_CHAR(DBMS_LOB.getLength (obj.getContent())) = 0 THEN
    DBMS_OUTPUT.PUT_LINE('Content is NULL.');
    DBMS_OUTPUT.PUT_LINE('No information available.');
    ELSIF TO_CHAR(DBMS_LOB.getLength (obj.getContent())) <> 0 THEN
    DBMS_OUTPUT.PUT_LINE('Document Source: ' || obj.getSource());
    DBMS_OUTPUT.PUT_LINE('Document Name: ' || obj.getSourceName());
    DBMS_OUTPUT.PUT_LINE('Document Type: ' || obj.getSourceType());
    DBMS_OUTPUT.PUT_LINE('Document Location: ' || obj.getSourceLocation());
    DBMS_OUTPUT.PUT_LINE('Document MIME Type: ' || obj.getMimeType());
    DBMS_OUTPUT.PUT_LINE('Document File Format: ' || obj.getFormat());
    DBMS_OUTPUT.PUT_LINE('BLOB Length: ' || TO_CHAR(DBMS_LOB.getLength (obj.getContent())));
    END IF;
    DBMS_OUTPUT.PUT_LINE('----------------------------------------');
    END LOOP;
    EXCEPTION
    END;
    -- create index
    create index my_doc_idx1
    on my_doc(document.comments)
    indextype is ctxsys.context;
    commit;
    alter index my_doc_idx1
    rebuild online
    parameters('sync memory 10m');
    -- searching
    select id from my_doc t
    where contains(t.document.comments,'oracle') > 0
    order by id;
    select id from my_doc t
    where contains(t.document.comments,'application server') > 0
    order by id;
    select id from my_doc t
    where contains(t.document.comments,'index creation') > 0
    order by id;

    Hi,
    Which is best depends on the type of application you are building and the nature of the docs. For simple use with pdf's and word docs I prefer to use bfile or blob which is why I mentioned it. No sense in overcomplicating it.
    My recommendation - look at the interMedia docs and determine if you need the advanced features it provides. I like the application a lot, but am a firm believer in not adding complexity if there is no benefit to be had. Unless you are just playing around with it to learn, I'd recommend matching your project requirements up with what best meets them and go whichever route that is.
    Thanks,
    Ron

  • G5 DVI to VGA Dell Monitor Connection problems, need help!!!!!!!!!!!!!!!!!!

    hello,
    I'm running two dell monitors both of which were connected via DVI to my g5 quad dual dvi. My tv broke and I'm using one of my monitors to connect the cable boxes HDMI input to the dells DVI input, it works great.
    My problem is that i still want to run two monitors from my mac and still be able to switch channel sources from the Dells source button allowing me to switch from TV to Mac. Since I took up the dvi port on one of my monitors to connect to the cable box via HDMI, I have a free DVI cable. I purchased a tiny converter that allowed to change one end of the free DVI cable to VGA. I used this method to connect the cable to my g5's dvi port and the configured end to the VGA port on the monitor with no luck.
    The Dell monitor does not pick up any signal and just goes to sleep as if my computer does not exist. The TV works fine and I'm able to switch sources. Please note that I'm not using the DVI-VGA adaptor that came with my g5 and don't know if this would make a difference. If it does, how do i set this up because this adaptor is like 5 inches long.
    Does the adaptors DVI end need to be connected to the back of the g5 or does the VGA end need to be connected to the monitor or does it not matter. I need a longer dvi-vga cable as well, do they make them. This all depends if the problem actually is that that I'm not using the DVI-VGA cable that came with my mac to connect to the monitor in the first place.
    Can anyone help me out here. I'm using the Dell 2208WFP Ultra Sharp.

    Bad adapter?
    The G5 ports are DVI-I. Any good DVI-I to VGA adapter should be fine.

  • I am having a big problem need help

    I can't set up my email in my mac mail... I posted my question here.. https://discussions.apple.com/message/21560797#21560797
    And by mistake clicked on my own reply that it solved my problem and it did not, how do I undo it.. please help!

    You cannot change points awarded in error.   But don't be too concerned, if you explain as you have most people will know the intention was there.   In any event most of us are just happy to help.

  • Setup Problem - Need Help Please!!

    My problem is a low hum eminating from my speakers every time I connect my MPC2000 sampler to my audio interface.
    My setup consists of the MPC2000, a Dj Mixer, and my laptop which has an M-Audio interface which I use to connect the mixer & MPC. Basically, as soon as I remove the cables that connect my MPC or my mixer to my interface, the hum stops. I've tried different cables, new cables, a ground adapter for the MPC to change it to 2 prong, and nothing helps. The only thing that DOESN'T cause this hum when plugged into my interface, is my keyboard, so i'm quite sure the interface itself isn't the problem.
    Does anyone know what might be causing this interference that's resulting in a hum? I have exhausted all my own theories and am desperate for some sort of help! Many thanks in advance!!!

    Hi beirut,
    Try the following:
    1.Put the mpc2000,the dj mixer and your computer all in the same power outlet from the wall.
    2.Go to home despot and buy a few gray-colored ground lift plugs (they must be gray)
    3.With these gray ground lift plugs,lift the MPC2000.test the system.No hum=solved problem.hum still there or different,list the DJ mixer.
    4.Is your DJ mixer hooked up to turntables? If so,you need to ground the turntables to a proper ground.Good turntables have a little wire coming out of them,just for that purpose.
    5.Try turning off any TVs,refridgerators,fluorescent lighting(the ones that look like office lights),and other things around your place,and see if the hum goes away.
    6.Try using a DI box for your DJ mixer,to plug it in to the DI,and then out to the audio interface.
    7.And Most Importantly... RUN AND BUY A DIFFERENT BRAND OF AUDIO INTERFACE!!!!!!!!!! M-Audio...yucky yucky yucky!!!
    Cheers

  • Select Query Problem-need help

    hi,
    Help me out from this problem.
    Actually i have a table and the data in it as follows:
    Department Name Job Name
    Accounts Sr. Accountant
    Accounts Jr. Accountant
    Accounts Cleark
    But i dont want the repeated Department Name.. and i want the same output as follows.
    Department Name Job Name
    Accounts Sr. Accountant
    Jr. Accountant
    Cleark
    Without using sql reports and Sql Plus additional commands.
    The same output should come from a sql query only.
    Thanks in Advance
    Md Anwer Ali

    I shouldn't try to code before I have had at least three cups of coffee. The actual answer is:
    select decode(department,lag(department) over (order by department),null,department)
    , job
    from departments
    order by department.
    I ran this:
    select decode(job,lag(job) over (order by job),null,job)
    , ename
    from emp
    order by job
    and got this result:
    SQL> /
    DECODE(JO ENAME
    ANALYST SCOTT
    FORD
    CLERK SMITH
    ADAMS
    MILLER
    JAMES
    MANAGER JONES
    CLARK
    BLAKE
    PRESIDENT KING
    SALESMAN ALLEN
    MARTIN
    TURNER
    WARD
    14 rows selected.

Maybe you are looking for

  • HP Officejet Pro 8600 Plus and HP Pavilion dv7-7073ca

    1. HP Officejet Pro 8600 Plus and HP Pavilion dv7-7073ca 2. Operating System Windows 7 64-bit 3. Error messsage: Blue Screen and Crash. Can't PRINT Wirelessly or Wired + Blue Screen Of Death when printing a document with Microsoft Office. It then res

  • Changing Graphics Card Settings

    Hi there I have a 24 inch iMac and when I run Maya (the 3d software) the timeline does not show up at the bottom of the screen. It works fine on my old G4 so what is the problem here? I figure I need to change graphics card options somewhere but have

  • Please start posting subjects with "A1" or "K1"

    Please when you post to this forum indicate in the subject whether you are discussing an A1 or a K1. I start my posts with "A1:" in the subject.. It helps since the tablets are so different, and information for one usually doesn't' apply to the other

  • 2 sided booklet

    Goodday all! I have been given a task (for my school's newspaper) to create a double sided booklet. It is 40 pages long in total. And it needs to be half the book at the frotn, then flip it and then the other part of the book at the back. Hope this m

  • Transportable tablespace errors

    Hi experts Could you please tell me how to resolve this? connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Master table "ABCD"."SYS