Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view

Hi all,

I installed the core Knowage war file and, after creating the database and running the ddl scripts, I could log in to Knowage with biadmin/biadmin.  I spent a few minutes looking around to see what changed. I added a data source and create a dataset successfully.

I then deploy some additional war files:

  • knowageqbeengine
  • knowagetalendengine

After this when ever I go to a link/menu item etc I get a rest error. Such as

javax.ws.rs.NotFoundException: RESTEASY003210: Could not find resource for full path: http://xx.xx.xx.xx:8080/knowage/restful-services/template/angular-table.html

The log files do not give much of a hint other than the above. Is there a procedure to follow when deploying new war components and how can I fix the rest errors? it could well be that the newly deployed wars have nothing to do with the rest problem.

thanks

Environment 6.2, tomcat8, ubuntu 18.04
in Standard by (1.0k points)
edited by
Its weird I have done three installation now to test knowage and on two of them I get the above error. Really not sure what causes it as it appear. Could it be some time of caching error? I don;t think deploying the war files as mentioned above is related to this problem.

"Aug 2018 06:06:22,807 ERROR it.eng.spagobi.rest.interceptors.RestExceptionMapper.toResponse:59 - Catched service error:"

It seems the error lies with the angular and javascript. This is what is produced on the javascript console

Error: table[0] is undefined
postLink@http://biapp.abc.co.za:8080/knowage/js/src/angular_1.4/tools/commons/angular-table/AngularTable.js:108:41
cloneAndAnnotateFn/<@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:9069:41
invokeLinkFn@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:9075:9
nodeLinkFn@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:8567:11
compileTemplateUrl/<@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:8814:13
processQueue@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:15054:28
scheduleProcessQueue/<@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:15070:27
$eval@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:16321:16
$digest@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:16139:15
$apply@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:16429:13
done@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:10823:36
completeRequest@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:11021:7
requestLoaded@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:10962:9
 <angular-table flex="" id="dataSourceList" ng-model="dataSourceList" columns="[{&quot;label&quot;:&quot;Label&quot;,&quot;name&quot;:&quot;label&quot;,&quot;size&quot;:&quot;50px&quot;},{&quot;label&quot;:&quot;Description&quot;,&quot;name&quot;:&quot;descr&quot;,&quot;size&quot;:&quot;70px&quot;}]" columns-search="[&quot;label&quot;,&quot;descr&quot;]" show-search-bar="true" highlights-selected-item="true" click-function="loadSelectedDataSource(item)" selected-item="selectedDataSourceItems" speed-menu-option="dsSpeedMenu" class="ng-scope ng-pristine ng-untouched ng-valid ng-isolate-scope flex dataSourceListItemBox layout-column"> angular.js:12793:18
consoleLog/<
http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:12793:18
$ExceptionHandlerProvider/this.$get</<
http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:9526:7
invokeLinkFn
http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:9077:9
nodeLinkFn
http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:8567:11
compileTemplateUrl/<
http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:8814:13
processQueue
http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:15054:28
scheduleProcessQueue/<
http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:15070:27
$eval
http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:16321:16
$digest
http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:16139:15
$apply
http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:16429:13
done
http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:10823:36
completeRequest
http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:11021:7
requestLoaded
http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:10962:9
Password fields present on an insecure (http://) iframe. This is a security risk that allows user login credentials to be stolen.[Learn More]
publish
Error: $scope.queueTable is undefined
TableControllerFunction/$scope.changeWordItemPP@http://biapp.abc.co.za:8080/knowage/js/src/angular_1.4/tools/commons/angular-table/AngularTable.js:645:13
TableControllerFunction/<@http://biapp.abc.co.za:8080/knowage/js/src/angular_1.4/tools/commons/angular-table/AngularTable.js:677:17
timeout/timeoutId<@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:18227:28
completeOutstandingRequest@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:5677:7
Browser/self.defer/timeoutId<@http://biapp.abc.co.za:8080/knowage/js/lib/angular/angular_1.4/angular.js:5954:7
angular.js:12793:18
 

1 Answer

+1 vote
 
Best answer
It turns out the the browser I was using on one of the development machines had been configured with a different user-agent string  for some other purpose and this was confusing Knowage. Perhaps Angular was sending back browser specific javascript that didn't match the browsers actual javascript engine.

Anyway all seems to be working now.
by (1.0k points)
selected by
...