This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
5 Replies Last post: Apr 11, 2007 5:34 PM by Aniruddha Patki  
Aniruddha Patki   5 posts since
Mar 6, 2007
Currently Being Moderated

Mar 6, 2007 8:53 PM

MessageLoopThread : Failed to execute an asynchronous action in the Message

I am getting following exception every time I try to post an asynchronous task by adding/posting a runnable task on the message loop using doInvokeLater method.

I am using ComfyJ 2.3 containing jniwrap-3.6 and winpack-3.6.

I was trying to upgrade existing code base to jniwrap 3.6 from jniwrap 2.9.5 which was working fine earlier.

 


com.jniwrapper.win32.com.ComException: COM object method returns error code: 0x80004005; E_FAIL (Unspecified error)
     at com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:658)
     at com.tradingscreen.pisa.plugin.bloomberg.blp_data_ctrllib.impl.IBlpData4Impl.subscribe(IBlpData4Impl.java:59)
     at com.tradingscreen.pisa.plugin.bloomberg.api.BBData$CmdSubscribe.run(BBData.java:291)
     at com.jniwrapper.win32.MessageLoopThread$ThreadAction.run(MessageLoopThread.java:541)
     at com.jniwrapper.win32.MessageLoopThread$LoopThread.run(MessageLoopThread.java:515)

 

Please advice.

Thanks a lot.

- Ani

Serge Piletsky TeamDev Ltd. 670 posts since
Apr 24, 2006
Currently Being Moderated
1. Mar 7, 2007 3:18 PM in response to: Aniruddha Patki
Re: MessageLoopThread : Failed to execute an asynchronous action in the Mes

Hi Ani,

 

There were many changes in both JNIWrapper 3.6 and ComfyJ 2.3 since version 2.9.5, so it is quite difficult to say exactly why such error happens.

 

Can you please send us the complete test case that demonstrates the problem? We will investigate it and give you the solution.

 

-Serge

 

Also, you probably need to generate the wrappers for your COM library anew, using the CodegenForComfyJ from ComfyJ 2.3.

 

Message was edited by: Serge Piletsky

More Like This

  • Retrieving data ...