COM Plug-in for Eclipse
September 09, 2010, 12:39:11 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1] 2 3 ... 6
 1 
 on: October 20, 2009, 06:36:15 AM 
Started by agfeller - Last post by Mark Richter
Hi Alex,

It appears that some other object references are still being held and therefore Excel is not exiting.  Have you tried forcing a Garbage Collection?

-Mark

 2 
 on: October 19, 2009, 08:51:47 PM 
Started by agfeller - Last post by agfeller
Dear all,

I've created the wrapper classes for Excel.  

I'm initializing my editor like this:

WorksheetComposite  wsComp = new WorksheetComposite(parent, SWT.NONE, templateFile);
wsComp.setLayoutData(createLayoutData());

wsComp.getOleFrame().setContainerMenus(parent.getShell().getMenuBar().getItems());
wsComp.oleInplaceActivate();

application = wsComp.getWorksheetAutomation().getApplication();
appEventListener = new FeeTemplateEditor.AppEventListener();
application.addAppEventsListener(appEventListener);

My dispose method looks like this:

@Override
    public void dispose() {
        try {
            application.removeAppEventsListener(appEventListener);
        } catch (NullPointerException e) {
            // ignore
        }

        wsComp.getWorksheetAutomation().dispose();
        wsComp.getOleClientSite().dispose();
        excelSupport = null;

        super.dispose();
    }


Closing the editor or even the application will not release (dispose) the Excel process.
Are the any ideas or hints how to proceed to fix this?

Thanks a lot,
Alex

P.S. By the way, I'm using Eclipse 3.5.1


 3 
 on: May 28, 2009, 10:00:33 PM 
Started by lds23 - Last post by Mark Richter
I did a google and the most common suggestion is a version mismatch between the class and jvm.  If you are sure you are running jvm 1.5 then I am at a loss as to what it could be.  As you point out it's very strange.

Sorry I can't be of much help

-Mark

 4 
 on: May 28, 2009, 07:56:38 PM 
Started by lds23 - Last post by lds23
Yup, it's the same:

D:\eclipse\plugins>javap -verbose -classpath au.com.swz.comeclipse.ui_1.1.6.jar au.com.swz.comeclipse.ui.wizards.project.NewProjectWizard
Compiled from "NewProjectWizard.java"
public class au.com.swz.comeclipse.ui.wizards.project.NewProjectWizard extends org.eclipse.jface.wizard.Wizard implements org.eclipse.ui.INewWizard
  SourceFile: "NewProjectWizard.java"
  InnerClass:
   #225; //class au/com/swz/comeclipse/ui/wizards/project/NewProjectWizard$1
  minor version: 0
  major version: 50
  Constant pool:
const #1 = class        #2;     //  au/com/swz/comeclipse/ui/wizards/project/NewProjectWizard
const #2 = Asciz        au/com/swz/comeclipse/ui/wizards/project/NewProjectWizard;
.....

Must admit it's quite confusing Wink Maybe I'll give it a try on a clean machine.

Dawid

 5 
 on: May 28, 2009, 06:22:27 PM 
Started by lds23 - Last post by Mark Richter
Hi Dawid,

I am not sure what's causing this problem, that combination should work.  Perhaps try checking the version in your jar file.  Below is the output what I got.  Is your similar?

Code:
> javap -verbose -classpath au.com.swz.comeclipse.ui_1.1.6.jar au.com.swz.comeclipse.ui.wizards.project.NewProjectWizard

Compiled from "NewProjectWizard.java"
public class au.com.swz.comeclipse.ui.wizards.project.NewProjectWizard extends o
rg.eclipse.jface.wizard.Wizard implements org.eclipse.ui.INewWizard
  SourceFile: "NewProjectWizard.java"
  InnerClass:
   #225; //class au/com/swz/comeclipse/ui/wizards/project/NewProjectWizard$1
  minor version: 0
  major version: 50

-Mark

 6 
 on: May 28, 2009, 05:17:17 PM 
Started by lds23 - Last post by lds23
Hi,

I've just installed (manually and via update site) the plugin v1.1.8 and tried to start with wizard generated examples, but got a strange error. When I try to launch any window from the plugin (wizard or license window) I get:

The selected wizard could not be started.
  Plug-in au.com.swz.comeclipse.ui was unable to load class au.com.swz.comeclipse.ui.wizards.project.NewProjectWizard.
  Bad version number in .class file

My Eclipse version is:
Version: 3.4.0
Build id: I20080617-2000

and Java:
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)

I uninstalled any addidtional JDKs/JREs I had and made sure that PATH is set correctly.
Any hints? I'd be really grateful if somebody could shed some light on this issue.

Dawid

 7 
 on: April 25, 2009, 09:29:16 AM 
Started by ejalarcon - Last post by Mark Richter
Hi,

I tried this and I got the same error. Using the exception trace
Code:
at org.eclipse.swt.ole.win32.OleClientSite.<init>(OleClientSite.java:379)

I tracked the problem down to this line of code in SWT;
Code:
result = objIUnknown.QueryInterface(COM.IIDIPersistStorage, ppv);
if (result != COM.S_OK) OLE.error(OLE.ERROR_CANNOT_CREATE_OBJECT, result);

From this I suspect the problem is that the SOActiveX control that comes with OpenOffice does not implement the IPersistStorage interface.  This is a minimum requirement for ActiveX, so how this control works with IE I am not sure.  You could try implementing this interface yourself.  I found some documentation from someone that had the same problem but with a different control.

http://www.eclipsezone.com/eclipse/forums/t28240.html

 Sad Sorry I can't be of better help.

-Mark

 8 
 on: April 24, 2009, 10:41:47 PM 
Started by ejalarcon - Last post by jamesmwhite
Hi,

Today I signed up for a trial license and created a wrapper for OpenOffice using the so_active.dll file. I tried this after failing to get the swt.ole library to open OpenOffice documents for me. My goal was to embed an OpenOffice document in an Eclipse RCP.

Unfortunately I get the same error as the OP which incidentally was the same error I got when trying with swt.ole: "Failed to create Ole Client. result = -2147467262".

Do you know of anyway around this or any other way of using Activex/ OLE to embed an OpenOffice document in an swt frame?

My theory is that if they can embed it in Internet Explorer it should be able to be embedded in an SWT frame, thanks.

 9 
 on: March 04, 2009, 10:04:09 AM 
Started by wfahl - Last post by Mark Richter
Hi,

Setting your classpath manually like this can be difficult.  The NoClassDefFoundError has several causes but the most common cause is a missing runtime dependancy in the classpath.  Take a look at this blog which I think explains it nicely. 

http://www.jroller.com/sjivan/entry/difference_between_classnotfoundexception_and_noclassdeffounderror

There are no tests for SWTtoCOM.  The easiest way to try SWTtoCOM is to use the COM Plug-in for Eclipse. This will setup the correct classpath and allow you to run your generated code.  I hope this helps.

-Mark

Pages: [1] 2 3 ... 6
Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!