<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Infopath and Java integration: problem with loading forms</title><link>https://www.infopathdev.com:443/forums/thread/92941.aspx</link><pubDate>Wed, 11 Sep 2013 10:26:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92941</guid><dc:creator>ondramaz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92941.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=92941</wfw:commentRss><description>Hi,

In our project We call  Infopath ActiveX component from java using EZJCom (allowing Calling COM/ActiveX components written in any language, from Java http://www.ezjcom.com/)

Rarely, when a form (.xml) is loaded into Infopath component, it stuck and Infopath component does not notify host with event &amp;#39;LoadFinished&amp;#39;. The consequence is that such form is not editable.

Any idea, how to solve this problem?


Code snapshot:

activeX = new InfoPathEditorObject();
activexContainer = new OverrideJComActiveXContainer();
activexContainer.setActiveX( activeX );
activeX.getInfoPathEditor().SetNotifyHostEventHandler(new CustomNotifyHostEventHandler(this));

activeX.getInfoPathEditor().Load(baseForm);				

public class CustomNotifyHostEventHandler extends INotifyHostEventHandler				
{

	public void NotifyHostEventHandler(JComObject jComObject, String string)
		{				
			// not called in rare occasions
			logger.info(&amp;quot;NotifyHost event &amp;#39;{}&amp;#39; for {}&amp;quot;, string, jComObject)				
		}	
}		


Ondra</description></item></channel></rss>