Can not connect to Local Web UI of Kura - eclipse

I want to install Kura in my computer (ubuntun 14.04, JDK1.7) with eclipse. I followed http://eclipse.github.io/kura/doc/configurable_component.html. My problem is I can not connect to localhost:8080.
In console of eclipse, I inputted 'ss' and its outputs are
"Framework is launched."
id State Bundle
0 ACTIVE org.eclipse.osgi_3.8.1.v20120830-144521
1 RESOLVED slf4j.log4j12_1.6.0
Master=39
2 ACTIVE org.eclipse.equinox.ds_1.4.0.v20120522-1841
3 ACTIVE org.eclipse.jetty.http_8.1.3.v20120522
4 ACTIVE javax.servlet_3.0.0.v201112011016
5 ACTIVE org.eclipse.equinox.console_1.0.0.v20120522-1841
6 ACTIVE org.apache.commons.fileupload_1.2.2.v20111214-1400
7 ACTIVE org.eclipse.kura.deployment.agent_1.0.1
8 ACTIVE org.eclipse.jetty.continuation_8.1.3.v20120522
9 ACTIVE org.apache.felix.deploymentadmin_0.9.5
10 ACTIVE org.eclipse.kura.example.hello_osgi_1.0.0.qualifier
11 INSTALLED org.eclipse.kura.core_1.0.1
12 ACTIVE org.eclipse.equinox.io_1.0.400.v20120522-2049
13 ACTIVE log4j_1.2.17
Fragments=24
14 ACTIVE org.eclipse.equinox.metatype_1.2.0.v20120522-1841
15 ACTIVE org.eclipse.osgi.services_3.3.100.v20120522-1822
16 ACTIVE org.apache.commons.io_2.4.0
17 ACTIVE com.gwt.user_0.2.0
18 ACTIVE org.apache.commons.net_3.1.0.v201205071737
19 INSTALLED org.eclipse.kura.core.net_1.0.1
20 ACTIVE org.apache.felix.dependencymanager_3.0.0
21 INSTALLED org.eclipse.kura.core.configuration_1.0.1
22 ACTIVE org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841
23 ACTIVE org.eclipse.soda.dk.comm_1.2.1
24 RESOLVED log4j.apache-log4j-extras_1.1.0
Master=13
25 ACTIVE org.hsqldb.hsqldb_2.3.0
26 ACTIVE org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841
27 ACTIVE org.eclipse.equinox.util_1.0.400.v20120522-2049
28 ACTIVE org.eclipse.equinox.event_1.2.200.v20120522-2049
29 ACTIVE org.eclipse.jetty.server_8.1.3.v20120522
30 ACTIVE org.eclipse.jetty.servlet_8.1.3.v20120522
31 INSTALLED org.eclipse.kura.core.cloud_1.0.1
32 ACTIVE org.json_1.0.0.v201011060100
33 ACTIVE javax.usb.api_1.0.2
34 INSTALLED org.eclipse.kura.emulator_1.0.1
35 ACTIVE org.eclipse.osgi.util_3.2.300.v20120522-1822
36 ACTIVE org.apache.felix.gogo.runtime_0.8.0.v201108120515
37 ACTIVE org.eclipse.kura.api_1.0.1
38 ACTIVE org.eclipse.jetty.util_8.1.3.v20120522
39 ACTIVE slf4j.api_1.6.4
Fragments=1
40 ACTIVE org.eclipse.kura.example.configurable_1.0.0.qualifier
41 ACTIVE org.eclipse.jetty.io_8.1.3.v20120522
42 ACTIVE org.eclipse.equinox.cm_1.0.400.v20120522-1841
43 ACTIVE org.apache.felix.gogo.shell_0.8.0.v201110170705
44 ACTIVE org.eclipse.jetty.security_8.1.3.v20120522
45 INSTALLED org.eclipse.kura.web_1.0.1
46 ACTIVE org.eclipse.kura.core.crypto_1.0.1
47 ACTIVE osgi.cmpn_4.3.0.201111022214
48 ACTIVE javax.usb.common_1.0.2
comment 'ls' gave
All Components:
ID State Component Name Located in bundle
1 Active org.eclipse.kura.deployment.agent org.eclipse.kura.deployment.agent(bid=7)
2 Active org.eclipse.kura.example.hello_osgi org.eclipse.kura.example.hello_osgi(bid=10)
3 Active org.eclipse.equinox.event org.eclipse.equinox.event(bid=28)
4 Unsatisfied org.eclipse.kura.example.configurable org.eclipse.kura.example.configurable(bid=40)
5 Active org.eclipse.kura.crypto.CryptoService org.eclipse.kur
Is there anybody ever had this problem may help me, please. Thank you in advance

I had the same problem... The answer was I downloaded the wrong package.
There are 2 Developers Workspaces for download. On the left side without the WebUI.
Try to download the Developers Workspace on the right side (Extended Downloads) Developers Workspace (With Web UI) https://www.eclipse.org/kura/downloads.php

I can see that you have lots of INSTALLED or RESOLVED bundles, which should be ACTIVE after Kura started. This might be the reason of fail activation of Kura Web UI service. Because the web service might depends on other bundles or services.
So if you still haven't solve it yet, try followings:
Change log level by editing /opt/eclipse/kura/kura/log4j.properties file. Set log4j.rootLogger=INFO,kura to log4j.rootLogger=DEBUG,kura. And restart kura.
See /var/log/kura.log, there may be some debug messages.
See /var/log/kura-console.log, there may be some exceptions that explained why the bundle is not activated.
If you still don't know why, post it here and we can discuss it.
Hope this solve your problem, cheers

Related

JBPM/Keycloak integrated environment, Task List is not given when requested via Workbench

I integrated SSO througn Keycloak for JBPM 7.17 on Wildfly following the Keycloak and JBPM documentation. The processes definitions, process instances etc can be listed both via JBPM workbench and REST calls (via Postman). But when task list is requested via workbench it always is empty and when requested via REST, the task list is given.
I checked the taskevent table and it shows the processId in the userId field. But in the peopleassignments_potowners table it shows the correct userId in the entity_I'd field. I guess this is the reason for this but cannot figure out how this could happen and how to fix it. Refer below for taskevent table sample records.
id logTime pricessInstanceId taskId type
1277 2019-07-05 15:24:48 483 375 ADDED
userId OPTLOCK workItemId
VMMigration.VMValidationAutomation 0 3291
1276 2019-07-05 14:15:32 482 374 ADDED VMMigration.VMValidationAutomation 0 3290
1275 2019-07-05 14:03:38 481 373 ADDED VMMigration.VMValidationAutomation 0 3289
1274 2019-07-05 10:29:36 480 372 ADDED VMMigration.VMValidationAutomation 0 3288
1273 2019-07-05 09:00:26 479 371 ADDED VMMigration.VMValidationAutomation 0 3287
1272 2019-05-31 13:27:35 476 363 COMPLETED krisv 0 3277
1271 2019-05-31 13:27:34 Task output data updated 476 363 UPDATED krisv 0 3277
I should be able to see the task list via workbench. But I'm always getting an empty list.
Create a role named "Administrators" on Keycloak server and assign that role to specified user.
After that tasks will be visible to that user. Because business administrators can view and manage all user tasks from the Tasks page in Business Central, located under Menu → Manage → Tasks
Reference : JBPM TASK MANAGEMENT

No Brokers available when trying to connect to Kafka through Cloudera Data Science Workbench

I am trying to implement the GitHub project (https://github.com/tomatoTomahto/CDH-Sensor-Analytics) on our internal Hadoop cluster via Cloudera Data Science Workbench.
On running the project on Cloudera Data Science Workbench, I get the error "No Brokers available" when trying to connect to Kafka through Python api KafkaProducer(bootstrap_servers='broker1:9092') [Code can be found in https://github.com/tomatoTomahto/CDH-Sensor-Analytics/blob/master/datagenerator/KafkaConnection.py].
I have authenticated using Kerberos. I have tried giving broker node without port number, and also as a list. But, nothing has worked so far.
Below is the stack trace.
NoBrokersAvailable: NoBrokersAvailable
NoBrokersAvailable Traceback (most recent call
last)
in engine
----> 1 dgen = DataGenerator(config)
/home/cdsw/datagenerator/DataGenerator.py in __init__(self, config)
39
40 self._kudu = KuduConnection(self._config['kudu_master'],
self._config['kudu_port'], spark)
---> 41 self._kafka =
KafkaConnection(self._config['kafka_brokers'],
self._config['kafka_topic'])
42
43 #self._kafka
/home/cdsw/datagenerator/KafkaConnection.py in __init__(self, brokers,
topic)
4 class KafkaConnection():
5 def __init__(self, brokers, topic):
----> 6 self._kafka_producer =
KafkaProducer(bootstrap_servers=brokers)
7 self._topic = topic
8
/home/cdsw/.local/lib/python3.6/site-packages/kafka/producer/kafka.py
in __init__(self, **configs)
333
334 client = KafkaClient(metrics=self._metrics,
metric_group_prefix='producer',
--> 335 **self.config)
336
337 # Get auto-discovered version from client if necessary
/home/cdsw/.local/lib/python3.6/site-packages/kafka/client_async.py in
__init__(self, **configs)
208 if self.config['api_version'] is None:
209 check_timeout =
self.config['api_version_auto_timeout_ms'] / 1000
--> 210 self.config['api_version'] =
self.check_version(timeout=check_timeout)
211
212 def _bootstrap(self, hosts):
/home/cdsw/.local/lib/python3.6/site-packages/kafka/client_async.py in
check_version(self, node_id, timeout, strict)
806 try_node = node_id or self.least_loaded_node()
807 if try_node is None:
--> 808 raise Errors.NoBrokersAvailable()
809 self._maybe_connect(try_node)
810 conn = self._conns[try_node]
NoBrokersAvailable: NoBrokersAvailable
I also tried connecting outside of workbench through CLI by having VPN connection. I got the same error.
Any pointers on what am I missing? Thanks in advance!
The first step is establishing whether the network route is open and the broker is up and listening on that port. After that you can check authentication, etc.
Did you try telnet <broker host> 9092?
You may need to explicitly set advertised.listeners in addition to listeners, I've occasionally seen a weird quirk with Java where it wasn't binding to the expected network interface (or at least the one I expected!) and I had to force it using advertised.listeners.

Time Cisco Router reload not always mentioned

Im trying to measure our cisco router availability data based on downtime happened. I assume from show version, the time mentioned in tag "System returned to ROM" is when reload started, and next line "System restarted at" is when router back online again. The only thing confusing is RouterA node showing time when returned to ROM while RouterB is not.
Does anyone know the different? And how to make RouterB shows the exact time router reloaded next time on the show version command?
Thanks
Hadit
RouterA#show version
Cisco IOS Software, s72033_rp Software (s72033_rp-ITPK9V-M), Version 12.2(33)IRI, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Fri 04-May-12 14:04 by prod_rel_team
ROM: System Bootstrap, Version 12.2(17r)S4, RELEASE SOFTWARE (fc1)
RouterA uptime is 4 years, 11 weeks, 5 days, 17 hours, 27 minutes
Uptime for this control processor is 4 years, 11 weeks, 5 days, 17 hours, 19 minutes
System returned to ROM by reload at 00:01:24 JAVT Thu Oct 11 2012 (SP by reload)
System restarted at 00:05:58 JAVT Thu Oct 11 2012
System image file is "bootdisk:s72033-itpk9v-mz.122-33.IRI.bin"
Last reload type: Normal Reload
RouterB#show version
Cisco IOS Software, s72033_rp Software (s72033_rp-ITPK9V-M), Version 12.2(33)IRI, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Fri 04-May-12 14:04 by prod_rel_team
ROM: System Bootstrap, Version 12.2(17r)S4, RELEASE SOFTWARE (fc1)
RouterB uptime is 4 years, 12 weeks, 6 days, 17 hours, 51 minutes
Uptime for this control processor is 4 years, 12 weeks, 6 days, 17 hours, 54 minutes
System returned to ROM by reload (SP by reload)
System restarted at 00:16:21 JAVT Wed Oct 3 2012
System image file is "bootdisk:s72033-itpk9v-mz.122-33.IRI.bin"
Last reload type: Normal Reload
Do not rely on those commands to measure availability, you are much better off using a proper uptime tool to handle this for you, there are several free ones like Zabbix, PRTG and others and commercial ones like Solarwinds, HP NNM and others.
The output of those commands may change without notice hence not a good idea to rely on them for things that c an be automated using proper tools.

Selenium IDE gives different result when running the same code

I am new to Selenium and was just playing with the IDE. I have a website that runs locally on my machine which has a IFrame and some popups. The following code runs very well when in medium speed mode or slow mode but fails when run in fast mode it gives an error (see line 15 below). Even though I tried to keep wait statements for things to sync.
Also notice that the same code is executed just fine in line 9 whether running slow or fast.
01 open /default.aspx
02 type id=loginContent_txtPassword xxxx
03 clickAndWait id=loginContent_btnSet
04 windowFocus
05 click //div[#id='lBar_leftItem_4']/a
06 waitForFrameToLoad aframe 30000
07 selectFrame aframe
08 click css=img[title="Properties"]
09 waitForPopUp doc 30000
10 selectWindow name=doc
11 close
12 selectWindow null
13 selectFrame aframe
14 click css=img[title="Properties"]
15 waitForPopUp doc 30000 ***[error] can't access dead object**
16 selectWindow name=doc
17 verifyText id=popupContent_lblOwner XYZ*
18 close
Tried many things... but finally putting a short pause (for a few seconds) before the statements that causes the issue solved the problem. Maybe the selenium requests are not synced and it sends some requests to the browser before it can handle it (just my guess!)

Occasional errors when running OCUnit application test suite on device

I'm having some problems with my OCUnit test suite, when running application tests (i.e. on the device). Occasionally, I get a tricky error that seems to be thrown from the OCUnit classes. I've been trying to look through the files added to the test suites, but can't get my head around it.
I've followed the Apple documentation and looked at other tutorials when setting up my test targets, resulting in the following targets (and indented dependencies):
LogicTests
MyApp
LogicTests
ApplicationTests
MyApp
MyAppTesting
ApplicationTests
The last (MyAppTesting) is the one I run on the device to start the test suite.
And as mentioned, the tests fail to start sometimes throwing me the following output in the console:
2010-11-17 12:02:48.537 VCCTesting[12018:307] *** Assertion failure in -[SenTestClassEnumerator init], /SourceCache/OCUnit/OCUnit-1685/SourceCode/SenTestingKit/SenTestClassEnumerator.m:137
2010-11-17 12:02:48.556 VCCTesting[12018:307] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'objc_getClassList returned more classes than it should have.'
*** Call stack at first throw:
(
0 CoreFoundation 0x30897ed3 __exceptionPreprocess + 114
1 libobjc.A.dylib 0x3002f811 objc_exception_throw + 24
2 CoreFoundation 0x30897d15 +[NSException raise:format:arguments:] + 68
3 Foundation 0x349f932f -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 62
4 SenTestingKit 0x20107c29 -[SenTestClassEnumerator init] + 292
5 SenTestingKit 0x201079fd +[SenTestClassEnumerator classEnumerator] + 24
6 SenTestingKit 0x2010777d +[NSObject(SenTestRuntimeUtilities) senAllSubclasses] + 92
7 SenTestingKit 0x201067b5 +[SenTestSuite updateCache] + 28
8 SenTestingKit 0x20106753 +[SenTestSuite suiteForBundleCache] + 54
9 SenTestingKit 0x201065db +[SenTestSuite structuredTests] + 14
10 SenTestingKit 0x201065a1 +[SenTestSuite allTests] + 40
11 SenTestingKit 0x20106573 +[SenTestSuite defaultTestSuite] + 14
12 SenTestingKit 0x201057a3 +[SenTestProbe specifiedTestSuite] + 106
13 SenTestingKit 0x20105d83 +[SenTestProbe runTests:] + 94
14 Foundation 0x349c7e8d __NSFireDelayedPerform + 368
15 CoreFoundation 0x3084e7fb __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
16 CoreFoundation 0x3084e2ad __CFRunLoopDoTimer + 860
17 CoreFoundation 0x3081f7a5 __CFRunLoopRun + 1088
18 CoreFoundation 0x3081f277 CFRunLoopRunSpecific + 230
19 CoreFoundation 0x3081f17f CFRunLoopRunInMode + 58
20 GraphicsServices 0x31e445f3 GSEventRunModal + 114
21 GraphicsServices 0x31e4469f GSEventRun + 62
22 UIKit 0x31e51123 -[UIApplication _run] + 402
23 UIKit 0x31e4f12f UIApplicationMain + 670
24 VCCTesting 0x000234ff main + 70
25 VCCTesting 0x00002538 start + 40
)
terminate called after throwing an instance of 'NSException'
Does anyone know what could be wrong?
Thankful for any help,
Kristofer
P.S. I've posted this on the App dev forums, but haven't had any luck with it yet: https://devforums.apple.com/message/333890
Do you have NSZombieEnabled? I had this issue when I had NSZombieEnabled set to YES in my arguments for my unit test launch target. I've tried everything (cleaning/quitting XCode/restting simulator content).
The only solution so far was to disable zombie in my unit test launch
I think I've just figured out why I was getting this error as well -- perhaps the same thing is happening to you:
I have two products set up, one for internal beta testing (complete with a preference pane) and one for app store release. Both product targets were set up with the same Product Name (PRODUCT_NAME in build settings).
This worked fine in XCode 3.x, but XCode 4 was somehow trying to build the store product each time I built the beta product. I think this is due to the change in where XCode puts its derived files -- XCode 4 was storing the beta and store products at the same path, so when the beta product was built, the store output file changed and needed to be rebuilt...
Anyway... changing the beta Product Name has fixed temporarily fixed the issue... I've also changed the bundle identifier in the Info.plist so the two products have different identifiers. Now when I build one product, the other doesn't get built at the same time, but I still get the crash when the tests run :-(
My only idea now is to totally recreate the project from fresh, copying across the settings and the files to see if XCode 4 does something different. That and filing a support incident with Apple...
Cheers,
Adam
I am not 100% sure yet, but it seems this issue can be solved by creating different scheme for each test target.
I had this error a lot this afternoon but it hasn't happened for awhile after I created separate schemes for different test targets.
Just for anyone that might run into this issue like I have:
KIFTester loaded
Assertion failure in -[SenTestClassEnumerator init], /SourceCache/OCUnit/OCUnit-5315/SourceCode/SenTestingKit/SenTestClassEnumerator.m:136
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'objc_getClassList returned more classes than it should have.'
The problem turned out to be GoogleAnalytics 3.0
Updated to 3.0.3 but still the same problem with either of these libraries
libGoogleAnalytics_debug.a
libGoogleAnalyticsServices.a
To go around it I just don't include them for testing.