Skip to main content

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

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2013-03-19

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(
at com.sun.proxy.$Proxy5.getVaxObjectError(Unknown Source)
at exercc.testeCOM.main(
Caused by: com4j.ComException: 8000ffff Invocation failed: (null) : Catastrophic failure : .\com4j.cpp:82
at com4j.Native.invokeDispatch(Native Method)
at com4j.DispatchComMethod.invoke(
at com4j.Wrapper$
at com4j.Task.invoke(
at com4j.ComThread.run0(

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

Thanks in advance.