"Graphic is disposed" in NWDS 7.1.1

hi<br>
<br>
when i try create a bpm project, i always hit the exception "Graphic is disposed" .  and, i cannot open and use the processes of Process  Modeling.<br>
<br>
what's wrong and how to fix it?<br>
<br>
thankx<br>
<br>
the exception like follows, and when i try webdynpro project, it also happen.<br>
<br>
<br>
org.eclipse.swt.SWTException: Unable to load graphics library [GDI+ is required] (java.lang.NoClassDefFoundError)<br>
     at org.eclipse.swt.SWT.error(SWT.java:3563)<br>
     at org.eclipse.swt.graphics.Device.checkGDIP(Device.java:176)<br>
     at org.eclipse.swt.graphics.Path.<init>(Path.java:76)<br>
     at com.sap.mi.gfw.eclipse.internal.figures.GfwEllipse.createPath(GfwEllipse.java:59)<br>
     at com.sap.mi.gfw.eclipse.internal.figures.GfwAbstractShape.paintShape(GfwAbstractShape.java:288)<br>
     at com.sap.mi.gfw.eclipse.internal.figures.GfwAbstractShape.fillShape(GfwAbstractShape.java:332)<br>
     at org.eclipse.draw2d.Shape.paintFigure(Shape.java:107)<br>
     at com.sap.mi.gfw.eclipse.internal.figures.GfwAbstractShape.paintFigure(GfwAbstractShape.java:320)<br>
     at org.eclipse.draw2d.Figure.paint(Figure.java:1049)<br>
     at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)<br>
     at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)<br>
     at org.eclipse.draw2d.Figure.paint(Figure.java:1051)<br>
     at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)<br>
     at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)<br>
     at org.eclipse.draw2d.Figure.paint(Figure.java:1051)<br>
     at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)<br>
     at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)<br>
     at org.eclipse.draw2d.Figure.paint(Figure.java:1051)<br>
     at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)<br>
     at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)<br>
     at org.eclipse.draw2d.Figure.paint(Figure.java:1051)<br>
     at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)<br>
     at com.sap.mi.gfw.eclipse.internal.fixed.FixedScalableFreeformLayeredPane.paintClientArea(FixedScalableFreeformLayeredPane.java:31)<br>
     at org.eclipse.draw2d.Figure.paint(Figure.java:1051)<br>
     at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)<br>
     at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)<br>
     at org.eclipse.draw2d.Figure.paint(Figure.java:1051)<br>
     at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)<br>
     at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1114)<br>
     at org.eclipse.draw2d.Viewport.paintClientArea(Viewport.java:156)<br>
     at org.eclipse.draw2d.Figure.paint(Figure.java:1051)<br>
     at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)<br>
     at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)<br>
     at org.eclipse.draw2d.Figure.paint(Figure.java:1051)<br>
     at org.eclipse.draw2d.DeferredUpdateManager.paint(DeferredUpdateManager.java:153)<br>
     at org.eclipse.draw2d.LightweightSystem.paint(LightweightSystem.java:199)<br>
     at org.eclipse.draw2d.LightweightSystem$2.handleEvent(LightweightSystem.java:107)<br>
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)<br>
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)<br>
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)<br>
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)<br>
     at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1270)<br>
     at org.eclipse.swt.widgets.Control.windowProc(Control.java:3725)<br>
     at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:291)<br>
     at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)<br>
     at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)<br>
     at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2265)<br>
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3291)<br>
     at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)<br>
     at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)<br>
     at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)<br>
     at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)<br>
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)<br>
     at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)<br>
     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)<br>
     at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)<br>
     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)<br>
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)<br>
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)<br>
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)<br>
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)<br>
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
     at java.lang.reflect.Method.invoke(Method.java:585)<br>
     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)<br>
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)<br>
     at org.eclipse.equinox.launcher.Main.run(Main.java:1173)<br>
     at org.eclipse.equinox.launcher.Main.main(Main.java:1148)<br>
Caused by: java.lang.NoClassDefFoundError<br>
     at org.eclipse.swt.graphics.Device.checkGDIP(Device.java:170)<br>
     ... 67 more<br>
Edited by: Vic Chen on Jul 3, 2009 3:02 AM<br>
<br>
Edited by: Vic Chen on Jul 3, 2009 3:04 AM<br>
Edited by: Vic Chen on Jul 3, 2009 3:04 AM<br>
Edited by: Vic Chen on Jul 3, 2009 3:05 AM

Hi Vic,
A: Support for advanced graphics operations such as path for curvers and lines, alpha blending, antialiasing, patterns and transformations was added to SWT 3.1. On Windows, GDI+  is required. On X Windows platforms (i.e. GTK and Motif), Cairo 0.4.0 is required. If your Windows platform does not have GDI+ by default then you can download  a redistributable package from Microsoft.
Source: http://www.eclipse.org/swt/faq.php#nographicslibrary
It looks like your OS is missing the GDI+ library which can be obtained via the SWT site (see link above).
Best regards,
Martin

Similar Messages

  • Error in NWDS 7.0.13

    Hi Experts,
    When i ahve clicked on the NWDS icon i am getting the following error:
    Problems during startup.Check the ".log" file in the ".metadata" directory of your workspace.
    When i have checked the log in the workspace this is what it is showing:
    !SESSION Feb 22, 2008 12:03:06.421 -
    java.version=1.4.2_04
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -feature com.sap.java.ide C:\j2sdk1.4.2_04\bin\javaw.exe
    -Xmx512m
    -Xms128m
    -XX:PermSize=32m
    -XX:MaxPermSize=128m
    -DallUserDir='C:\Documents and Settings\All Users\Application Data'
    -cp D:\Program Files\SAP\IDE\IDE70\eclipse\SapStartup.jar com.sap.ide.eclipse.startup.Main
    -os win32
    -ws win32
    -arch x86
    -feature com.sap.java.ide
    -showsplash D:\Program Files\SAP\IDE\IDE70\eclipse\SapIde.exe -showsplash 600  -data C:\Documents and Settings\1087961\Documents\SAP\workspace -install file:D:/Program Files/SAP/IDE/IDE70/eclipse/
    !ENTRY Startup 1 0 Feb 22, 2008 12:03:06.421
    !MESSAGE Sap NetWeaver Developer Studio - Build: 200708072056
    !SESSION -
    !ENTRY org.eclipse.core.launcher 4 0 Feb 22, 2008 12:03:10.203
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    Caused by: java.lang.reflect.InvocationTargetException
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:861)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         ... 7 more
    Caused by: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
         at org.eclipse.swt.SWT.error(SWT.java:2330)
         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:101)
         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
         at org.eclipse.swt.widgets.Display.release(Display.java:1782)
         at org.eclipse.swt.graphics.Device.dispose(Device.java:212)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1390)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
    What might be the problem?
    My work is stopped here.
    Please help me out so that i can restore my work.
    FYI:I have installed the NWDS again on my system but still i am unable to get the same.Versions are the same.
    Thanks and regards,
    Chandrashekar.

    Options you have
    - Delete the .metadata folder and restart NWDS (you will lose all your settings!)
    - Try a recent JDK; 1.4.2_04 is really old!
    - Install from the DVD
    - If you downloaded the install, extract it to the root of one of your disks, not some subdirectory and install from there.

  • Problem during startup of NWDS - Error while opening NWDS -

    Hi,
    iam unable to start up NWDS.problem during startup of NWDS
    Error when double click the NWDS to open.
    Error in .log file of workshop[--
    !SESSION -
    !ENTRY org.eclipse.core.launcher 4 0 Dec 03, 2007 15:59:04.226
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    Caused by: java.lang.reflect.InvocationTargetException
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:861)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         ... 7 more
    Caused by: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
         at org.eclipse.swt.SWT.error(SWT.java:2330)
         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:101)
         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
         at org.eclipse.swt.widgets.Display.release(Display.java:1782)
         at org.eclipse.swt.graphics.Device.dispose(Device.java:212)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1390)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         ... 8 more

    Hi nayab,
                     Ur workspace metadata seems to be corrupted. Go to ur workspace. rename .metadata folder  & open the NWDS. It will not show ur previous configuration so u have to import the Development configuration again. In case ur any activity is open, it will come back when u import the Development Configuration.
    regards
    Sumit

  • Error occured: NWDS cannot be launched

    I shut down my Neweaver Developer Studio, and restart this morning, and I got the following error. I reinstall the studio from the installation file, it still give me the same error. The NWDS platform get launched and encountered errors and shut down itself.
    Here is the last error listed in log file (at .metadata folder):
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    Caused by: java.lang.reflect.InvocationTargetException
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:861)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         ... 7 more
    Caused by: java.lang.NullPointerException
         at org.eclipse.swt.widgets.Table.releaseWidget(Table.java:1089)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:715)
         at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:319)
         at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:367)
         at org.eclipse.swt.widgets.Canvas.releaseWidget(Canvas.java:118)
         at org.eclipse.swt.widgets.Decorations.releaseWidget(Decorations.java:615)
         at org.eclipse.swt.widgets.Shell.releaseWidget(Shell.java:709)
         at org.eclipse.swt.widgets.Widget.dispose(Widget.java:372)
         at org.eclipse.swt.widgets.Shell.dispose(Shell.java:472)
         at org.eclipse.swt.widgets.Display.release(Display.java:1779)
         at org.eclipse.swt.graphics.Device.dispose(Device.java:212)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1390)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         ... 8 more
    Thanks for help.

    Armin,
    I don't have a chance to try this.
    I just uninstalled and deleted all the NWDS sources, adn it is working fine now.
    Thanks.
    Kent

  • Error when i start my NWDS

    Hi Experts,
    When i ahve clicked on the NWDS icon i am getting the following error:
    Problems during startup.Check the ".log" file in the ".metadata" directory of your workspace.
    When i have checked the log in the workspace this is what it is showing:
    !SESSION Feb 22, 2008 12:03:06.421 -
    java.version=1.4.2_04
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -feature com.sap.java.ide C:\j2sdk1.4.2_04\bin\javaw.exe
    -Xmx512m
    -Xms128m
    -XX:PermSize=32m
    -XX:MaxPermSize=128m
    -DallUserDir='C:\Documents and Settings\All Users\Application Data'
    -cp D:\Program Files\SAP\IDE\IDE70\eclipse\SapStartup.jar com.sap.ide.eclipse.startup.Main
    -os win32
    -ws win32
    -arch x86
    -feature com.sap.java.ide
    -showsplash D:\Program Files\SAP\IDE\IDE70\eclipse\SapIde.exe -showsplash 600  -data C:\Documents and Settings\1087961\Documents\SAP\workspace -install file:D:/Program Files/SAP/IDE/IDE70/eclipse/
    !ENTRY Startup 1 0 Feb 22, 2008 12:03:06.421
    !MESSAGE Sap NetWeaver Developer Studio - Build: 200708072056
    !SESSION -
    !ENTRY org.eclipse.core.launcher 4 0 Feb 22, 2008 12:03:10.203
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    Caused by: java.lang.reflect.InvocationTargetException
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:861)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         ... 7 more
    Caused by: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
         at org.eclipse.swt.SWT.error(SWT.java:2330)
         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:101)
         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
         at org.eclipse.swt.widgets.Display.release(Display.java:1782)
         at org.eclipse.swt.graphics.Device.dispose(Device.java:212)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1390)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
    What might be the problem?
    My work is stopped here.
    Please help me out so that i can restore my work.
    FYI:I have installed the NWDS again on my system but still i am unable to get the same.Versions are the same.
    Thanks and regards,
    Chandrashekar.

    Hi Suresh,
    I have done what you have said and now its working fine.
    But,
    As i installed NWDS again i need to get back my Project(DC) in the NWDS.
    How can this be done?
    I had tried several options and i was fortunate enough to get back my Project but I am unable to Check-Out Source in the NWDS,thus i am struck here as i cannot further proceed to go on with my Work.
    Please help me out to resolve this issue.
    Thanks and regards,
    Chandrashekar.

  • Graphics.drawImage not using specified background color

    Thanks to everyone in advance -
    I have created an image resizing class, with a crop method. The cropping works great, the issue that I am having is the background color that i specify in the drawImage function of Graphics is not working correctly, it defaults to black as the background regardless of what I supply (in this case Color.WHITE). Also, the overlaying image or top most image (comes from a file) is being inverted(i think it is) or otherwise discolored. Here is the code below that I am working with:
    Thanks,
    Sam
                   public void Crop(int Height, int Width, int SourceX, int SourceY) throws Exception {
                        //output height and width
                        int OutputWidth = this.OutputImage.getWidth();
                        int OutputHeight = this.OutputImage.getHeight();
                        //create output streams
                        ByteArrayOutputStream MyByteArrayOutputStream = new ByteArrayOutputStream();
                        MemoryCacheImageOutputStream MyMemoryCacheImageOutputStream = new MemoryCacheImageOutputStream(MyByteArrayOutputStream);
                        //Create a new  BufferedImage
                        BufferedImage NewImage = new BufferedImage(Width, Height, BufferedImage.TYPE_INT_ARGB);
                        Graphics MyGraphics = NewImage.createGraphics();
                        MyGraphics.drawImage(this.OutputImage, -SourceX, -SourceY, OutputWidth, OutputHeight, Color.WHITE, null);
                        // Get Writer and set compression
                        Iterator MyIterator = ImageIO.getImageWritersByFormatName("PNG");
                        if(MyIterator.hasNext()) {
                             //get image writer
                             ImageWriter MyImageWriter = (ImageWriter)MyIterator.next();
                             //get params
                             ImageWriteParam MyImageWriteParam = MyImageWriter.getDefaultWriteParam();
                             //set outputstream
                             MyImageWriter.setOutput(MyMemoryCacheImageOutputStream);
                             //create new ioimage
                             IIOImage MyIIOImage = new IIOImage(NewImage, null, null);
                             //write new image
                             MyImageWriter.write(null, MyIIOImage, MyImageWriteParam);
                        //convert output stream back to inputstream
                        ByteArrayInputStream MyByteArrayInputStream = new ByteArrayInputStream(MyByteArrayOutputStream.toByteArray());
                        MemoryCacheImageInputStream MyMemoryCacheImageInputStream = new MemoryCacheImageInputStream(MyByteArrayInputStream);
                        //resassign as a buffered image
                        this.OutputImage = ImageIO.read(MyMemoryCacheImageInputStream);
                   }

    Thanks for all your help!
    Here is the solution, notice the clear rect:
                   public void Crop(int Height, int Width, int SourceX, int SourceY) throws Exception {
                        //output height and width
                        int OutputWidth = this.OutputImage.getWidth();
                        int OutputHeight = this.OutputImage.getHeight();
                        //Create a new BufferedImage
                        BufferedImage NewImage = new BufferedImage(Width, Height, BufferedImage.TYPE_INT_RGB);
                        //create new grapics
                        Graphics2D MyGraphics = NewImage.createGraphics();
                        //set background
                        MyGraphics.setBackground(Color.decode(this.BackgroundColor));
                        //clear rect
                        MyGraphics.clearRect(0, 0, Width, Height);
                        //draw image
                        MyGraphics.drawImage(this.OutputImage, -SourceX, -SourceY, OutputWidth, OutputHeight, null, null);
                        //dispose graphics
                        MyGraphics.dispose();
                        //resassign as a buffered image
                        this.OutputImage = NewImage;
                   }

  • Changeing Paint's Graphics outside paint

    I have this code:
    public void Paint (Graphics g) {
    Graphics2D g2 = (Graphics2D) g;
    g2.setTransform (t);
    how can I access g2 from outside Paint?

    You should not access g2d outside of paint. Let me explain. First of all, references to Graphics that are passed to methods, such as paint() and update(), are only valid during the execution of the method that they are passed to. That is, they are a copy of the original Graphics object. Once the method returns, the reference is no longer valid because its caller is responsible for disposing of it. Each Graphics represents a graphics context supplied by the native windowing system and there are usually only a limited number of them. Is this making sense. The important thing to remember is that the paint() method only has a copy of the Graphics object and that it is usually a bad idea to store it in an instance variable. The way that you get a reference to the Graphics of an image or a component (when you are outside of the paint() method) is to call the image.getGraphics(), component.getGraphics() or any of the Graphics.create() methods. Each returns a copy of the original Graphics object and you will be responsible for disposing of this copy when you are done using it. A very good example of this can be found when Double Buffering. Double Buffering is where you clear and draw an image off screen first, and then "blit" it straight onto your component. Here is an excerpt of code that is not from a paint() method://use double buffering to avoid flicker (paint image off screen then blit to screen)
    if (offScreenImage == null) offScreenImage = createImage(getWidth(),getHeight());
    Graphics offScreenGraphics = offScreoffScreenImage.getGraphics();
    Graphics g = getGraphics();
    //get graphics can return null if invoked before component's peer is created
    if (offScreenGraphics!=null && g!=null) {
       try {
          //clear the offscreen image
          offScreenGraphics.setColor(getBackground());
          offScreenGraphics.fillRect(0,0,getWidth(),getHeight());
          //blit to screen
          offScreenGraphics.drawImage(image,0,0,this);
          g.drawImage(offScreenImage,0,0,this);
       } finally {
          //must dispose of all graphics
          offScreenGraphics.dispose();
          g.dispose();
       }//end try
    }//end ifIt demonstrates the getting of the Graphics object when your current method it is in wasn't passed a reference to the Graphics object. In the code above, image and offScreenImage are instance variables. If you still want to use the Java2D version of the Graphics object, you will have to cast it once you get a reference to it. I hope this helps.
    Also, about repaint(). When you want to do application-triggered painting, you will want to call the repaint() method and should never call the paint() method directly. repaint() calls update(), update() clears the screen on heavyweight components, and finally paint() is called. For a very good article involving painting into components please read the following (it is a must read):
    http://java.sun.com/products/jfc/tsc/articles/painting/index.html
    tajenkins

  • I need help to draw an image and move it plz plz : )

    Ok, so I have this whole code and I understand most of it but not all of it but I'm trying to make image "drop.gif" to move down the right side of the window. For each shot that is taken the image moves down ever so much and if the image hits the Entity ship "background" than notify death. PLease anyone help me !
    there are 7 classes but here is the main ...
    package spaceinvaderss;
    import java.awt.Canvas;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.Toolkit;
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.awt.image.BufferStrategy;
    import java.util.ArrayList;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class Main extends Canvas {
    /*A Canvas component represents a blank rectangular area of the screen onto which the application can draw or from which the application can trap input events from the user.
    An application must subclass the Canvas class in order to get useful functionality such as creating a custom component.
    The paint method must be overridden in order to perform custom graphics on the canvas.*/
    /** The stragey that allows us to use accelerate page flipping.*/
    private BufferStrategy strategy;
    /** True if the game is currently "running", i.e. the game loop is looping */
    private boolean gameRunning = true;
    /** The list of all the entities that exist in our game */
    private ArrayList entities = new ArrayList();
    /** The list of entities that need to be removed from the game this loop */
    private ArrayList removeList = new ArrayList();
    /** The entity representing the player */
    private Entity ship;
    /** The entity representing the alien */
    private Entity alien;
    /** The speed at which the player's ship should move (pixels/sec) */
    private double moveSpeed = 600;
    /** The time at which last fired a shot */
    private long lastFire = 0;
    /** The interval between our players shot (ms) */
    private long firingInterval = 400;
    /** timer */
    private long time = 0;
    /** The number of aliens left on the screen */
    private int alienCount;
    /** The message to display which waiting for a key press */
    private String message = "";
    /** True if we're holding up game play until a key has been pressed */
    private boolean waitingForKeyPress = true;
    /** True if the left cursor key is currently pressed */
    private boolean leftPressed = false;
    /** True if the right cursor key is currently pressed */
    private boolean rightPressed = false;
    /** True if we are firing */
    private boolean firePressed = false;
    /** True if game logic needs to be applied this loop, normally as a result of a game event */
    private boolean logicRequiredThisLoop = false;
    private static Image drop;
    /** The constant for the width*/
    private int DOMAIN = 800;
    /** The constant fot the length*/
    private int RANGE = 950;
    /** The constant for the number of rows of aliens */
    private int numbaofrows = 8;
    /** The constant for the number of aliens per row */
    private int aliensperrow = 12;
    /** The constant for the percent of which the speed increases*/
    private double speedincrease = 1.02;
    /** Starts the variable that counts the shots*/
    private int shotsfired = 0;
    /** Construct our game and set it running.*/
    public Main() {
    // Creates a frame to contain Main.
    JFrame container = new JFrame("SPACE INVADERS !!! WOOT !!! WOOT !!!");
    // Gets a hold of the content of the frame and sets up the resolution of the game
    // Names the inside of the "container" as panel.
    JPanel panel = (JPanel) container.getContentPane();
    // Stes the demensions of the panel.
    panel.setPreferredSize(new Dimension(DOMAIN,RANGE));
    //Sets the layout as nothing which overrides any automatic properties.
    panel.setLayout(null);
    // Sets up our canvas size and puts it into the content of the frame
    setBounds(0, 0, DOMAIN, RANGE);
    panel.add(this);
    // Tell AWT not to bother repainting our canvas since we're
    // going to do that our self in accelerated mode.
    setIgnoreRepaint(true);
    // Actually sizes the window approximately.
    container.pack();
    // Makes it so that the window can't be resized.
    container.setResizable(false);
    // Makes the window visible.
    container.setVisible(true);
    // Add a listener to respond to the user pressing the x.
    // End the program when the window is closed.
    container.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    // add a key input system (defined below) to our canvas
    // so we can respond to key pressed
    addKeyListener(new KeyInputHandler());
    // request the focus so key events come to us
    requestFocus();
    // Create the buffering strategy which will allow AWT
    // to manage our accelerated graphics.
    createBufferStrategy(2);
    strategy = getBufferStrategy();
    // initialise the entities in our game so there's something
    // to see at startup
    initEntities();
    time = System.currentTimeMillis();
    * Start a fresh game, this should clear out any old data and
    * create a new set.
    private void startGame() {
    // clear out any existing entities and intialise a new set
    entities.clear();
    initEntities();
    // blank out any keyboard settings we might currently have
    leftPressed = false;
    rightPressed = false;
    firePressed = false;
    * Initialise the starting state of the entities (ship and aliens). Each
    * entitiy will be added to the overall list of entities in the game.
    private void initEntities() {
    ClassLoader cloader = Main.class.getClassLoader();
    drop = Toolkit.getDefaultToolkit().getImage(cloader.getResource("drop.gif"));
    prepareImage(drop, this);
    // create the player ship and place it in the center of the screen
    ship = new ShipEntity(this,"background.gif", 0, (RANGE - 75));
    entities.add(ship);
    ship = new ShipEntity(this,"ship.gif", (DOMAIN / 2) - 0, (RANGE - 50));
    entities.add(ship);
    // create a block of aliens
    alienCount = 0;
    for (int row = 0; row < numbaofrows; row++) {
    for (int x = 0; x < aliensperrow; x++) {
    alien = new AlienEntity(this,"alien.gif", 100 + (x*50),(50)+row*30);
    entities.add(alien);
    alienCount++;
    * Notification from a game entity that the logic of the game
    * should be run at the next opportunity (normally as a result of some
    * game event)
    public void updateLogic() {
    logicRequiredThisLoop = true;
    * Remove an entity from the game. The entity removed will
    * no longer move or be drawn.
    * Remove the entity
    public void removeEntity(Entity entity) {
    removeList.add(entity);
    /**Notify that the player has died.*/
    public void notifyDeath() {
    message = "Oh no! The aliens win, wanna try again?";
    waitingForKeyPress = true;
    /** Notification that the player has won since all the aliensare dead.*/
    public void notifyWin() {
    long time2;
    time2 = (System.currentTimeMillis() - time) / 1000;
    int acuracy = 1000*(aliensperrow*numbaofrows)/shotsfired;
    message = "Congradulations! You win! Your time was: " + time2 + " seconds. Your acuracy was " + acuracy + "%.";
    waitingForKeyPress = true;
    /**Notification that an alien has been killed*/
    public void notifyAlienKilled() {
    // reduce the alient count, if there are none left, the player has won!
    alienCount--;
    if (alienCount == 0) {
    notifyWin();
    // if there are still some aliens left then they all need to get faster, so
    // speed up all the existing aliens
    for (int i = 0; i < entities.size(); i++) {
    Entity entity = (Entity) entities.get(i);
    if (entity instanceof AlienEntity) {
    // speed up every time the aliens move down
    entity.setHorizontalMovement(entity.getHorizontalMovement() * speedincrease);
    /**Attempt to fire a shot from the player. Its called "try" since we must first
    * check that the player can fire at this point, i.e. has he/she waited long
    * enough between shots.*/
    public void tryToFire() {
    // check that we have been waiting long enough to fire
    if (System.currentTimeMillis() - lastFire < firingInterval) {
    return;
    // if we waited long enough, create the shot entity, and record the time.
    lastFire = System.currentTimeMillis();
    ShotEntity shot = new ShotEntity(this, "bullet.gif", ship.getX() + 27, ship.getY() - 30);
    entities.add(shot);
    * The main game loop. This loop is running during all game
    * play as is responsible for the following activities:
    * - Working out the speed of the game loop to update moves
    * - Moving the game entities
    * - Drawing the screen contents (entities, text)
    * - Updating game events
    * - Checking Input
    public void gameLoop() {
    long lastLoopTime = System.currentTimeMillis();
    // Keep looping around till the game ends.
    while (gameRunning) {
    // Work out how long its been since the last update, this
    // will be used to calculate how far the entities should
    // move this loop.
    long delta = System.currentTimeMillis() - lastLoopTime;
    lastLoopTime = System.currentTimeMillis();
    // Get hold of a graphics context for the accelerated
    // surface and black it out.
    Graphics2D g = (Graphics2D) strategy.getDrawGraphics();
    g.setColor(Color.black);
    g.fillRect(0, 0, DOMAIN, RANGE);
    // Cycle around asking for each entity to move itself.
    if (!waitingForKeyPress) {
    for (int i = 0; i < entities.size(); i++) {
    Entity entity = (Entity) entities.get(i);
    entity.move(delta);
    // cycle round drawing all the entities we have in the game
    for (int i = 0; i < entities.size(); i++) {
    Entity entity = (Entity) entities.get(i);
    entity.draw(g);
    // brute force collisions, compare every entity against
    // every other entity. If any of them collide notify
    // both entities that the collision has occured
    for (int p = 0; p < entities.size(); p++) {
    for (int s = p + 1; s < entities.size(); s++) {
    Entity me = (Entity) entities.get(p);
    Entity him = (Entity) entities.get(s);
    if (me.collidesWith(him)) {
    me.collidedWith(him);
    him.collidedWith(me);
    // remove any entity that has been marked for clear up
    entities.removeAll(removeList);
    removeList.clear();
    // if a game event has indicated that game logic should
    // be resolved, cycle round every entity requesting that
    // their personal logic should be considered.
    if (logicRequiredThisLoop) {
    for (int i = 0; i < entities.size(); i++) {
    Entity entity = (Entity) entities.get(i);
    entity.doLogic();
    logicRequiredThisLoop = false;
    // if we're waiting for an "any key" press then draw the
    // current message
    if (waitingForKeyPress) {
    g.setColor(Color.green);
    g.drawString(message,(DOMAIN-g.getFontMetrics().stringWidth(message)) / 2, 250);
    g.drawString("TO PLAY, PRESS ANY KEY : )", (DOMAIN-g.getFontMetrics().stringWidth("TO PLAY, PRESS ANY KEY : )")) / 2, 40);
    // Clear up the graphics.
    g.dispose();
    // Flip the buffer over.
    strategy.show();
    // resolve the movement of the ship. First assume the ship
    // isn't moving. If either cursor key is pressed then
    // update the movement appropraitely
    ship.setHorizontalMovement(0);
    if ((leftPressed) && (!rightPressed)) {
    ship.setHorizontalMovement(-moveSpeed);
    } else if ((rightPressed) && (!leftPressed)) {
    ship.setHorizontalMovement(moveSpeed);
    // if we're pressing fire, attempt to fire
    if (firePressed) {
    shotsfired++;
    tryToFire();
    // finally pause for a bit. Note: this should run us at about
    // 100 fps but on windows this might vary each loop due to
    // a bad implementation of timer
    try { Thread.sleep(10); } catch (Exception e) {}
    * A class to handle keyboard input from the user. The class
    * handles both dynamic input during game play, i.e. left/right
    * and shoot, and more static type input (i.e. press any key to
    * continue)
    * This has been implemented as an inner class more through
    * habbit then anything else. Its perfectly normal to implement
    * this as seperate class if slight less convienient.
    private class KeyInputHandler extends KeyAdapter {
    /** The number of key presses we've had while waiting for an "any key" press */
    private int pressCount = 1;
    * Notification from AWT that a key has been pressed. Note that
    * a key being pressed is equal to being pushed down but NOT
    * released. Thats where keyTyped() comes in.
    * @param e The details of the key that was pressed
    public void keyPressed(KeyEvent e) {
    // if we're waiting for an "any key" typed then we don't
    // want to do anything with just a "press"
    if (waitingForKeyPress) {
    return;
    if (e.getKeyCode() == KeyEvent.VK_LEFT) {
    leftPressed = true;
    if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
    rightPressed = true;
    if (e.getKeyCode() == KeyEvent.VK_SPACE) {
    firePressed = true;
    * Notification from AWT that a key has been released.
    * @param e The details of the key that was released
    public void keyReleased(KeyEvent e) {
    // if we're waiting for an "any key" typed then we don't
    // want to do anything with just a "released"
    if (waitingForKeyPress) {
    return;
    if (e.getKeyCode() == KeyEvent.VK_LEFT) {
    leftPressed = false;
    if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
    rightPressed = false;
    if (e.getKeyCode() == KeyEvent.VK_SPACE) {
    firePressed = false;
    * Notification from AWT that a key has been typed. Note that
    * typing a key means to both press and then release it.
    * @param e The details of the key that was typed.
    public void keyTyped(KeyEvent e) {
    // if we're waiting for a "any key" type then
    // check if we've recieved any recently. We may
    // have had a keyType() event from the user releasing
    // the shoot or move keys, hence the use of the "pressCount"
    // counter.
    if (waitingForKeyPress) {
    if (pressCount == 1) {
    // since we've now recieved our key typed
    // event we can mark it as such and start
    // our new game
    waitingForKeyPress = false;
    startGame();
    pressCount = 0;
    } else {
    pressCount++;
    // if we hit escape, then quit the game
    if (e.getKeyChar() == 27) {
    System.exit(0);
    * The entry point into the game. We'll simply create an
    * instance of class which will start the display and game
    * loop.
    * @param argv The arguments that are passed into our game
    public static void main(String argv[]) {
    Main g = new Main();
    // Starts the main game loop, this method will not return until the game has finished running. Hence we are
    // using the actual main thread to run the game.
    g.gameLoop();
    }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Ap_Compsci_student_13 wrote:
    ok sorry but doesn't sscce say to post the whole code?the first S is Short, and yes, it needs to be all the code needed to illustrate the problem and let use reproduce it. If you were developing a new Web framework, your example might be short, but for a student game it's very long.

  • An Image JPanel, A semi-transparent JPanel, and non-opaque components

    This is a more intelligent re-asking of the question I posed here: http://forum.java.sun.com/thread.jspa?threadID=579298&tstart=50.
    I have a class called ImagePane, which is basically a JPanel with an image background. The code is much like the ImagePanel posted by camickr, discussed in this topic: http://forum.java.sun.com/thread.jspa?forumID=57&threadID=316074 (except mine only draws the image, it does not tile or scale it).
    On top of my ImagePane, I can place another component, TransparentContainer. This again extends JPanel, only a color is specified in the constructor, and it is drawn at about 70% opacity. This component is meant to help increase the readability of text components that blend with the background image, without blocking out the background image completely.
    This works very well, until I need to add a component, like, say, a non-opaque JRadioButton in a ButtonGroup. When you select a new JRadioButton at runtime, the semi-transparent JPanel fills with a combination of a completely opaque color (the one specifies to the TransparentContainer) and garbage from the non-opaque component being redrawn.
    I have noticed that the UI is restored to being non-messed up if you place another application window on top of it and then move it. So apparently, one solution is to redraw the entire UI, or just the part that has the JRadioButton on it, every time the radio button is clicked. However, this seems unnecessarily complicated. It seems to me that I am missing something in my TransparentContainer's paintComponent() method. Does anyone have any ideas?
    Here is my TransparentContainer code, if it will help:
    import java.awt.AlphaComposite;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.RenderingHints;
    import javax.swing.JPanel;
    public final class TransparentContainer extends JPanel
         /* Private Fields: For use only by this class.
          *  These fields hold information needed by more
          *  than one method of this class.
         private boolean fullTransparencyEnabled;
         private Color baseColor;
         private Color outerBorderColor;
         private Color innerBorderColor;
         private int obw;
         private int ibw;
         private int cbw;
         /* -- START OF METHODS -- */
         /* public TransparentContainer(Color color, boolean fullTrans)
          *   Initiallizes the transparent container object
          *   with 'color' as its base color.
         public TransparentContainer(Color color, boolean fullTrans)
              fullTransparencyEnabled = fullTrans;
              baseColor = color;
              Color borders[] = findBorderColors();
              outerBorderColor = borders[0];
              innerBorderColor = borders[1];
              obw = 3;
              ibw = 1;
              cbw = obw + ibw;
         /* private Color[] findBorderColors(Color base)
          *   Calculates the colors for the outer and inner
          *   borders of the object based on the base color.
         private Color[] findBorderColors()
              Color borders[] = new Color[2];
              int colorData[] = new int[9];
              colorData[0] = getBaseColor().getRed();
              colorData[1] = getBaseColor().getGreen();
              colorData[2] = getBaseColor().getBlue();
              colorData[3] = colorData[0] - 50;          // outerBorder red
              colorData[4] = colorData[1] - 45;          // outerBorder green
              colorData[5] = colorData[2] - 35;          // outerBorder blue
              colorData[6] = colorData[0] + 30;          // innerBorder red
              colorData[7] = colorData[1] + 30;          // innerBorder green
              colorData[8] = colorData[2] + 20;          // innerBorder blue
              /* Make sure the new color data is not out of bounds: */
              for (int i = 3; i < colorData.length; i++)
                   if (colorData[i] > 255)
                        colorData[i] = 255;
                   else if (colorData[i] < 0)
                        colorData[i] = 0;
              borders[0] = new Color(colorData[3], colorData[4], colorData[5]);
              borders[1] = new Color(colorData[6], colorData[7], colorData[8]);
              return borders;
         /* public Color getBaseColor()
          *   Returns the baseColor of this object.
         public Color getBaseColor()
              return baseColor;
         /* public Color getOuterColor()
          *   Returns the outerBorderColor of this object.
         public Color getOuterColor()
              return outerBorderColor;
         /* public Color getInnerColor()
          *   Returns the innerBorderColor of this object.
         public Color getInnerColor()
              return innerBorderColor;
         /* public boolean getFullTransEnabled()
          *   Returns whether or not this object will render
          *   with all of its transparency effects.
         public boolean getFullTransEnabled()
              return fullTransparencyEnabled;
         /* protected void paintComponent(Graphics g)
          *   Paints the component with the borders and colors
          *   that were set up in above methods.
         protected void paintComponent(Graphics g)
              Graphics2D g2d = (Graphics2D) g;
              AlphaComposite alphaComp;
              g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
              g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
              g2d.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION,
                                            RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
              g2d.setColor(getBaseColor());
              /* Draw the main body of the component */
              if (getFullTransEnabled())
                   alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6f);
                   g2d.setComposite(alphaComp);
              else
                   alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f);
                   g2d.setComposite(alphaComp);
              g2d.fillRect(cbw, cbw, super.getWidth() - 2 * cbw, super.getHeight() - 2 * cbw);
              alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6f);
              g2d.setComposite(alphaComp);
              /* Draw the inner border: */
              g2d.setColor(getInnerColor());
              g2d.fillRect(obw, obw, ibw, super.getHeight() - obw * 2); // left border
              g2d.fillRect(obw, obw, super.getWidth() - obw, ibw); // top border
              g2d.fillRect(super.getWidth() - cbw, obw, ibw, super.getHeight() - obw * 2); // right border
              g2d.fillRect(obw, super.getHeight() - cbw, super.getWidth() - obw * 2, ibw); // bottom border
              /* Draw the outer border: */
              g2d.setColor(getOuterColor());
              g2d.fillRect(0, 0, obw, super.getHeight()); // left border
              g2d.fillRect(0, 0, super.getWidth() + obw, obw); // top border
              g2d.fillRect(super.getWidth() - obw, 0, obw, super.getHeight()); // right border
              g2d.fillRect(0, super.getHeight() - obw, super.getWidth(), obw); // bottom border
              alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f);
              g2d.setComposite(alphaComp);
              g2d.dispose();
    }

    I added the main method to your TransparentContainer class ...
         public static void main(String[] args) {
              JFrame f = new JFrame("test transparent container");
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              TransparentContainer tc = new TransparentContainer(Color.RED, true);
              JLabel label = new JLabel("Hello, World!");
              tc.add(label);
              f.getContentPane().add(tc);
              f.setSize(800, 600);
              f.setVisible(true);
         }...using the code you posted the label was not shown. I modified your paintComponent(Graphics g) method and I did this (see the areas in bold):
         /* protected void paintComponent(Graphics g)
          *   Paints the component with the borders and colors
          *   that were set up in above methods.
         protected void paintComponent(Graphics g)
              // Call super so components added to this panel are visible
              super.paintComponent(g);
              Graphics2D g2d = (Graphics2D) g;
              AlphaComposite alphaComp;
              g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
              g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
              g2d.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION,
                                            RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
              g2d.setColor(getBaseColor());
              /* Draw the main body of the component */
              if (getFullTransEnabled())
                   alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6f);
                   g2d.setComposite(alphaComp);
              else
                   alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f);
                   g2d.setComposite(alphaComp);
              g2d.fillRect(cbw, cbw, super.getWidth() - 2 * cbw, super.getHeight() - 2 * cbw);
              alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6f);
              g2d.setComposite(alphaComp);
              /* Draw the inner border: */
              g2d.setColor(getInnerColor());
              g2d.fillRect(obw, obw, ibw, super.getHeight() - obw * 2); // left border
              g2d.fillRect(obw, obw, super.getWidth() - obw, ibw); // top border
              g2d.fillRect(super.getWidth() - cbw, obw, ibw, super.getHeight() - obw * 2); // right border
              g2d.fillRect(obw, super.getHeight() - cbw, super.getWidth() - obw * 2, ibw); // bottom border
              /* Draw the outer border: */
              g2d.setColor(getOuterColor());
              g2d.fillRect(0, 0, obw, super.getHeight()); // left border
              g2d.fillRect(0, 0, super.getWidth() + obw, obw); // top border
              g2d.fillRect(super.getWidth() - obw, 0, obw, super.getHeight()); // right border
              g2d.fillRect(0, super.getHeight() - obw, super.getWidth(), obw); // bottom border
              alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f);
              g2d.setComposite(alphaComp);
              // Do not dispose the graphics
              // g2d.dispose();          
         }...seems to work fine now. Perhaps you should also add methods or additional constructors so the user can easily change the transparency level...and add some javadoc comments to your constructors ...at a first glance I did not know what fullTrans was
    public TransparentContainer(Color color, boolean fullTrans)good luck!!

  • Need help with error log

    Hello folks...
    I wish I knew what I was looking at here, hopefully someone can make sense of this for me?
    Yesterday I started up Flex Builder 3 and had an error.  All I could see was java this java that...so I reinstalled java, hoping that might do something.
    now I get a little different error than I saw, but I still see a lot of java references.
    Thanks for you help!
    ===========================================
    !ENTRY org.eclipse.core.resources 2 10035 2010-08-17 09:43:30.531
    !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
    !ENTRY org.eclipse.osgi 4 0 2010-08-17 09:43:30.781
    !MESSAGE An error occurred while automatically activating bundle org.eclipse.core.resources (69).
    !STACK 0
    org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources.
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextIm pl.java:1018)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:9 74)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
        at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
        at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLa zyStarter.java:111)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :417)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:189)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:34 0)
        at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackag e.java:37)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java :405)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :111)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Caused by: org.eclipse.core.internal.dtree.ObjectNotFoundException: Tree element '/EZServe/bin-release/com/dougmccune/.svn/entries' not found.
        at org.eclipse.core.internal.dtree.AbstractDataTree.handleNotFound(AbstractDataTree.java:257 )
        at org.eclipse.core.internal.dtree.DeltaDataTree.getData(DeltaDataTree.java:585)
        at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:50)
        at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
        at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
        at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
        at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
        at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
        at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47)
        at org.eclipse.core.internal.dtree.DeltaDataTree.asBackwardDelta(DeltaDataTree.java:88)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:816)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:792)
        at org.eclipse.core.internal.watson.ElementTree.immutable(ElementTree.java:517)
        at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:670)
        at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1319)
        at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1949)
        at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1713)
        at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:363)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:9 99)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextIm pl.java:993)
        ... 29 more
    Root exception:
    org.eclipse.core.internal.dtree.ObjectNotFoundException: Tree element '/EZServe/bin-release/com/dougmccune/.svn/entries' not found.
        at org.eclipse.core.internal.dtree.AbstractDataTree.handleNotFound(AbstractDataTree.java:257 )
        at org.eclipse.core.internal.dtree.DeltaDataTree.getData(DeltaDataTree.java:585)
        at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:50)
        at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
        at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
        at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
        at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
        at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
        at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47)
        at org.eclipse.core.internal.dtree.DeltaDataTree.asBackwardDelta(DeltaDataTree.java:88)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:816)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
        at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:792)
        at org.eclipse.core.internal.watson.ElementTree.immutable(ElementTree.java:517)
        at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:670)
        at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1319)
        at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1949)
        at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1713)
        at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:363)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:9 99)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextIm pl.java:993)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:9 74)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
        at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
        at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLa zyStarter.java:111)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :417)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:189)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:34 0)
        at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackag e.java:37)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java :405)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :111)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    !ENTRY org.eclipse.osgi 4 0 2010-08-17 09:43:30.796
    !MESSAGE An error occurred while automatically activating bundle com.adobe.flexbuilder.project (34).
    !STACK 0
    org.osgi.framework.BundleException: The activator com.adobe.flexbuilder.project.internal.FlexProjectCore for bundle com.adobe.flexbuilder.project is invalid
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundl e.java:141)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:9 70)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
        at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
        at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLa zyStarter.java:111)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :417)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:189)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:34 0)
        at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackag e.java:37)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java :405)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        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 com.adobe.flexbuilder.standalone.FlexBuilderApplication$1.run(FlexBuilderApplication.java :101)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
        at org.eclipse.swt.widgets.Display.release(Display.java:3345)
        at org.eclipse.swt.graphics.Device.dispose(Device.java:261)
        at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :128)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Caused by: java.lang.NoClassDefFoundError: org/eclipse/core/resources/IResource
        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 org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundl e.java:136)
        ... 41 more
    Root exception:
    java.lang.NoClassDefFoundError: org/eclipse/core/resources/IResource
        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 org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundl e.java:136)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:9 70)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
        at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
        at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLa zyStarter.java:111)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :417)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:189)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:34 0)
        at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackag e.java:37)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java :405)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        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 com.adobe.flexbuilder.standalone.FlexBuilderApplication$1.run(FlexBuilderApplication.java :101)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
        at org.eclipse.swt.widgets.Display.release(Display.java:3345)
        at org.eclipse.swt.graphics.Device.dispose(Device.java:261)
        at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :128)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    !ENTRY org.eclipse.osgi 4 0 2010-08-17 09:43:30.843
    !MESSAGE Application error
    !STACK 1
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoClassDefFoundError: com/adobe/flexbuilder/project/asn/ASNBridge$ILicenseChangedListener)
        at org.eclipse.swt.SWT.error(SWT.java:3563)
        at org.eclipse.swt.SWT.error(SWT.java:3481)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
        at org.eclipse.swt.widgets.Display.release(Display.java:3345)
        at org.eclipse.swt.graphics.Device.dispose(Device.java:261)
        at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :128)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Caused by: java.lang.NoClassDefFoundError: com/adobe/flexbuilder/project/asn/ASNBridge$ILicenseChangedListener
        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 com.adobe.flexbuilder.standalone.FlexBuilderApplication$1.run(FlexBuilderApplication.java :101)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
        ... 18 more
    !ENTRY org.eclipse.osgi 2 0 2010-08-17 09:43:30.953
    !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
    !SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-17 09:43:30.953
    !MESSAGE Bundle update@plugins/org.eclipse.datatools.connectivity.oda.template.ui_3.0.4.200706071.jar was not resolved.
    !SUBENTRY 2 org.eclipse.datatools.connectivity.oda.template.ui 2 0 2010-08-17 09:43:30.953
    !MESSAGE Missing required bundle org.eclipse.pde.ui_[3.2.0,4.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-17 09:43:30.953
    !MESSAGE Bundle update@plugins/com.adobe.flexbuilder.debug.e32_3.0.214193.jar was not resolved.
    !SUBENTRY 2 com.adobe.flexbuilder.debug.e32 2 0 2010-08-17 09:43:30.953
    !MESSAGE Missing required bundle org.eclipse.debug.ui_[3.2.0,3.3.0).
    !ENTRY org.eclipse.osgi 2 0 2010-08-17 09:43:30.953
    !MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
    !SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-17 09:43:30.953
    !MESSAGE Bundle update@plugins/com.adobe.flexbuilder.debug.e32_3.0.214193.jar [15] was not resolved.
    !SUBENTRY 2 com.adobe.flexbuilder.debug.e32 2 0 2010-08-17 09:43:30.953
    !MESSAGE Missing required bundle org.eclipse.debug.ui_[3.2.0,3.3.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2010-08-17 09:43:30.953
    !MESSAGE Bundle update@plugins/org.eclipse.datatools.connectivity.oda.template.ui_3.0.4.200706071.jar [89] was not resolved.
    !SUBENTRY 2 org.eclipse.datatools.connectivity.oda.template.ui 2 0 2010-08-17 09:43:30.953
    !MESSAGE Missing required bundle org.eclipse.pde.ui_[3.2.0,4.0.0).

    Sorry...I'm completely new to Flex.
    What do you mean by changing the workspace?
    When I try to start Flex Builder 3, I can go no further as the error message comes up.  Can I change the workspace outside of the application...if so, how?
    Thanks much!

  • Error in opening Flex Builder

    Hi,
    I am facing a problem here in using Adobe Flex Builder 3. I was unable to build the workspace project on flex builder earlier, maybe due to some missing configurations,therefore I planned on reinstalling the flex builder.
    Now, after reinstalling the flex builder, it does not works for me. It gives me an error when I try to open it.
    Following error was encountered in the log file:
    !ENTRY org.eclipse.osgi 4 0 2013-10-09 10:05:52.880
    !MESSAGE An error occurred while automatically activating bundle com.adobe.flexbuilder.project (34).
    !STACK 0
    org.osgi.framework.BundleException: The activator com.adobe.flexbuilder.project.internal.FlexProjectCore for bundle com.adobe.flexbuilder.project is invalid
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundl e.java:141)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:9 70)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLa zyStarter.java:111)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :417)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:189)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:34 0)
    at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackag e.java:37)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java :405)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    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 com.adobe.flexbuilder.standalone.FlexBuilderApplication$1.run(FlexBuilderApplication.java :101)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
    at org.eclipse.swt.widgets.Display.release(Display.java:3345)
    at org.eclipse.swt.graphics.Device.dispose(Device.java:261)
    at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :128)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Caused by: java.lang.NoClassDefFoundError: org/eclipse/core/resources/IResource
    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 org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundl e.java:136)
    ... 41 more
    Root exception:
    java.lang.NoClassDefFoundError: org/eclipse/core/resources/IResource
    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 org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundl e.java:136)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:9 70)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLa zyStarter.java:111)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :417)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:189)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:34 0)
    at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackag e.java:37)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java :405)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    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 com.adobe.flexbuilder.standalone.FlexBuilderApplication$1.run(FlexBuilderApplication.java :101)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
    at org.eclipse.swt.widgets.Display.release(Display.java:3345)
    at org.eclipse.swt.graphics.Device.dispose(Device.java:261)
    at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :128)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    !ENTRY org.eclipse.osgi 4 0 2013-10-09 10:05:52.895
    !MESSAGE Application error
    !STACK 1
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoClassDefFoundError: com/adobe/flexbuilder/project/asn/ASNBridge$ILicenseChangedListener)
    at org.eclipse.swt.SWT.error(SWT.java:3563)
    at org.eclipse.swt.SWT.error(SWT.java:3481)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
    at org.eclipse.swt.widgets.Display.release(Display.java:3345)
    at org.eclipse.swt.graphics.Device.dispose(Device.java:261)
    at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :128)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Caused by: java.lang.NoClassDefFoundError: com/adobe/flexbuilder/project/asn/ASNBridge$ILicenseChangedListener
    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 com.adobe.flexbuilder.standalone.FlexBuilderApplication$1.run(FlexBuilderApplication.java :101)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
    ... 18 more
    !ENTRY org.eclipse.osgi 2 0 2013-10-09 10:05:52.963
    !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
    !SUBENTRY 1 org.eclipse.osgi 2 0 2013-10-09 10:05:52.963
    !MESSAGE Bundle update@plugins/com.adobe.flexbuilder.debug.e32_3.0.214193.jar was not resolved.
    !SUBENTRY 2 com.adobe.flexbuilder.debug.e32 2 0 2013-10-09 10:05:52.963
    !MESSAGE Missing required bundle org.eclipse.debug.ui_[3.2.0,3.3.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2013-10-09 10:05:52.963
    !MESSAGE Bundle update@plugins/org.eclipse.datatools.connectivity.oda.template.ui_3.0.4.200706071.jar was not resolved.
    !SUBENTRY 2 org.eclipse.datatools.connectivity.oda.template.ui 2 0 2013-10-09 10:05:52.964
    !MESSAGE Missing required bundle org.eclipse.pde.ui_[3.2.0,4.0.0).
    !ENTRY org.eclipse.osgi 2 0 2013-10-09 10:05:52.972
    !MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
    !SUBENTRY 1 org.eclipse.osgi 2 0 2013-10-09 10:05:52.972
    !MESSAGE Bundle update@plugins/com.adobe.flexbuilder.debug.e32_3.0.214193.jar [15] was not resolved.
    !SUBENTRY 2 com.adobe.flexbuilder.debug.e32 2 0 2013-10-09 10:05:52.972
    !MESSAGE Missing required bundle org.eclipse.debug.ui_[3.2.0,3.3.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2013-10-09 10:05:52.972
    !MESSAGE Bundle update@plugins/org.eclipse.datatools.connectivity.oda.template.ui_3.0.4.200706071.jar [89] was not resolved.
    !SUBENTRY 2 org.eclipse.datatools.connectivity.oda.template.ui 2 0 2013-10-09 10:05:52.972
    !MESSAGE Missing required bundle org.eclipse.pde.ui_[3.2.0,4.0.0).
    !SESSION 2013-10-09 10:06:48.332 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.5.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86
    !ENTRY org.eclipse.core.resources 2 10035 2013-10-09 10:06:58.693
    !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
    !ENTRY org.eclipse.osgi 4 0 2013-10-09 10:06:58.713
    !MESSAGE An error occurred while automatically activating bundle org.eclipse.core.resources (69).
    !STACK 0
    org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources.
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextIm pl.java:1018)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:9 74)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLa zyStarter.java:111)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :417)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:189)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:34 0)
    at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackag e.java:37)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java :405)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :111)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Caused by: org.eclipse.core.internal.dtree.ObjectNotFoundException: Tree element '/workspace-ui/src/lc/procmgmt/ui/workflow/tracking/WorkflowTrackingModel.as' not found.
    at org.eclipse.core.internal.dtree.AbstractDataTree.handleNotFound(AbstractDataTree.java:257 )
    at org.eclipse.core.internal.dtree.DeltaDataTree.getData(DeltaDataTree.java:585)
    at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:50)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47)
    at org.eclipse.core.internal.dtree.DeltaDataTree.asBackwardDelta(DeltaDataTree.java:88)
    at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:816)
    at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
    at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:792)
    at org.eclipse.core.internal.watson.ElementTree.immutable(ElementTree.java:517)
    at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:670)
    at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1319)
    at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1949)
    at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1713)
    at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:363)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:9 99)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextIm pl.java:993)
    ... 29 more
    Root exception:
    org.eclipse.core.internal.dtree.ObjectNotFoundException: Tree element '/workspace-ui/src/lc/procmgmt/ui/workflow/tracking/WorkflowTrackingModel.as' not found.
    at org.eclipse.core.internal.dtree.AbstractDataTree.handleNotFound(AbstractDataTree.java:257 )
    at org.eclipse.core.internal.dtree.DeltaDataTree.getData(DeltaDataTree.java:585)
    at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:50)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:59)
    at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47)
    at org.eclipse.core.internal.dtree.DeltaDataTree.asBackwardDelta(DeltaDataTree.java:88)
    at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:816)
    at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
    at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:792)
    at org.eclipse.core.internal.watson.ElementTree.immutable(ElementTree.java:517)
    at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:670)
    at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1319)
    at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1949)
    at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1713)
    at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:363)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:9 99)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextIm pl.java:993)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:9 74)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLa zyStarter.java:111)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :417)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:189)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:34 0)
    at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackag e.java:37)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java :405)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :111)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Any key pointers?
    thanks,
    Ankit

    The only thing I can think of that could have caused this was
    this line of code:
    <mx:Button label=">" />
    Would that do it? If so, shouldn't Flex Builder simply show
    me a warning instead making the file completely
    inaccessible?

  • Problem exiting eclipse 3.7 while using FB4.6 Plugin

    I've tried many different versions of eclipse and I've come down to the realization that it is FB4.6.
    Everytime I exit eclipse a pop up saying there are errors look in the metadata/.log file.
    It appears as if FB4.6 is missing some of the plugins that it is trying to use. Any solutions?
    Here is the .log File:
    This is using eclipse 3.6. Every other version that I tested throws a similar if not identical .log file.
    I've tried reinstalling everything, and starting in a clean work environment.
    !SESSION 2012-02-13 20:03:21.468 -----------------------------------------------
    eclipse.buildId=I20100608-0911
    java.version=1.6.0_14
    java.vendor=BEA Systems, Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86
    !ENTRY org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle reference:file:../Adobe/Adobe Flash Builder 4.6/eclipse/plugins/org.eclipse.core.runtime.compatibility.registry.nl1_3.7.0.v2011071604 3402.jar was not resolved.
    !SUBENTRY 2 org.eclipse.core.runtime.compatibility.registry.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.core.runtime.compatibility.registry_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle reference:file:../Adobe/Adobe Flash Builder 4.6/eclipse/plugins/org.eclipse.equinox.security.win32.x86.nl1_3.7.0.v20110716043402.jar was not resolved.
    !SUBENTRY 2 org.eclipse.equinox.security.win32.x86.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.equinox.security.win32.x86_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle reference:file:../Adobe/Adobe Flash Builder 4.6/eclipse/plugins/org.eclipse.ui.workbench.compatibility.nl1_3.7.0.v20110716043402.jar was not resolved.
    !SUBENTRY 2 org.eclipse.ui.workbench.compatibility.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.ui.workbench.compatibility_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle reference:file:../Adobe/Adobe Flash Builder 4.6/eclipse/plugins/org.eclipse.swt.win32.win32.x86.nl1_3.7.0.v20110716043402.jar was not resolved.
    !SUBENTRY 2 org.eclipse.swt.win32.win32.x86.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.swt.win32.win32.x86_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle reference:file:../Adobe/Adobe Flash Builder 4.6/eclipse/plugins/org.eclipse.ui.win32.nl1_3.7.0.v20110716043402.jar was not resolved.
    !SUBENTRY 2 org.eclipse.ui.win32.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.ui.win32_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle reference:file:../Adobe/Adobe Flash Builder 4.6/eclipse/plugins/org.eclipse.core.net.win32.x86.nl1_3.7.0.v20110716043402.jar was not resolved.
    !SUBENTRY 2 org.eclipse.core.net.win32.x86.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.core.net.win32.x86_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle reference:file:../Adobe/Adobe Flash Builder 4.6/eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86.nl1_3.7.0.v2011071604340 2.jar was not resolved.
    !SUBENTRY 2 org.eclipse.equinox.launcher.win32.win32.x86.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.equinox.launcher.win32.win32.x86_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle reference:file:../Adobe/Adobe Flash Builder 4.6/eclipse/plugins/org.eclipse.jdt.compiler.apt.nl1_3.7.0.v20110716043402.jar was not resolved.
    !SUBENTRY 2 org.eclipse.jdt.compiler.apt.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.jdt.compiler.apt_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle reference:file:../Adobe/Adobe Flash Builder 4.6/eclipse/plugins/org.eclipse.core.filesystem.win32.x86.nl1_3.7.0.v20110716043402.jar was not resolved.
    !SUBENTRY 2 org.eclipse.core.filesystem.win32.x86.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.core.filesystem.win32.x86_[0.0.0,9.0.0).
    !ENTRY org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.core.runtime.compatibility.registry_3.3.0.v20100520 [40] was not resolved.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.ecf.provider.filetransfer.httpclient.ssl_1.0.0.v20100529-0735 [50] was not resolved.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.ecf.provider.filetransfer.ssl_1.0.0.v20100529-0735 [51] was not resolved.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.ecf.ssl_1.0.0.v20100529-0735 [52] was not resolved.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.ui.workbench.compatibility_3.2.100.I20100511-0800 [181] was not resolved.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.core.filesystem.win32.x86.nl1_3.7.0.v20110716043402_3.7.0.v20110716043402 [382] was not resolved.
    !SUBENTRY 2 org.eclipse.core.filesystem.win32.x86.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.core.filesystem.win32.x86_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.core.net.win32.x86.nl1_3.7.0.v20110716043402_3.7.0.v20110716043402 [385] was not resolved.
    !SUBENTRY 2 org.eclipse.core.net.win32.x86.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.core.net.win32.x86_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.core.runtime.compatibility.registry.nl1_3.7.0.v20110716043402_3.7.0.v20110716 043402 [390] was not resolved.
    !SUBENTRY 2 org.eclipse.core.runtime.compatibility.registry.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.core.runtime.compatibility.registry_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.equinox.launcher.win32.win32.x86.nl1_3.7.0.v20110716043402_3.7.0.v20110716043 402 [427] was not resolved.
    !SUBENTRY 2 org.eclipse.equinox.launcher.win32.win32.x86.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.equinox.launcher.win32.win32.x86_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.equinox.security.win32.x86.nl1_3.7.0.v20110716043402_3.7.0.v20110716043402 [461] was not resolved.
    !SUBENTRY 2 org.eclipse.equinox.security.win32.x86.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.equinox.security.win32.x86_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.jdt.compiler.apt.nl1_3.7.0.v20110716043402_3.7.0.v20110716043402 [472] was not resolved.
    !SUBENTRY 2 org.eclipse.jdt.compiler.apt.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.jdt.compiler.apt_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.swt.win32.win32.x86.nl1_3.7.0.v20110716043402_3.7.0.v20110716043402 [574] was not resolved.
    !SUBENTRY 2 org.eclipse.swt.win32.win32.x86.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.swt.win32.win32.x86_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.ui.win32.nl1_3.7.0.v20110716043402_3.7.0.v20110716043402 [601] was not resolved.
    !SUBENTRY 2 org.eclipse.ui.win32.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.ui.win32_[0.0.0,9.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-02-13 20:04:16.210
    !MESSAGE Bundle org.eclipse.ui.workbench.compatibility.nl1_3.7.0.v20110716043402_3.7.0.v20110716043402 [603] was not resolved.
    !SUBENTRY 2 org.eclipse.ui.workbench.compatibility.nl1_3.7.0.v20110716043402 2 0 2012-02-13 20:04:16.210
    !MESSAGE Missing host org.eclipse.ui.workbench.compatibility_[0.0.0,9.0.0).
    !ENTRY org.eclipse.osgi 4 0 2012-02-13 20:04:16.210
    !MESSAGE Application error
    !STACK 1
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
              at org.eclipse.swt.SWT.error(SWT.java:4083)
              at org.eclipse.swt.SWT.error(SWT.java:3998)
              at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)
              at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
              at org.eclipse.swt.widgets.Display.release(Display.java:3713)
              at org.eclipse.swt.graphics.Device.dispose(Device.java:295)
              at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:131)
              at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
              at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
              at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
              at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
    Caused by: java.lang.NullPointerException
              at com.adobe.flexbuilder.ui.UIPlugin$3.run(UIPlugin.java:186)
              at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
              at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
              at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
              at org.eclipse.swt.widgets.Display.release(Display.java:3713)
              at org.eclipse.swt.graphics.Device.dispose(Device.java:296)
              at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:131)
              at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
              at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
              at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
              ... 1 more

    So... it reappeared with some new information. Any Ideas?

  • Stretch part of a buffered image

    For my dissertation at university I am writing a program to generate rectangular cartograms, for an example look at:
    here (Not my work)
    I have written the algorithm to generate the cartograms(rectangles are drawn using Java 2D rectangle) and as a further step, I have overlayed a transparent buffered image of the actual map. I want to link the image and the rectangles so that when a rectangle gets bigger, that part of the image gets stretched larger (and visa versa for a rectangle getting smaller). I can check whether rectangles are getting larger or smaller but I am not sure about how to code the stretching(distorting) of the buffered image. Any ideas (or suggestions how to do this differently) would be greatly appreciated.
    I am posting my drawing code in case this helps understand what I am trying to do. The algorithm for generating cartograms is not important and is contained in another class.
    public class DrawPanel extends JPanel
        private BufferedImage image;
         private ArrayList<Rect> newrectList;
        private ArrayList<Integer> newareaList;
        private ArrayList<ArrayList<ArrayList<Integer>>> newneighbourList;
        * Sets inherited arraylist as local variables
        * @param rectList an arraylist of Rect objects
         * @param areaList an arraylist of the desired area for each rectangle
         * @param neighbourList
         * @param transparency
         public DrawPanel(ArrayList<Rect> rectList, ArrayList<Integer> areaList,
                ArrayList<ArrayList<ArrayList<Integer>>> neighbourList,double transparency) throws IOException
            setSize(600,480);
              newrectList = rectList;
            newareaList = areaList;
            newneighbourList = neighbourList;
            float tempfloat=(float) transparency;
            image =   loadTranslucentImage(tempfloat);
        public static BufferedImage loadTranslucentImage(float transperancy) throws IOException
                // Load the image
                BufferedImage loaded = ImageIO.read(new File("Europe_map.jpg"));
                // Create the image using the
                BufferedImage aimg = new BufferedImage(loaded.getWidth(), loaded.getHeight(), BufferedImage.TRANSLUCENT);
                // Get the images graphics
                Graphics2D g = aimg.createGraphics();
                // Set the Graphics composite to Alpha
                g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, transperancy));
               // Draw the LOADED img into the prepared reciver image
                g.drawImage(loaded,null,0, 0);
              // let go of all system resources in this Graphics
               g.dispose();
               // Return the image
               return aimg;
        @Override
        * draws the rectangles
        * @param g A graphics object in order to draw rectangles to the screen
      //Code removed because I went over the character count
         * redraws the rectangles to the screen
        public void reDrawMap(boolean toHighlight, int highlight, boolean showPop, double transparency,
                boolean transparencyChanged) throws IOException
         Graphics g = this.getGraphics();
         g.clearRect(0,0,600,480);
         g.setColor(Color.blue);
         g.fillRect(0,0,600,480);
        int x=0;
         for(int i = 0; i < newrectList.size(); i++)
                Rect rect = newrectList.get(i);
                        int j = newareaList.get(i);
                        int area = j*j;
                       //not important                      
                g.fill3DRect(rect.x, rect.y, rect.width, rect.height,true);
                   g.setColor(Color.black);
                   g.drawString(rect.name,(rect.x)+5,(rect.y)+10);
                if(showPop == true)
                    double finalarea = area*0.005;
                    BigDecimal b = new BigDecimal(finalarea).setScale(2,BigDecimal.ROUND_HALF_UP);
                    finalarea=b.doubleValue();
                    String areastring = Double.toString(finalarea);
                    g.drawString(areastring,(rect.x)+5,(rect.y)+25);
        if(transparencyChanged ==true)
            float tempfloat=(float) transparency;
            image =   loadTranslucentImage(tempfloat);
           g.drawImage(image, 0, 0,getWidth(),getHeight(), null);
        else
            g.drawImage(image, 0, 0,getWidth(),getHeight(), null);
    }My idea is to have an arraylist of rectangles in this class to keep a local copy of the rectangles being drawn. It is then easy to test if the new rectangle being drawn has a greater or less area than previously. Once this is done, I need to execute some code to stretch a rectangle of that size and position in "image".
    Thanks,
    Matt

    I want to link the image and the rectangles so that when a rectangle gets bigger, that part of the image gets stretched larger (and visa versa for a rectangle getting smaller)Why don't you create a class that has at least these two fields
    BufferedImage country;
    Rectangle rect;Of course you can use any name for the fields you want.
    You have one universal image (in this case "Euro_map.jpg"). Country will be a subimage of this universal one
    //see BufferedImage#getSubimage api
    country = euroMap.getSubimage(x,y,w,h);then when you draw rect you draw the country on top of it scaled to fit the same bounds.
    g2d.setRenderingHint(
            java.awt.RenderingHints.KEY_INTERPOLATION,
            java.awt.RenderingHints.VALUE_INTERPOLATION_BILINEAR);
    g2d.setComposite(
            AlphaComposite.getInstance(AlphaComposite.SRC_OVER, transperancy));
    g2d.drawImage(country,rect.x,rect.y,rect.width,rect.height,null);
    g2d.setComposite(AlphaComposite.SrcOver);Lastly, in your code you have this
    BufferedImage aimg = new BufferedImage(loaded.getWidth(), loaded.getHeight(), BufferedImage.TRANSLUCENT);The third parameter should be a BufferedImage type (TYPE_INT_ARGB for example). java.awt.Transparency.TRANSLUCENT has a value of 3, so you were creating a TYPE_INT_ARGB_PRE by chance. Luckily this type has an alpha channel. Were you aware you were doing that?

  • Eclipse Error during Database Studio startup

    I have some MaxDB 7.7 and 7.8 databases on SLES11 x86_64. There is no Windows machine nearby so I cannot use good old (stable!) DBMGUI but I have to switch over to this fancy Databse Studio tool. Installation was no problem, but during there startup I get some error messages:
    cd /sapdb/clients/DatabaseStudio/DatabaseStudio/
    setenv PATH /sapdb/clients/DatabaseStudio/DatabaseStudio:$PATH
    ./dbstudio -vm /usr/java/jre1.5.0_11/bin/java
    Xlib:  extension "RANDR" missing on display "localhost:1.0".
    (%appName:15081): Gdk-CRITICAL **: gdk_draw_drawable: assertion `GDK_IS_DRAWABLE (drawable)' failed
    Xlib:  extension "RANDR" missing on display "localhost:1.0".
    I get a small pop-up window with this information text:
    "An error has occurred. See the log file /sapdb/D93/sdb/DatabaseStudio/.metadata/.log."
    The contents of this logfile are:
    !SESSION 2011-03-29 13:03:02.301 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.5.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
    Command-line arguments:  -os linux -ws gtk -arch x86_64
    !ENTRY org.eclipse.ui 4 4 2011-03-29 13:03:11.856
    !MESSAGE Plug-in 'com.sap.sdb.tools.ui' contributed an invalid Menu Extension (Path: 'org.eclipse.search.menu' is invalid): com.sap.sdb.tools.ui.dbstudiosearchaction
    !ENTRY org.eclipse.ui.workbench 4 0 2011-03-29 13:03:14.271
    !MESSAGE Widget disposed too early!
    !STACK 0
    java.lang.RuntimeException: Widget disposed too early!
            at org.eclipse.ui.internal.WorkbenchPartReference$1.widgetDisposed(WorkbenchPartReference.java:171)
            at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:117)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1182)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1163)
            at org.eclipse.swt.widgets.Widget.release(Widget.java:1026)
            at org.eclipse.swt.widgets.Control.release(Control.java:3217)
            at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1184)
            at org.eclipse.swt.widgets.Widget.release(Widget.java:1029)
            at org.eclipse.swt.widgets.Control.release(Control.java:3217)
            at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1184)
            at org.eclipse.swt.widgets.Widget.release(Widget.java:1029)
            at org.eclipse.swt.widgets.Control.release(Control.java:3217)
            at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1184)
            at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:211)
            at org.eclipse.swt.widgets.Decorations.releaseChildren(Decorations.java:466)
            at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:1948)
            at org.eclipse.swt.widgets.Widget.release(Widget.java:1029)
            at org.eclipse.swt.widgets.Control.release(Control.java:3217)
            at org.eclipse.swt.widgets.Widget.dispose(Widget.java:442)
            at org.eclipse.swt.widgets.Shell.dispose(Shell.java:1893)
            at org.eclipse.swt.widgets.Display.release(Display.java:3083)
            at org.eclipse.swt.graphics.Device.dispose(Device.java:237)
            at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:129)
            at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
            at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
            at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
            at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
    Now what does this error message mean? Or how could I fix this problem?
    Regards,
    Mark

    Addendum: This was also in the log file, forgot to post it in my initial post:
    !ENTRY org.eclipse.osgi 2 0 2011-03-29 13:03:16.633
    !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
    !SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-29 13:03:16.633
    !MESSAGE Bundle update@eclipse/plugins/com.sap.sdb.tools.ui.report_7.8.1.v201007081836/ was not resolved.
    !SUBENTRY 2 com.sap.sdb.tools.ui.report 2 0 2011-03-29 13:03:16.633
    !MESSAGE Missing required bundle org.eclipse.birt.report.engine_0.0.0.
    !SUBENTRY 2 com.sap.sdb.tools.ui.report 2 0 2011-03-29 13:03:16.633
    !MESSAGE Missing required bundle org.eclipse.birt.report.viewer_0.0.0.
    !SUBENTRY 2 com.sap.sdb.tools.ui.report 2 0 2011-03-29 13:03:16.634
    !MESSAGE Missing required bundle org.eclipse.birt.report.model_0.0.0.
    !SUBENTRY 2 com.sap.sdb.tools.ui.report 2 0 2011-03-29 13:03:16.634
    !MESSAGE Missing required bundle org.eclipse.birt.core_0.0.0.
    !ENTRY org.eclipse.osgi 2 0 2011-03-29 13:03:16.635
    !MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
    !SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-29 13:03:16.636
    !MESSAGE Bundle update@eclipse/plugins/com.sap.sdb.tools.ui.report_7.8.1.v201007081836/ [167] was not resolved.
    !SUBENTRY 2 com.sap.sdb.tools.ui.report 2 0 2011-03-29 13:03:16.636
    !MESSAGE Missing required bundle org.eclipse.birt.core_0.0.0.
    !SUBENTRY 2 com.sap.sdb.tools.ui.report 2 0 2011-03-29 13:03:16.636
    !MESSAGE Missing required bundle org.eclipse.birt.report.engine_0.0.0.
    !SUBENTRY 2 com.sap.sdb.tools.ui.report 2 0 2011-03-29 13:03:16.636
    !MESSAGE Missing required bundle org.eclipse.birt.report.model_0.0.0.
    !SUBENTRY 2 com.sap.sdb.tools.ui.report 2 0 2011-03-29 13:03:16.636
    !MESSAGE Missing required bundle org.eclipse.birt.report.viewer_0.0.0.

  • How to draw a shape to Panel instead of draw to Frame

    I have a Frame and add a Panel into this Frame. I want to draw a shape to Panel instead of draw to Frame. how do i do?

    You can do two different things:
    1) For temporary drawings that will disappear when the component is repainted, you can use getGraphics() on the Panel, draw on the Graphics, then dispose the Graphics.
    2) For persistant drawings, subclass Panel and override the paint(Graphics g) method. Anything in there will be painted along with the panel. Start with super.paint(g); when you override for good coding practice.

Maybe you are looking for

  • DBMS_PARALLEL_EXEUCTE is not working for insert query.. Need help !!

    Hi All.. I am trying to use the dbms_parallel_execute package to insert into my target table. But at the end of execution, the rows not getting inserted into the target table. Could any one please help on this? Below are the statements.... create tab

  • Are there any problems using a back cover.

    I want to protect the back of my iPad from scratches. Are there any problems using a skin or cover on the back?

  • FlashMX problem in Windows7

    I have been using FlashMX  since about 2003 and have produced hundreds of movies and web sites. I recently upgraded from WindowsXP to Windows7. What a nightmare - Windows 7 that is. It as created havoc with many files. My FlashMX authoring program ru

  • Cant open attached files Dreamweaver CC update August

    I installed the brandnew DW CC update from today (August, 27th, 2013) and now I cannot open the connected files any more in this subtab which shows all related (attached files), for instance the css file. Opening a file by its own is working. Its alw

  • CS Review not enabling for docs created in earlier versions of inDesign

    I've been using CS Review for over a month now and have just come up against an issue that I haven't seen discussed here. I'm running inDesign CS5, but when working on files originally created in inDesign CS3, I am unable to post the document to CS R