cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP UI5 Error: Controller could not be instantiated on MII Server.

avisheksharmacoder
Participant
458

Hi, I have tried loading an UI5 App from the MII server, but stuck on this error.

I have used the ./XMII/CM.. prefix instead of the entire https server link. (which also gives the same error).

The app is on the WEB Tab available on the MII workbench.

Here are the other files.

Root.Controller.js

sap.ui.define([
	"sap/ui/core/mvc/Controller"
], function(Controller) {
	"use strict";

	return Controller.extend("................AvishekS/MessageMonitorScreen3/controller/Root", {

	});
});<br>

View.xml

Component.js file

sap.ui.define([
	"sap/ui/core/UIComponent",
	"sap/ui/Device",
	"...................../AvishekS/MessageMonitorScreen3/webapp/model/models"
], function(UIComponent, Device, models) {
	"use strict";

	return UIComponent.extend("......................./AvishekS/MessageMonitorScreen3/webapp/Component", {

		metadata: {
			manifest: "json"
		},

		/**
		 * The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
		 * @public
		 * @override
		 */
		init: function() {
			// call the base component's init function
			UIComponent.prototype.init.apply(this, arguments);

			// set the device model
			this.setModel(models.createDeviceModel(), "device");
		}
	});
});<br>

Not able to figure out where the problem is.

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
SAP Champion
SAP Champion

why there are so many .............?

it should be . not /

/AvishekS/MessageMonitorScreen3/webapp/Component
avisheksharmacoder
Participant
0 Likes

Hi, the "..............." represents the server host and port, same for all the links.

/AvishekS/MessageMonitorScreen3/webapp/Component

for the above link, I have used period instead of slash, but it shows up the same error.