2 Replies Latest reply on Sep 4, 2007 4:50 AM by Daniel Kane

    Javascript error using Seam Remoting (JMS subscription)

    Daniel Kane Novice

      Dear colleagues,

      Web-page is subscribed to JMS topic.
      I have configured debug=true for Remoting, and when page is being loaded first time xml envelopes starts to run in pop-up window. So I conclude that JMS subscription itself is ok.

      But when I click button on this page (form submission), Javascript error occures. FireBug provides the following details :

      [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE)
      [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location:
      "JS frame :: http://localhost:8080/traceadm/seam/resource/remoting/resource/remote.js :: anonymous :: line 608" data: no]
      remote.js (line 608):
      if (req.status == 200)

      My UI is template-based. template.xhtml :

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      <html xmlns="http://www.w3.org/1999/xhtml"
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
       <title>Terminal control</title>
       <link href="css/screen.css" rel="stylesheet" type="text/css" />
      <body id="pgMainMenu">
       <div id="document">
       <div id="header"><span>Terminal control</span></div>
       <div id="nav">
       <ui:insert name="topnav">
       TODO: Navigation menu
       <div id="container">
       <div id="sidebar">
       <ui:insert name="sidebar">
       TODO : Login form
       <div id="errors">
       <ui:insert name="errors">
       <h:messages globalOnly="true"
       styleClass="cntError" />
       <div id="content">
       <ui:debug hotkey="D"/>
       <ui:insert name="body">
       PAGE BODY
       <script type="text/javascript" src="seam/resource/remoting/resource/remote.js"></script>
       <script type="text/javascript">
       function subscriptionCallback(message)
       Seam.Remoting.log('Got the message !!! ');
       Seam.Remoting.subscribe("CommandTraceTopic", subscriptionCallback);
       // ]]>

      The html page in question contains form in <ui:insert name="body"> tag above. Submission of that form causes the error.

      Thank you in advance for ideas.