cancel
Showing results for 
Search instead for 
Did you mean: 

UI5 developing: Failed to load resource

Former Member
0 Kudos

Hi

I have been developing my UI5 pages with the following:

<html>  

       <head> 

<meta http-equiv="X-UA-Compatible"
content="IE=edge">  

<script

src="/sap/ui5/1/resources/sap-ui-core.js"

id="sap-ui-bootstrap" 

data-sap-ui-libs="sap.ui.commons,sap.ui.table" 

data-sap-ui-theme="sap_goldreflection" 

data-sap-ui-language="en">

</script>  

I am seeing the following warning in the Chrome console:

"Synchronous XMLHttpRequest on the main thread is
deprecated because of its detrimental effects to the end user's experience. For
more help, check
http://xhr.spec.whatwg.org/."

And the error:

 

Failed to l”oad resource: the server responded with a status of 404 (Not
Found)o.defaultHttpClient.request @
:8000/sap/ui5/1/resources/sap/ui/thirdparty/datajs.js:17”

Is anyone seeing for this?

Thanks and best regards,

 

Tatjana

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Maxim,

Assuming that you have created the application in HANA Studio. Now you run the application - Go to Index.html file --> right click --> Run As --> Web App Preview. This will open your application link in HANA Studio with local host.

For e.g. http://localhost:65389/cgi_GRNSummary/index.html

Before deploying on Chrome make following setting:

Right Click on Google Chrome --> Properties --> Target --> add following parameter --> --disable-web-security

Now, copy this link from HANA Studio and Deploy it on Google Chrome.

Hope this will help you.

Thanks and Regards,

Abhijeet

santhu_gowdaz
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Santhosh,

thank you for replay. The datajs.js file exsists in the system. The link

dewdftzld018u.pgdev.sap.corp:8000/sap/ui5/1/resources/sap/ui/thirdparty/datajs.js can open this file.

Something is wrong in the sap-ui-core.js. I see the error message there:

santhu_gowdaz
Active Contributor
0 Kudos

open your application in crome and using F8 debug it where you are getting dump. and provide the piece of code.

Former Member
0 Kudos

Hi Santhosh,

crome gets the message:

'webkitIndexedDB' is deprecated. Please use 'indexedDB' instead.

2http://dewdftzld018u.pgdev.sap.corp:8000/sap/ui5/1/resources/sap/ui/thirdparty/datajs.js Failed to load resource: the server responded with a status of 404 (Not Found)o.defaultHttpClient.request @ datajs.js:17

sap-ui-core.js:135 Uncaught ReferenceError: oTable is not defined

santhu_gowdaz
Active Contributor
0 Kudos

may your table not get loading. you did table binding in init() or see properly may you miss your table id while getting your table.

var oTable = this.getView().byId("idTable");

former_member182372
Active Contributor
0 Kudos

what`s the platform? tomcat, abap was, portal?

Former Member
0 Kudos

Hi Maxim,

I work in the HANA Studio.

Regards, Tatjana