All of my log statements appear in adb logcat, but two of them don't appear in Intellij Logcat. Why?
Log.i(TAG, "in the long click");
CommentViewHolder commentViewHolder = (CommentViewHolder) view.getTag();
Log.i(TAG, "got the comment holder");
addRequest(mAppController.deleteComment(mPostId,
commentViewHolder.comment_id));
Log.i(TAG, "added the request");
return true;
This is the output in the Intellij Logcat using the "All messages" filter:
05-22 20:14:30.723: INFO/rose_tag(24319): in the long click
This is the output using adb logcat:
I/rose_tag(24319): in the long click
I/rose_tag(24319): got the comment holder
I/rose_tag(24319): added the request
Related
I am trying to create a one to one video streaming Ionic app. In the app I have a button "Connect", On click of "Connect" the publisher initialized and on click of "Disconnect" button I disconnect the session.What I want it to work like :
Click Connect - Publisher Initialized
Click Disconnect - Session Disconnect
Click Connect - Publisher Initialized (But here I get the error)
Tokbox Republishing issues
OpenTok:Publisher:error _connectivityAttemptPinger should have been cleaned up +0ms
OpenTok:Publisher:error OT.Publisher State Change Failed: +209ms 'PublishingToSession' cannot transition to 'PublishingToSession'
OpenTok:Publisher:error OT.Publisher.onPublishingTimeout +15s
OpenTok:GlobalExceptionHandler:error OT.exception :: title: Unable to Publish (1500) msg: ICEWorkflow +0ms
OpenTok:Session:error 1500 +0ms Session.publish :: Could not publish in a reasonable amount of time
OpenTok:Session:error 1500 +9ms Session.publish :: Session.publish :: Could not publish in a reasonable amount of time
The code is below:
tokBoxInit() {
if (OT.checkSystemRequirements() == 1) {
this.session = OT.initSession(this.apiKey, this.sessionId);
console.log(this.session);
this.session.connect(this.token, function(error) {
if (error) {
console.log("Error connecting: ", error.name, error.message);
} else {
console.log("Connected to the session.");
}
});
this.publisher = OT.initPublisher('publisher',{insertMode: 'append',width: '100%',height: '100%'});
this.publisher.on({
streamCreated: function (event) {},
streamDestroyed: function (event) {}
});
this.session.on({
sessionConnected: (event: any) => {
console.log("Session Connected Listener");
this.connected = true; // Status to show Connect/Disconnect Button
this.session.publish(this.publisher);
}
});
}
}
How do you handle the disconnect functionality? Do you clear the session after the connection is destroyed and unpublish the destroyed session?
And also check your token capabilities if it has the role of publisher or moderator as it could also be that the token does not have those properties. Or is missing when the session is regenerated.
1500 error message as quoted by opentok has the following description:
Unable to Publish. The client's token does not have the role set to publish or moderator. Once the client has connected to the session, the capabilities property of the Session object lists the client's capabilities.
But code is too simple to tell, because I can't see how you handle session disconnection so check if you handle it and clear session when disconnected.
I am using commercial version of Botium box. able to connect to Google dialog bot and able to add test set which contains 2 utterance file and one convo file. on Running the Test Set getting this error (Unable to send utterance file to bot):
Addition Figure no 001 :- Screenshot of Chatting Manually with Bot.
enter image description here
Error:
Error: bot_first_reply/bot_first_reply-L1/Step 1 - tell utterance: error sending to bot
Error: Cannot send message to dialog flow container: {
Error: Deadline exceeded
at Http2CallStream.call.on (/app/agent/node_modules/#grpc/grpc-js/build/src/client.js:96:45)
at Http2CallStream.emit (events.js:202:15)
at process.nextTick (/app/agent/node_modules/#grpc/grpc-js/build/src/call-stream.js:71:22)
at processTicksAndRejections (internal/process/next_tick.js:74:9) code: 4, details: 'Deadline exceeded', metadata: Metadata { options: undefined, internalRepr: Map {} } }
at sessionClient.detectIntent.then.catch.err (/app/agent/node_modules/botium-connector-dialogflow/dist/botium-connector-dialogflow-cjs.js:704:16)
I'm working on an IBM MobileFirst Platform 7.1 project where we have many remote servers say, Dev, Test etc. The requirement was to change the servers at run time so that we would not be required to build and distribute multiple apps.
I followed the Official IBM tutorial.
Here is the code I use to connect to the server after the server is changed.
WL.Client.connect({onSuccess: function(){
WL.SimpleDialog.show(
"Connection Success", "Successfully connected to the server URL. Your app will reload once you press OK",
[{text: "OK", handler: function() {WL.Client.reloadApp();}}]
);
}, onFailure: function(error) {
WL.SimpleDialog.show(
"Connection Falied", error.status +" "+error.errorCode + " : " + error.errorMsg,
[{text: "Close", handler: function() {}}]
);
}});
It works perfectly fine in Android. But, in iOS devices, the server gets changed and gets connected to the new server. When the Auto-update runs in order to fetch the new code from the changed server, it gets Stuck indefinitely
Any help would be greatly appreciated. Thanks in advance.
I am using behat with a zombie driver to test my application. Now I am trying to click on an element (a td), to fire an ajax request. But when clicking this element I receive the error:
Error while processing event 'click' (Behat\Mink\Exception\DriverException
The code I use is from this thread
Nowhere on the internet I can find someone with the same error message, so I have no clue how to solve this.
The HTML I want to click on looks like this:
<td value="2" onclick="switchStatus(this.id); updateScores();; return false;" id="37_12_2">2</td>
These javascript functions do an ajax call to the server and do nothing with the saved result (no success method).
The test function I use looks like this:
/**
* #Given /^I click td "([^"]*)"$/
*/
public function iClickTd($id)
{
$locator = "#$id";
$element = $this->getSession()->getPage()->find('css', $locator);
if (null === $element) {
throw new \InvalidArgumentException(sprintf('Could not evaluate CSS selector: "%s"', $locator));
}
$element->click();
$this->getSession()->wait(1000);
}
And in the test I have:
And I click td "37_12_2"
The behat.yml:
default:
suites:
default:
contexts:
- FeatureContext:
- http://localhost/
extensions:
Behat\MinkExtension\ServiceContainer\MinkExtension:
base_url: http://localhost/
sessions:
default:
goutte: ~
javascript:
zombie:
node_modules_path: '/usr/lib/node_modules/'
Used versions:
"phpunit/phpunit": "4.5.*",
"phpspec/phpspec": "~2.1",
"behat/behat": "~3.0",
"behat/mink": "~1.6",
"behat/mink-extension": "~2.0",
"behat/mink-goutte-driver": "*",
"behat/mink-zombie-driver": "~1.2"
npm v1.4.28
php 5.6
Does anyone know what goes wrong, and how I can make this function work?
The actual problem was a wrong ajax request. Using a real webbroser the ajax call went right, but using zombieJS this call went to a wrong url.
When someone else has the same exception, you can view your real problem by changing the following part in the ZombieDriver.php:
From:
$out = $this->server->evalJS($js);
if (!empty($out)) {
throw new DriverException(sprintf("Error while processing event '%s'", $event));
}
To:
$out = $this->server->evalJS($js);
if (!empty($out)) {
echo $out;
throw new DriverException(sprintf("Error while processing event '%s'", $event));
}
$out contains the actual error message of an ajax call.
I am testing with Selenium-rc 1.0.3 and I am getting a Permission denied error message in IE when I run my IDE script from the command line.
I am trying to run an IDE script in Internet explorer using the selenium control RC 1.0.3
from the command line:
java -jar selenium-server.jar -htmlsuite "*iexploreproxy" "url
address/where" "C:\Users\sat\Documents\selenium\suite.html"
"C:\Users\sat\Documents\selenium scripts\results.htm" at this point
The IE window pops up saying as below
I get a security warning saying "Do you want to view only the webpage content that was delivered securely?" I hit Yes and I see this error in the test runner window:
Webpage error details
Message: Access is denied.
Line: 177
Char: 9
Code: 0
URI: xx.xx.xx.xxx/selenium-server/core/scripts/selenium-testrunner.js
UPDATE:
I looked at the line 177 and char :9 in the script and it points to
var runInterval = 0;
/** SeleniumFrame encapsulates an iframe element */
var SeleniumFrame = classCreate();
objectExtend(SeleniumFrame.prototype, {
initialize : function(frame) {
this.frame = frame;
addLoadListener(this.frame, fnBind(this._handleLoad, this));
},
getWindow : function() {
return this.frame.contentWindow;
},
getDocument : function() {
return this.frame.contentWindow.document; - line 177 char 9
},
_handleLoad: function() {
this._attachStylesheet();
this._onLoad();
if (this.loadCallback) {
this.loadCallback();
}
Do you know what the error is about? Why do I get that? I see my test cases and everything in the test runner window, but I can't run them in the IE browser. I searched the web with no avail.
I do not have much experience with running the test from CLI, but have you tried starting Selenium RC with administrator permission?
Any particular reason for not using the new Selenium 2 IWebDriver and a test framework?
The error might be caused by the use of iframe/frameset and IE's security settings. Default settings are that, if a site uses iframe/frameset and the frame content originates from 2 different root domains, then this is a security risk. Try is add the sites to your list thrusted site for IE. Have you tried to ude the firefox driver instead (will not have this security restriction).