Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: An internal error occurred during: "Launching ... " java.lang.NullPointerException HELP!!!

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default An internal error occurred during: "Launching ... " java.lang.NullPointerException HELP!!!

    Hello,
    i'm developping a server-client application.

    sometimes when i launch my Jframe/JDialog... i get the following error:

    An internal error occurred during: "Launching xxxx".
    java.lang.NullPointerException

    actually i get this error while lauchning the same program i launched without a problem before.
    what i do, is that i keep trying, stopping-clearing-restarting my server (wich have certainely nothing to do with it) until it works...

    i don't get it and it's really frustrating, i even created a new jframe with absolutely no code in it, just:

    public class test extends JFrame {

    private JPanel contentPane;

    /**
    * Launch the application.
    */
    public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
    public void run() {
    try {
    test frame = new test();
    frame.setVisible(true);
    } catch (Exception e) {
    e.printStackTrace();
    }
    }
    });
    }

    /**
    * Create the frame.
    */
    public test() {
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setBounds(100, 100, 450, 300);
    contentPane = new JPanel();
    contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
    contentPane.setLayout(new BorderLayout(0, 0));
    setContentPane(contentPane);
    }

    }


    tried to launch it and had the same problem

    did any one had the same problem before?


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: An internal error occurred during: "Launching ... " java.lang.NullPointerException HELP!!!

    Search java.lang.NullPointerException so you understand what it means.
    Then read the remaining of the error message (which you should post if you still need help) to see where the problem occurred.
    Please use code tags when posting code. See the Announcements page if you need help.

    --- Update ---

    ...and Welcome to the forum.

Similar Threads

  1. [SOLVED] error in my code(Exception in thread "main" java.lang.NullPointerException)
    By barhom in forum What's Wrong With My Code?
    Replies: 8
    Last Post: April 27th, 2013, 06:42 AM
  2. Replies: 1
    Last Post: April 7th, 2013, 03:40 PM
  3. Replies: 3
    Last Post: December 7th, 2011, 02:03 AM
  4. Replies: 7
    Last Post: August 13th, 2011, 01:22 AM
  5. Getting "AWT-EventQueue-0" java.lang.NullPointerException error
    By tryingtoJava in forum AWT / Java Swing
    Replies: 9
    Last Post: September 21st, 2009, 10:46 PM