Error message when trying to run programs

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Error message when trying to run programs

Postby PerfectReign » Mon Sep 05, 2005 5:54 pm

I am just starting out with Eclipse and the Window Builder application. So far, it appears to be very much what I needed. (Java's layout managers are subpar, imo, and I cannot believe they've been around since '96 with no GUI designer.)

Anyway on a test app, or any app, I get the following message when running:

Designer internal error: lava.lang.NullPointerException%0ALog Included: Yes%0A%0Ajava.lang.NullPointerException at com.swtdesigner.model.swing.JavaBeanInfo.createEventProperty(JavaBeanInfo.java:1474) at com.swtdesigner.model.swing.JavaBeanInfo.getPropertyList...


It goes on for about twenty more pages. I wish I could copy/paste it but it comes up in a modal dialog box with no copy ability.

I am using WindowBuilder Pro 4.1.1, compiled on 2005.07.27 for Eclipse 3.10.

I'm running SuSE 9.3 with Java 1.5.0_04.

Ideas?

Here's my code:

Code: Select all
import org.eclipse.swt.SWT;
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.CoolBar;
import org.eclipse.swt.widgets.CoolItem;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;

public class main {

   protected Shell shell;

   public static void main(String[] args) {
      try {
         main window = new main();
         window.open();
      } catch (Exception e) {
         e.printStackTrace();
      }
   }

   public void open() {
      final Display display = Display.getDefault();
      createContents();
      shell.open();
      shell.layout();
      while (!shell.isDisposed()) {
         if (!display.readAndDispatch())
            display.sleep();
      }
   }

   protected void createContents() {
      shell = new Shell();
      shell.setSize(800, 600);
      shell.setText("Kai's Test Panel");


   }

}
PerfectReign
 
Posts: 4
Joined: Mon Aug 01, 2005 12:07 pm
Location: /home/kai

Re: Error message when trying to run programs

Postby Eric Clayberg » Mon Sep 05, 2005 6:30 pm

PerfectReign wrote:Anyway on a test app, or any app, I get the following message when running

Do you mean when running or when editing? The exception you listed would be a design time exception; not a runtime exception.

PerfectReign wrote:It goes on for about twenty more pages. I wish I could copy/paste it but it comes up in a modal dialog box with no copy ability.

You can copy any exception text from the Eclipse ".log" file.

PerfectReign wrote:I am using WindowBuilder Pro 4.1.1, compiled on 2005.07.27 for Eclipse 3.10.

That is a very old v4.1.1 build. I would suggest trying it with the latest v4.1.1 build.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby PerfectReign » Tue Sep 06, 2005 3:48 am

Thanks for the tips. Will upgrade to latest build. The runtime error occurs after selecting "Run" from Eclipse. I haven't yet figured out how to make a stand alone app. :roll:
kai
My Home Page

linux - genuine windows replacement part
PerfectReign
 
Posts: 4
Joined: Mon Aug 01, 2005 12:07 pm
Location: /home/kai

Postby Eric Clayberg » Tue Sep 06, 2005 5:49 am

PerfectReign wrote:The runtime error occurs after selecting "Run" from Eclipse.

OK. The one exception that you posted is a design time exception that should not occur at runtime. If you encounter any runtime exceptions, you should post those here.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest