SWT Help?.....

Hi folks,
I am trying to print out using SWT. The application that I have created all shows correctly in Print Preview, but when I press 'Print' I am receiving the following exception:
org.eclipse.swt.SWTException: Invalid thread access
     at org.eclipse.swt.SWT.error(SWT.java:2691)
     at org.eclipse.swt.SWT.error(SWT.java(Inlined Compiled Code))
     at org.eclipse.swt.SWT.error(SWT.java(Inlined Compiled Code))
     at org.eclipse.swt.widgets.Display.error(Display.java(Inlined Compiled Code))
     at org.eclipse.swt.widgets.Display.checkDevice(Display.java(Compiled Code))
     at org.eclipse.swt.widgets.Display.getSystemColor(Display.java:1530)When I click on the exception, it goes to this line in my code:
g.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_GRAY));Can anyone please point me in the correct direction as to where I am going wrong?
Cheers

Thanks anyone for looking but I no longer need any help as I have sorted it out,
Cheers.

Similar Messages

  • Close Window Button

    I have made a "close" button. My close button is supposed to close the window and open another one. How can I do this? Here is my code:
    btnExit.addSelectionListener(new SelectionAdapter() {
         public void widgetSelected(final SelectionEvent arg0)
              doClose();
    shell.addDisposeListener(new DisposeListener() {
         public void widgetDisposed(final DisposeEvent arg0) {
              doClose();
    private void doClose() {
         shell.dispose();
         new MainWindow();
    }When I use the "X" button in the window's top-right corner, the window closes properly and everything is good. However, when I close the window using my Close button, the window does not close properly. I'm assuming it's because I call new MainWindow() after shell.dispose(). But if I call new MainWindow() before shell.dispose() my window will never close.
    Any help?
    btw, I am using SWT not Swing but I don't think this is an SWT specific issue (plus there don't seem to be any swt help forums anywhere)

    SelectionListener is basically ActionListener in SWT. The doClose() method is being invoked by both listeners. So that's not the problem.
    I'm basically curious how I can close the current (and only) window/shell and then open another window (as my first post indicates). The code would be the same for Swing as for SWT, so Swing code would be fine.

  • Need help for two thing:: JFace/SWT and Drawing an updating graph! plz help

    Hey all,
    This is my first post on this forum and I was wondering if you guys can help me with two problems that im currently having and I would be really grateful.
    1. When ever i try to use the SWT/JFace tools and run it as a java app. I get this error:
    java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor
    Exception in thread "main"
    any suggestions??
    2. Now this is my main question:: How should I go about programming a graph that updates based on numbers in an array? Basically set of numbers in an array ( unsorted ), and as it is getting sorted I want a graph displaying how it is getting sorted. The graph is just a basic XY chart.
    Thank you.

        @n2medallas,
    Let's get your phone working right!
    You mentioned your getting a message that the phone is rooted. Where are you seeing this message? What is the current bilud and software version on your phone? Have you taken the phone into a VZW store to check the message you are seeing?
    JohnB_VZW
    Follow us on Twitter @VZWSupport

  • Need help in SWT

    Hi all
    i m new to this forum, also to SWT
    can somebody tell me how to get data entered by user in a swt gui?
    besides how can i implement MVC architecture in a SWT based windows application?
    any ideas would b of great help
    thanks

    Hi all
    i m new to this forum, also to SWT
    can somebody tell me how to get data entered by user in a swt gui?
    besides how can i implement MVC architecture in a SWT based windows application?
    any ideas would b of great help
    thanks

  • SWT Table Help

    Hey,
    I'm trying to embed widgets into my SWT Table. It doesn't look nice when I do it. For example, there's the white background behind checkboxes or spinners not sizing properly when in GTK.
    However, when I use the "SWT.CHECK" style flag when creating the table, it looks fine.
    Any idea/tips?
    Thanks in advance.

    I have the same problem.
    Daniel wrote:
    > Hi all, i'm new to SWT and i hope you can help me. I have a swt table
    > with 3 columns. For each column creation iŽm setting SWT.CENTER
    > alignment in the constructor, but when i fill up the cells, the first
    > column (index 0) never gets the alignment, the others columns (indexes 1
    > and 2) respect what i have set. I tried to put text and image together
    > and separately, but anyway, the first column ignores what i've set and
    > stays always on the left side. I'm not using table viewer. Here i have a
    > piece of code:
    >
    > //--Table Setup---
    >
    > table = new Table(parent,SWT.SINGLE | SWT.FULL_SELECTION | SWT.H_SCROLL
    > | SWT.V_SCROLL);
    > table.setLinesVisible(true);
    > table.setHeaderVisible(true);
    >
    > TableColumn column = null;
    >
    > for (int i = 0; i < 3; i++)
    > { column = new TableColumn(table,SWT.CENTER);
    > column.setWidth(MyModel.getColumnWidth);
    > column.setText(MyModel.getColumnHeader(i));
    > }
    >
    >
    > //--To insert lines i'm doing the following--
    > TableItem item = new TableItem(table,SWT.NONE);
    > String[] listitem = new String[]{myEntry.getCategoryName(),
    > myEntry.getFormatedTime(),
    > myEntry.getMessage()};
    >
    > item.setImage(myImage);//insert an image in the first column
    > item.setText(listitem);//fill up a row
    > //---
    >
    >
    > Thanks,
    > Daniel
    >

  • TreeViewer with JFace and SWT ...help!

    Hi Guys;
    My question is for those familiar with the eclipse platform developement..
    I'm trying to implement a File Explorer under The Eclipse platform using the jface and SWT tools...
    when i Run the code below it gives me a run time exception:
    NoClassDefFound exception...
    it seems that the problem resides at the line:
    tv.setInput(new File("C:\\"));
    if i remove the argument to File "C:\\" i get a blank view with no files..
    here is the Code:
    Any helpfull ideas would be very welcomed indeed...
    import org.eclipse.jface.window.*;
    import org.eclipse.swt.widgets.*;
    import java.io.*;
    import java.util.*;
    import org.eclipse.jface.viewers.*;
    import org.eclipse.jface.viewers.*;
    import org.eclipse.jface.window.*;
    import org.eclipse.swt.*;
    class FileTreeContentProvider implements ITreeContentProvider
    public Object[] getChildren(Object element)
         Object[] kids = ((File) element).listFiles();
         return kids == null ? new Object[0] : kids;
    public Object[] getElements(Object element)
         return getChildren(element);
    public boolean hasChildren(Object element)
         return getChildren(element).length > 0;
    public Object getParent(Object element)
         return ((File)element).getParent();
    public void dispose()
    public void inputChanged(Viewer viewer, Object old_input, Object new_input)
    class FileTreeLabelProvider extends LabelProvider
    public String getText(Object element)
         return ((File) element).getName();
    public class Standalone extends ApplicationWindow
    public Standalone()
         super(null);
    protected Control createContents(Composite parent)
         TreeViewer tv = new TreeViewer(parent);
         tv.setContentProvider(new FileTreeContentProvider());
         tv.setLabelProvider(new FileTreeLabelProvider());
         tv.setInput(new File(" C:\\ "));
         return tv.getTree();
    public static void main(String[] args)
         Standalone w = new Standalone();
         w.setBlockOnOpen(true);
         w.open();
         Display.getCurrent().dispose();

    This is an old post... but in case anyone wants to know... This tutorial is located at http://www-106.ibm.com/developerworks/opensource/library/os-ecgui1/ and I HIGHLY recommend it for people using Eclipse and wanting to learn how to create a File Explorer with JFace/SWT.
    Most likely the error that othmanSilent was getting was the following:
    java.lang.NoClassDefFoundError:
    org/eclipse/core/internal/boot/DelegatingURLClassLoader
    It was pointed out in the eclipse.swt newsgroups quite a few times. The author of the article forgot to also mention that you need to include the following jar file in your Java Build Path: eclipse.core.boot_<eclipse-version>/boot.jar

  • HELP ME!!!! who can help me ???

    My eclipse always halt suddenly. I have no idea how to solve it, and i have reinstall my JVM and eclipse.but it doesn't work, the eclipse halt again.
    The below is the eclipse log hs_err_pid3740.log. Who can help me? much appreciate!!!!
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d7f789e, pid=3740, tid=1468
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b01 mixed mode)
    # Problematic frame:
    # V [jvm.dll+0xc789e]
    --------------- T H R E A D ---------------
    Current thread (0x00c7ed10): JavaThread "Worker-5" [_thread_in_vm, id=1468]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000054
    Registers:
    EAX=0x00000000, EBX=0x2563a6b0, ECX=0x00000180, EDX=0x0000001a
    ESP=0x37fff814, EBP=0x37fff848, ESI=0x0000001a, EDI=0x35298770
    EIP=0x6d7f789e, EFLAGS=0x00010202
    Top of Stack: (sp=0x37fff814)
    0x37fff814: 6d7f7858 0000001a 3699747c 22ca6f68
    0x37fff824: 00000000 6d7f8aaf 23aacde0 22ca6f68
    0x37fff834: 00c7ed10 36b7bff0 35298768 35298770
    0x37fff844: 35298b5c 37fff87c 6d7f9986 36997468
    0x37fff854: 36997488 36997484 00c7ed10 00c7ed10
    0x37fff864: 00c7ed10 00000000 00000001 00c7ed10
    0x37fff874: 00c7ed10 00c7ed10 37fff8a8 6d7f98b4
    0x37fff884: 37fff940 3699747c 36997468 36997488
    Instructions: (pc=0x6d7f789e)
    0x6d7f788e: 8b 54 24 04 8d 0c 91 8b 04 01 8b 40 0c 8b 40 14
    0x6d7f789e: 8b 40 54 c1 e8 09 83 e0 01 c2 04 00 8b 4c 24 04
    Stack: [0x37f00000,0x38000000), sp=0x37fff814, free space=1022k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0xc789e]
    V [jvm.dll+0xc9986]
    V [jvm.dll+0xc98b4]
    V [jvm.dll+0xca226]
    V [jvm.dll+0xca059]
    V [jvm.dll+0x82544]
    j com.sun.org.apache.xml.internal.serializer.ToStream.init(Ljava/io/Writer;Ljava/util/Properties;ZZ)V+73
    j com.sun.org.apache.xml.internal.serializer.ToStream.init(Ljava/io/OutputStream;Ljava/util/Properties;Z)V+55
    j com.sun.org.apache.xml.internal.serializer.ToStream.setOutputStream(Ljava/io/OutputStream;)V+26
    j com.sun.org.apache.xml.internal.serializer.ToUnknownStream.setOutputStream(Ljava/io/OutputStream;)V+5
    j com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler()Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;+172
    j com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(Ljavax/xml/transform/Result;)Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;+250
    j com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V+46
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeDOMtoStream(Lorg/w3c/dom/Document;Ljava/io/OutputStream;)V+44
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/w3c/dom/Document;Ljava/util/zip/ZipOutputStream;)V+25
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/eclipse/mylyn/tasks/core/TaskList;Ljava/io/OutputStream;)V+342
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/eclipse/mylyn/tasks/core/TaskList;Ljava/io/File;)V+12
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager.internalSaveTaskList()V+16
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager.access$0(Lorg/eclipse/mylyn/internal/tasks/ui/util/TaskListSaveManager;)V+1
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager$TaskListSaverJob.run(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+65
    j org.eclipse.core.internal.jobs.Worker.run()V+31
    v ~StubRoutines::call_stub
    V [jvm.dll+0x86e84]
    V [jvm.dll+0xddead]
    V [jvm.dll+0x86d55]
    V [jvm.dll+0x86ab2]
    V [jvm.dll+0xa16b2]
    V [jvm.dll+0x10f4ac]
    V [jvm.dll+0x10f47a]
    C [MSVCRT.dll+0x2a3b0]
    C [kernel32.dll+0xb713]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j com.sun.org.apache.xml.internal.serializer.ToStream.init(Ljava/io/Writer;Ljava/util/Properties;ZZ)V+73
    j com.sun.org.apache.xml.internal.serializer.ToStream.init(Ljava/io/OutputStream;Ljava/util/Properties;Z)V+55
    j com.sun.org.apache.xml.internal.serializer.ToStream.setOutputStream(Ljava/io/OutputStream;)V+26
    j com.sun.org.apache.xml.internal.serializer.ToUnknownStream.setOutputStream(Ljava/io/OutputStream;)V+5
    j com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler()Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;+172
    j com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(Ljavax/xml/transform/Result;)Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;+250
    j com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V+46
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeDOMtoStream(Lorg/w3c/dom/Document;Ljava/io/OutputStream;)V+44
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/w3c/dom/Document;Ljava/util/zip/ZipOutputStream;)V+25
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/eclipse/mylyn/tasks/core/TaskList;Ljava/io/OutputStream;)V+342
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/eclipse/mylyn/tasks/core/TaskList;Ljava/io/File;)V+12
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager.internalSaveTaskList()V+16
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager.access$0(Lorg/eclipse/mylyn/internal/tasks/ui/util/TaskListSaveManager;)V+1
    j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager$TaskListSaverJob.run(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+65
    j org.eclipse.core.internal.jobs.Worker.run()V+31
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x36da44c0 JavaThread "Thread-7" [_thread_blocked, id=2840]
    0x36b960f0 JavaThread "Timer-2" [_thread_blocked, id=2008]
    0x36ca63a0 JavaThread "Timer-1" [_thread_blocked, id=3176]
    0x36b92d20 JavaThread "Timer-0" [_thread_blocked, id=3832]
    0x36bde590 JavaThread "Worker-6" [_thread_blocked, id=3968]
    =>0x00c7ed10 JavaThread "Worker-5" [_thread_in_vm, id=1468]
    0x369b7008 JavaThread "Worker-4" [_thread_blocked, id=1444]
    0x352b7d88 JavaThread "Worker-3" [_thread_blocked, id=780]
    0x36bd1008 JavaThread "Worker-2" [_thread_blocked, id=2124]
    0x35748c78 JavaThread "Worker-1" [_thread_blocked, id=3588]
    0x369438d8 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=844]
    0x366b7fd0 JavaThread "Java indexing" daemon [_thread_blocked, id=2040]
    0x355a7160 JavaThread "Worker-0" [_thread_blocked, id=1492]
    0x3550b410 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=3956]
    0x3556de40 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=3192]
    0x00c629e0 JavaThread "State Data Manager" daemon [_thread_blocked, id=3188]
    0x00c5dc88 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1728]
    0x00c5c8e8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=340]
    0x00c6b2a8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2116]
    0x00c50ab8 JavaThread "Finalizer" daemon [_thread_blocked, id=3652]
    0x00c4f650 JavaThread "Reference Handler" daemon [_thread_blocked, id=3144]
    0x003edb60 JavaThread "main" [_thread_in_native, id=2316]
    Other Threads:
    0x003e5688 VMThread [id=3568]
    0x00c5ef98 WatcherThread [id=3984]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 4608K, used 2915K [0x02c90000, 0x03190000, 0x053f0000)
    eden space 4096K, 58% used [0x02c90000, 0x02ee8c50, 0x03090000)
    from space 512K, 100% used [0x03110000, 0x03190000, 0x03190000)
    to space 512K, 0% used [0x03090000, 0x03090000, 0x03110000)
    tenured generation total 60112K, used 42130K [0x053f0000, 0x08ea4000, 0x22c90000)
    the space 60112K, 70% used [0x053f0000, 0x07d14a28, 0x07d14c00, 0x08ea4000)
    compacting perm gen total 43008K, used 42780K [0x22c90000, 0x25690000, 0x32c90000)
    the space 43008K, 99% used [0x22c90000, 0x25657298, 0x25657400, 0x25690000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x0040e000      E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\eclipse.exe
    0x7c900000 - 0x7c9af000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f6000      C:\WINDOWS\system32\kernel32.dll
    0x7e410000 - 0x7e4a1000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f59000      C:\WINDOWS\system32\GDI32.dll
    0x5d090000 - 0x5d12a000      C:\WINDOWS\system32\COMCTL32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f02000      C:\WINDOWS\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\MSVCRT.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.DLL
    0x629c0000 - 0x629c9000      C:\WINDOWS\system32\LPK.DLL
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    0x72000000 - 0x72012000      E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
    0x77c00000 - 0x77c08000      C:\WINDOWS\system32\VERSION.dll
    0x5ad70000 - 0x5ada8000      C:\WINDOWS\system32\uxtheme.dll
    0x74720000 - 0x7476c000      C:\WINDOWS\system32\MSCTF.dll
    0x77b40000 - 0x77b62000      C:\WINDOWS\system32\apphelp.dll
    0x755c0000 - 0x755ee000      C:\WINDOWS\system32\msctfime.ime
    0x774e0000 - 0x7761d000      C:\WINDOWS\system32\ole32.dll
    0x6d730000 - 0x6d8cb000      D:\Program Files\Java\jdk1.5.0_09\jre\bin\client\jvm.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x6d2f0000 - 0x6d2f8000      D:\Program Files\Java\jdk1.5.0_09\jre\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d700000 - 0x6d70c000      D:\Program Files\Java\jdk1.5.0_09\jre\bin\verify.dll
    0x6d370000 - 0x6d38d000      D:\Program Files\Java\jdk1.5.0_09\jre\bin\java.dll
    0x6d720000 - 0x6d72f000      D:\Program Files\Java\jdk1.5.0_09\jre\bin\zip.dll
    0x6d530000 - 0x6d543000      D:\Program Files\Java\jdk1.5.0_09\jre\bin\net.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x6d550000 - 0x6d559000      D:\Program Files\Java\jdk1.5.0_09\jre\bin\nio.dll
    0x35be0000 - 0x35c2f000      E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\configuration\org.eclipse.osgi\bundles\334\1\.cp\swt-win32-3349.dll
    0x773d0000 - 0x774d3000      C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\COMCTL32.dll
    0x77f60000 - 0x77fd6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x763b0000 - 0x763f9000      C:\WINDOWS\system32\comdlg32.dll
    0x7c9c0000 - 0x7d1d7000      C:\WINDOWS\system32\SHELL32.dll
    0x77120000 - 0x771ab000      C:\WINDOWS\system32\OLEAUT32.dll
    0x78050000 - 0x78120000      C:\WINDOWS\system32\WININET.dll
    0x35c40000 - 0x35c49000      C:\WINDOWS\system32\Normaliz.dll
    0x78000000 - 0x78045000      C:\WINDOWS\system32\iertutil.dll
    0x361a0000 - 0x361ba000      C:\WINDOWS\system32\hccutils.DLL
    0x361c0000 - 0x361c8000      E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\configuration\org.eclipse.osgi\bundles\36\1\.cp\os\win32\x86\localfile_1_0_0.dll
    0x74c80000 - 0x74cac000      C:\WINDOWS\system32\oleacc.dll
    0x76080000 - 0x760e5000      C:\WINDOWS\system32\MSVCP60.dll
    0x36e80000 - 0x36e94000      E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\configuration\org.eclipse.osgi\bundles\334\1\.cp\swt-gdip-win32-3349.dll
    0x4ec50000 - 0x4edf6000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.5581_x-ww_dfbc4fc4\gdiplus.dll
    0x37170000 - 0x37435000      C:\WINDOWS\system32\xpsp2res.dll
    0x76fd0000 - 0x7704f000      C:\WINDOWS\system32\CLBCATQ.DLL
    0x77050000 - 0x77115000      C:\WINDOWS\system32\COMRes.dll
    0x75cf0000 - 0x75d81000      C:\WINDOWS\System32\mlang.dll
    0x379d0000 - 0x37a54000      D:\Program Files\TortoiseSVN\bin\tortoisesvn.dll
    0x6eec0000 - 0x6eee2000      D:\Program Files\TortoiseSVN\bin\libapr_tsvn.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\system32\MSWSOCK.dll
    0x78130000 - 0x781cb000      C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCR80.dll
    0x6ee60000 - 0x6ee88000      D:\Program Files\TortoiseSVN\bin\libaprutil_tsvn.dll
    0x6ee50000 - 0x6ee5d000      D:\Program Files\TortoiseSVN\bin\libapriconv_tsvn.dll
    0x37a80000 - 0x37a8c000      D:\Program Files\TortoiseSVN\bin\intl3_svn.dll
    0x7c420000 - 0x7c4a7000      C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCP80.dll
    0x76780000 - 0x76789000      C:\WINDOWS\system32\SHFOLDER.dll
    0x6ee40000 - 0x6ee46000      D:\Program Files\TortoiseSVN\iconv\_tbl_simple.so
    0x6e900000 - 0x6e923000      D:\Program Files\TortoiseSVN\iconv\cp936.so
    0x6ed50000 - 0x6ed56000      D:\Program Files\TortoiseSVN\iconv\utf-8.so
    0x77a20000 - 0x77a74000      C:\WINDOWS\System32\cscui.dll
    0x76600000 - 0x7661d000      C:\WINDOWS\System32\CSCDLL.dll
    0x77920000 - 0x77a13000      C:\WINDOWS\system32\SETUPAPI.dll
    0x76380000 - 0x76385000      C:\WINDOWS\system32\msimg32.dll
    0x662b0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    VM Arguments:
    jvm_args: -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m -XX:MaxPermSize=256M
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    JAVA_HOME=D:\Program Files\Java\jdk1.5.0_09
    CLASSPATH=.;D:\Program Files\Java\jdk1.5.0_09\lib\tools.jar;D:\Program Files\Java\jre1.5.0_09\lib\ext\QTJava.zip;E:\eclipse_ee\workspace\Thumper\postgresql-8.2-508.jdbc3.jar
    PATH=D:\Program Files\Java\jdk1.5.0_09\bin\..\jre\bin\client;D:\Program Files\Java\jdk1.5.0_09\bin\..\jre\bin;D:\Program Files\Java\jdk1.5.0_09\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\Apache Software Foundation\Maven 1.1-beta-3\bin;D:\Program Files\Apache Software Foundation\apache-ant-1.7.0\bin;D:\Program Files\Python25;D:\cygwin;D:\Program Files\SecureCRT\;D:\Program Files\IDM Computer Solutions\UltraEdit-32;D:\Program Files\jython2.2.1;D:\Program Files\Tencent\QQ;D:\Program Files\net-snmp\usr\bin;D:\Program Files\Apache Software Foundation\apache-maven-2.0.9\bin;D:\Program Files\MySQL\MySQL Server 5.0\bin;E:\dev_tools\svn\svn-win32-1.4.3\bin;D:\Program Files\Tivoli\TSM\baclient;E:\open source project\android\android-sdk_m5-rc15_windows\tools;D:\cygwin\bin
    USERNAME=Administrator
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 3
    CPU:total 2 (cores per cpu 2, threads per core 1) family 6 model 15 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 2052648k(1391420k free), swap 3990772k(3260776k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b01) for windows-x86, built on Sep 7 2006 13:59:31 by "java_re" with MS VC++ 6.0

    Looking into the stack trace, this seems to be related to mylyn plugin. Try to remove it (remove it from the plugins dir and restart eclipse) and see if this is still happening

  • How can I create a Report from a SWT-Application?

    Post Author: mkoch
    CA Forum: JAVA
    I'm a Developer and new to Crystal Reports and I have the job to create a Report from a SWT-Application.The report-files ( *.rpt) were created with Crystal Reports 10 or 11.> I'm not sure but I have access to a machine where Crystal Reports 10 Developer an Crystal Reports 11 Runtime are installed.Can anybody describe in detail how I can start the creation of a report from my Java-Application?> What libraries are needed, where can I get them and so on.I saw in the CR10-Setup that there is a Java-feature - but unfortunately this is not installed on my test-machine.--> Is it necessary to install this feature or can I get this files on businessobjects.com?Is it possible to start the report-creation from command-line?I saw a Java-example on the internet which uses Report.exe - but I haven't found this on my machine.I hope, that somebody can help me.GreetingsMarkus

    Inv. #
    Item
    Sale Price
    Lisa
    Oct Sold 12
    Oct Sold 12-2
    Oct Sold 12-3
    149
    Vase Lidded
    25
    201
    Bird
    7
    7
    202
    Bird
    7
    203
    Bird
    7
    204
    Bird
    7
    7
    205
    Bird
    7
    7
    206
    Bird
    7
    7
    207
    Bird
    7
    207
    Bird
    7
    7
    208
    Bird
    7
    7
    209
    Bird
    7
    7
    This is my very simple inventory.  On previous program I could sort by those items that did not have any figure in the row across.  Then I could print a report of open inventory.  Such as 149 Lidded Vase has not sales amount in the four colums across, thus it is open inventory.  How can I capture all those items in one report?

  • 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!

  • Need help with applet related problems

    First of all hello to everyone. I'm new to this forum. I usually can solve my problems google-ing around, but this time I just ran out of ideas.
    I'm trying to develop a jni applet that can run native code for performance. I used netbeans so far and the applet works great when run from within the ide. At some point a managed to make the applet run inside firefox and iexplore, however somehow i screwed something up and now i can't make it run anymore. I don't really know what i did but i think it may be related to these lines in the console since everything up until awt works fine in the applet:
    basic: JNLP2ClassLoader.findLibrary: Looking up native library: jawt.dll
    network: Looking up native library in: C:\Users\Gladiator\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\10\1082924a-7851bf5e-n\jawt.dll
    basic: Native library jawt.dll not found
    Ofc i may be wrong.
    This also my be a local problem because a friend of mine tried the applet himself and said it's working.
    All the jars are selfsigned.
    below i posted the console output in case you want to take a look. Also I am interested about the "try again.." messages that seem to pop over and over again.
    Java Plug-in 1.6.0_27
    Using JRE version 1.6.0_27-b07 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Gladiator
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition value null
    security: property package.definition new value com.sun.javaws
    security: property package.definition value com.sun.javaws
    security: property package.definition new value com.sun.javaws,com.sun.deploy
    security: property package.definition value com.sun.javaws,com.sun.deploy
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    network: Created version ID: 1.6.0.27
    network: Created version ID: 1.6
    network: Created version ID: 1.6.0.27
    network: Created version ID: 1.6
    network: Created version ID: 1.6.0.27
    network: Created version ID: 1.6
    network: Created version ID: 1.6.0.27
    network: Created version ID: 1.6
    network: Cache entry not found [url: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp, version: null]
    network: Cache entry not found [url: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp, version: null]
    network: Cache entry not found [url: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp, version: null]
    network: ResponseCode for file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp : 200
    network: Encoding for file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp : null
    network: Sever response: (length: 564, lastModified: Wed Sep 07 16:30:17 EEST 2011, downloadVersion: null, mimeType: application/x-java-jnlp-file)
    network: Downloading resource: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp
         Content-Length: 564
         Content-Encoding: null
    network: Wrote URL file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp to File C:\Users\Gladiator\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\57\7465fe39-7a36cd96-temp
    network: Cache: Enable a new CacheEntry: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp
    temp: new XMLParser with source:
    temp: <?xml version="1.0" encoding="UTF-8"?>
    <jnlp href="launch.jnlp">
    <information>
    <title>test app</title>
    <vendor>Raven</vendor>
    </information>
    <resources>
    <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
    <jar href="SpaceGame.jar" main="true" />
    </resources>
    <resources os="Windows">
    <nativelib href="lib/swt.jar"/>
    </resources>
    <applet-desc
    name="test app"
    main-class="javatest.JTest"
    width="800"
    height="600">
    </applet-desc>
    <security>
    <all-permissions/>
    </security>
    </jnlp>
    temp:
    returning ROOT as follows:
    <jnlp href="launch.jnlp">
    <information>
    <title>test app</title>
    <vendor>Raven</vendor>
    </information>
    <resources>
    <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
    <jar href="SpaceGame.jar" main="true"/>
    </resources>
    <resources os="Windows">
    <nativelib href="lib/swt.jar"/>
    </resources>
    <applet-desc name="test app" main-class="javatest.JTest" width="800" height="600"/>
    <security>
    <all-permissions/>
    </security>
    </jnlp>
    temp: returning LaunchDesc from XMLFormat.parse():
    <jnlp spec="1.0+" codebase="file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/" href="file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp">
    <information>
    <title>test app</title>
    <vendor>Raven</vendor>
    <homepage href="null"/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <update check="timeout" policy="always"/>
    <resources>
    <java href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
    <jar href="file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar" download="eager" main="true"/>
    <nativelib href="file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar" download="eager" main="false"/>
    </resources>
    <applet-desc name="test app" main-class="javatest.JTest" documentbase="file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.html" width="800" height="600"/>
    </jnlp>
    network: CleanupThread used 16572 us
    basic: Plugin2ClassLoader.addURL2 called for file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar
    basic: Plugin2ClassLoader.addURL2 called for file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar
    basic: Plugin2ClassLoader.drainPendingURLs addURL called for file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar
    basic: Plugin2ClassLoader.drainPendingURLs addURL called for file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar
    network: No Custom Progress jar
    network: LaunchDownload: concurrent downloads from LD: 4
    network: Total size to download: -1
    network: Cache entry not found [url: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar, version: null]
    network: Cache entry not found [url: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar, version: null]
    network: Cache entry not found [url: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar, version: null]
    network: Cache entry not found [url: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar, version: null]
    network: ResponseCode for file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar : 200
    network: ResponseCode for file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar : 200
    network: Encoding for file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar : null
    network: Encoding for file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar : null
    network: Sever response: (length: 12948, lastModified: Tue Sep 06 22:46:50 EEST 2011, downloadVersion: null, mimeType: application/x-java-archive)
    network: Sever response: (length: 2007707, lastModified: Tue Sep 06 22:47:10 EEST 2011, downloadVersion: null, mimeType: application/x-java-archive)
    network: CleanupThread used 1 us
    network: Downloading resource: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar
         Content-Length: 12,948
         Content-Encoding: null
    network: Downloading resource: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar
         Content-Length: 2,007,707
         Content-Encoding: null
    network: Wrote URL file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar to File C:\Users\Gladiator\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\5\26fb4185-10c9079c-temp
    network: Validating file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar , version null...
    security: Blacklist revocation check is enabled
    security: Trusted libraries list check is enabled
    network: Cache: Enable a new CacheEntry: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar
    network: CleanupThread used 1 us
    network: Downloaded file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar: file:/C:/Users/Gladiator/AppData/LocalLow/Sun/Java/Deployment/cache/6.0/5/26fb4185-10c9079c
    network: Download Progress: jarsDone: 1
    network: Wrote URL file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar to File C:\Users\Gladiator\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\10\1082924a-7851bf5e-temp
    network: Validating file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar , version null...
    network: Cache: Enable a new CacheEntry: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar
    network: CleanupThread used 2 us
    network: Downloaded file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar: file:/C:/Users/Gladiator/AppData/LocalLow/Sun/Java/Deployment/cache/6.0/10/1082924a-7851bf5e
    network: Download Progress: jarsDone: 2
    network: Created version ID: 1.6+
    network: Created version ID: 1.6.0.27
    network: Created version ID: 1.6.0.27
    network: Created version ID: 1.6
    basic: LaunchDesc location: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp
    network: Created version ID: 1.0+
    network: Created version ID: 6.0.18
    security: Validating signatures for file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp
    security: TustedSet null
    security: Empty trusted set for [file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp]
    security: Round 1 (0 out of 2):file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar
    security: Entry [file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar] is not prevalidated. Revert to full validation of this JAR.
    security: Round 2 (0 out of 2):file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar
    security: Validating cached jar url=file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar ffile=C:\Users\Gladiator\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\5\26fb4185-10c9079c com.sun.deploy.cache.CachedJarFile@698403
    security: Round 2 (1 out of 2):file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar
    security: Validating cached jar url=file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar ffile=C:\Users\Gladiator\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\10\1082924a-7851bf5e com.sun.deploy.cache.CachedJarFile@e80842
    security: Have 1 common certificates after processing file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar
    security: Istrusted: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp false
    security: Accessing keys and certificate in Mozilla user profile: null
    security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA hasnt been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: No need to checking trusted extension for this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment session certificate store
    security: User has granted the priviledges to the code for this session only
    security: Adding certificate in Deployment session certificate store
    security: Added certificate in Deployment session certificate store
    security: Saving certificates in Deployment session certificate store
    security: Saved certificates in Deployment session certificate store
    security: Mark trusted: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp
    basic: LD - All JAR files signed: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/launch.jnlp
    basic: passing security checks; secureArgs:true, allSigned:false
    basic: continuing launch in this VM
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA hasnt been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: No need to checking trusted extension for this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment session certificate store
    basic: JNLP2ClassLoader.findClass: javatest.JTest: try again ..
    basic: JNLP2ClassLoader.getPermissions() ..
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA hasnt been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: No need to checking trusted extension for this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment session certificate store
    basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
    security: JAVAWS AppPolicy Permission requested for: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/SpaceGame.jar
    basic: JNLP2ClassLoader.getPermissions() X
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA hasnt been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: No need to checking trusted extension for this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment session certificate store
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.events.PaintListener: try again ..
    basic: JNLP2ClassLoader.getPermissions() ..
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA hasnt been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: No need to checking trusted extension for this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment session certificate store
    basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
    security: JAVAWS AppPolicy Permission requested for: file:/C:/Users/Gladiator/Documents/NetBeansProjects/spacegame~svn/SpaceGame/dist/lib/swt.jar
    basic: JNLP2ClassLoader.getPermissions() X
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.SWTEventListener: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.graphics.Drawable: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Layout: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.layout.FillLayout: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Composite: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Scrollable: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Control: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Widget: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Shell: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Decorations: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Canvas: try again ..
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA hasnt been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: No need to checking trusted extension for this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment session certificate store
    basic: Applet loaded.
    basic: Applet resized and added to parent container
    basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 81605 us, pluginInit dt 2397573 us, TotalTime: 2479178 us
    basic: JNLP2ClassLoader.findClass: javatest.JTest$1: try again ..
    basic: Applet initialized
    C:\Users\Gladiator\AppData\Roaming
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Display: try again ..
    basic: Removed progress listener: null
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.graphics.Device: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.TEXTMETRICW: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.TEXTMETRIC: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.TEXTMETRICA: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.LOGFONTW: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.LOGFONT: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.LOGFONTA: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.NONCLIENTMETRICSW: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.NONCLIENTMETRICS: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.NONCLIENTMETRICSA: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Event: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.OS: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.C: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.Platform: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.OSVERSIONINFO: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.OSVERSIONINFOW: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.OSVERSIONINFOA: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.OSVERSIONINFOEXW: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.OSVERSIONINFOEX: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.OSVERSIONINFOEXA: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.Lock: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.Library: try again ..
    basic: JNLP2ClassLoader.findLibrary: Looking up native library: swt-win32-3735.dll
    network: Looking up native library in: C:\Users\Gladiator\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\10\1082924a-7851bf5e-n\swt-win32-3735.dll
    basic: JNLP2ClassLoader.findLibrary: native library found: C:\Users\Gladiator\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\10\1082924a-7851bf5e-n\swt-win32-3735.dll
    basic: Applet made visible
    basic: Starting applet
    basic: completed perf rollup
    basic: Applet started
    basic: Told clients applet is started
    basic: JNLP2ClassLoader.findLibrary: Looking up native library: swt-win32-3735.dll
    basic: JNLP2ClassLoader.findLibrary: native library found: C:\Users\Gladiator\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\10\1082924a-7851bf5e-n\swt-win32-3735.dll
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.TCHAR: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.ACTCTX: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.DLLVERSIONINFO: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.STARTUPINFO: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Display$1: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.graphics.Font: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.graphics.Resource: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.Callback: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.WNDCLASS: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.TaskBar: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Listener: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.PAINTSTRUCT: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.graphics.GCData: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.graphics.GC: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.PROPERTYKEY: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.HIGHCONTRAST: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.MSG: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Synchronizer: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.SWT: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.SWTError: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.SWTException: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.graphics.Cursor: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.NMHDR: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.NMLVDISPINFO: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.awt.SWT_AWT: try again ..
    basic: JNLP2ClassLoader.findLibrary: Looking up native library: jawt.dll
    network: Looking up native library in: C:\Users\Gladiator\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\10\1082924a-7851bf5e-n\jawt.dll
    basic: Native library jawt.dll not found
    basic: JNLP2ClassLoader.findLibrary: Looking up native library: swt-awt-win32-3735.dll
    basic: JNLP2ClassLoader.findLibrary: native library found: C:\Users\Gladiator\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\10\1082924a-7851bf5e-n\swt-awt-win32-3735.dll
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.MenuItem: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Item: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.Menu: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.NMTTDISPINFOA: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.NMTTDISPINFO: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.NMTTDISPINFOW: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.ToolTip: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.awt.SWT_AWT$11: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.awt.SWT_AWT$13: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.EventTable: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.WINDOWPOS: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.LRESULT: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.win32.RECT: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.graphics.Point: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.internal.SerializableCompatibility: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.graphics.Rectangle: try again ..
    basic: JNLP2ClassLoader.findClass: javatest.JTest$3: try again ..
    basic: JNLP2ClassLoader.findClass: org.eclipse.swt.widgets.TypedListener: try again ..
    -----

    I am sorry for bold, i came here to ask for help. I used bold to differentiate output from my questions since i couldn't find tags.
    I already validated jnlp using JaNeLA and got only optimization suggestions.
    As I said in first post, this works for a friend of mine, so it's possible a local issue with my java or something ...
    Also i reinstalled jre/jdk 7.0, then uninstalled and installed latest jre/jdk 6.
    Hope I didn't leave a bad impression, i just want help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Help with displaying my xml file in my jtext area

    Hi i am trying to read the data from my xml file and display it once the user clicks on the list all button.
    below is the source code for my program can someone please tell me some code to this.
    package tractorgui;
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.beans.XMLEncoder;
    import java.io.BufferedReader;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.FileReader;
    import java.beans.XMLDecoder;
    import javax.swing.*;
    import javax.swing.border.LineBorder;
    //import tractor.TextInputPrompt;
    import tractor.Tractor;
    * This code was edited or generated using CloudGarden's Jigloo
    * SWT/Swing GUI Builder, which is free for non-commercial
    * use. If Jigloo isbeing used commercially (ie, by a corporation,
    * company or business for any purpose whatever) then you
    * should purchase a license for each developer using Jigloo.
    * Please visit www.cloudgarden.com for details.
    * Use of Jigloo implies acceptance of these licensing terms.
    * A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
    * THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
    * LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
    public class NewSwingApp extends javax.swing.JFrame {
    //          //Set Look & Feel
    //          try {
    //               javax.swing.UIManager.setLookAndFeel("com.jgoodies.looks.plastic.Plastic3DLookAndFeel");
    //          } catch(Exception e) {
    //               e.printStackTrace();
              private static final long serialVersionUID = 1L;
         private JButton searchmanufacturer;
         private JButton jButton3;
         private JLabel companyname;
         private JPanel labelpannel;
         private JButton listall;
         private JPanel MenuButtons;
         private JButton archivetractor;
         private JTextArea outputscreen;
         private JButton exhibittractor;
         private JButton deletetractor;
         private JButton addtractor;
         private JButton listallexbited;
         private Tractor [ ] tractors;
         private JScrollPane jScrollPane2;
         private JScrollPane jScrollPane1;
    private int numberOfTractors;
         * Auto-generated main method to display this JFrame
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        NewSwingApp inst = new NewSwingApp();
                        inst.setLocationRelativeTo(null);
                        inst.setVisible(true);
         public NewSwingApp() {
              super();
              initGUI();
         private void initGUI() {
              try {
                   BorderLayout thisLayout = new BorderLayout();
                   getContentPane().setLayout(thisLayout);
                   this.setPreferredSize(new java.awt.Dimension(750, 700));
                        labelpannel = new JPanel();
                        BorderLayout labelpannelLayout = new BorderLayout();
                        getContentPane().add(labelpannel, BorderLayout.NORTH);
                        labelpannel.setLayout(labelpannelLayout);
                        jButton3 = new JButton();
                        getContentPane().add(getExitsystem(), BorderLayout.SOUTH);
                        jButton3.setText("Exit System");
                        jButton3.setPreferredSize(new java.awt.Dimension(609, 57));
                        jButton3.setBackground(new java.awt.Color(0,255,255));
                        jButton3.setForeground(new java.awt.Color(0,0,0));
                        jButton3.setFont(new java.awt.Font("Arial",1,24));
                        jButton3.addActionListener(new ActionListener() {
                             public void actionPerformed(ActionEvent evt) {
                                            System.exit(0);
                        MenuButtons = new JPanel();
                        getContentPane().add(MenuButtons, BorderLayout.WEST);
                        GridLayout MenuButtonsLayout = new GridLayout(7, 1);
                        MenuButtonsLayout.setColumns(1);
                        MenuButtonsLayout.setRows(7);
                        MenuButtonsLayout.setHgap(5);
                        MenuButtonsLayout.setVgap(5);
                        MenuButtons.setLayout(MenuButtonsLayout);
                        MenuButtons.setPreferredSize(new java.awt.Dimension(223, 267));
                             listall = new JButton();
                             MenuButtons.add(getListall());
                             listall.setText("List All");
                             listall.setBackground(new java.awt.Color(0,255,255));
                             listall.setForeground(new java.awt.Color(0,0,0));
                             listall.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
                             listall.setFont(new java.awt.Font("Arial",2,14));
                             listall.addActionListener(new ActionListener() {
                                  /* (non-Javadoc)
                                  * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
                                  public void actionPerformed(ActionEvent evt) {
                                       String XMLFile = "tractor.xml-courseworkasignment/src";
                                       //** Prints the contents of my XML file
                                       try {
                                       String s;
                                       BufferedReader in = new BufferedReader( new FileReader(XMLFile)
                                       outputscreen.setText("File successfully opened");
                                       try {
                                       while ( (s=in.readLine()) !=null)
                                       outputscreen.append(s);
                                       catch(Exception e) {
                                            outputscreen.append("Error reading line: " + e.getMessage());
                                       outputscreen.append("End of Document");
                                       catch(FileNotFoundException e) {
                                            outputscreen.append("Error in opening file: " + e.getMessage());
                             listallexbited = new JButton();
                             MenuButtons.add(getListallexbited());
                             listallexbited.setText("List All Tractors On Exhibition ");
                             listallexbited.setPreferredSize(new java.awt.Dimension(157, 57));
                             listallexbited.setBackground(new java.awt.Color(0,255,255));
                             listallexbited.setForeground(new java.awt.Color(64,0,0));
                             listallexbited.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       outputscreen.repaint();
                                       String XMLFile = "C:tractor.xml";
                                  // Print contents of XML file
                                  try {
                                  String s;
                                  BufferedReader in = new BufferedReader( new FileReader(XMLFile)
                                  outputscreen.setText("File successfully opened");
                                  try {
                                  while ( (s=in.readLine()) !=null)
                                  outputscreen.append(s);
                                  catch(Exception e) {
                                       outputscreen.append("Error reading line: " + e.getMessage());
                                  outputscreen.append("End of Document");
                                  catch(FileNotFoundException e) {
                                       outputscreen.append("Error in opening file: " + e.getMessage());
                             addtractor = new JButton();
                             MenuButtons.add(getAddtractor());
                             addtractor.setText("Add Tractor ");
                             addtractor.setBackground(new java.awt.Color(0,255,255));
                             addtractor.setForeground(new java.awt.Color(64,0,0));
                             addtractor.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       String manufacturer =JOptionPane.showInputDialog(getComponent(0), "Enter Manufacturer of Tractor");
                                       String shp = (JOptionPane.showInputDialog(getComponent(0), "Enter Horse Power of Tractor"));
                                       int hp =Integer.parseInt(shp);
                                       int sisRare =Integer.parseInt(JOptionPane.showInputDialog(getComponent(0), "Enter If the Tractor is rare (1=Yes/2=No)"));
                                       boolean isRare;
                                       if (sisRare== 1) {
                                       isRare =true;     
                                       }else
                                            isRare =false;
                                       String yom= JOptionPane.showInputDialog(getComponent(0), "Enter Year of Manufacture");
                                       int yearOfManufacture =Integer.parseInt(yom);
                                       String yis =JOptionPane.showInputDialog(getComponent(0), "Enter Number of years the Tractor has been in service");
                                       int yearsInService =Integer.parseInt(yis);
                                       String svalue = JOptionPane.showInputDialog(getComponent(0), "Enter Tractor's Value (?Pounds)");
                                       double value = Double.parseDouble(svalue);
                                       String lastWorkPlace =JOptionPane.showInputDialog(getComponent(0), "Enter Last Workplace");
                                            if(NewSwingApp.addTractor(new Tractor(manufacturer, hp, isRare, yearOfManufacture, yearsInService, value, lastWorkPlace, false)))
                                       JOptionPane.showMessageDialog((getComponent(0)), "Tractor Added");
                                       else
                                            JOptionPane.showMessageDialog(getComponent(0), "Could not Add Tractor");
                             deletetractor = new JButton();
                             MenuButtons.add(getDeletetractor());
                             deletetractor.setText("Delete Tractor ");
                             deletetractor.setBackground(new java.awt.Color(0,255,255));
                             deletetractor.setForeground(new java.awt.Color(64,0,0));
                             deletetractor.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       System.out.println("deletetractor.actionPerformed, event="+evt);
                                       JOptionPane.showInputDialog(getComponent(0), "Enter Tractor ID");
                             exhibittractor = new JButton();
                             MenuButtons.add(getExhibittractor());
                             exhibittractor.setText("Exhibit Tractor");
                             exhibittractor.setBackground(new java.awt.Color(0,255,255));
                             exhibittractor.setForeground(new java.awt.Color(0,0,0));
                             exhibittractor.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       System.out.println("exhibittractor.actionPerformed, event="+evt);
                                       JOptionPane.showInputDialog(getComponent(0), "Enter Tractor I.D");
                             archivetractor = new JButton();
                             MenuButtons.add(getArchivetractor());
                             archivetractor.setText("Archive Tractor");
                             archivetractor.setBackground(new java.awt.Color(0,255,255));
                             archivetractor.setForeground(new java.awt.Color(0,0,0));
                             archivetractor.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       System.out.println("archivetractor.actionPerformed, event="+evt);
                                       JOptionPane.showInputDialog(getComponent(0), "Enter Tractor I.D");
                             searchmanufacturer = new JButton();
                             MenuButtons.add(searchmanufacturer);
                             searchmanufacturer.setText("Search Manufacturer");
                             searchmanufacturer.setPreferredSize(new java.awt.Dimension(159, 21));
                             searchmanufacturer.setBackground(new java.awt.Color(0,255,255));
                             searchmanufacturer.setForeground(new java.awt.Color(64,0,0));
                             searchmanufacturer.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       System.out.println("searchmanufacturer.actionPerformed, event="+evt);
                                       JOptionPane.showInputDialog(getComponent(0), "Enter Manufacturer Name");
                        outputscreen = new JTextArea();
                        getContentPane().add(outputscreen, BorderLayout.CENTER);
                        outputscreen
                                  .setText("");
                        outputscreen.setBorder(BorderFactory.createTitledBorder(""));
                        outputscreen.setWrapStyleWord(true);
                        outputscreen.setEditable(false);
                        outputscreen.setEnabled(true);
                        outputscreen.setBackground(new java.awt.Color(255, 255, 255));
                        outputscreen.setForeground(new java.awt.Color(64, 0, 0));
                        companyname = new JLabel();
                        getContentPane().add(companyname, BorderLayout.NORTH);
                        companyname.setText(" Wolvesville Tractor Museum");
                        companyname.setPreferredSize(new java.awt.Dimension(609, 85));
                        companyname.setBackground(new java.awt.Color(255,255,0));
                        companyname.setFont(new java.awt.Font("Arial",1,28));
                        companyname.setForeground(new java.awt.Color(0,0,0));
                        companyname.setBorder(BorderFactory.createTitledBorder(""));
                        companyname.setOpaque(true);
                   this.setSize(750, 750);
              } catch (Exception e) {
                   e.printStackTrace();
         protected static boolean addTractor(Tractor tractor) {
                   if (tractor.getManufacturer()==null) return false; else
                   if (tractor.getHp()<50||tractor.getHp()>1100) return false; else
                   if (tractor.getIsRare()==false) return false; else
                   if (tractor.getYearsInService()<1||tractor.getYearsInService()>200) return false; else
                   if (tractor.getYearOfManufacture()<1800||tractor.getYearOfManufacture()>2008) return false; else
                   if (tractor.getValue()<100||tractor.getValue()>1500) return false; else
                   if (tractor.getLastWorkPlace()==null) return false; else
              return true;
         public JPanel getMenuButtons() {
              return MenuButtons;
         public JButton getListall() {
              return listall;
         public JLabel getCompanyname() {
              return companyname;
         public JButton getExitsystem() {
              return jButton3;
         public JButton getSearchmanufacturer() {
              return searchmanufacturer;
         public JButton getListallexbited() {
              return listallexbited;
         public JButton getAddtractor() {
              return addtractor;
         public JButton getDeletetractor() {
              return deletetractor;
         public JButton getExhibittractor() {
              return exhibittractor;
         public JButton getArchivetractor() {
              return archivetractor;
         public JTextArea getOutputscreenx() {
              return outputscreen;
    public void savetractors () {
         try {
              XMLEncoder encoder = new XMLEncoder(new FileOutputStream("tractor.xml"));
              encoder.writeObject(tractors);
              encoder.close();
         } catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    public void loadtractors () {
    try {
              XMLDecoder decoder = new XMLDecoder(new FileInputStream("tractor.xml"));
              tractors = (Tractor[]) decoder.readObject();
              decoder.close();
              for (int i=0; i<tractors.length;i++) {
                   if (tractors!=null)numberOfTractors =i;
              numberOfTractors++;
         } catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              tractors=new Tractor[25];
              numberOfTractors=0;

    here's an example:
    http://jdj.sys-con.com/read/37550.htm
    you need to have a class Tractor with all those properties and then use readObject.Somehow you need to tell the Encoder/Decoder what Tractor means..
    hope this helps!!

  • JVM crash for RCP/SWT application under windows

    Hi,
    We are running an RCP application under windows which uses SWT components .Intermittently the JVM carshes.I doubt SWT is the prime suspect or JVM???We are unable to identify the exact sequence in which the crash occurs.I'm attaching some hs_err_pdi* log files for the abnormal crash.
    Any insight appreciated.
    rgds,
    tess
    Core dump 1:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d6d6f09, pid=528, tid=2988
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode)
    # Problematic frame:
    # V [jvm.dll+0x96f09]
    --------------- T H R E A D ---------------
    Current thread (0x00368338): JavaThread "main" [_thread_in_vm, id=2988]
    siginfo: ExceptionCode=0xc0000005, reading address 0x65636194
    Registers:
    EAX=0x65636170, EBX=0x00a47c80, ECX=0x0006eeb4, EDX=0x00a82480
    ESP=0x0006eea8, EBP=0x0006eec0, ESI=0x076271e8, EDI=0x0000021e
    EIP=0x6d6d6f09, EFLAGS=0x00010216
    Top of Stack: (sp=0x0006eea8)
    0x0006eea8: 076271e8 0000021e 076271e8 0006f000
    0x0006eeb8: 076271e8 00a47c80 0006f000 6d7091d8
    0x0006eec8: 076271e8 6d6f779a 003687ac 07608b68
    0x0006eed8: 00368338 6d766380 00000002 0006f108
    0x0006eee8: 00a82d81 0006f12c 00368338 00000002
    0x0006eef8: 00368338 003687c4 06c21f40 0000000a
    0x0006ef08: 00000000 0000000a 00368740 00367ef8
    0x0006ef18: 00367f00 003682ec 003687dc 003687bc
    Instructions: (pc=0x6d6d6f09)
    0x6d6d6ef9: ec 83 ec 0c 56 8b 75 08 57 56 8b 46 08 8d 4d f4
    0x6d6d6f09: 0f b7 40 24 89 45 fc 8b 46 0c 8b 78 14 e8 ae 92
    Stack: [0x00030000,0x00070000), sp=0x0006eea8, free space=251k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x96f09]
    V [jvm.dll+0xc91d8]
    V [jvm.dll+0x7c921]
    j com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(IZ)Z+127
    j com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces()Z+246
    j com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Z)Z+87
    j com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Z)Z+24
    j com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Z)Z+118
    j com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Lcom/sun/org/apache/xerces/internal/xni/parser/XMLInputSource;)V+29
    j com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Lcom/sun/org/apache/xerces/internal/xni/parser/XMLInputSource;)V+9
    j com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Lorg/xml/sax/InputSource;)V+43
    j com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Lorg/xml/sax/InputSource;)Lorg/w3c/dom/Document;+61
    j org.eclipse.jface.dialogs.DialogSettings.load(Ljava/io/Reader;)V+18
    j org.eclipse.jface.dialogs.DialogSettings.load(Ljava/lang/String;)V+29
    j org.eclipse.ui.plugin.AbstractUIPlugin.loadDialogSettings()V+57
    j org.eclipse.ui.plugin.AbstractUIPlugin.getDialogSettings()Lorg/eclipse/jface/dialogs/IDialogSettings;+8
    j org.eclipse.ui.internal.registry.PerspectiveRegistry.load()V+11
    j org.eclipse.ui.internal.WorkbenchPlugin.getPerspectiveRegistry()Lorg/eclipse/ui/IPerspectiveRegistry;+22
    j org.eclipse.ui.internal.Workbench.getPerspectiveRegistry()Lorg/eclipse/ui/IPerspectiveRegistry;+3
    j org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow()V+2
    j org.eclipse.ui.internal.Workbench.openFirstTimeWindow()V+17
    j org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWindow()V+7
    j org.eclipse.ui.application.WorkbenchAdvisor.openWindows()Z+45
    j org.eclipse.ui.internal.Workbench.init(Lorg/eclipse/swt/widgets/Display;)Z+671
    j org.eclipse.ui.internal.Workbench.runUI()I+39
    j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+11
    j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
    j com.stabilix.hc.Application.run(Ljava/lang/Object;)Ljava/lang/Object;+237
    j org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+257
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+170
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+57
    v ~StubRoutines::call_stub
    V [jvm.dll+0x818e8]
    V [jvm.dll+0xd4989]
    V [jvm.dll+0x817b9]
    V [jvm.dll+0xe4c04]
    V [jvm.dll+0x9f94f]
    C [java.dll+0x6c08]
    j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j org.eclipse.core.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+181
    j org.eclipse.core.launcher.Main.basicRun([Ljava/lang/String;)V+107
    j org.eclipse.core.launcher.Main.run([Ljava/lang/String;)I+4
    j org.eclipse.core.launcher.Main.main([Ljava/lang/String;)V+10
    v ~StubRoutines::call_stub
    V [jvm.dll+0x818e8]
    V [jvm.dll+0xd4989]
    V [jvm.dll+0x817b9]
    V [jvm.dll+0x88747]
    C [javaw.exe+0x14c0]
    C [javaw.exe+0x313d]
    C [kernel32.dll+0x16d4f]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(IZ)Z+127
    j com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces()Z+246
    j com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Z)Z+87
    j com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Z)Z+24
    j com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Z)Z+118
    j com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Lcom/sun/org/apache/xerces/internal/xni/parser/XMLInputSource;)V+29
    j com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Lcom/sun/org/apache/xerces/internal/xni/parser/XMLInputSource;)V+9
    j com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Lorg/xml/sax/InputSource;)V+43
    j com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Lorg/xml/sax/InputSource;)Lorg/w3c/dom/Document;+61
    j org.eclipse.jface.dialogs.DialogSettings.load(Ljava/io/Reader;)V+18
    j org.eclipse.jface.dialogs.DialogSettings.load(Ljava/lang/String;)V+29
    j org.eclipse.ui.plugin.AbstractUIPlugin.loadDialogSettings()V+57
    j org.eclipse.ui.plugin.AbstractUIPlugin.getDialogSettings()Lorg/eclipse/jface/dialogs/IDialogSettings;+8
    j org.eclipse.ui.internal.registry.PerspectiveRegistry.load()V+11
    j org.eclipse.ui.internal.WorkbenchPlugin.getPerspectiveRegistry()Lorg/eclipse/ui/IPerspectiveRegistry;+22
    j org.eclipse.ui.internal.Workbench.getPerspectiveRegistry()Lorg/eclipse/ui/IPerspectiveRegistry;+3
    j org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow()V+2
    j org.eclipse.ui.internal.Workbench.openFirstTimeWindow()V+17
    j org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWindow()V+7
    j org.eclipse.ui.application.WorkbenchAdvisor.openWindows()Z+45
    j org.eclipse.ui.internal.Workbench.init(Lorg/eclipse/swt/widgets/Display;)Z+671
    j org.eclipse.ui.internal.Workbench.runUI()I+39
    j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+11
    j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
    j com.stabilix.hc.Application.run(Ljava/lang/Object;)Ljava/lang/Object;+237
    j org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+257
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+170
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+57
    v ~StubRoutines::call_stub
    j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
    j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j org.eclipse.core.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+181
    j org.eclipse.core.launcher.Main.basicRun([Ljava/lang/String;)V+107
    j org.eclipse.core.launcher.Main.run([Ljava/lang/String;)I+4
    j org.eclipse.core.launcher.Main.main([Ljava/lang/String;)V+10
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0b16ad20 JavaThread "Thread-1" daemon [_thread_blocked, id=2932]
    0x0af3f128 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=1568]
    0x0affb840 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=3368]
    0x0ad535f0 JavaThread "State Data Manager" daemon [_thread_blocked, id=4088]
    0x00a4de70 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3972]
    0x00a4c408 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2056]
    0x00a4b0d0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=988]
    0x00a495e8 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=2076]
    0x00a48740 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=4012]
    0x00a42698 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=2960]
    0x00a38e98 JavaThread "Finalizer" daemon [_thread_blocked, id=2808]
    0x00a37a08 JavaThread "Reference Handler" daemon [_thread_blocked, id=1212]
    =>0x00368338 JavaThread "main" [_thread_in_vm, id=2988]
    Other Threads:
    0x00a338c0 VMThread [id=2156]
    0x00a4f0b8 WatcherThread [id=4048]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 576K, used 0K [0x02a80000, 0x02b20000, 0x02f60000)
    eden space 512K, 0% used [0x02a80000, 0x02a80000, 0x02b00000)
    from space 64K, 0% used [0x02b10000, 0x02b10000, 0x02b20000)
    to space 64K, 0% used [0x02b00000, 0x02b00000, 0x02b10000)
    tenured generation total 4928K, used 2954K [0x02f60000, 0x03430000, 0x06a80000)
    the space 4928K, 59% used [0x02f60000, 0x03242a58, 0x03242c00, 0x03430000)
    compacting perm gen total 12288K, used 12078K [0x06a80000, 0x07680000, 0x0aa80000)
    the space 12288K, 98% used [0x06a80000, 0x0764ba68, 0x0764bc00, 0x07680000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x0040c000      C:\Program Files\Java\jre1.5.0_02\bin\javaw.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x77d40000 - 0x77dd0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\MSVCRT.dll
    0x6d640000 - 0x6d7c5000      C:\Program Files\Java\jre1.5.0_02\bin\client\jvm.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x6d280000 - 0x6d288000      C:\Program Files\Java\jre1.5.0_02\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d380000 - 0x6d3b5000      C:\Program Files\Java\jre1.5.0_02\bin\jdwp.dll
    0x6d610000 - 0x6d61c000      C:\Program Files\Java\jre1.5.0_02\bin\verify.dll
    0x6d300000 - 0x6d31d000      C:\Program Files\Java\jre1.5.0_02\bin\java.dll
    0x6d630000 - 0x6d63f000      C:\Program Files\Java\jre1.5.0_02\bin\zip.dll
    0x6d220000 - 0x6d227000      C:\Program Files\Java\jre1.5.0_02\bin\dt_socket.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\System32\mswsock.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    0x662b0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    0x6d4c0000 - 0x6d4d3000      C:\Program Files\Java\jre1.5.0_02\bin\net.dll
    0x6d4e0000 - 0x6d4e9000      C:\Program Files\Java\jre1.5.0_02\bin\nio.dll
    0x10000000 - 0x10050000      C:\Eclipse-Latest\eclipse\workspace\.metadata\.plugins\org.eclipse.pde.core\hc.product\org.eclipse.osgi\bundles\66\1\.cp\swt-win32-3201.dll
    0x774e0000 - 0x7761d000      C:\WINDOWS\system32\ole32.dll
    0x773d0000 - 0x774d2000      C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\COMCTL32.dll
    0x77f60000 - 0x77fd6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x763b0000 - 0x763f9000      C:\WINDOWS\system32\comdlg32.dll
    0x7c9c0000 - 0x7d1d5000      C:\WINDOWS\system32\SHELL32.dll
    0x77120000 - 0x771ac000      C:\WINDOWS\system32\OLEAUT32.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.dll
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    VM Arguments:
    jvm_args: -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,suspend=y,address=localhost:3797
    java_command: org.eclipse.core.launcher.Main -launcher c:\Eclipse-Latest\eclipse\eclipse -name Eclipse -showsplash 600 -product com.stabilix.hc.hc -data C:\Eclipse-Latest\eclipse\runtime-hc.product -configuration file:C:/Eclipse-Latest/eclipse/workspace/.metadata/.plugins/org.eclipse.pde.core/hc.product/ -dev file:C:/Eclipse-Latest/eclipse/workspace/.metadata/.plugins/org.eclipse.pde.core/hc.product/dev.properties -pdelaunch -os win32 -ws win32 -arch x86
    Environment Variables:
    JAVA_HOME=C:\Program Files\Java\jdk1.5.0_02
    CLASSPATH=.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cisuz.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\tools\db2XTrigger.jar;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\DBXML\dbxml-2.0.9\dbxml\bin\release\dbxml.jar;C:\DBXML\dbxml-2.0.9\dbxml\bin\release\dbxml.jar;C:\DBXML\dbxml-2.0.9\dbxml\bin\release\dbxml.jar;.;C:\Program Files\Java\jdk1.5.0_02;C:\workspace\test;C:\Program Files\Java\jdk1.5.0_02\bin;C:\Program Files\Sleepycat Software\Berkeley DB XML 2.1.8\jar\dbxml.jar;C:\Program Files\Sleepycat Software\Berkeley DB XML 2.1.8\jar\db.jar;C:\Program Files\Sleepycat Software\Berkeley DB XML 2.1.8\jar\dbxmlexamples.jar;C:\Program Files\Sleepycat Software\Berkeley DB XML 2.1.8\jar\dbexamples.jar;C:\jbpm\jbpm-starters-kit-with-eclipse-3.0\jbpm-designer\eclipse\workspace\simple\map;C:\jbpm\jbpm-starters-kit-with-eclipse-3.0\jbpm-designer\eclipse;
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\NetManage\Windows;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\jdk1.3.1_02\include;C:\DBXML\dbxml-2.0.9\dbxml\bin\release;C:\jdk1.3.1_02\bin;C:\Program Files\ZeusSCC-CVS;C:\Program Files\Java\jdk1.5.0_02\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Sleepycat Software\Berkeley DB XML 2.1.8\bin;C:\jbpm\jbpm-starters-kit-with-eclipse-3.0\jbpm-designer\eclipse;C:\MSSQL7\BINN;C:\Eclipse-Latest\eclipse\configuration\org.eclipse.osgi\bundles\64\1\.cp;C:\PROGRA~1\IBM\CLIENT~1;C:\PROGRA~1\IBM\CLIENT~1\Shared;C:\PROGRA~1\IBM\CLIENT~1\Emulator;C:\Eclipse-Latest\birt-runtime-1_0_1\bin
    USERNAME=metty
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht
    Memory: 4k page, physical 522228k(84240k free), swap 2028336k(1554380k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_02-b09) for windows-x86, built on Mar 4 2005 01:53:53 by "java_re" with MS VC++ 6.0
    Core dump:2
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0537f870, pid=3376, tid=2188
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode, sharing)
    # Problematic frame:
    # C 0x0537f870
    --------------- T H R E A D ---------------
    Current thread (0x00357dc8): JavaThread "main" [_thread_in_native, id=2188]
    siginfo: ExceptionCode=0xc0000005, reading address 0x0537f870
    Registers:
    EAX=0x7ffdf000, EBX=0x00000000, ECX=0x00000000, EDX=0x00000002
    ESP=0x0006f1ec, EBP=0x0006f214, ESI=0x0537f870, EDI=0x0006f250
    EIP=0x0537f870, EFLAGS=0x00010202
    Top of Stack: (sp=0x0006f1ec)
    0x0006f1ec: 77d48734 0014074a 0000001c 00000000
    0x0006f1fc: 00000508 0537f870 dcbaabcd 00000000
    0x0006f20c: 0006f250 0537f870 0006f27c 77d48816
    0x0006f21c: 0537f870 0014074a 0000001c 00000000
    0x0006f22c: 00000508 00000000 0014074a 00000102
    0x0006f23c: 00000014 00000001 00000000 00000000
    0x0006f24c: 00000010 00000000 00000001 00000000
    0x0006f25c: 00000000 00000000 0006f230 0006ee10
    Instructions: (pc=0x0537f870)
    0x0537f860:
    [error occurred during error reporting, step 100, id 0xc0000005]
    Stack: [0x00030000,0x00070000), sp=0x0006f1ec, free space=252k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C 0x0537f870
    C [USER32.dll+0x8816]
    C [USER32.dll+0xb4c0]
    C [USER32.dll+0xb50c]
    C [ntdll.dll+0xeae3]
    C [USER32.dll+0x9402]
    C [swt-win32-3201.dll+0x8179]
    J org.eclipse.swt.internal.win32.OS.PeekMessageW(Lorg/eclipse/swt/internal/win32/MSG;IIII)Z
    J org.eclipse.swt.widgets.Display.readAndDispatch()Z
    J org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V
    v ~OSRAdapter
    j org.eclipse.ui.internal.Workbench.runUI()I+108
    j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+11
    j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
    j com.stabilix.hc.Application.run(Ljava/lang/Object;)Ljava/lang/Object;+167
    j org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+257
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+170
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+57
    v ~StubRoutines::call_stub
    V [jvm.dll+0x818e8]
    V [jvm.dll+0xd4989]
    V [jvm.dll+0x817b9]
    V [jvm.dll+0xe4c04]
    V [jvm.dll+0x9f94f]
    C [java.dll+0x6c08]
    j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j org.eclipse.core.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+181
    j org.eclipse.core.launcher.Main.basicRun([Ljava/lang/String;)V+107
    j org.eclipse.core.launcher.Main.run([Ljava/lang/String;)I+4
    j org.eclipse.core.launcher.Main.main([Ljava/lang/String;)V+10
    v ~StubRoutines::call_stub
    V [jvm.dll+0x818e8]
    V [jvm.dll+0xd4989]
    V [jvm.dll+0x817b9]
    V [jvm.dll+0x88747]
    C [javaw.exe+0x14c0]
    C [javaw.exe+0x313d]
    C [kernel32.dll+0x16d4f]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    J org.eclipse.swt.internal.win32.OS.PeekMessageW(Lorg/eclipse/swt/internal/win32/MSG;IIII)Z
    J org.eclipse.swt.widgets.Display.readAndDispatch()Z
    J org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V
    v ~OSRAdapter
    j org.eclipse.ui.internal.Workbench.runUI()I+108
    j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+11
    j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
    j com.stabilix.hc.Application.run(Ljava/lang/Object;)Ljava/lang/Object;+167
    j org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+257
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+170
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+57
    v ~StubRoutines::call_stub
    j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
    j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j org.eclipse.core.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+181
    j org.eclipse.core.launcher.Main.basicRun([Ljava/lang/String;)V+107
    j org.eclipse.core.launcher.Main.run([Ljava/lang/String;)I+4
    j org.eclipse.core.launcher.Main.main([Ljava/lang/String;)V+10
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x03076980 JavaThread "Worker-0" [_thread_blocked, id=884]
    0x00a6cdc0 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=2340]
    0x00a68920 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=2936]
    0x00a612b0 JavaThread "State Data Manager" daemon [_thread_blocked, id=484]
    0x00a0e2f8 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3280]
    0x00a0ced0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3264]
    0x00a0c1c0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=844]
    0x00a094a0 JavaThread "Finalizer" daemon [_thread_blocked, id=3680]
    0x00a07ff0 JavaThread "Reference Handler" daemon [_thread_blocked, id=2316]
    =>0x00357dc8 JavaThread "main" [_thread_in_native, id=2188]
    Other Threads:
    0x00a07008 VMThread [id=2964]
    0x00a0f508 WatcherThread [id=552]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 704K, used 454K [0x22a70000, 0x22b30000, 0x22f50000)
    eden space 640K, 68% used [0x22a70000, 0x22ade4e8, 0x22b10000)
    from space 64K, 20% used [0x22b20000, 0x22b23540, 0x22b30000)
    to space 64K, 0% used [0x22b10000, 0x22b10000, 0x22b20000)
    tenured generation total 8776K, used 5412K [0x22f50000, 0x237e2000, 0x26a70000)
    the space 8776K, 61% used [0x22f50000, 0x23499290, 0x23499400, 0x237e2000)
    compacting perm gen total 20480K, used 20413K [0x26a70000, 0x27e70000, 0x2aa70000)
    the space 20480K, 99% used [0x26a70000, 0x27e5f6c8, 0x27e5f800, 0x27e70000)
    ro space 8192K, 62% used [0x2aa70000, 0x2af78018, 0x2af78200, 0x2b270000)
    rw space 12288K, 46% used [0x2b270000, 0x2b7fc620, 0x2b7fc800, 0x2be70000)
    Dynamic libraries:
    0x00400000 - 0x0040c000      C:\Program Files\Java\jre1.5.0_02\bin\javaw.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x77d40000 - 0x77dd0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\MSVCRT.dll
    0x6d640000 - 0x6d7c5000      C:\Program Files\Java\jre1.5.0_02\bin\client\jvm.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x6d280000 - 0x6d288000      C:\Program Files\Java\jre1.5.0_02\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d610000 - 0x6d61c000      C:\Program Files\Java\jre1.5.0_02\bin\verify.dll
    0x6d300000 - 0x6d31d000      C:\Program Files\Java\jre1.5.0_02\bin\java.dll
    0x6d630000 - 0x6d63f000      C:\Program Files\Java\jre1.5.0_02\bin\zip.dll
    0x6d4c0000 - 0x6d4d3000      C:\Program Files\Java\jre1.5.0_02\bin\net.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x6d4e0000 - 0x6d4e9000      C:\Program Files\Java\jre1.5.0_02\bin\nio.dll
    0x10000000 - 0x10050000      C:\Eclipse-Latest\eclipse\workspace\.metadata\.plugins\org.eclipse.pde.core\Eclipse Application\org.eclipse.osgi\bundles\8\1\.cp\swt-win32-3201.dll
    0x774e0000 - 0x7761d000      C:\WINDOWS\system32\ole32.dll
    0x5d090000 - 0x5d127000      C:\WINDOWS\system32\COMCTL32.dll
    0x763b0000 - 0x763f9000      C:\WINDOWS\system32\comdlg32.dll
    0x77f60000 - 0x77fd6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x7c9c0000 - 0x7d1d5000      C:\WINDOWS\system32\SHELL32.dll
    0x77120000 - 0x771ac000      C:\WINDOWS\system32\OLEAUT32.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.dll
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    0x773d0000 - 0x774d2000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\System32\mswsock.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    0x74c80000 - 0x74cac000      C:\WINDOWS\system32\oleacc.dll
    0x76080000 - 0x760e5000      C:\WINDOWS\system32\MSVCP60.dll
    0x20000000 - 0x202c5000      C:\WINDOWS\system32\xpsp2res.dll
    0x76fd0000 - 0x7704f000      C:\WINDOWS\system32\CLBCATQ.DLL
    0x77050000 - 0x77115000      C:\WINDOWS\system32\COMRes.dll
    0x77c00000 - 0x77c08000      C:\WINDOWS\system32\VERSION.dll
    0x75cf0000 - 0x75d81000      C:\WINDOWS\System32\mlang.dll
    0x76380000 - 0x76385000      C:\WINDOWS\system32\msimg32.dll
    0x77760000 - 0x778ce000      C:\WINDOWS\System32\shdocvw.dll
    0x77a80000 - 0x77b14000      C:\WINDOWS\system32\CRYPT32.dll
    0x77b20000 - 0x77b32000      C:\WINDOWS\system32\MSASN1.dll
    0x754d0000 - 0x75550000      C:\WINDOWS\system32\CRYPTUI.dll
    0x76c30000 - 0x76c5e000      C:\WINDOWS\system32\WINTRUST.dll
    0x76c90000 - 0x76cb8000      C:\WINDOWS\system32\IMAGEHLP.dll
    0x5b860000 - 0x5b8b4000      C:\WINDOWS\system32\NETAPI32.dll
    0x771b0000 - 0x77256000      C:\WINDOWS\system32\WININET.dll
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x77260000 - 0x772ff000      C:\WINDOWS\system32\urlmon.dll
    0x77b40000 - 0x77b62000      C:\WINDOWS\system32\appHelp.dll
    0x75e90000 - 0x75f40000      C:\WINDOWS\system32\SXS.DLL
    0x6d000000 - 0x6d166000      C:\Program Files\Java\jre1.5.0_02\bin\awt.dll
    0x73000000 - 0x73026000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x77920000 - 0x77a13000      C:\WINDOWS\system32\SETUPAPI.dll
    0x03a60000 - 0x03ae8000      C:\WINDOWS\System32\shdoclc.dll
    0x72b20000 - 0x72b38000      C:\WINDOWS\system32\plugin.ocx
    0x769c0000 - 0x76a73000      C:\WINDOWS\system32\USERENV.dll
    0x72d20000 - 0x72d29000      C:\WINDOWS\system32\wdmaud.drv
    0x72d10000 - 0x72d18000      C:\WINDOWS\system32\msacm32.drv
    0x77be0000 - 0x77bf5000      C:\WINDOWS\system32\MSACM32.dll
    0x77bd0000 - 0x77bd7000      C:\WINDOWS\system32\midimap.dll
    VM Arguments:
    java_command: org.eclipse.core.launcher.Main -launcher c:\Eclipse-Latest\eclipse\eclipse -name Eclipse -showsplash 600 -product com.stabilix.hc.hc -data C:\Eclipse-Latest\eclipse\runtime-EclipseApplication -configuration file:C:/Eclipse-Latest/eclipse/workspace/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/ -dev file:C:/Eclipse-Latest/eclipse/workspace/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/dev.properties -pdelaunch -os win32 -ws win32 -arch x86
    Environment Variables:
    JAVA_HOME=C:\Program Files\Java\jdk1.5.0_02
    CLASSPATH=.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cisuz.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\tools\db2XTrigger.jar;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\DBXML\dbxml-2.0.9\dbxml\bin\release\dbxml.jar;C:\DBXML\dbxml-2.0.9\dbxml\bin\release\dbxml.jar;C:\DBXML\dbxml-2.0.9\dbxml\bin\release\dbxml.jar;.;C:\Program Files\Java\jdk1.5.0_02;C:\workspace\test;C:\Program Files\Java\jdk1.5.0_02\bin;C:\Program Files\Sleepycat Software\Berkeley DB XML 2.1.8\jar\dbxml.jar;C:\Program Files\Sleepycat Software\Berkeley DB XML 2.1.8\jar\db.jar;C:\Program Files\Sleepycat Software\Berkeley DB XML 2.1.8\jar\dbxmlexamples.jar;C:\Program Files\Sleepycat Software\Berkeley DB XML 2.1.8\jar\dbexamples.jar;C:\jbpm\jbpm-starters-kit-with-eclipse-3.0\jbpm-designer\eclipse\workspace\simple\map;C:\jbpm\jbpm-starters-kit-with-eclipse-3.0\jbpm-designer\eclipse;
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\NetManage\Windows;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\jdk1.3.1_02\include;C:\DBXML\dbxml-2.0.9\dbxml\bin\release;C:\jdk1.3.1_02\bin;C:\Program Files\ZeusSCC-CVS;C:\Program Files\Java\jdk1.5.0_02\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Sleepycat Software\Berkeley DB XML 2.1.8\bin;C:\jbpm\jbpm-starters-kit-with-eclipse-3.0\jbpm-designer\eclipse;C:\MSSQL7\BINN;C:\Eclipse-Latest\eclipse\configuration\org.eclipse.osgi\bundles\64\1\.cp;C:\PROGRA~1\IBM\CLIENT~1;C:\PROGRA~1\IBM\CLIENT~1\Shared;C:\PROGRA~1\IBM\CLIENT~1\Emulator;C:\Eclipse-Latest\birt-runtime-1_0_1\bin
    USERNAME=metty
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht
    Memory: 4k page, physical 522228k(79952k free), swap 2028336k(1491168k fr

    First, I would try and get the latest JDK 1.5.0_06 or 1.5.0_u7.. Next I would look
    at the swt version you have..We've seen issues like this before.. Simple update of swt and the problem went away. Worth a try. Good luck

  • Search replace Word doc - Getting Erro : org.eclipse.swt.SWTException:

    Hi
    All
    I'm runing this Java class by a jsp to Search and Replace and saveAs a word document, when run the fisrt time it works OK, but if I run again I got this error:
    What is happing there?
    Following the Error and Source Java.
    Thanks
    11:59:49,234 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    org.eclipse.swt.SWTException: Invalid thread access
    at org.eclipse.swt.SWT.error(SWT.java:3563)
    at org.eclipse.swt.SWT.error(SWT.java:3481)
    at org.eclipse.swt.SWT.error(SWT.java:3452)
    at org.eclipse.swt.widgets.Widget.error(Widget.java:432)
    at org.eclipse.swt.widgets.Shell.<init>(Shell.java:274)
    at org.eclipse.swt.widgets.Shell.<init>(Shell.java:265)
    at org.eclipse.swt.widgets.Shell.<init>(Shell.java:218)
    at org.eclipse.swt.widgets.Shell.<init>(Shell.java:156)
    at br.com.tryblob.view.WordSearchReplace.<init>(WordSearchReplace.java:36)
    at org.apache.jsp.replacedoc_jsp._jspService(replacedoc_jsp.java:48)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Unknown Source)
    12:00:56,843 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    org.eclipse.swt.SWTException: Invalid thread access
    at org.eclipse.swt.SWT.error(SWT.java:3563)
    at org.eclipse.swt.SWT.error(SWT.java:3481)
    at org.eclipse.swt.SWT.error(SWT.java:3452)
    at org.eclipse.swt.widgets.Widget.error(Widget.java:432)
    at org.eclipse.swt.widgets.Shell.<init>(Shell.java:274)
    at org.eclipse.swt.widgets.Shell.<init>(Shell.java:265)
    at org.eclipse.swt.widgets.Shell.<init>(Shell.java:218)
    at org.eclipse.swt.widgets.Shell.<init>(Shell.java:156)
    at br.com.tryblob.view.WordSearchReplace.<init>(WordSearchReplace.java:36)
    at org.apache.jsp.replacedoc_jsp._jspService(replacedoc_jsp.java:48)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Unknown Source)
    ==================JAVA CLASS=====================
    import org.eclipse.swt.SWT;
    import org.eclipse.swt.SWTException;
    import org.eclipse.swt.internal.ole.win32.TYPEATTR;
    import org.eclipse.swt.ole.win32.OLE;
    import org.eclipse.swt.ole.win32.OleAutomation;
    import org.eclipse.swt.ole.win32.OleClientSite;
    import org.eclipse.swt.ole.win32.OleFrame;
    import org.eclipse.swt.ole.win32.OleFunctionDescription;
    import org.eclipse.swt.ole.win32.OlePropertyDescription;
    import org.eclipse.swt.ole.win32.OleParameterDescription;
    import org.eclipse.swt.widgets.Shell;
    import org.eclipse.swt.ole.win32.Variant;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileWriter;
    import java.io.BufferedWriter;
    import java.io.IOException;
    public class WordSearchReplace {
         private static final String PROG_ID = "Word.Application";
         private static final int WD_REPLACE_ALL = 2;
         private static final int WD_FIND_CONTINUE = 1;
         private Shell shell = null;
         private OleFrame frame = null;
         private OleClientSite wordSite = null;
         private OleAutomation wordAutomation = null;
         private OleAutomation activeDocumentAutomation = null;
         private boolean cleaned = false;
         * Create a new instance of the WordSearchReplace class.
         public WordSearchReplace() {
              this.shell = new Shell();
              this.frame = new OleFrame(this.shell, SWT.NONE);
              this.wordSite = new OleClientSite(this.frame, SWT.NONE, WordSearchReplace.PROG_ID);
         this.wordAutomation = new OleAutomation(this.wordSite);
         * Open an MS Word file. This is a file whose name ends with the extension
         * .doc or .doc and which conforms to the correct format.
         * Note; if it is possible to open the named file, an attempt is made
         * to cache an OleAutomation object referencing that file which will be
         * referred to in future as the active document. Most other methods
         * need to capture references to further OleAutomation(s) that have the
         * active document as their root.
         * @param fileName An instance of the String class that encapsulates the
         * path to and name of the file that is to be opened.
         * Note; the full path name must be supplied as Word
         * will be opening the file and no assumptions can
         * safely be made concerning the applications 'home'
         * folder.
         * @throws NullPointerException if a null value is passed to the fileName
         * parameter.
         * @throws FileNotFoundException if it is not possible to locate the
         * file.
         * @throws IllegalArgumentException if the name of the file does not end
         * with either the .dot or .doc extensions.
         * @throws SWTException if a problem occurs whilst invoking any of the OLE
         * methods.
         public void openFile(String fileName) throws SWTException,
         NullPointerException,
         FileNotFoundException,
         IllegalArgumentException {
              OleAutomation documentsAutomation = null;
              int[] id = null;
              Variant[] arguments = null;
              Variant invokeResult = null;
              try {
                   // Check the the file name is not null
                   if(fileName == null) {
                        throw new NullPointerException("Null value passed to " +
                             "fileName parameters of the openFile() method.");
                   // Check the the file names ends with '.dot' or '.doc'.
                   // Remember to include templates and docuemnts
                   if(!(fileName.endsWith(".doc")) && !(fileName.endsWith(".dot"))) {
                        throw new IllegalArgumentException(
                             "The filename must end with the extensions \'.doc\' or \'.dot\'");
                   // Check that the file exists
                   File fileToPrint = new File(fileName);
                   if(!(fileToPrint.exists())) {
                        throw new FileNotFoundException("The file " +
                        fileName +
                        "cannot be found.");
                   // From the application, get an automation for the Documents property
                   documentsAutomation = this.getChildAutomation(this.wordAutomation,
                   "Documents");
                   // Get the ID of the Open method
                   id = documentsAutomation.getIDsOfNames(new String[]{"Open"});
                   if(id == null) {
                        throw new SWTException("It was not possible to recover an " +
                        "identifer for the Open method in WordSearchReplace.openFile().");
                   // Build an array of parameters - holds just the file name
                   arguments = new Variant[1];
                   arguments[0] = new Variant(fileName);
                   // Invoke the Open method on the Documents property
                   invokeResult = documentsAutomation.invoke(id[0], arguments);
                   // If the call to invoke the open method failed, throw an SWTException
                   // to terminate processing.
                   if(invokeResult == null) {
                        throw new SWTException("An error occurred whilst invoking the " +
                             "Open method for the following file: " +
                             fileName +
                             " in WordSearchReplace.openFile().");
                   // If it was possible to open the document successfully, grab an
                   // automation object referencing the active document here.               
                   else {
                        this.activeDocumentAutomation = this.getChildAutomation(
                             this.wordAutomation, "ActiveDocument");
              finally {
                   // If the automation was instantiated then dispose of it to
                   // release resources. This OleAutomation was only required
                   // to open the file and can safely be released here.
                   if(documentsAutomation != null) {
                        documentsAutomation.dispose();
         * Save the currently open file - the active document.
         * @throws SWTException if a problem occurs whilst invoking any of the OLE
         * methods.
         public void save() throws SWTException {
              int[] id = null;
              Variant invokeResult = null;
              // From the automation for the ActiveDocument object, get an id for
              // the Save method
              id = this.activeDocumentAutomation.getIDsOfNames(new String[]{"Save"});
              // If it was not possible to recover the id of the Save
              // method, throw an exception to notify the user and terminate
              // processing.
              if(id == null) {
                   throw new SWTException("Unable to obtain an automation for " +
                        "the Save method in WordSearchReplace.save().");
              // Invoke the Save method and catch the value returned
              invokeResult = this.activeDocumentAutomation.invoke(id[0]);
              // If a null value was returned then the invocation of the
              // Save method failed. Throw an exception to notify the
              // user and terminate processing.
              if(invokeResult == null) {
                   throw new SWTException("A problem occurred invoking the " +
                        "Save method in WordSearchReplace.save().");
         * Save the active document using the name provided.
         * @param fileName Am instance of the String class encapsulating the name
         * for the file. Again, the path to and name of the file should
         * be supplied.
         * @throws NullPointerException if a null value is passed to the fileName
         * parameter.
         * @throws IllegalArgumentException if either an empty String is passed
         * to the fileName parameter or if the files name does not end
         * with one of the two permissible extensions - .dot and .doc
         public void saveAs(String fileName) throws SWTException,
         NullPointerException,
         IllegalArgumentException {
              int[] id = null;
              Variant[] arguments = null;
              Variant invokeResult = null;
              // If the fileName parameter is passed a null
              // value, throw an exception.
              if(fileName == null) {
                   throw new NullPointerException("A null value was passed to " +
                        "the fileName parameter of WordSearchReplace.saveAs().");
              // If the fileName parameter has been passed an empty String
              // then again throw an exception.
              if(fileName.length() == 0) {
                   throw new NullPointerException("An empty string was passed " +
                        "to the fileName parameter of WordSearchReplace.saveAs().");
              // Finally, make sure the file name ends in either
              // .doc or .dot.
              if((!fileName.endsWith(".dot")) && (!fileName.endsWith(".doc"))) {
                   throw new IllegalArgumentException("An illegal file name was " +
                        "passed to the fileName parameter of " +
                        "WordSearchReplace.saveAs(). The file name must " +
                        "end in \'.dot\' or \'.doc\'.");
              // From the automation for the ActiveDocument object, get an id for
              // the SaveAs method
              id = this.activeDocumentAutomation.getIDsOfNames(new String[]{"SaveAs"});
              // If it was not possible to recover the id of the SaveAs
              // method, throw an exception to notify the user and terminate
              // processing.
              if(id == null) {
                   throw new SWTException("Unable to obtain an automation for " +
                        "the SaveAs method in WordSearchReplace.saveAs().");
              // Build the array of arguments that will be passed to the invoke
              // method when the SaveAs method is invoked. In this case, this
              // array will contain a single member - a String object encapsulating
              // the path to and name of the output file.
              arguments = new Variant[1];
              arguments[0] = new Variant(fileName);
              // Invoke the SaveAs method and catch the value returned
              invokeResult = this.activeDocumentAutomation.invoke(id[0], arguments);
              // If a null value was returned then the invocation of the
              // PrintOut method failed. Throw an exception to notify the
              // user and terminate processing.
              if(invokeResult == null) {
                   throw new SWTException("A problem occurred invoking the " +
                        "SaveAs method in WordSearchReplace.saveAs().");
         * Mimics Words 'replace' functionality by searching the active
         * document for evey string of characters that matches the value passed to
         * the searchTerm parameter and replacing them with the string of
         * characters passed to the replacementTerm method.
         * It is possible to code a VBA macro within Word that will perfrom a serach
         * and replace. That code would look like the following;
         * <pre>
         *      Selection.Find.ClearFormatting
    *     Selection.Find.Replacement.ClearFormatting
    *     With Selection.Find
    *      .Text = "serach"
    *      .Replacement.Text = "search"
    *      .Forward = True
    *      .Wrap = wdFindContinue
    *      .Format = False
    *      .MatchCase = False
    *      .MatchWholeWord = False
    *      .MatchWildcards = False
    *      .MatchSoundsLike = False
    *      .MatchAllWordForms = False
    *     End With
    *     Selection.Find.Execute Replace:=wdReplaceAll
    * <pre>
    * and this method will 'automate' it.
         * @param searchTerm An instance of the String class that will encapsulate
         * the series of characters that should be replaced.
         * @param replacementTerm An instance of the String class that will
         * encapsulate the series of characters that should replace the
         * searchTerm.
         * @throws NullPointerException if a null value is passed to either the
         * searchTerm or replacementTerm methods.
         * @throws SWTException if a problem occurs when invoking any of the
         * OLE methods.
         public void replace(String searchTerm,
         String replacementTerm) throws SWTException,
         NullPointerException {
              OleAutomation selectionFindAutomation = null;
              OleAutomation childAutomation = null;
              Variant[] arguments = null;
              Variant invokeResult = null;
              int[] id = null;
              int[] namedArguments = null;
              boolean success = true;
              // Validate the searchTerm parameter and throw exception if
              // null value passed.
              if(searchTerm == null) {
                   throw new NullPointerException("Null value passed to " +
                             "searchTerm parameter of the replace() method.");
              // Validate the replacementTerm parameter and throw exception if
              // null value passed.
              if(replacementTerm == null) {
                   throw new NullPointerException("Null value passed to " +
                             "replacementTerm parameter of the replace() method.");
              // Most of the VBA instructions used to perform the search and
              // replace functionality and child automations of Selection.Find,
              // therefore, it is wise to cache that automation first.
              // From the application, get an automation for the Selection property
              childAutomation = this.getChildAutomation(this.wordAutomation,
                   "Selection");
              selectionFindAutomation = this.getChildAutomation(childAutomation,
              "Find");
              // Next, using the cached automation, invoke the 'ClearFormatting'
              // method, validate the returned value and invoke the method.
              // Selection.Find.ClearFormatting
              id = selectionFindAutomation.getIDsOfNames(new String[]{"ClearFormatting"});
              if(id == null) {
                   throw new SWTException("It is not possible to recover an identifier " +
                        "for the ClearFormatting method in WordSearchReplace.replace() " +
                        "when clearing the formatting for the search string.");
              invokeResult = selectionFindAutomation.invoke(id[0]);
              if(invokeResult == null) {
                   throw new SWTException("A problem occurred invoking the " +
                        "ClearFormatting method in WordSearchReplace.repace() " +
                        "when clearing formatting for the search string.");
              // Now, perform the same function but for the replacement string.
              // Selection.Find.Replacement.ClearFormatting
              childAutomation = this.getChildAutomation(selectionFindAutomation,
              "Replacement");
              id = childAutomation.getIDsOfNames(new String[]{"ClearFormatting"});
              if(id == null) {
                   throw new SWTException("It is not possible to recover an identifier " +
                        "for the ClearFormatting method in WordSearchReplace.replace() " +
                        "when clearing the formatting for the replacement string.");
              invokeResult = childAutomation.invoke(id[0]);
              if(invokeResult == null) {
                   throw new SWTException("A problem occurred invoking the " +
                        "ClearFormatting method in WordSearchReplace.repace() " +
                        "when clearing formatting for the replacement string.");
              // Firstly, set the search text.
              // .Text = "search term"
              arguments = new Variant[1];
              arguments[0] = new Variant(searchTerm);
              success = this.setPropertyValue(selectionFindAutomation, "Text", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the Text " +
                        "property for the search string in WordSearchReplace.replace().");
              // Next, the replacement text
              // .Replacement.Text = "replacement term"
              childAutomation = this.getChildAutomation(selectionFindAutomation,
              "Replacement");
              arguments[0] = new Variant(replacementTerm);
              success = this.setPropertyValue(childAutomation, "Text", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the Text property" +
                        " for the replacement string in WordSearchReplace.replace().");
              // Set the direction of the search - forward in this case.
              // .Forward = True
              arguments[0] = new Variant(true);
              success = this.setPropertyValue(selectionFindAutomation, "Forward", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the Forward " +
                        "property in WordSearchReplace.replace().");
              // Tell the search to wrap. Note the literal wdFindContinue relates to
              // a constant that is defined within Word. I have provided a static
              // final to replace it called WD_FIND_CONTINUE
              // .Wrap = wdFindContinue
              arguments[0] = new Variant(WordSearchReplace.WD_FIND_CONTINUE);
              success = this.setPropertyValue(selectionFindAutomation, "Wrap", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the Wrap " +
                        "property in WordSearchReplace.replace().");
              // Set the Format property to False.
              // .Format = False
              arguments[0] = new Variant(false);
              success = this.setPropertyValue(selectionFindAutomation, "Format", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the Format " +
                        "property in WordSearchReplace.replace().");
              // Set the MatchCase property to false.
              // .MatchCase = False
              arguments[0] = new Variant(false);
              success = this.setPropertyValue(selectionFindAutomation, "MatchCase", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the MatchCase " +
                        "property in WordSearchReplace.replace().");
              // Set the MatchWholeWord property to false.
              // .MatchWholeWord = False
              arguments[0] = new Variant(false);
              success = this.setPropertyValue(selectionFindAutomation, "MatchWholeWord", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the " +
                        "MatchWholeWord property in WordSearchReplace.replace().");
              // Set the MatchWildCards property to false.
              // .MatchWildcards = False
              arguments[0] = new Variant(false);
              success = this.setPropertyValue(selectionFindAutomation, "MatchWildCards", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the " +
                        "MatchWildCards property in WordSearchReplace.replace().");
              // Set the MatchSoundsLike property to false.
              // .MatchSoundsLike = False
              arguments[0] = new Variant(false);
              success = this.setPropertyValue(selectionFindAutomation, "MatchSoundsLike", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the " +
                        "MatchSoundsLike property in WordSearchReplace.replace().");
              // Set the MatchAllWordForms property to false.
              // .MatchAllWordForms = False
              arguments[0] = new Variant(false);
              success = this.setPropertyValue(selectionFindAutomation, "MatchAllWordForms", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the " +
                        "MatchAllWordForms property in WordSearchReplace.replace().");
              // Invoke the Execute command passing the correct value to the Replace
              // parameter. Again, wdReplaceAll is a constant that I have provided
              // a ststic final for called WD_REPLACE_ALL
              // Selection.Find.Execute Replace:=wdReplaceAll
              id = selectionFindAutomation.getIDsOfNames(new String[]{"Execute", "Replace"});
              if(id == null) {
                   throw new SWTException("It was not possible to recover an identifier " +
                        "for the Execute method in WordSearchReplace.replace().");
              arguments = new Variant[1];
              arguments[0] = new Variant(WordSearchReplace.WD_REPLACE_ALL);
              namedArguments = new int[1];
              namedArguments[0] = id[1];
              // There was some indication that the invokeNoReply method should
              // be used when making this call but no, invoke SEEMS to work well
              //selectionFindAutomation.invokeNoReply(id[0], arguments, namedArguments);
              invokeResult = selectionFindAutomation.invoke(id[0], arguments, namedArguments);
              if(invokeResult == null) {
                   throw new SWTException("A problem occurred trying to invoke the " +
                   "Execute method in WordSearchReplace.replace().");
         * Close the active document.
         * @throws SWTException if a problem is encountered invoking any of the
         * OLE methods.
         public void closeFile() throws SWTException {
              int[] id = null;
              Variant[] arguments = null;
              Variant invokeResult = null;
              try {
                   // From the OleAutomation referencing the active document, recover
                   // the id of the Close method.
                   id = this.activeDocumentAutomation.getIDsOfNames(new String[]{"Close"});
                   // If it was not possible to recover the id of the Close
                   // method then throw an exception to notify the user and
                   // terminate processing.
                   if(id == null) {
                        throw new SWTException("It was not possible to recover an " +
                             "identifier for the Close method in " +
                             "WordSearchReplace.closeFile().");
                   // Invoke the Close method on the ActiveDocument automation
                   invokeResult = this.activeDocumentAutomation.invoke(id[0]);
                   // If the invocation of the Close method failed, throw an
                   // exception to notify the user and terminate processing.
                   if(invokeResult == null) {
                        throw new SWTException(
                             "An error occurred invoking the Close method in " +
                             "WordSearchReplace.closeFile().");
              finally {
                   if(this.activeDocumentAutomation != null) {
                        this.activeDocumentAutomation.dispose();
         * Release resources.
         public void dispose() throws SWTException {
              try {
                   // Set the cleaned flag to true. This prevents the method from
                   // running again if it is called from the finalize() method
                   this.cleaned = true;
                   // From the word automation, recover the id of the Quit method
                   int[] id = this.wordAutomation.getIDsOfNames(new String[]{"Quit"});
                   // If the id of the Quit method cannot be recovered
                   // throw an exception - not much good really though.
                   if(id == null) {
                        throw new SWTException("Unable to obtain an id for the Quit " +
                             "property in WordSearchReplace.dispose().");
                   // Invoke Quit
              Variant result = this.wordAutomation.invoke(id[0]);
              // If an error occurs during the invocation, throw an exception.
              // Again though that exception is of limited value.
              if(result == null) {
                   throw new SWTException("A problem occurred trying to invoke the " +
                        "Quit method in WordSearchReplace.dispose().");
         finally {
              // Finally, dispose of the word application automation.
              this.wordAutomation.dispose();
         * The finalize() method has been over-ridden to ensure that resources
         * are correctly released if a WordSearchReplace object is created but
         * not disposed of properly before it becomes eligible for garbage
         * collection. The cleaned flag is used as acheck to ensure that the
         * dispose() method cannot be called more than once.
         public void finalize() throws Throwable {
              if(!this.cleaned) {
                   this.dispose();
         * Creates and returns a 'child' OleAutomation object. The object model
         * employed by Word, Excel and the like, arrange objects, methods and
         * properties hierarchically. To invoke a method, it is often necessary
         * to iterate through this hierarchy from parent to child and this method
         * supports that process.
         * @param automation An OleAutomation object that references the parent
         * automation.
         * @param childName An instance of the String class that encapsulates the
         * name of the child automation.
         * @throws SWTException if a problem is encountered invoking one or
         * other of the OLE methods.
         private OleAutomation getChildAutomation(OleAutomation automation,
         String childName) throws SWTException {
              // Try to recove the unique identifier for the child automation
              int[] id = automation.getIDsOfNames(new String[]{childName});
              // If the identifier cannot be found then throw an exception to
              // terminate processing.           
              if (id == null) {
                   throw new SWTException(
                        "A problem occurred trying to obtain and id for: " +
                   childName +
                   "in the getC

    When you call it the first time, it new Shell() constructs a new Display for you (the default).
    The second time, it gets the default display, but you are in a different Thread now. Since you have to create your widgets in the UI thread, it gives you that error.
    To run code in the UI thread, Display provides two methods:
    display.syncexec(..)and
    display.asyncexec(...)see
    http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/swt_threading.htm
    for more details.

  • Org.eclipse.swt.SWTException: Invalid thread access - Action struts

    Hi
    I�m runing this WordSearchReplace java class that I got here in this forum, and I�m runing it doing search and replace in Ms word document if I run just one time it works ok, but if I run twice i got that erro, I�m runing that java class in my Action on struts.
    I don�t know what is occur.
    Can you help me?
    Thanks
    Following the example of call, mistakes and java class.
    //======RUNING THE WordSearchReplace JAVA CLASS=========
    WordSearchReplace wordSR = null;
    try {
    String[] v_text = {"#V46#","#V42#"};
    String[] v_replace = {"Texto1","Texto2"};
    wordSR = new WordSearchReplace();
    wordSR.openFile(v_path+v_file_name);
    for ( int i=0; i<v_text.length; i++ )
    wordSR.replace( v_text, v_replace[i] );
    wordSR.save();
    wordSR.closeFile();
    catch(Exception e) {
    System.out.println("Caught: ERRO ao Executar WordSearchReplace " + e.getClass().getName());
    System.out.println(e.getMessage());
    e.printStackTrace(System.out);
    finally {
    if(wordSR != null) {
    try {
    wordSR.dispose();
    catch(Exception innerE) {
    System.out.println("Caught: " + innerE.getClass().getName());
    System.out.println(innerE.getMessage());
    innerE.printStackTrace(System.out);
    //========ERRO ===========================
    17:24:49,093 INFO [STDOUT] Invalid thread access
    17:24:49,093 INFO [STDOUT] org.eclipse.swt.SWTException: Invalid thread access
    17:24:49,093 INFO [STDOUT] at org.eclipse.swt.SWT.error(SWT.java:3563)
    17:24:49,093 INFO [STDOUT] at org.eclipse.swt.SWT.error(SWT.java:3481)
    17:24:49,093 INFO [STDOUT] at org.eclipse.swt.SWT.error(SWT.java:3452)
    17:24:49,093 INFO [STDOUT] at org.eclipse.swt.widgets.Widget.error(Widget.java:432)
    17:24:49,093 INFO [STDOUT] at org.eclipse.swt.widgets.Shell.<init>(Shell.java:274)
    17:24:49,093 INFO [STDOUT] at org.eclipse.swt.widgets.Shell.<init>(Shell.java:265)
    17:24:49,093 INFO [STDOUT] at org.eclipse.swt.widgets.Shell.<init>(Shell.java:218)
    17:24:49,093 INFO [STDOUT] at org.eclipse.swt.widgets.Shell.<init>(Shell.java:156)
    17:24:49,093 INFO [STDOUT] at br.com.tryblob.view.WordSearchReplace.<init>(WordSearchReplace.java:38)
    17:24:49,093 INFO [STDOUT] at br.com.tryblob.view.WordAction.execute(WordAction.java:70)
    17:24:49,093 INFO [STDOUT] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    17:24:49,093 INFO [STDOUT] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    17:24:49,093 INFO [STDOUT] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    17:24:49,093 INFO [STDOUT] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    17:24:49,093 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
    //====== WordSearchReplace JAVA CLASS=========
    import java.util.ArrayList;
    import java.util.Iterator;
    import org.eclipse.swt.SWT;
    import org.eclipse.swt.SWTException;
    import org.eclipse.swt.internal.ole.win32.TYPEATTR;
    import org.eclipse.swt.ole.win32.OLE;
    import org.eclipse.swt.ole.win32.OleAutomation;
    import org.eclipse.swt.ole.win32.OleClientSite;
    import org.eclipse.swt.ole.win32.OleFrame;
    import org.eclipse.swt.ole.win32.OleFunctionDescription;
    import org.eclipse.swt.ole.win32.OlePropertyDescription;
    import org.eclipse.swt.ole.win32.OleParameterDescription;
    import org.eclipse.swt.widgets.Shell;
    import org.eclipse.swt.ole.win32.Variant;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileWriter;
    import java.io.BufferedWriter;
    import java.io.IOException;
    public class WordSearchReplace {
         private static final String PROG_ID = "Word.Application";
         private static final int WD_REPLACE_ALL = 2;
         private static final int WD_FIND_CONTINUE = 1;
         private Shell shell = null;
         private OleFrame frame = null;
         private OleClientSite wordSite = null;
         private OleAutomation wordAutomation = null;
         private OleAutomation activeDocumentAutomation = null;
         private boolean cleaned = false;
         * Create a new instance of the WordSearchReplace class.
         public WordSearchReplace() {
              this.shell = new Shell();
              this.frame = new OleFrame(this.shell, SWT.NONE);
              this.wordSite = new OleClientSite(this.frame, SWT.NONE, WordSearchReplace.PROG_ID);
         this.wordAutomation = new OleAutomation(this.wordSite);
         * Open an MS Word file. This is a file whose name ends with the extension
         * .doc or .doc and which conforms to the correct format.
         * Note; if it is possible to open the named file, an attempt is made
         * to cache an OleAutomation object referencing that file which will be
         * referred to in future as the active document. Most other methods
         * need to capture references to further OleAutomation(s) that have the
         * active document as their root.
         * @param fileName An instance of the String class that encapsulates the
         * path to and name of the file that is to be opened.
         * Note; the full path name must be supplied as Word
         * will be opening the file and no assumptions can
         * safely be made concerning the applications 'home'
         * folder.
         * @throws NullPointerException if a null value is passed to the fileName
         * parameter.
         * @throws FileNotFoundException if it is not possible to locate the
         * file.
         * @throws IllegalArgumentException if the name of the file does not end
         * with either the .dot or .doc extensions.
         * @throws SWTException if a problem occurs whilst invoking any of the OLE
         * methods.
         public void openFile(String fileName) throws SWTException,
         NullPointerException,
         FileNotFoundException,
         IllegalArgumentException {
              OleAutomation documentsAutomation = null;
              int[] id = null;
              Variant[] arguments = null;
              Variant invokeResult = null;
              try {
                   // Check the the file name is not null
                   if(fileName == null) {
                        throw new NullPointerException("Null value passed to " +
                             "fileName parameters of the openFile() method.");
                   // Check the the file names ends with '.dot' or '.doc'.
                   // Remember to include templates and docuemnts
                   if(!(fileName.endsWith(".doc")) && !(fileName.endsWith(".dot"))) {
                        throw new IllegalArgumentException(
                             "The filename must end with the extensions \'.doc\' or \'.dot\'");
                   // Check that the file exists
                   File fileToPrint = new File(fileName);
                   if(!(fileToPrint.exists())) {
                        throw new FileNotFoundException("The file " +
                        fileName +
                        "cannot be found.");
                   // From the application, get an automation for the Documents property
                   documentsAutomation = this.getChildAutomation(this.wordAutomation,
                   "Documents");
                   // Get the ID of the Open method
                   id = documentsAutomation.getIDsOfNames(new String[]{"Open"});
                   if(id == null) {
                        throw new SWTException("It was not possible to recover an " +
                        "identifer for the Open method in WordSearchReplace.openFile().");
                   // Build an array of parameters - holds just the file name
                   arguments = new Variant[1];
                   arguments[0] = new Variant(fileName);
                   // Invoke the Open method on the Documents property
                   invokeResult = documentsAutomation.invoke(id[0], arguments);
                   // If the call to invoke the open method failed, throw an SWTException
                   // to terminate processing.
                   if(invokeResult == null) {
                        throw new SWTException("An error occurred whilst invoking the " +
                             "Open method for the following file: " +
                             fileName +
                             " in WordSearchReplace.openFile().");
                   // If it was possible to open the document successfully, grab an
                   // automation object referencing the active document here.               
                   else {
                        this.activeDocumentAutomation = this.getChildAutomation(
                             this.wordAutomation, "ActiveDocument");
              finally {
                   // If the automation was instantiated then dispose of it to
                   // release resources. This OleAutomation was only required
                   // to open the file and can safely be released here.
                   if(documentsAutomation != null) {
                        documentsAutomation.dispose();
         * Save the currently open file - the active document.
         * @throws SWTException if a problem occurs whilst invoking any of the OLE
         * methods.
         public void save() throws SWTException {
              int[] id = null;
              Variant invokeResult = null;
              // From the automation for the ActiveDocument object, get an id for
              // the Save method
              id = this.activeDocumentAutomation.getIDsOfNames(new String[]{"Save"});
              // If it was not possible to recover the id of the Save
              // method, throw an exception to notify the user and terminate
              // processing.
              if(id == null) {
                   throw new SWTException("Unable to obtain an automation for " +
                        "the Save method in WordSearchReplace.save().");
              // Invoke the Save method and catch the value returned
              invokeResult = this.activeDocumentAutomation.invoke(id[0]);
              // If a null value was returned then the invocation of the
              // Save method failed. Throw an exception to notify the
              // user and terminate processing.
              if(invokeResult == null) {
                   throw new SWTException("A problem occurred invoking the " +
                        "Save method in WordSearchReplace.save().");
         * Save the active document using the name provided.
         * @param fileName Am instance of the String class encapsulating the name
         * for the file. Again, the path to and name of the file should
         * be supplied.
         * @throws NullPointerException if a null value is passed to the fileName
         * parameter.
         * @throws IllegalArgumentException if either an empty String is passed
         * to the fileName parameter or if the files name does not end
         * with one of the two permissible extensions - .dot and .doc
         public void saveAs(String fileName) throws SWTException,
         NullPointerException,
         IllegalArgumentException {
              int[] id = null;
              Variant[] arguments = null;
              Variant invokeResult = null;
              // If the fileName parameter is passed a null
              // value, throw an exception.
              if(fileName == null) {
                   throw new NullPointerException("A null value was passed to " +
                        "the fileName parameter of WordSearchReplace.saveAs().");
              // If the fileName parameter has been passed an empty String
              // then again throw an exception.
              if(fileName.length() == 0) {
                   throw new NullPointerException("An empty string was passed " +
                        "to the fileName parameter of WordSearchReplace.saveAs().");
              // Finally, make sure the file name ends in either
              // .doc or .dot.
              if((!fileName.endsWith(".dot")) && (!fileName.endsWith(".doc"))) {
                   throw new IllegalArgumentException("An illegal file name was " +
                        "passed to the fileName parameter of " +
                        "WordSearchReplace.saveAs(). The file name must " +
                        "end in \'.dot\' or \'.doc\'.");
              // From the automation for the ActiveDocument object, get an id for
              // the SaveAs method
              id = this.activeDocumentAutomation.getIDsOfNames(new String[]{"SaveAs"});
              // If it was not possible to recover the id of the SaveAs
              // method, throw an exception to notify the user and terminate
              // processing.
              if(id == null) {
                   throw new SWTException("Unable to obtain an automation for " +
                        "the SaveAs method in WordSearchReplace.saveAs().");
              // Build the array of arguments that will be passed to the invoke
              // method when the SaveAs method is invoked. In this case, this
              // array will contain a single member - a String object encapsulating
              // the path to and name of the output file.
              arguments = new Variant[1];
              arguments[0] = new Variant(fileName);
              // Invoke the SaveAs method and catch the value returned
              invokeResult = this.activeDocumentAutomation.invoke(id[0], arguments);
              // If a null value was returned then the invocation of the
              // PrintOut method failed. Throw an exception to notify the
              // user and terminate processing.
              if(invokeResult == null) {
                   throw new SWTException("A problem occurred invoking the " +
                        "SaveAs method in WordSearchReplace.saveAs().");
         * Mimics Words 'replace' functionality by searching the active
         * document for evey string of characters that matches the value passed to
         * the searchTerm parameter and replacing them with the string of
         * characters passed to the replacementTerm method.
         * It is possible to code a VBA macro within Word that will perfrom a serach
         * and replace. That code would look like the following;
         * <pre>
         *      Selection.Find.ClearFormatting
    *     Selection.Find.Replacement.ClearFormatting
    *     With Selection.Find
    *      .Text = "serach"
    *      .Replacement.Text = "search"
    *      .Forward = True
    *      .Wrap = wdFindContinue
    *      .Format = False
    *      .MatchCase = False
    *      .MatchWholeWord = False
    *      .MatchWildcards = False
    *      .MatchSoundsLike = False
    *      .MatchAllWordForms = False
    *     End With
    *     Selection.Find.Execute Replace:=wdReplaceAll
    * <pre>
    * and this method will 'automate' it.
         * @param searchTerm An instance of the String class that will encapsulate
         * the series of characters that should be replaced.
         * @param replacementTerm An instance of the String class that will
         * encapsulate the series of characters that should replace the
         * searchTerm.
         * @throws NullPointerException if a null value is passed to either the
         * searchTerm or replacementTerm methods.
         * @throws SWTException if a problem occurs when invoking any of the
         * OLE methods.
         public void replace(String searchTerm,
         String replacementTerm) throws SWTException,
         NullPointerException {
              OleAutomation selectionFindAutomation = null;
              OleAutomation childAutomation = null;
              Variant[] arguments = null;
              Variant invokeResult = null;
              int[] id = null;
              int[] namedArguments = null;
              boolean success = true;
              // Validate the searchTerm parameter and throw exception if
              // null value passed.
              if(searchTerm == null) {
                   throw new NullPointerException("Null value passed to " +
                             "searchTerm parameter of the replace() method.");
              // Validate the replacementTerm parameter and throw exception if
              // null value passed.
              if(replacementTerm == null) {
                   throw new NullPointerException("Null value passed to " +
                             "replacementTerm parameter of the replace() method.");
              // Most of the VBA instructions used to perform the search and
              // replace functionality and child automations of Selection.Find,
              // therefore, it is wise to cache that automation first.
              // From the application, get an automation for the Selection property
              childAutomation = this.getChildAutomation(this.wordAutomation,
                   "Selection");
              selectionFindAutomation = this.getChildAutomation(childAutomation,
              "Find");
              // Next, using the cached automation, invoke the 'ClearFormatting'
              // method, validate the returned value and invoke the method.
              // Selection.Find.ClearFormatting
              id = selectionFindAutomation.getIDsOfNames(new String[]{"ClearFormatting"});
              if(id == null) {
                   throw new SWTException("It is not possible to recover an identifier " +
                        "for the ClearFormatting method in WordSearchReplace.replace() " +
                        "when clearing the formatting for the search string.");
              invokeResult = selectionFindAutomation.invoke(id[0]);
              if(invokeResult == null) {
                   throw new SWTException("A problem occurred invoking the " +
                        "ClearFormatting method in WordSearchReplace.repace() " +
                        "when clearing formatting for the search string.");
              // Now, perform the same function but for the replacement string.
              // Selection.Find.Replacement.ClearFormatting
              childAutomation = this.getChildAutomation(selectionFindAutomation,
              "Replacement");
              id = childAutomation.getIDsOfNames(new String[]{"ClearFormatting"});
              if(id == null) {
                   throw new SWTException("It is not possible to recover an identifier " +
                        "for the ClearFormatting method in WordSearchReplace.replace() " +
                        "when clearing the formatting for the replacement string.");
              invokeResult = childAutomation.invoke(id[0]);
              if(invokeResult == null) {
                   throw new SWTException("A problem occurred invoking the " +
                        "ClearFormatting method in WordSearchReplace.repace() " +
                        "when clearing formatting for the replacement string.");
              // Firstly, set the search text.
              // .Text = "search term"
              arguments = new Variant[1];
              arguments[0] = new Variant(searchTerm);
              success = this.setPropertyValue(selectionFindAutomation, "Text", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the Text " +
                        "property for the search string in WordSearchReplace.replace().");
              // Next, the replacement text
              // .Replacement.Text = "replacement term"
              childAutomation = this.getChildAutomation(selectionFindAutomation,
              "Replacement");
              arguments[0] = new Variant(replacementTerm);
              success = this.setPropertyValue(childAutomation, "Text", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the Text property" +
                        " for the replacement string in WordSearchReplace.replace().");
              // Set the direction of the search - forward in this case.
              // .Forward = True
              arguments[0] = new Variant(true);
              success = this.setPropertyValue(selectionFindAutomation, "Forward", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the Forward " +
                        "property in WordSearchReplace.replace().");
              // Tell the search to wrap. Note the literal wdFindContinue relates to
              // a constant that is defined within Word. I have provided a static
              // final to replace it called WD_FIND_CONTINUE
              // .Wrap = wdFindContinue
              arguments[0] = new Variant(WordSearchReplace.WD_FIND_CONTINUE);
    // System.out.println("jose vieira WD_FIND_CONTINUE:" + arguments[0]);
              success = this.setPropertyValue(selectionFindAutomation, "Wrap", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the Wrap " +
                        "property in WordSearchReplace.replace().");
              // Set the Format property to False.
              // .Format = False
              arguments[0] = new Variant(false);
              success = this.setPropertyValue(selectionFindAutomation, "Format", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the Format " +
                        "property in WordSearchReplace.replace().");
              // Set the MatchCase property to false.
              // .MatchCase = False
              arguments[0] = new Variant(false);
              success = this.setPropertyValue(selectionFindAutomation, "MatchCase", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the MatchCase " +
                        "property in WordSearchReplace.replace().");
              // Set the MatchWholeWord property to false.
              // .MatchWholeWord = False
              arguments[0] = new Variant(false);
              success = this.setPropertyValue(selectionFindAutomation, "MatchWholeWord", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the " +
                        "MatchWholeWord property in WordSearchReplace.replace().");
              // Set the MatchWildCards property to false.
              // .MatchWildcards = False
              arguments[0] = new Variant(false);
              success = this.setPropertyValue(selectionFindAutomation, "MatchWildCards", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the " +
                        "MatchWildCards property in WordSearchReplace.replace().");
              // Set the MatchSoundsLike property to false.
              // .MatchSoundsLike = False
              arguments[0] = new Variant(false);
              success = this.setPropertyValue(selectionFindAutomation, "MatchSoundsLike", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the " +
                        "MatchSoundsLike property in WordSearchReplace.replace().");
              // Set the MatchAllWordForms property to false.
              // .MatchAllWordForms = False
              arguments[0] = new Variant(false);
              success = this.setPropertyValue(selectionFindAutomation, "MatchAllWordForms", arguments);
              if(!success) {
                   throw new SWTException("A problem occurred setting the " +
                        "MatchAllWordForms property in WordSearchReplace.replace().");
              // Invoke the Execute command passing the correct value to the Replace
              // parameter. Again, wdReplaceAll is a constant that I have provided
              // a ststic final for called WD_REPLACE_ALL
              // Selection.Find.Execute Replace:=wdReplaceAll
              id = selectionFindAutomation.getIDsOfNames(new String[]{"Execute", "Replace"});
              if(id == null) {
                   throw new SWTException("It was not possible to recover an identifier " +
                        "for the Execute method in WordSearchReplace.replace().");
              arguments = new Variant[1];
              arguments[0] = new Variant(WordSearchReplace.WD_REPLACE_ALL);
              namedArguments = new int[1];
              namedArguments[0] = id[1];
              // There was some indication that the invokeNoReply method should
              // be used when making this call but no, invoke SEEMS to work well
              //selectionFindAutomation.invokeNoReply(id[0], arguments, namedArguments);
              invokeResult = selectionFindAutomation.invoke(id[0], arguments, namedArguments);
              if(invokeResult == null) {
                   throw new SWTException("A problem occurred trying to invoke the " +
                   "Execute method in WordSearchReplace.replace().");
         * Close the active document.
         * @throws SWTException if a problem is encountered invoking any of the
         * OLE methods.
         public void closeFile() throws SWTException {
              int[] id = null;
              Variant[] arguments = null;
              Variant invokeResult = null;
              try {
                   // From the OleAutomation referencing the active document, recover
                   // the id of the Close method.
                   id = this.activeDocumentAutomation.getIDsOfNames(new String[]{"Close"});
                   // If it was not possible to recover the id of the Close
                   // method then throw an exception to notify the user and
                   // terminate processing.
                   if(id == null) {
                        throw new SWTException("It was not possible to recover an " +
                             "identifier for the Close method in " +
                             "WordSearchReplace.closeFile().");
                   // Invoke the Close method on the ActiveDocument automation
                   invokeResult = this.activeDocumentAutomation.invoke(id[0]);
                   // If the invocation of the Close method failed, throw an
                   // exception to notify the user and terminate processing.
                   if(invokeResult == null) {
                        throw new SWTException(
                             "An error occurred invoking the Close method in " +
                             "WordSearchReplace.closeFile().");
              finally {
                   if(this.activeDocumentAutomation != null) {
                        this.activeDocumentAutomation.dispose();
         * Release resources.
         public void dispose() throws SWTException {
              try {
                   // Set the cleaned flag to true. This prevents the method from
                   // running again if it is called from the finalize() method
                   this.cleaned = true;
                   // From the word automation, recover the id of the Quit method
                   int[] id = this.wordAutomation.getIDsOfNames(new String[]{"Quit"});
                   // If the id of the Quit method cannot be recovered
                   // throw an exception - not much good really though.
                   if(id == null) {
                        throw new SWTException("Unable to obtain an id for the Quit " +
                             "property in WordSearchReplace.dispose().");
                   // Invoke Quit
              Variant result = this.wordAutomation.invoke(id[0]);
              // If an error occurs during the invocation, throw an exception.
              // Again though that exception is of limited value.
              if(result == null) {
                   throw new SWTException("A problem occurred trying to invoke the " +
                        "Quit method in WordSearchReplace.dispose().");
         finally {
              // Finally, dispose of the word application automation.
              this.wordAutomation.dispose();
         * The finalize() method has been over-ridden to ensure that resources
         * are correctly released if a WordSearchReplace object is created but
         * not disposed of properly before it becomes eligible for garbage
         * collection. The cleaned flag is used as acheck to ensure that the
         * dispose() method cannot be called more than once.
         public void finalize() throws Throwable {
              if(!this.cleaned) {
                   this.dispose();
         * Creates and returns a 'child' OleAutomation object. The object model
         * employed by Word, Excel and the like, arrange objects, methods and
         * properties hierarchically. To invoke a method, it is often necessary
         * to iterate through this hierarchy from parent to child and this method
         * supports that process.
         * @param automation An OleAutomation object that references the parent
         * automation.
         * @param childName An instance of the String class that encapsulates the
         * name of the child automation.
         * @throws SWTException if a problem is encountered invoking one or
         * other of the OLE methods.
         private OleAutomation getChildAutomation(OleAutomation automation,
         String childName) throws SWTException {
              // Try to recove the unique identifier for the child automation
              int[] id = automation.getIDsOfNames(new String[]{childName});
              // If the identifier cannot be found then throw an exception to
              // terminate processing.           
              if (id == null) {
                   throw new SWTException(
                        "A problem occurred trying to obtain and id for: " +
                   childName +
                   "in the getChildAutomation() method.");
              // SWT's implementation of OLE referes to all of Words objects, methods
              // and properties using the single term 'property'. The next stage
              // therefore is to recover a refence to the 'property' that relates
              // to the child automation.
              Variant pVarResult = automation.getProperty(id[0]);
              // If it is not possible to recover a 'property' for the child
              // automation, then throw an SWTException.
              if (pVarResult == null) {
                   throw new SWTException(
                        "A problem occurred trying to obtain an automation for property: " +
                   id[0] +
                   " in the getChildAutomation() method.");
              // As we are after a child automation in this instance, call the
              // getAutomation() method on the 'property'.
              return(pVarResult.getAutomation());
         * Sets the value of a property.
         * @param automation An instance of the OleAutomation class that will
         * hold a reference to the properties parent automation object
         * @param propertyName An instance of the String class that encapsulates the
         * name of the property whose value is to be set.
         * @param arguments An array of type Variant whose elements contain the
         * values that will be set for the named property.
         * @return A primitive boolean value that indicates whether or not the
         * properties value was successfully set.
         * @throws NullPointerException will be thrown if a null value is passed to
         * any of the methods three arguments.
         * @throws IllegalArgumentException will be thrown if an empty String
         * is passed to the propertyName parameter or if an empty array
         * is passed to the arguments parameter. Note, no check is made
         * on the vallues of the elements in the arguments array.
         * @throws SWTException will be thrown if a problem is encountered
         * imvoking any of the OLE methods.
         private boolean setPropertyValue(OleAutomation automation,
         String propertyName,
         Variant[] arguments) throws SWTException,
         NullPointerException,
         IllegalArgumentException {
              // Validate the various parameters
              if(automation == null) {
                   throw new NullPointerException(
                        "A null value was pas

    Alright, I'll try to keep it as simple as possible. If that's not going to work out, we can always complicate it later :)
    I suppose you had a look at the link and I assume you know about threads.
    We can easily fix this issue if you are instantiating, calling and disposing the object within one thread, e.g. you use it only in one method like
    public mySwtExecutionMethod(String fileName){
      WordSearchReplace replace = new WordSearchReplace();
      // do your replacing here
      replace.dispose();
      // no reference to replace is left so it won't escape this thread
    }Now the fix for your class becomes simple. As you remember from the link, you have to call all methods from within the UI thread. We will now create a Display every time upon instantiation of WordSearchReplace, so the current thread becomes the UI thread.
    I had a look at the constructor, and the overhead doesn't seem that bad, provided this is not a dedicated search&replace server.
    private final Display display;
    public WordSearchReplace()
         display = new Display(); // create display
         this.shell = new Shell(display);   // initialize shell with new display so this thread becomes the UI thread
         this.frame = new OleFrame(this.shell, SWT.NONE);
         this.wordSite = new OleClientSite(this.frame, SWT.NONE, WordSearchReplace.PROG_ID);
         this.wordAutomation = new OleAutomation(this.wordSite);
    }Since we always create a new Display, we should also dispose it. There is already a dispose() method, so we just have to add to it
    display.dispose();That's it!
    If you hold on longer to your reference and this isn't working for you, you'd have to do a lot more synchronizing and that the UI thread still exist as long as the reference.
    Wish you good luck

  • Help Flash Builder 4.5 keeps crashing

    !SESSION 2011-07-20 09:47:36.152 -----------------------------------------------
    eclipse.buildId=I20100608-0911
    java.version=1.6.0_16
    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.ui 2 0 2011-07-20 09:47:51.720
    !MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
    !SUBENTRY 1 org.eclipse.ui 2 0 2011-07-20 09:47:51.720
    !MESSAGE Commands should really have a category: plug-in='com.qnx.flashbuilder.multiplatform.qnx.ui', id='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.OpenInfoCenter', categoryId='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.category.help'
    !SESSION 2011-07-20 11:32:13.305 -----------------------------------------------
    eclipse.buildId=I20100608-0911
    java.version=1.6.0_16
    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 2011-07-20 11:32:14.388
    !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
    !ENTRY org.eclipse.ui 2 0 2011-07-20 11:32:17.057
    !MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
    !SUBENTRY 1 org.eclipse.ui 2 0 2011-07-20 11:32:17.057
    !MESSAGE Commands should really have a category: plug-in='com.qnx.flashbuilder.multiplatform.qnx.ui', id='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.OpenInfoCenter', categoryId='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.category.help'
    !ENTRY org.eclipse.jface 2 0 2011-07-20 11:46:19.848
    !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-07-20 11:46:19.848
    !MESSAGE A conflict occurred for CTRL+G:
    Binding(CTRL+G,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.declarations.in.wor kspace,Declaration in Workspace,
      Search for declarations of the selected element in the workspace,
      Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.wor kspace,Find All Declarations In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllDeclarationsAction@1daee61)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexide.editorcore.flexEditorScope,,,system)
    Binding(CTRL+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.wor kspace,Find All Declarations In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllDeclarationsAction@1daee61)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-07-20 11:46:19.848
    !MESSAGE A conflict occurred for CTRL+SHIFT+G:
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.references.in.works pace,References in Workspace,
      Search for references to the selected element in the workspace,
      Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.works pace,Find All References In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllReferencesAction@58526a)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexide.editorcore.flexEditorScope,,,system)
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.works pace,Find All References In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllReferencesAction@58526a)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)
    !ENTRY org.eclipse.equinox.security 4 0 2011-07-20 11:47:22.002
    !MESSAGE Secure storage was unable to retrieve the master password. If secure storage was created using a different Windows account, you'll have to switch back to that account. Alternatively, you can use the password recovery, or delete and re-create secure storage.
    !STACK 0
    org.eclipse.equinox.security.storage.StorageException: Secure storage was unable to retrieve the master password. If secure storage was created using a different Windows account, you'll have to switch back to that account. Alternatively, you can use the password recovery, or delete and re-create secure storage.
    at org.eclipse.equinox.internal.security.win32.WinCrypto.getPassword(WinCrypto.java:62)
    at org.eclipse.equinox.internal.security.storage.PasswordProviderModuleExt.getPassword(Passw ordProviderModuleExt.java:35)
    at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getModulePassword(Sec urePreferencesRoot.java:259)
    at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getPassword(SecurePre ferencesRoot.java:224)
    at org.eclipse.equinox.internal.security.storage.SecurePreferences.put(SecurePreferences.jav a:224)
    at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.put(SecurePreferen cesWrapper.java:110)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.updateCache(CVSRepos itoryLocation.java:1021)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.updateCache(CVSRepos itoryLocation.java:1003)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.setAllowCaching(CVSR epositoryLocation.java:990)
    at org.eclipse.team.internal.ccvs.ui.WorkbenchUserAuthenticator.promptForUserInfo(WorkbenchU serAuthenticator.java:101)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.promptForUserInfo(CV SRepositoryLocation.java:837)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.openConnection(CVSRe positoryLocation.java:815)
    at org.eclipse.team.internal.ccvs.core.client.Session.open(Session.java:159)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.validateConnection(C VSRepositoryLocation.java:1045)
    at org.eclipse.team.internal.ccvs.ui.wizards.ModuleSelectionPage.validateLocation(ModuleSele ctionPage.java:384)
    at org.eclipse.team.internal.ccvs.ui.wizards.ModuleSelectionPage$3.run(ModuleSelectionPage.j ava:208)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
    !ENTRY org.eclipse.team.cvs.core 4 0 2011-07-20 11:47:22.091
    !MESSAGE No password provided.
    !STACK 0
    org.eclipse.equinox.security.storage.StorageException: No password provided.
    at org.eclipse.equinox.internal.security.storage.SecurePreferences.put(SecurePreferences.jav a:237)
    at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.put(SecurePreferen cesWrapper.java:110)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.updateCache(CVSRepos itoryLocation.java:1021)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.updateCache(CVSRepos itoryLocation.java:1003)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.setAllowCaching(CVSR epositoryLocation.java:990)
    at org.eclipse.team.internal.ccvs.ui.WorkbenchUserAuthenticator.promptForUserInfo(WorkbenchU serAuthenticator.java:101)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.promptForUserInfo(CV SRepositoryLocation.java:837)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.openConnection(CVSRe positoryLocation.java:815)
    at org.eclipse.team.internal.ccvs.core.client.Session.open(Session.java:159)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.validateConnection(C VSRepositoryLocation.java:1045)
    at org.eclipse.team.internal.ccvs.ui.wizards.ModuleSelectionPage.validateLocation(ModuleSele ctionPage.java:384)
    at org.eclipse.team.internal.ccvs.ui.wizards.ModuleSelectionPage$3.run(ModuleSelectionPage.j ava:208)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
    !ENTRY org.eclipse.ui 4 0 2011-07-20 12:58:21.049
    !MESSAGE Unhandled event loop exception
    !STACK 0
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.OutOfMemoryError: Java heap space)
    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.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
    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(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:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    Caused by: java.lang.OutOfMemoryError: Java heap space
    at org.eclipse.swt.graphics.Image.getImageData(Image.java:1451)
    at org.eclipse.swt.widgets.Decorations.setImages(Decorations.java:983)
    at org.eclipse.swt.widgets.Decorations.setImages(Decorations.java:1066)
    at org.eclipse.jface.window.Window.configureShell(Window.java:373)
    at org.eclipse.ui.internal.statushandlers.InternalDialog.configureShell(InternalDialog.java: 198)
    at org.eclipse.jface.window.Window.createShell(Window.java:502)
    at org.eclipse.jface.window.Window.create(Window.java:430)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
    at org.eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.doAddStatusAdapte r(WorkbenchStatusDialogManagerImpl.java:260)
    at org.eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.addStatusAdapter( WorkbenchStatusDialogManagerImpl.java:197)
    at org.eclipse.ui.statushandlers.WorkbenchStatusDialogManager.addStatusAdapter(WorkbenchStat usDialogManager.java:156)
    at org.eclipse.ui.statushandlers.WorkbenchErrorHandler.showStatusAdapter(WorkbenchErrorHandl er.java:101)
    at org.eclipse.ui.statushandlers.WorkbenchErrorHandler.access$0(WorkbenchErrorHandler.java:9 4)
    at org.eclipse.ui.statushandlers.WorkbenchErrorHandler$1.run(WorkbenchErrorHandler.java:62)
    at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:164)
    at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:158)
    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.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
    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)
    !ENTRY org.eclipse.core.jobs 4 2 2011-07-20 12:58:22.605
    !MESSAGE An internal error occurred during: "Launching MultiGameLauncher".
    !STACK 0
    java.lang.OutOfMemoryError: Java heap space
    at java.util.AbstractList.iterator(Unknown Source)
    at java.util.AbstractList.hashCode(Unknown Source)
    at java.util.HashMap.get(Unknown Source)
    at macromedia.asc.util.NamespacesTable.intern(NamespacesTable.java:49)
    at macromedia.asc.semantics.ReferenceValue.<init>(ReferenceValue.java:96)
    at macromedia.asc.semantics.ReferenceValue.<init>(ReferenceValue.java:86)
    at macromedia.asc.semantics.FlowAnalyzer.evaluate(FlowAnalyzer.java:216)
    at macromedia.asc.parser.IdentifierNode.evaluate(IdentifierNode.java:83)
    at macromedia.asc.semantics.FlowAnalyzer.evaluate(FlowAnalyzer.java:867)
    at macromedia.asc.parser.SetExpressionNode.evaluate(SetExpressionNode.java:58)
    at macromedia.asc.semantics.FlowAnalyzer.evaluate(FlowAnalyzer.java:677)
    at macromedia.asc.parser.MemberExpressionNode.evaluate(MemberExpressionNode.java:57)
    at macromedia.asc.semantics.FlowAnalyzer.evaluate(FlowAnalyzer.java:1102)
    at macromedia.asc.parser.ListNode.evaluate(ListNode.java:44)
    at macromedia.asc.semantics.FlowAnalyzer.evaluate(FlowAnalyzer.java:1421)
    at macromedia.asc.parser.ExpressionStatementNode.evaluate(ExpressionStatementNode.java:50)
    at macromedia.asc.semantics.FlowAnalyzer.evaluate(FlowAnalyzer.java:1367)
    at macromedia.asc.parser.StatementListNode.evaluate(StatementListNode.java:60)
    at macromedia.asc.semantics.FlowAnalyzer.evaluate(FlowAnalyzer.java:2438)
    at macromedia.asc.parser.FunctionCommonNode.evaluate(FunctionCommonNode.java:107)
    at macromedia.asc.semantics.FlowAnalyzer.evaluate(FlowAnalyzer.java:4923)
    at macromedia.asc.parser.ClassDefinitionNode.evaluate(ClassDefinitionNode.java:106)
    at macromedia.asc.semantics.FlowAnalyzer.evaluate(FlowAnalyzer.java:1078)
    at macromedia.asc.parser.ArgumentListNode.evaluate(ArgumentListNode.java:46)
    at macromedia.asc.semantics.FlowAnalyzer.evaluate(FlowAnalyzer.java:891)
    at macromedia.asc.parser.SetExpressionNode.evaluate(SetExpressionNode.java:58)
    at macromedia.asc.semantics.FlowAnalyzer.evaluate(FlowAnalyzer.java:644)
    at macromedia.asc.parser.MemberExpressionNode.evaluate(MemberExpressionNode.java:57)
    at macromedia.asc.semantics.FlowAnalyzer.evaluate(FlowAnalyzer.java:1421)
    at macromedia.asc.parser.ExpressionStatementNode.evaluate(ExpressionStatementNode.java:50)
    at macromedia.asc.semantics.FlowAnalyzer.evaluate(FlowAnalyzer.java:4634)
    at macromedia.asc.parser.ClassDefinitionNode.evaluate(ClassDefinitionNode.java:106)
    !ENTRY org.eclipse.ui 4 4 2011-07-20 12:58:30.916
    !MESSAGE An internal error has occurred.
    !STACK 0
    java.lang.OutOfMemoryError: Java heap space
    !ENTRY org.eclipse.ui.workbench 4 0 2011-07-20 12:58:32.488
    !MESSAGE An unexpected exception was thrown.
    !STACK 0
    java.lang.NullPointerException
    at org.eclipse.ui.internal.statushandlers.InternalDialog.refreshDialogSize(InternalDialog.ja va:384)
    at org.eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.doAddStatusAdapte r(WorkbenchStatusDialogManagerImpl.java:273)
    at org.eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.addStatusAdapter( WorkbenchStatusDialogManagerImpl.java:197)
    at org.eclipse.ui.statushandlers.WorkbenchStatusDialogManager.addStatusAdapter(WorkbenchStat usDialogManager.java:156)
    at org.eclipse.ui.statushandlers.WorkbenchErrorHandler.showStatusAdapter(WorkbenchErrorHandl er.java:101)
    at org.eclipse.ui.statushandlers.WorkbenchErrorHandler.handle(WorkbenchErrorHandler.java:57)
    at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler.handle(IDEWorkbenchErrorHandler.java :106)
    at org.eclipse.ui.internal.WorkbenchErrorHandlerProxy.handle(WorkbenchErrorHandlerProxy.java :36)
    at org.eclipse.ui.statushandlers.StatusManager.handle(StatusManager.java:189)
    at org.eclipse.ui.internal.progress.ProgressManager$3.done(ProgressManager.java:467)
    at org.eclipse.core.internal.jobs.JobListeners$3.notify(JobListeners.java:39)
    at org.eclipse.core.internal.jobs.JobListeners.doNotify(JobListeners.java:96)
    at org.eclipse.core.internal.jobs.JobListeners.done(JobListeners.java:152)
    at org.eclipse.core.internal.jobs.JobManager.endJob(JobManager.java:647)
    at org.eclipse.core.internal.jobs.InternalJob.done(InternalJob.java:208)
    at org.eclipse.core.runtime.jobs.Job.done(Job.java:226)
    at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:108)
    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.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
    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(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:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    !ENTRY org.eclipse.ui 4 4 2011-07-20 12:58:34.057
    !MESSAGE An internal error has occurred.
    !STACK 0
    java.lang.OutOfMemoryError: Java heap space
    !ENTRY org.eclipse.ui 4 4 2011-07-20 13:00:10.970
    !MESSAGE An internal error has occurred.
    !STACK 0
    java.lang.NullPointerException
    at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler$FatalErrorDialog.updateMessage(IDEWo rkbenchErrorHandler.java:301)
    at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler.handleException(IDEWorkbenchErrorHan dler.java:150)
    at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler.access$0(IDEWorkbenchErrorHandler.ja va:146)
    at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler$1.runInUIThread(IDEWorkbenchErrorHan dler.java:121)
    at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
    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.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:173)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:388)
    at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
    at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog. java:275)
    at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor.disconnectFromWorkspace(IDEWo rkbenchAdvisor.java:509)
    at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor.postShutdown(IDEWorkbenchAdvi sor.java:342)
    at org.eclipse.ui.internal.Workbench.shutdown(Workbench.java:2967)
    at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:1115)
    at org.eclipse.ui.internal.Workbench.access$15(Workbench.java:1032)
    at org.eclipse.ui.internal.Workbench$25.run(Workbench.java:1276)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.Workbench.close(Workbench.java:1274)
    at org.eclipse.ui.internal.WorkbenchConfigurer.emergencyClose(WorkbenchConfigurer.java:165)
    at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler.closeWorkbench(IDEWorkbenchErrorHand ler.java:253)
    at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler.handleException(IDEWorkbenchErrorHan dler.java:155)
    at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler.access$0(IDEWorkbenchErrorHandler.ja va:146)
    at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler$1.runInUIThread(IDEWorkbenchErrorHan dler.java:121)
    at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
    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.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
    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(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:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    !ENTRY org.eclipse.wst.server.core 4 0 2011-07-20 13:01:08.544
    !MESSAGE Error during shutdown
    !STACK 0
    org.eclipse.core.runtime.AssertionFailedException: null argument:
    at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
    at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
    at org.eclipse.core.internal.events.ResourceChangeListenerList.remove(ResourceChangeListener List.java:146)
    at org.eclipse.core.internal.events.NotificationManager.removeListener(NotificationManager.j ava:305)
    at org.eclipse.core.internal.resources.Workspace.removeResourceChangeListener(Workspace.java :1934)
    at org.eclipse.wst.server.core.internal.ResourceManager.shutdownImpl(ResourceManager.java:36 7)
    at org.eclipse.wst.server.core.internal.ResourceManager.shutdown(ResourceManager.java:313)
    at org.eclipse.wst.server.core.internal.ServerPlugin.stop(ServerPlugin.java:360)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:8 43)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:83 6)
    at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:501)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:550)
    at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1097)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java :597)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelMana ger.java:257)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.jav a:215)
    at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundl e.java:266)
    at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:690)
    at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:588)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:415)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
    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:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    !SESSION 2011-07-20 13:02:26.713 -----------------------------------------------
    eclipse.buildId=I20100608-0911
    java.version=1.6.0_16
    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.ui 2 0 2011-07-20 13:02:42.712
    !MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
    !SUBENTRY 1 org.eclipse.ui 2 0 2011-07-20 13:02:42.712
    !MESSAGE Commands should really have a category: plug-in='com.qnx.flashbuilder.multiplatform.qnx.ui', id='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.OpenInfoCenter', categoryId='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.category.help'
    !ENTRY org.eclipse.jface 2 0 2011-07-20 13:12:10.536
    !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-07-20 13:12:10.536
    !MESSAGE A conflict occurred for CTRL+G:
    Binding(CTRL+G,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.declarations.in.wor kspace,Declaration in Workspace,
      Search for declarations of the selected element in the workspace,
      Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.wor kspace,Find All Declarations In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllDeclarationsAction@6de7e)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexide.editorcore.flexEditorScope,,,system)
    Binding(CTRL+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.wor kspace,Find All Declarations In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllDeclarationsAction@6de7e)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-07-20 13:12:10.536
    !MESSAGE A conflict occurred for CTRL+SHIFT+G:
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.references.in.works pace,References in Workspace,
      Search for references to the selected element in the workspace,
      Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.works pace,Find All References In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllReferencesAction@f939cd)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexide.editorcore.flexEditorScope,,,system)
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.works pace,Find All References In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllReferencesAction@f939cd)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)
    !ENTRY org.eclipse.equinox.security 4 0 2011-07-20 13:15:08.220
    !MESSAGE Secure storage was unable to retrieve the master password. If secure storage was created using a different Windows account, you'll have to switch back to that account. Alternatively, you can use the password recovery, or delete and re-create secure storage.
    !STACK 0
    org.eclipse.equinox.security.storage.StorageException: Secure storage was unable to retrieve the master password. If secure storage was created using a different Windows account, you'll have to switch back to that account. Alternatively, you can use the password recovery, or delete and re-create secure storage.
    at org.eclipse.equinox.internal.security.win32.WinCrypto.getPassword(WinCrypto.java:62)
    at org.eclipse.equinox.internal.security.storage.PasswordProviderModuleExt.getPassword(Passw ordProviderModuleExt.java:35)
    at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getModulePassword(Sec urePreferencesRoot.java:259)
    at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getPassword(SecurePre ferencesRoot.java:224)
    at org.eclipse.equinox.internal.security.storage.SecurePreferences.put(SecurePreferences.jav a:224)
    at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.put(SecurePreferen cesWrapper.java:110)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.updateCache(CVSRepos itoryLocation.java:1021)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.updateCache(CVSRepos itoryLocation.java:1003)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.setAllowCaching(CVSR epositoryLocation.java:990)
    at org.eclipse.team.internal.ccvs.ui.WorkbenchUserAuthenticator.promptForUserInfo(WorkbenchU serAuthenticator.java:101)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.promptForUserInfo(CV SRepositoryLocation.java:837)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.openConnection(CVSRe positoryLocation.java:815)
    at org.eclipse.team.internal.ccvs.core.client.Session.open(Session.java:159)
    at org.eclipse.team.internal.ccvs.core.CVSTeamProvider$6.run(CVSTeamProvider.java:599)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
    at org.eclipse.team.internal.ccvs.core.CVSTeamProvider.notifyEditUnedit(CVSTeamProvider.java :622)
    at org.eclipse.team.internal.ccvs.core.CVSTeamProvider.edit(CVSTeamProvider.java:529)
    at org.eclipse.team.internal.ccvs.core.CVSCoreFileModificationValidator.performEdit(CVSCoreF ileModificationValidator.java:128)
    at org.eclipse.team.internal.ccvs.core.CVSCoreFileModificationValidator$1.run(CVSCoreFileMod ificationValidator.java:108)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    !ENTRY org.eclipse.team.cvs.core 4 0 2011-07-20 13:15:08.228
    !MESSAGE No password provided.
    !STACK 0
    org.eclipse.equinox.security.storage.StorageException: No password provided.
    at org.eclipse.equinox.internal.security.storage.SecurePreferences.put(SecurePreferences.jav a:237)
    at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.put(SecurePreferen cesWrapper.java:110)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.updateCache(CVSRepos itoryLocation.java:1021)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.updateCache(CVSRepos itoryLocation.java:1003)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.setAllowCaching(CVSR epositoryLocation.java:990)
    at org.eclipse.team.internal.ccvs.ui.WorkbenchUserAuthenticator.promptForUserInfo(WorkbenchU serAuthenticator.java:101)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.promptForUserInfo(CV SRepositoryLocation.java:837)
    at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.openConnection(CVSRe positoryLocation.java:815)
    at org.eclipse.team.internal.ccvs.core.client.Session.open(Session.java:159)
    at org.eclipse.team.internal.ccvs.core.CVSTeamProvider$6.run(CVSTeamProvider.java:599)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
    at org.eclipse.team.internal.ccvs.core.CVSTeamProvider.notifyEditUnedit(CVSTeamProvider.java :622)
    at org.eclipse.team.internal.ccvs.core.CVSTeamProvider.edit(CVSTeamProvider.java:529)
    at org.eclipse.team.internal.ccvs.core.CVSCoreFileModificationValidator.performEdit(CVSCoreF ileModificationValidator.java:128)
    at org.eclipse.team.internal.ccvs.core.CVSCoreFileModificationValidator$1.run(CVSCoreFileMod ificationValidator.java:108)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    !SESSION 2011-07-20 13:52:46.640 -----------------------------------------------
    eclipse.buildId=I20100608-0911
    java.version=1.6.0_16
    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 2011-07-20 13:53:05.946
    !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
    !ENTRY org.eclipse.ui 2 0 2011-07-20 13:53:28.992
    !MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
    !SUBENTRY 1 org.eclipse.ui 2 0 2011-07-20 13:53:28.992
    !MESSAGE Commands should really have a category: plug-in='com.qnx.flashbuilder.multiplatform.qnx.ui', id='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.OpenInfoCenter', categoryId='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.category.help'
    !SESSION 2011-07-20 14:02:08.178 -----------------------------------------------
    eclipse.buildId=I20100608-0911
    java.version=1.6.0_16
    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 2011-07-20 14:02:09.315
    !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
    !ENTRY org.eclipse.ui 2 0 2011-07-20 14:02:11.821
    !MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
    !SUBENTRY 1 org.eclipse.ui 2 0 2011-07-20 14:02:11.821
    !MESSAGE Commands should really have a category: plug-in='com.qnx.flashbuilder.multiplatform.qnx.ui', id='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.OpenInfoCenter', categoryId='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.category.help'
    !ENTRY org.eclipse.ui 4 0 2011-07-20 14:16:21.713
    !MESSAGE Unhandled event loop exception
    !STACK 0
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.OutOfMemoryError: Java heap space)
    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.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
    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(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:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    Caused by: java.lang.OutOfMemoryError: Java heap space
    at org.eclipse.swt.graphics.Image.getImageData(Image.java:1451)
    at org.eclipse.swt.widgets.Decorations.setImages(Decorations.java:983)
    at org.eclipse.swt.widgets.Decorations.setImages(Decorations.java:1066)
    at org.eclipse.jface.window.Window.configureShell(Window.java:373)
    at org.eclipse.ui.internal.statushandlers.InternalDialog.configureShell(InternalDialog.java: 198)
    at org.eclipse.jface.window.Window.createShell(Window.java:502)
    at org.eclipse.jface.window.Window.create(Window.java:430)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
    at org.eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.doAddStatusAdapte r(WorkbenchStatusDialogManagerImpl.java:260)
    at org.eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.addStatusAdapter( WorkbenchStatusDialogManagerImpl.java:197)
    at org.eclipse.ui.statushandlers.WorkbenchStatusDialogManager.addStatusAdapter(WorkbenchStat usDialogManager.java:156)
    at org.eclipse.ui.statushandlers.WorkbenchErrorHandler.showStatusAdapter(WorkbenchErrorHandl er.java:101)
    at org.eclipse.ui.statushandlers.WorkbenchErrorHandler.access$0(WorkbenchErrorHandler.java:9 4)
    at org.eclipse.ui.statushandlers.WorkbenchErrorHandler$1.run(WorkbenchErrorHandler.java:62)
    at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:164)
    at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:158)
    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.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
    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)
    !ENTRY org.eclipse.core.jobs 4 2 2011-07-20 14:16:21.716
    !MESSAGE An internal error occurred during: "Launching MultiGameLauncher".
    !STACK 0
    java.lang.OutOfMemoryError: Java heap space
    at java.lang.AbstractStringBuilder.<init>(Unknown Source)
    at java.lang.StringBuilder.<init>(Unknown Source)
    at flex2.compiler.as3.SignatureEvaluator.<init>(SignatureEvaluator.java:199)
    at flex2.compiler.as3.SignatureEvaluator.<init>(SignatureEvaluator.java:189)
    at flex2.compiler.as3.SignatureExtension.generateSignature(SignatureExtension.java:244)
    at flex2.compiler.as3.SignatureExtension.doSignatureGeneration(SignatureExtension.java:159)
    at flex2.compiler.as3.SignatureExtension.parse1(SignatureExtension.java:125)
    at flex2.compiler.as3.As3Compiler.parse1(As3Compiler.java:429)
    at flex2.compiler.CompilerAPI.parse1(CompilerAPI.java:2872)
    at flex2.compiler.CompilerAPI.parse1(CompilerAPI.java:2825)
    at flex2.compiler.CompilerAPI.batch2(CompilerAPI.java:457)
    at flex2.compiler.CompilerAPI.batch(CompilerAPI.java:1291)
    at flex2.compiler.CompilerAPI.compile(CompilerAPI.java:1522)
    at flex2.tools.oem.Application.compile(Application.java:1349)
    at flex2.tools.oem.Application.recompile(Application.java:1287)
    at flex2.tools.oem.Application.compile(Application.java:886)
    at flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java:359)
    at com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$MyBuilder.mybuild(A SApplicationBuilder.java:319)
    at com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder.build(ASApplication Builder.java:129)
    at com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.build(ASBuilder.java:198)
    at com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build(ASItemBuilder.java:7 0)
    at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildItem(FlexProjectB uilder.java:575)
    at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuild er.java:350)
    at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncremen talBuilder.java:187)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:220)
    !SESSION 2011-07-21 10:52:45.733 -----------------------------------------------
    eclipse.buildId=I20100608-0911
    java.version=1.6.0_16
    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.ui 2 0 2011-07-21 10:53:16.063
    !MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
    !SUBENTRY 1 org.eclipse.ui 2 0 2011-07-21 10:53:16.063
    !MESSAGE Commands should really have a category: plug-in='com.qnx.flashbuilder.multiplatform.qnx.ui', id='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.OpenInfoCenter', categoryId='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.category.help'
    !ENTRY com.adobe.flexbuilder.project 4 43 2011-07-21 11:05:52.183
    !MESSAGE Could not load current project.
    !STACK 0
    java.lang.reflect.InvocationTargetException
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:479)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
    at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
    at com.adobe.flexide.editorcore.loadservice.CodeModelProjectLoadDialog.runLoadProjects(CodeM odelProjectLoadDialog.java:233)
    at com.adobe.flexide.editorcore.loadservice.CodeModelProjectLoadDialog.runLoadProjects(CodeM odelProjectLoadDialog.java:156)
    at com.adobe.flexide.editorcore.loadservice.DefaultCMLoadService.loadProjects(DefaultCMLoadS ervice.java:131)
    at com.adobe.flexide.editorcore.loadservice.DefaultCMLoadService.loadProjects(DefaultCMLoadS ervice.java:147)
    at com.adobe.flexide.editorcore.editor.AbstractFlexDocumentProvider.connect(AbstractFlexDocu mentProvider.java:111)
    at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4056)
    at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:217)
    at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEdi tor.java:1444)
    at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:169)
    at com.adobe.flexide.editorcore.editor.AbstractFlexEditor.doSetInput(AbstractFlexEditor.java :1429)
    at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3043)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
    at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
    at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2600)
    at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3061)
    at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3088)
    at com.adobe.flexide.editorcore.editor.AbstractFlexEditor.init(AbstractFlexEditor.java:452)
    at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
    at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)
    at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1429)
    at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:942)
    at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
    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.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
    at org.eclipse.ui.internal.Workbench$31.runWithException(Workbench.java:1567)
    at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
    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.ui.internal.Workbench.runUI(Workbench.java:2548)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
    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(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:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    Caused by: java.lang.OutOfMemoryError: Java heap space
    at com.adobe.flexbuilder.codemodel.internal.common.CheapArray.create(CheapArray.java:86)
    at com.adobe.flexbuilder.codemodel.internal.tree.TreeNode.<init>(TreeNode.java:51)
    at com.adobe.flexbuilder.codemodel.internal.tree.ContainerNode.<init>(ContainerNode.java:38)
    at com.adobe.flexbuilder.codemodel.internal.tree.FunctionCallNode.<init>(FunctionCallNode.ja va:71)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.argumentsExpression(ASTreeP arser.java:5288)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.simpleExpression(ASTreePars er.java:5541)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.unitExpression(ASTreeParser .java:5243)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.complexOperatorExpression(A STreeParser.java:4825)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.operatorExpression(ASTreePa rser.java:4305)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.expression(ASTreeParser.jav a:2282)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.singleVariable(ASTreeParser .java:4041)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.variableDef(ASTreeParser.ja va:1186)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.annotatableDirective(ASTree Parser.java:529)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.directives(ASTreeParser.jav a:437)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.functionContents(ASTreePars er.java:3590)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.functionDef(ASTreeParser.ja va:1140)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.annotatableDirective(ASTree Parser.java:523)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.directives(ASTreeParser.jav a:437)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.classDef(ASTreeParser.java: 863)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.annotatableDirective(ASTree Parser.java:539)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.directives(ASTreeParser.jav a:437)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.packageDef(ASTreeParser.jav a:356)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.file(ASTreeParser.java:144)
    at com.adobe.flexbuilder.codemodel.internal.parsing.BaseASTreeParser.parseFile(BaseASTreePar ser.java:163)
    at com.adobe.flexbuilder.codemodel.internal.resourcehandlers.BaseFileHandler.parseToASTree(B aseFileHandler.java:244)
    at com.adobe.flexbuilder.codemodel.internal.resourcehandlers.ASFileHandler.parseFile(ASFileH andler.java:101)
    at com.adobe.flexbuilder.codemodel.internal.resourcehandlers.ResourceHandlerManager.parseFil e(ResourceHandlerManager.java:242)
    at com.adobe.flexbuilder.codemodel.internal.project.Project.parseFile(Project.java:1137)
    at com.adobe.flexbuilder.codemodel.internal.project.ProjectManager.reparseSavedFile(ProjectM anager.java:812)
    at com.adobe.flexbuilder.codemodel.internal.project.ProjectManager.fileChanged(ProjectManage r.java:604)
    at com.adobe.flexbuilder.codemodel.internal.project.ProjectManager.fileChanged(ProjectManage r.java:559)
    at com.adobe.flexbuilder.codemodel.internal.project.EclipseProjectListener.preloadFiles(Ecli pseProjectListener.java:733)
    Root exception:
    java.lang.OutOfMemoryError: Java heap space
    at com.adobe.flexbuilder.codemodel.internal.common.CheapArray.create(CheapArray.java:86)
    at com.adobe.flexbuilder.codemodel.internal.tree.TreeNode.<init>(TreeNode.java:51)
    at com.adobe.flexbuilder.codemodel.internal.tree.ContainerNode.<init>(ContainerNode.java:38)
    at com.adobe.flexbuilder.codemodel.internal.tree.FunctionCallNode.<init>(FunctionCallNode.ja va:71)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.argumentsExpression(ASTreeP arser.java:5288)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.simpleExpression(ASTreePars er.java:5541)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.unitExpression(ASTreeParser .java:5243)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.complexOperatorExpression(A STreeParser.java:4825)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.operatorExpression(ASTreePa rser.java:4305)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.expression(ASTreeParser.jav a:2282)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.singleVariable(ASTreeParser .java:4041)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.variableDef(ASTreeParser.ja va:1186)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.annotatableDirective(ASTree Parser.java:529)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.directives(ASTreeParser.jav a:437)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.functionContents(ASTreePars er.java:3590)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.functionDef(ASTreeParser.ja va:1140)
    at com.adobe.flexbuilder.codemodel.internal.parsing.ASTreeParser.annotatableDirective(ASTree

    I removed an old version of a java runtime and installed reinstalled flashbuilder 4.5. I also upped the memory however it always gets very close to maximum allocation. It is not crashing as much however if I close flashbuilder it takes ages to load the workbench in. Are you on windows 7 also?
    Alison Schofield
    > Date: Sun, 7 Aug 2011 06:26:49 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help Flash Builder 4.5 keeps crashing
    Have you made any progress with this issue?
    The exact same thing happens to me, and even increasing the memory params in flashBuilder.ini did not solve my problem.
    Thanks, Eloise.
    >

Maybe you are looking for