Applet - JNLP2Manager NullPointerException bail out

All,
when trying to run my applet I get the following error in the Java console.
java.lang.NullPointerException
     at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
     at sun.plugin2.main.client.PluginMain$StartAppletRunner.run(Unknown Source)
     at java.awt.event.InvocationEvent.dispatch(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
Error while initializing manager: java.lang.NullPointerException, bail outAnyone knows what the problem is here?
The applet is packaged within a war and deployed on a Weblogic AS.
I use Java 1.6.0_14 to compile and launch the applet.
The applet is started with the following code:
    <script src="http://www.java.com/js/deployJava.js"></script>
    <script>
        var attributes = { code:'test.MyApplet',  width:600, height:910} ;
        var parameters = {jnlp_href: '/jnlp/my-applet.jnlp'} ;
        deployJava.runApplet(attributes, parameters, '1.6');
    </script>Thanks in advance.

All,
when trying to run my applet I get the following error in the Java console.
java.lang.NullPointerException
     at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
     at sun.plugin2.main.client.PluginMain$StartAppletRunner.run(Unknown Source)
     at java.awt.event.InvocationEvent.dispatch(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
Error while initializing manager: java.lang.NullPointerException, bail outAnyone knows what the problem is here?
The applet is packaged within a war and deployed on a Weblogic AS.
I use Java 1.6.0_14 to compile and launch the applet.
The applet is started with the following code:
    <script src="http://www.java.com/js/deployJava.js"></script>
    <script>
        var attributes = { code:'test.MyApplet',  width:600, height:910} ;
        var parameters = {jnlp_href: '/jnlp/my-applet.jnlp'} ;
        deployJava.runApplet(attributes, parameters, '1.6');
    </script>Thanks in advance.

Similar Messages

  • IPod bails out in middle of iTunes update

    Here’s the problem: My ipod starts updating new songs, then after ~1GB of songs ( Ihave 16GBs of songs in iTunes), it just drops out (disappears), comes back a couple minutes later, but then starts updating at some random previous point (say 300GBs). It will get to a point around 1.2-1.5GBs and then bails out again—reappearing at some prior update point. It does this over, over….
    This has to be my laptop issue because I’m on my 2nd iPod and having this SAME exact issue!!!
    I’ve talked to Apple support but they can’t figure this out. Here’s what I’ve done so far (nothing has helped)
    • I’ve downloaded SP2 for Windows (apple support guy recommended)
    • I ‘disallowed’ my computer to turn off USB to save power (also an apple recommendation)
    • I’ve disabled my Network Associates 7.1 Enterprise Virus Scan (apple recommend as well)
    • Reinstalled itunes
    • Reinstalled iPod updater
    • I’ve reset ipod, restored ipod and rebooted laptop.
    Like I said, this is my 2nd ipod, and the same thing happened (must be some quicky setting/SW with me laptop?)
    This is a terrible experience.... Please Help??

    * Check for updated USB drivers for your laptop. Check the manufacturers webpage as well as Google.
    * Try a different USB connector on the laptop.
    * Try a different cable. Flaky cables can cause this sort of thing too.
    * Try a USB Hub in between the laptop and the iPod. This helps sometimes when the USB power is a bit flaky. Using a powered USB hub eliminates the dependance on the laptop providing steady power.
    * Switch to firewire instead of USB. Firewire PCMCIA cards are available. Get an Adaptec model.

  • IPod bails out after only partial update on iTunes

    Here’s the problem: My ipod starts updating new songs, then after ~1GB of songs ( Ihave 16GBs of songs in iTunes), it just drops out (disappears), comes back a couple minutes later, but then starts updating at some random previous point (say 300GBs). It will get to a point around 1.2-1.5GBs and then bails out again—reappearing at some prior update point. It does this over, over….
    This has to be my laptop issue because I’m on my 2nd iPod and having this SAME exact issue!!!
    I’ve talked to Apple support but they can’t figure this out. Here’s what I’ve done so far (nothing has helped)
    •     I’ve downloaded SP2 for Windows (apple support guy recommended)
    •     I ‘disallowed’ my computer to turn off USB to save power (also an apple recommendation)
    •     I’ve disabled my Network Associates 7.1 Enterprise Virus Scan (apple recommend as well)
    •     Reinstalled itunes
    •     Reinstalled iPod updater
    •     I’ve reset ipod, restored ipod and rebooted laptop.
    Like I said, this is my 2nd ipod, and the same thing happened (must be some quicky setting/SW with me laptop?)
    This is a terrible experience.... Please Help?

    Contact iHome for updates.

  • Missing photos found!  now need bailing out, please...

    need bailing out again....
    and thankfully I know where to come.
    This is a situation I should have found an answer to YEARS ago...would have saved me years of frustration, panic,confusion.
    Some three years of photos one day just disappeared from my iPhoto library.
    poof! gone! (Still no idea what I did). Just messing around today, in Finder, I just typed in jpg in the little magnifying glass, and oh my! some 12,000 somethings listed, all ending in .jpg
    Not sure what some of them are, some some I am recognizing as my MISSING PHOTOS!!
    So now I have:
    Choose Application
    Choose an application to open the document "fairfield029.jpg.orig"
    Enable: Recommended application
    All applications
    Usually, when given a choice, and I don't really know, I will select what seems to be the default, what Mac seemingly wants to use. But everything is 'gray" won't allow me to select anything, nothing even
    in my long list of what is my (hopefully) missing photos.
    Can someone please add some insight of what it means when it wants ME to choose an application to open a document? How to choose? What to choose? Why is the computer needing my input? In my current situation, the only option I seem able to choose is Cancel.
    Thanks for any input, and again, your patience and ever willingness to share your expertise.
    ssandee

    need bailing out again....
    and thankfully I know where to come.
    This is a situation I should have found an answer to YEARS ago...would have saved me years of frustration, panic,confusion.
    Some three years of photos one day just disappeared from my iPhoto library.
    poof! gone! (Still no idea what I did). Just messing around today, in Finder, I just typed in jpg in the little magnifying glass, and oh my! some 12,000 somethings listed, all ending in .jpg
    Not sure what some of them are, some some I am recognizing as my MISSING PHOTOS!!
    So now I have:
    Choose Application
    Choose an application to open the document "fairfield029.jpg.orig"
    Enable: Recommended application
    All applications
    Usually, when given a choice, and I don't really know, I will select what seems to be the default, what Mac seemingly wants to use. But everything is 'gray" won't allow me to select anything, nothing even
    in my long list of what is my (hopefully) missing photos.
    Can someone please add some insight of what it means when it wants ME to choose an application to open a document? How to choose? What to choose? Why is the computer needing my input? In my current situation, the only option I seem able to choose is Cancel.
    Thanks for any input, and again, your patience and ever willingness to share your expertise.
    ssandee

  • [SOLVED] after upgrade : /sbin/init does not exist. Bailing out, ...

    hi, after having upgraded today my archlinux, I cannot boot it. I get the following message : "ERROR: Root device mounted successfully, but /sbin/init does not exist. Bailing out, you are on you own. Good luck."
    The last time the system was upgraded was in june 2013, before the "Binaries move to /usr/bin requiring update intervention" advisory (https://www.archlinux.org/news/binaries … ervention/). So before upgrading I followed the instructions given in this article and was able to upgrade. But after reboot I got the error message I'm reporting here.
    Here is a copy  of the config I'm using to boot arch in grub:
    menuentry "Archlinux" {
            load_video
            set gfxpayload=keep
            insmod gzio
            insmod part_msdos
            insmod ext2
            set root='hd0,msdos7'
            echo 'Loading of Archlinux, kernel v.3.xx.xx ...'
            linux /boot/vmlinuz-linux root=/dev/sda7 ro
            initrd /boot/initramfs-linux.img
    Last edited by heavytull (2014-03-06 21:24:48)

    karol wrote:
    There have been quite a few changes since you last updated e.g. we're using 'rw' instead of 'ro'. Try
    linux /boot/vmlinuz-linux root=/dev/sda7 rw init=/usr/lib/systemd/systemd
    It's now much better. But a lot of errors are reported and the system hangs, but still rebootable with Ctrl + Alt + Del.
    Here are the error messages:
    [FAILED] Failed to mount Configuration File System.
    See 'systemctl status sys-kernel-config.mount' for details.
    [FAILED] Failed to mount Huge Pages File System.
    See 'systemctl status dev-hugepages.mount' for details.
    [FAILED] Failed to mount POSIX Message Queue File System.
    See 'systemctl status dev-mqueue.mount' for details.
    [FAILED] Failed to mount Temporary Directory.
    See 'systemctl status tmp.mount' for details.
    [FAILED] Failed to start Remount Root and Kernel File System.
    See 'systemctl status systemd-remount-fs.service' for details.

  • Multithreaded graphics applet gets NullPointerException

    Hi!
    This is a complex issue and the code's big, so i'll try
    to explain the main part.
    I have five classes.
    AppletClass (this one extends Applet)
    GraphicItem (just a little sprite which can draw itself)
    Thread1 (draws a bunch of GraphicItems in background on a Graphics which is set by setg() in this class)
    Thread2 (draw a random clolor text line in background
    on a Graphics which is set by setg() in this class)
    Drawer (a thread that draws an image set in
    the constructor ona graphics which is set by setg() in this class)
    What is it for: Well, this is a dubble buffering example,
    where two threads draw into one image which works
    as a buffer and then another thread draw that image
    into the applet area.
    The problem is that when Thread1 in run() calls
    gitem.draw(g) where g is Graphics i sometimes
    get NullPointerException, also, it happenes in some
    other place but i cannot pinpoint it. Also,it happenes
    always when i restart applet w/o reloading in
    JBuilder (nor the browser).
    The thing is that i do not use synchronized or
    imageUpdate() in the Drawer (imageUpdates() does
    nothing), so it is possible for two or more object to
    have access to the same Graphics object at the same
    time. Also, while Drawer draws the image, the other
    thread are drawing onto the image. So, there might
    be a conflict, i think. The other other is that when
    i comment out all Thread.sleep() the image get
    clobbered. That is, the GraphicItem is a cross of
    random color, so i shoudl see thousands of crosses of
    random color, but i thousands of crosses of pretty
    much the same color as it seems like Random is not
    working or drawing is broken.
    Anyway, any idea how to properly implement such
    thing? What precautions shoudl i take and which
    conflicts and how should i resolve?
    And, of course, in what cases NullPointerException is
    generated? I mean, what exxctly does it mean and
    when usually occurs?
    PS: Don't you think it is weird to get such
    exception in a language which officially
    has no pointers? :)

    Why it SOUNDS like is the Image you are drawing may not be completly loaded yet.. so the first few times it's blitted ( and possibly if it gets bumped out of memory ) attempting to draw it will throw a null pointer.
    I solved that in my own code by using a MediaTracker on the image when it was created to make sure that it is loaded and ready to be draw immediatly.

  • NullPointerException in out.println(message);

    Am trying to send a String to a server but getting a NullPointerException on line 46 thats this line:
    out.println(message);
    the code :
    import java.sql.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.applet.Applet;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.applet.AudioClip;
    import javax.swing.text.html.*;
    import java.net.URL;
    import java.io.IOException;
    public class chatClient extends JApplet implements Runnable
    private String hostname, message;
    protected BufferedReader in;
    protected PrintWriter out;
    protected TextArea output;
    protected TextField input;
    protected Button b;
    protected Thread listener;
    // Constructor looks after GUI
    public chatClient()
    //super("Chat Client");
    getContentPane().setLayout(new BorderLayout());
    output = new TextArea();
    // Panel to arrange two components on
    Panel p = new Panel();
    p.setLayout(new BorderLayout());
    input = new TextField();
    b= new Button("Send");
    // What happens when we press the button...
    b.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    // read in text from textField, store as string
    message = input.getText();
    out.println(message);
    System.out.println("Message is:" + message);
    //out.flush(); We set the boolean autoflush to true in constructor
    // blank the textField for next line
    input.setText(" ");
    }); // ends inner class
    // add the textfield and button to the Panel
    p.add("North", input);
    p.add("South", b);
    // add the textArea and the Panel to the Frame
    getContentPane().add("Center", output);
    getContentPane().add("South", p);
    // the 'engine' behind the GUI
    public void runClient()
    // set hostname to 127.0.0.1 for testing
    hostname="localhost";
    // try to create the socket and initialise the Streams
    try
    Socket s = new Socket(hostname,9999);
    in = new BufferedReader(new InputStreamReader(s.getInputStream()));
    out = new PrintWriter(s.getOutputStream(),true);
    output.append("Connected to Server...\n");
    catch(UnknownHostException e)
    System.err.println(e);
    catch(IOException e)
    System.err.println(e);
    // initialise a listener thread to catch messages from server
    listener = new Thread(this);
    listener.start();
    System.out.println("Listener started");
    // listener.start() creates a thread which calls run()
    public void run()
    // just loop reading the input stream
    try
    while(true)
    String line = in.readLine();
    System.out.println("Received from Server:" + line);
    output.append(line + "\n");
    catch(IOException e)
    System.err.println(e);
    // when the Thread is killed...
    finally
    listener = null;
    input.setText(" ");
    out.close();
    public static void main(String args[])
    chatClient c = new chatClient();
    c.runClient();
    Can someone show me the way?

    Yes positiv this is how my server looks try for your self :
    import java.net.*;
    import java.io.*;
    import java.util.*; /* we need a vector to handle unknown numbers of connections */
    public class chatServer
    public chatServer() throws IOException
    /* we're not too bothered about the exception details, so
    we'll acknowledge it here instead of writing lines of
    code to analyse it */
    // initialise new ServerSocket
    ServerSocket s = new ServerSocket(9999);
    // loop listening for connections and instantiate a new handler for each one
    while(true)
    Socket client = s.accept();
    System.out.println("Accepted connection from " + client.getInetAddress()+":"+ client.getPort());
    chatHandler c = new chatHandler(client);
    c.start(); // chatHandler is derived from Thread, so we can call start()
    public static void main(String[] args) throws IOException
    chatServer cs = new chatServer();
    } // end class definition
    // define class chatHandler as a derivation of Thread
    class chatHandler extends Thread
    // declare variables
    protected Socket s;
    protected BufferedReader in;
    protected PrintWriter out;
    protected static Vector handlers = new Vector();
    public chatHandler(Socket s) throws IOException
    // assign socket passed to object to class variable s
    this.s = s;
    // initialise streams
    in = new BufferedReader(new InputStreamReader(s.getInputStream()));
    out = new PrintWriter(s.getOutputStream(), true);
         System.out.println("Readers and Writers initialised");
    public void run()
    System.out.println("run called");
    try
    // add this thread to class variable vector
    handlers.addElement(this);
              System.out.println("Element added to Vector");
    // loop reading input and passing it to broadcast method
    while(true)
                   System.out.println("About to read inputstream");
    String message = in.readLine();
                   System.out.println("Input Stream read");
                   System.out.println(message);
    broadcast(message);
                   System.out.println("Message passed to broadcast method");
    catch(IOException e)
    System.err.println(e);
    // if this thread is killed....
    finally
    // remove it from the vector
    handlers.removeElement(this);
    try
    // tidy up debris!
    s.close();
    catch(IOException e)
    System.err.println(e);
    // this static method is used by all threads
    protected static void broadcast(String message)
    /* to prevent two threads trying to access the vector
    simultaneously we use a synchronized block */
         System.out.println("Broadcast called");
    synchronized(handlers)
    /* The Enumeration interface gives us a quick way of looking at
    a vector which by definition is an unknown length */
    Enumeration e = handlers.elements();
    // returns true if there are other sockets running
    while (e.hasMoreElements())
    // loop to the next chatHandler in the vector
    chatHandler c = (chatHandler) e.nextElement();
    // write the message to it
    try
    /* prevent two threads trying to write
    to the stream c.out */
    synchronized(c.out)
    c.out.println(message);
    } // end synchronized block
    //c.out.flush(); we set the boolean autoflush to true in the constructor
    catch(Exception ex)
    System.err.println(ex);
    // explicitly stop the thread if exception is thrown
    c = null;
    } // end while loop
    } // end synchronized block
    } // end broadcast
    } // ends class

  • Uploading large files from applet to servlet throws out of memory error

    I have a java applet that needs to upload files from a client machine
    to a web server using a servlet. the problem i am having is that in
    the current scheme, files larger than 17-20MB throw an out of memory
    error. is there any way we can get around this problem? i will post
    the client and server side code for reference.
    Client Side Code:
    import java.io.*;
    import java.net.*;
    // this class is a client that enables transfer of files from client
    // to server. This client connects to a servlet running on the server
    // and transmits the file.
    public class fileTransferClient
    private static final String FILENAME_HEADER = "fileName";
    private static final String FILELASTMOD_HEADER = "fileLastMod";
    // this method transfers the prescribed file to the server.
    // if the destination directory is "", it transfers the file to
    "d:\\".
    //11-21-02 Changes : This method now has a new parameter that
    references the item
    //that is being transferred in the import list.
    public static String transferFile(String srcFileName, String
    destFileName,
    String destDir, int itemID)
    if (destDir.equals(""))
    destDir = "E:\\FTP\\incoming\\";
    // get the fully qualified filename and the mere filename.
    String fqfn = srcFileName;
    String fname =
    fqfn.substring(fqfn.lastIndexOf(File.separator)+1);
    try
    //importTable importer = jbInit.getImportTable();
    // create the file to be uploaded and a connection to
    servlet.
    File fileToUpload = new File(fqfn);
    long fileSize = fileToUpload.length();
    // get last mod of this file.
    // The last mod is sent to the servlet as a header.
    long lastMod = fileToUpload.lastModified();
    String strLastMod = String.valueOf(lastMod);
    URL serverURL = new URL(webadminApplet.strServletURL);
    URLConnection serverCon = serverURL.openConnection();
    // a bunch of connection setup related things.
    serverCon.setDoInput(true);
    serverCon.setDoOutput(true);
    // Don't use a cached version of URL connection.
    serverCon.setUseCaches (false);
    serverCon.setDefaultUseCaches (false);
    // set headers and their values.
    serverCon.setRequestProperty("Content-Type",
    "application/octet-stream");
    serverCon.setRequestProperty("Content-Length",
    Long.toString(fileToUpload.length()));
    serverCon.setRequestProperty(FILENAME_HEADER, destDir +
    destFileName);
    serverCon.setRequestProperty(FILELASTMOD_HEADER, strLastMod);
    if (webadminApplet.DEBUG) System.out.println("Connection with
    FTP server established");
    // create file stream and write stream to write file data.
    FileInputStream fis = new FileInputStream(fileToUpload);
    OutputStream os = serverCon.getOutputStream();
    try
    // transfer the file in 4K chunks.
    byte[] buffer = new byte[4096];
    long byteCnt = 0;
    //long percent = 0;
    int newPercent = 0;
    int oldPercent = 0;
    while (true)
    int bytes = fis.read(buffer);
    byteCnt += bytes;
    //11-21-02 :
    //If itemID is greater than -1 this is an import file
    transfer
    //otherwise this is a header graphic file transfer.
    if (itemID > -1)
    newPercent = (int) ((double) byteCnt/ (double)
    fileSize * 100.0);
    int diff = newPercent - oldPercent;
    if (newPercent == 0 || diff >= 20)
    oldPercent = newPercent;
    jbInit.getImportTable().displayFileTransferStatus
    (itemID,
    newPercent);
    if (bytes < 0) break;
    os.write(buffer, 0, bytes);
    os.flush();
    if (webadminApplet.DEBUG) System.out.println("No of bytes
    sent: " + byteCnt);
    finally
    // close related streams.
    os.close();
    fis.close();
    if (webadminApplet.DEBUG) System.out.println("File
    Transmission complete");
    // find out what the servlet has got to say in response.
    BufferedReader reader = new BufferedReader(
    new
    InputStreamReader(serverCon.getInputStream()));
    try
    String line;
    while ((line = reader.readLine()) != null)
    if (webadminApplet.DEBUG) System.out.println(line);
    finally
    // close the reader stream from servlet.
    reader.close();
    } // end of the big try block.
    catch (Exception e)
    System.out.println("Exception during file transfer:\n" + e);
    e.printStackTrace();
    return("FTP failed. See Java Console for Errors.");
    } // end of catch block.
    return("File: " + fname + " successfully transferred.");
    } // end of method transferFile().
    } // end of class fileTransferClient
    Server side code:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.net.*;
    // This servlet class acts as an FTP server to enable transfer of
    files
    // from client side.
    public class FtpServerServlet extends HttpServlet
    String ftpDir = "D:\\pub\\FTP\\";
    private static final String FILENAME_HEADER = "fileName";
    private static final String FILELASTMOD_HEADER = "fileLastMod";
    public void doGet(HttpServletRequest req, HttpServletResponse resp)
    throws ServletException,
    IOException
    doPost(req, resp);
    public void doPost(HttpServletRequest req, HttpServletResponse
    resp)
    throws ServletException,
    IOException
    // ### for now enable overwrite by default.
    boolean overwrite = true;
    // get the fileName for this transmission.
    String fileName = req.getHeader(FILENAME_HEADER);
    // also get the last mod of this file.
    String strLastMod = req.getHeader(FILELASTMOD_HEADER);
    String message = "Filename: " + fileName + " saved
    successfully.";
    int status = HttpServletResponse.SC_OK;
    System.out.println("fileName from client: " + fileName);
    // if filename is not specified, complain.
    if (fileName == null)
    message = "Filename not specified";
    status = HttpServletResponse.SC_INTERNAL_SERVER_ERROR;
    else
    // open the file stream for the file about to be transferred.
    File uploadedFile = new File(fileName);
    // check if file already exists - and overwrite if necessary.
    if (uploadedFile.exists())
    if (overwrite)
    // delete the file.
    uploadedFile.delete();
    // ensure the directory is writable - and a new file may be
    created.
    if (!uploadedFile.createNewFile())
    message = "Unable to create file on server. FTP failed.";
    status = HttpServletResponse.SC_INTERNAL_SERVER_ERROR;
    else
    // get the necessary streams for file creation.
    FileOutputStream fos = new FileOutputStream(uploadedFile);
    InputStream is = req.getInputStream();
    try
    // create a buffer. 4K!
    byte[] buffer = new byte[4096];
    // read from input stream and write to file stream.
    int byteCnt = 0;
    while (true)
    int bytes = is.read(buffer);
    if (bytes < 0) break;
    byteCnt += bytes;
    // System.out.println(buffer);
    fos.write(buffer, 0, bytes);
    // flush the stream.
    fos.flush();
    } // end of try block.
    finally
    is.close();
    fos.close();
    // set last mod date for this file.
    uploadedFile.setLastModified((new
    Long(strLastMod)).longValue());
    } // end of finally block.
    } // end - the new file may be created on server.
    } // end - we have a valid filename.
    // set response headers.
    resp.setContentType("text/plain");
    resp.setStatus(status);
    if (status != HttpServletResponse.SC_OK)
    getServletContext().log("ERROR: " + message);
    // get output stream.
    PrintWriter out = resp.getWriter();
    out.println(message);
    } // end of doPost().
    } // end of class FtpServerServlet

    OK - the problem you describe is definitely what's giving you grief.
    The workaround is to use a socket connection and send your own request headers, with the content length filled in. You may have to multi-part mime encode the stream on its way out as well (I'm not about that...).
    You can use the following:
    http://porsche.cis.udel.edu:8080/cis479/lectures/slides-04/slide-02.html
    on your server to get a feel for the format that the request headers need to take.
    - Kevin
    I get the out of Memory Error on the client side. I
    was told that this might be a bug in the URLConnection
    class implementation that basically it wont know the
    content length until all the data has been written to
    the output stream, so it uses an in memory buffer to
    store the data which basically causes memory issues..
    do you think there might be a workaround of any kind..
    or maybe a way that the buffer might be flushed after
    a certain size of file has been uploaded.. ?? do you
    have any ideas?

  • Refresh applet sqlj NullPointerException URGENT!

    I have the following sqlj code in an applet to retrive data from an oracle database. After this the code goes onto draw the data in the applet using AWT (that code isn't shown here). My trouble is that when I get to the following line Connection con = Oracle.connect("jdbc:oracle:thin:@ebalpha:1525:ORCL", "flowmanager", "xxxxx").getConnection(); I get a Null Pointer exception only after refreshing the page using F5.
    So to overcap I get a NullPointerException only when I refresh the applet. It runs perfectly the first time. The applet need to be refreshed because the data in the table get updated and the applet need to be refreshed to show the data changes.
    public void getFlowSpaceData() throws SQLException {
    // MyIter iter;
    String strUserName = getParameter("paramUserName");
    String strFlowName = new String();
    Connection con = Oracle.connect("jdbc:oracle:thin:@ebalpha:1525:ORCL", "flowmanager", "xxxxx").getConnection();
    strQuery = "select FLOWNAME FROM FLOWMANAGER.TMP_FLOWNAMES WHERE USERNAME ='" + strUserName +"'";
    PreparedStatement pstmt0 = con.prepareStatement(strQuery);
    ResultSet rs0 = pstmt0.executeQuery();
    while (rs0.next()) {
    strFlowName = rs0.getString(1);
    rs0.close();
    pstmt0.close();
    strQuery = "select FLOWNAME, USERNAME, PANELROW, PANELCOL, RELATEROW, RELATECOL, OBJTYPE, BASECODE, INDUSTRYID, PANELNUM, BUSINESSPROCESSID FROM flows WHERE flowname ='" + strFlowName + "' AND username ='" + strUserName +"' ORDER BY PANELNUM";
    PreparedStatement pstmt1 = con.prepareStatement(strQuery);
    ResultSet rs1 = pstmt1.executeQuery();
    int r = 0;
    int c = 0;
    while (rs1.next()) {
    intObjType[r][c]= rs1.getInt(7);
    strID[r][c] = rs1.getString(11);
    //strIDQuery = strIDQuery + 'or ID =' + strinID
    intRowRelation[r][c] = rs1.getInt(5);
    intColRelation[r][c] = rs1.getInt(6);
    c++;
    if(c > 4) {
    r++;
    c = 0;
    rs1.close();
    pstmt1.close();
    PreparedStatement pstmt2 = con.prepareStatement(strQuery);
    ResultSet rs2 = pstmt2.executeQuery();
    r = 0;
    c = 0;
    int i = 0;
    int intSTRLENGTH = 0;
    while(i < 24){
    strQuery = "select name, descr, role from BUSINESSPROCESS WHERE ID = '" + strID[r][c] + "'";
    pstmt2 = con.prepareStatement(strQuery);
    rs2 = pstmt2.executeQuery();
    rs2.next();
    intSTRLENGTH = rs2.getString(1).length();
    if (intSTRLENGTH > 17){
    strLabel1[r][c] = rs2.getString(1).substring(0,17);
    strLabel2[r][c] = rs2.getString(1).substring(18,intSTRLENGTH);
    }else {
    strLabel1[r][c] = rs2.getString(1).substring(0,intSTRLENGTH);
    strLabel2[r][c] = " ";
    intSTRLENGTH = rs2.getString(2).length();
    if (intSTRLENGTH > 17){
    strDescr1[r][c] = rs2.getString(2).substring(0, 17);
    strDescr2[r][c] = rs2.getString(2).substring(18,intSTRLENGTH);
    }else{
    strDescr1[r][c] = rs2.getString(1).substring(0,intSTRLENGTH);
    strDescr2[r][c] = " ";
    c++;
    i++;
    if(c > 4) {
    r++;
    c = 0;
    rs2.close();
    pstmt2.close();
    con.close();
    con = null;
    Thanks for you Assistance! It's greatly appreciated!
    Chris Wallace

    After further research I notice that if I Clear classload cache after every load before I refresh the applet it works fine. I can't have the user brining up the the consule windows and pressing x to clear classloader. Just thought I would give this futher information to help limit what the problem could be.

  • NullPointerException on out.print (String)

    I am using weblogic 4.5.1 and jsp 1.1
              Within a jsp page:
              <% out.print (someString); %>
              When someString is null, the server is throwing a NullPointerException.
              The stack trace reveals that the server is trying to do a
              someString.length() call (Whatever for?). Must you check every string that
              you print our for null before you print it?
              Thanks for the help.
              Tim
              

    The 'New to Java' forum is some doors further. Please make use of it for basic questions about the Java SE API which are in fact already answered in the javadocs. This has completely nothing to do with JSP/Servlet.

  • Should I bail out now?

    Early on Friday morning I signed up for BT Infinity and a little later got an email confirming the order and directing me to the online tracking.  By late on Saturday afternoon the tracking was still saying that no order existed. I decided to call support. We have 2 phone lines in the house (both on the same BT account) and I wanted to check that the order was correctly set up for the right line and also to check the prices as this is not mentioned in the order email.   Support told me that they "could see the problem" and that it would all be working fine by Monday morning.
    Monday morning arrives and tracking is not working and the same by late afternoon. The order is still not linked to our BT account, if it exists at all.  I phone support again. This time I am told that "all tracking is unavailable  because of a systems upgrade" and that all customers are in the same position ie there is no tracking on the BT site. I said I did not believe this and asked to speak to a supervisor.  I was put through to someone who gave me his name and said he would personally deal with this. He said that he would send an email within hours with all the information that should be on the tracking page and he also sent me a text number that I was supposed to use if I needed to make contact and he guaranteed a response in 2 hours.
    Of course the promised email does not arrive and when I query it using the text number I was given, there is no response.
    I also tried using the BT wifi when out in Edinburgh today. Unsurprisingly, this did not work either as the BT id is presumably not connected to the order.
    For information, we have had an account with BT for over 30 years, over 12 at this address, and the phone line has always been with BT. We have also had an online account and BT id for many years.
    Should I cancel the order now and go with another provider?  As far as I can see from this forum BT is fine until you have a problem, but then a total nightmare to deal with if there are issues.  Am I buying into a heap of misery or is this just teething problems that will be resolved?
    Solved!
    Go to Solution.

    One step forward and one step back I'm sad to report.
    I had a phone call today from BT support. The issue with my order resolved during the phone call, in that my Infinity order appeared online and was attached to my BT account.  I pointed out while I was still on the phone call that the primary contact number for the Infinity installation was wrong. (we have 2 phone lines, one is data only and the data line was listed as primary contact) I was told to change this online.   The change went through without any apparent error but now the order has disappeared from my account again and tracking is back to "order not found"
    If I go into My BT and go to the track an order link, it says I have more than one order and gives me a drop down with 3 vol numbers (all the same) but still says order not found when I select any of them.  
    What do I do now? I'm assuming the order will still go through but with no connection to my account I will not have billing or management, and no access to the extras.

  • Plugin-container.exe makes my computer hang forever. i don't want my older pc to get overheated over this and bail out on me

    plugin-container.exe is making my cpu get to 100% immediately i go online.
    i first thought i got a virus somewhere, but no virus scan could find it. only then i checked the cpu usage to see what makes it go crazy, and it's plugin-container.exe, a program i thought legit, else i would've searched and destroyed it. turns out i'm not the only one having this trouble so guys, please do something about it. in the mean time i'm going back to 3.6.3 and hoping you solve this soon.
    == This happened ==
    Every time Firefox opened
    == after the update to 3.6.6.

    I found the way to stop using plugin-container.exe from somewhere and it works.
    Steps to stop plugin-container.exe process:
    * Open Firefox web browser.
    * Type about:config in the address bar and press Enter key.
    * A warning will appear. Ignore it and press the "I』ll be careful, I promise!" button.
    * In the Filter field type dom.ipc. Six preferences will appear for the filter dom.ipc.
    * Ignore first and last preferences. Toggle (double-click) each of the four remaining preferences to change the value from "true" to "false".
    Explanation: The crash protection feature in Firefox 3.6 is enabled for certain plugins only. The four preferences that we modified here specifies four different out-of-process plugins. They are the the NPAPI test plugin, Adobe Flash, Apple QuickTime (Windows) and Microsoft Silverlight (Windows). These plugins are specified in a separate dom.ipc.plugins.enabled.<filename> preference by default is set to true. We can disable them by changing their value to false. And thus plugin-container.exe will not run. By default the preference dom.ipc.plugins.enabled is already set to "false". So, no need to touch it. The dom.ipc.plugins.timeoutSecs is also not important here as other values are false.

  • Applet Won't work out of NetBeans W/Swing

    My Applet is working in NetBeans sun AppletRunner, but won't run in a browser and gives this exception:
    java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
         at java.lang.Class.getConstructor0(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)And my Applet extends javax.swing.JApplet, so whats wrong?

    Did you specify the jar in the archive attribute of the applet element tag?
    http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html#plugin
    Of course this does not help if the class is not in the jar though. :-/ (which seems very strange)
    -Puce

  • Applet doesn't die out

    Hello all,
    I've an applet that contains a button.
    I open a JFrame on its click event.
    However, the frame doesn't destroy even if i've closed the applet's browser window sometimes.
    Could anybody tell why is this happening and how could i remove this?
    Thank you

    Are you trying to creat an independent GUI application from the applet, or maybe you want to use JInternalFrame, or JPanel inside the applet?
    If you want an independent application, you'll have to specifically terminate it if you want it to go away when you close the applet.
    If you need more help, post a small, compilable, and executable example, an explanation of what it's doing, and what you want it to do.
    Surround code with code tags like this:
    [code]
    put your code here. . .
    [/code]

  • Getting livid with the inability to bail out...

    I have a 60 GB MacBook and an 80 GB iPod Video. You can already guess the problem with this: I have no backup of my iPod and no option to (I had a 250 GB external HD that airport security was kind enough to "lose" for me about a month ago, and I hadn't the money to replace it yet, being a student and all).
    I had been manually adding songs to my iPod as one could expect, and today I got this:
    http://io-in.com/ipod/error.png
    Oh goody. So, I go to the terminal and extract the movie files (Tune Tools didn't see anything) and brought them to the front of the iPod, where I could see them:
    http://io-in.com/ipod/visible.png
    No problem. I'll back them up to DVD, right? WRONG! I made three coasters. I then found out why: On my iPod, if I opened a movie, let's say AGYX.mp4 which is "Tapestry" for Star Trek, which I converted from a Jean Luc Picard collection I have, I see this:
    http://io-in.com/ipod/onipod.png
    However, after moving it to my harddrive before burning and opening it there, I get:
    http://io-in.com/ipod/onharddrive.png
    I am most annoyed. This is the result of 3 straght months of converting DVDs to a format I can watch on the bus, and now I have zero to show for it, and I need to redo EVERYTHING, assuming it won't just happen again.
    Please, someone, tell me if there is still any way to salvage my progress, please advise.

    Can't see the pix.
    "Forbidden
    You don't have permission to access /ipod/onipod.png on this server."
    (I had a 250 GB external HD that airport security was kind enough to "lose" for me about a month ago, and I hadn't the money to replace it yet, being a student and all).
    Did you file a claim against them/the airport?

Maybe you are looking for

  • Can i return my ipod touch 4 and get a ipod touch 5

    CAN I RETURN MY IPOD TOUCH 4G TO APPLE AND GET A 5G??I BOUGHT THIS 3 MONTHS AGO

  • How can I consolidate all photos from different users on one computer?

    We just enable one computer to be the "Family" computer. I want to be able to consolidate all photos from the different users into one location. That way no matter wich user is login they can see and browse all the family photos. How can I do that? D

  • Compare physical db with CASE model

    I'm using Designer Release 6.0 for PC. I'd like to compare (diff) my Designer db server model with my physical implementation residing on our server. We sometimes have developers change the physical db without changing the CASE tool (ERD, tables, etc

  • Billing - Representing the customer's credit limit and premitted products

    Dear All, We intend  to implement SAP CRM billing model in our system. Currently we have 2 fundamental  questions we need to solve: 1)  How to represent the customer credit limit. 2 ) What is the best way to indicate his permitted products As we oper

  • Keynote - cannot save document

    Hi, anybody knows how to solve this problem? I am creating a keynote document with quite a lot of pictures. After the 3-4 slide I could save the document with no problems. I am in the 11th slide now and suddenly, when I tried to save the document it