Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DMI.call failing

    I have an application which has been working successfully for 2+ years.

    I’ve created a new application by cloning the HTML and the module definition with a different name.

    The clone of the application with a new name works in all aspects except DMI.call.

    I’m guessing I’ve missed something in my cloning but I don’t know what it is and I don’t know where to look. So I need some pointers on where I can look.

    RPCResponse.getStatus() returns -90.

    Here is what the log says when I make the DMI.call:

    Code:
    === 2015-06-18 16:26:12,332 [4-28] INFO  RequestContext - URL: '/Classifier/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0': Moz (Gecko) with Accept-Encoding header
    [WARN] 404 - POST /Classifier/sc/IDACall?isc_rpc=1&isc_v=v10.0p_2014-12-31&isc_xhr=1 (127.0.0.1) 1386 bytes
       Request headers
          Host: 127.0.0.1:8888
          User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
          Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
          Accept-Language: en-US,en;q=0.5
          Accept-Encoding: gzip, deflate
          Content-Type: application/x-www-form-urlencoded; charset=UTF-8
          Referer: http://127.0.0.1:8888/Classifier.html?gwt.codesvr=127.0.0.1:9997
          Content-Length: 986
          Cookie: GLog=%7B%0D%20%20%20%20trackRPC%3Afalse%0D%7D; isc_cState=ready
          Connection: keep-alive
          Pragma: no-cache
          Cache-Control: no-cache
       Response headers
          X-Included-Test2: true
          X-Included-Test: true
          Content-Type: text/html;charset=ISO-8859-1
          Cache-Control: must-revalidate,no-cache,no-store
          Content-Length: 1386
    Here is the HTML page code:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <!-- The HTML 4.01 Transitional DOCTYPE declaration-->
    <!-- above set at the top of the file will set     -->
    <!-- the browser's rendering engine into           -->
    <!-- "Quirks Mode". Replacing this declaration     -->
    <!-- with a "Standards Mode" doctype is supported, -->
    <!-- but may lead to some differences in layout.   -->
    
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
    <!--                                           -->
    <!-- Any title is fine                         -->
    <!--                                           -->
    <title>Classifier</title>
    
    <!-- IMPORTANT : You must set the variable isomorphicDir to [MODULE_NAME]/sc/ so that the SmartGWT resource are
    	  correctly resolved -->
    <script> var isomorphicDir = "Classifier/sc/"; </script>
    
    <link type="text/css" rel="stylesheet" href="ConversationGuide.css">
    
    <!--                                           -->
    <!-- This script loads your compiled module.   -->
    <!-- If you add any GWT meta tags, they must   -->
    <!-- be added before this line.                -->
    <!--                                           -->
    <script type="text/javascript" language="javascript"
    	src="Classifier/Classifier.nocache.js"></script>
    </head>
    
    <!--                                           -->
    <!-- The body can have arbitrary html, or      -->
    <!-- you can leave the body empty if you want  -->
    <!-- to create a completely dynamic UI.        -->
    <!--                                           -->
    <body>
    
    	<!--load the datasources-->
    	<!-- script src="Orchestrate/sc/DataSourceLoader?dataSource=users,accounts,download,uploads,processstatuses,answers,triggerresults__c,dbevents"></script>-->
    
    </body>
    </html>
    Here is the module definition:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <module rename-to='Classifier'>
    
    	<inherits name='com.cedarcone.Orchestrate.OrchestrateCommon' />
    
    	<inherits name="com.smartgwtee.SmartGwtEE" />
    	<inherits name="com.smartclient.theme.graphite.Graphite" />
    
    	<!-- Specify the app entry point class. -->
    	<entry-point
    		class='com.cedarcone.Orchestrate.client.classifier.entry.ClassifierEntry' />
    
    </module>
    Here is the application/rpc definition:
    Code:
    <Application>
    	<rpcBindings>
    		<ServerObject ID="SampleRPC"
    			className="com.cedarcone.Orchestrate.server.samples.SampleRPC">
    			<visibleMethods>
    				<method name="reverseString" />
    				<method name="downloadFile" />
    			</visibleMethods>
    		</ServerObject>
    		<ServerObject ID="RpcResponder"
    			className="com.cedarcone.Orchestrate.server.rpc.RpcResponder">
    			<visibleMethods>
    				<method name="processJsonRequest" />
    				<method name="callRemoteProcedure" />
    			</visibleMethods>
    		</ServerObject>
    
    	</rpcBindings>
    </Application>

    #2
    To begin troubleshooting any kind of client-server comm issue, always start with the RPC tab in the Developer Console. -90 indicates a transport error, probably the IDACall Servlet hasn't been registered at all, or is registered at the wrong URL, so this request is just resulting in a 404 error.

    Comment

    Working...
    X