JNIWrapper Word automation error.

87 views
Skip to first unread message

sbucci...@gmail.com

unread,
Jul 14, 2014, 3:35:23 PM7/14/14
to jniwrapp...@teamdev.com
Hi everyone,

I wrote a web service that is using JNIWrapper 3.8.2 to open up a Word document using the following code...

_Application app = Application.create(ClsCtx.LOCAL_SERVER);
app
.setVisible(new VariantBool(false));

_Document doc
= null;

try
{
    doc
= app.getDocuments().add(new Variant(WORKING_FOLDER + fileName + ".doc"),
           
Variant.createUnspecifiedParameter(),
           
Variant.createUnspecifiedParameter(),
           
Variant.createUnspecifiedParameter());
} catch (Exception e) {
    log
.error("Unable to open DOC... " + WORKING_FOLDER + fileName + ".doc - (" + e.getMessage() + ")");
}


This works just fine on all of our servers except for one server. All of the servers are Windows Server 2008 R2. On all of the servers, I copied jniwrap64.dll into the windows\system32 folder. What can be missing on this one server?

This is the error that I'm getting...

Caused by: com.jniwrapper.win32.automation.AutomationException: COM object method returns error code: 0x80020009; DISP_E_EXCEPTION

Any ideas?

Thanks!

Anna Dolbina

unread,
Jul 15, 2014, 6:16:14 AM7/15/14
to Steve Bucciacchio, jniwrapp...@teamdev.com
Hi,

Actually, your question relates to our another product ComfyJ, therefore, it should be asked on the corresponding forum.

There is already a topic with a solution to the same issue on the product's forum.

If the issue persists or the solution is not applicable, please let us know.

Sincerely,
Anna



--
You received this message because you are subscribed to the Google Groups "JNIWrapper Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jniwrapper-for...@teamdev.com.
To post to this group, send email to jniwrapp...@teamdev.com.
Visit this group at http://groups.google.com/a/teamdev.com/group/jniwrapper-forum/.
For more options, visit https://groups.google.com/a/teamdev.com/d/optout.

Anna Dolbina

unread,
Jul 15, 2014, 4:35:46 PM7/15/14
to jniwrapp...@teamdev.com

---------- Forwarded message ----------
From: Steve Bucciacchio
Date: Tue, Jul 15, 2014 at 10:40 PM
Subject: Re: JNIWrapper Word automation error.
To: Anna Dolbina <anna.d...@teamdev.com>


Thank you, that helped me out tremendously!
Reply all
Reply to author
Forward
0 new messages