Skip to main content

Error in method call ocx with COM4J(Catastrophic failure)?

No replies
Hikaro
Offline
Joined: 2013-03-19
Points: 0

Hello all.

I'm having some problems with com4j and, if possible, I ask for your help!
This is the first time I am using com4j and I'm not very experient in java. I am trying to access an ocx for IP telephony, the VaxSIPUserAgentOCX, and I could not find any help in the WEB.

I am using eclipse juno, associating a folder in my project (link folder) with the content of the WSH, generated by tlbimp.exe, together with com4j.jar. The error occurs when any method is called .

testVax2.wsh._DVaxSIPUserAgentOCX test = (testVax2.wsh._DVaxSIPUserAgentOCX) ClassFactory.createVaxSIPUserAgentOCX();
test.setLicenceKey("Here I insert the license key"); // Here the error occurs

From error messages anlysis, it seems that a classe or parameters of a method are missing.
Below, you can see the messages I got.

test (ComObject:49a550)
Exception in thread "main" com4j.ComException: 8000ffff Invocation failed: (null) : Catastrophic failure : .\com4j.cpp:82
at com4j.Wrapper.invoke(Wrapper.java:166)
at com.sun.proxy.$Proxy5.getVaxObjectError(Unknown Source)
at exercc.testeCOM.main(testeCOM.java:31)
Caused by: com4j.ComException: 8000ffff Invocation failed: (null) : Catastrophic failure : .\com4j.cpp:82
at com4j.Native.invokeDispatch(Native Method)
at com4j.DispatchComMethod.invoke(DispatchComMethod.java:46)
at com4j.Wrapper$InvocationThunk.call(Wrapper.java:340)
at com4j.Task.invoke(Task.java:51)
at com4j.ComThread.run0(ComThread.java:153)
at com4j.ComThread.run(ComThread.java:134)

I do not know how to proceed from here ... could you help me?

Thanks in advance.