Skip to Content
0
May 31, 2020 at 07:54 PM

The server responded with a status of 404 (OrionContent/MyUI5App/sap-ui-cachebuster-info.json))

540 Views

Hello Gurus,

The file sap-ui-cachebuster-info.json is not getting generated. I have tried puttingdata-sap-ui-appCacheBuster="./" in index.html , also trued changing every possible path for the same parameter.

I am facing this issue in SAP Web IDE. I have just downloaded the SAP Web IDE (Eclipse Orion) and ran the Orion.exe. I have created a UI5 Sample application and I am running but getting the below exceptions

jquery-dbg.js:9208 Failed to load resource: the server responded with a status of 404 (Not found: http://localhost:8080/file/Raju-OrionContent/MyUI5App/sap-ui-cachebuster-info.json) send @ jquery-dbg.js:561

As per my know I have checked all the possible ways to solve this issue but importunately had no luck. I have just started to learn SAP UI5 so please help me to solve the issues.

Thanks in advance .

<u>Index.html</u>

<!DOCTYPE html>
<html>
<head>
<script src= "https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
	 	          data-sap-ui-libs  = "sap.ui.core,sap.m"
	 	          data-sap-ui-theme ="sap_bluecrystal"
	 	          data-sap-ui-resourceroots='{
	 	          "tom": "./"  }'></script>
	 	   <script>
	 	  	      var oVew = new sap.ui.view("idMan",{
	 	  	      	  viewName: "tom.view.Main",
	 	  	      	  type: "JS"
	 	  	      });
	 	  	      oVew.placeAt("content");
	 	  	      
	 	  	      var oXml = new sap.ui.view("idMyXml",{
	 	  	      	  viewName: "tom.view.myXMLView",
	 	  	      	  type : "XML"
	 	  	      } );
	 	  	      oXml.placeAt("myxml");
</script>
</head>
<body class="sapUiBody">
	 	<div id = "content"></div>
	 	<div id = "myxml"></div>
</body>
</html>

<br>
myXMLview.view.xml

<mvc:View controllerName="tom.controller.Main"  xmlns:mvc="sap.ui.core" xmlns="sap.m" >
	<App>
		<pages>
			<page>
				<content>
					<Label text="user Name"></Label>
					<Input></Input>
					<Label text="password"></Label>
					<Input></Input>
					<Button text="Log on" press="onLogin"></Button>
				</content>
			</page>
		</pages>
		
	</App>

<br>
<u>Main.controller.js</u>

<a href="/storage/temp/1813819-exception.png">exception.png</a>
// the following code will be every JS file 
sap.ui.define(["sap/ui/core/mvc/Controller"], function(Controller) {
	return Controller.extend("tom.controller.Main", {
		onInit: function() {},
		pop: function(value) {
			/*console.log(this);*/
			alert(value );
		},
		onLogin: function() {
			this.pop("pop up from XML view");
		},
		//Processing logic
		raju: function() {
			//alert("Welcome to Ui5");
			//how access the value of an put field **
			//Step1 : get the object of the input field control -UI5 object not HTML object
			//obtain the runtime instance of running application
			var oCore = sap.ui.getCore();
			var oInput = oCore.byId("idInp");
			//get the value of the field from the object
			var val = oInput.getValue();
			/*alert(iVal);*/
			this.pop(val);
		}
		
	});
});

Attachments

exception.png (85.1 kB)