Eclipse-错误集

1.The origin server did not find a current representation for the target resource or is not willing to

ttps://blog.csdn.net/dbc_121/article/details/79204340

2.Uncaught TypeError: Cannot read property 'setHash' of undefined

In my case the solution was:

  1. Check your manifest.json
  2. Check what view is assigned there as root view under "sap.ui5": { "rootView":
  3. Go to the view XML of that view (I was using XML views)
  4. Check if that contains an App tag, and if the tag has an ID like <App id="app">
  5. Go back to the manifest.json, and check the router configuration, controllId should point to the same id: "routing": { "config": { "controlId": "app",
  6. Finally, from the Component.js had to initialize the router this.getRouter().initialize();

Then sap.ui.core.UIComponent.getRouterFor(this).navTo(... worked fine.

Hope that helps.

原文地址:https://www.cnblogs.com/ricoo/p/11157791.html