I am trying to install my worklight application on the android htc mobile. The application was getting installed successfully but the problem is I am not able to see the log messages.As soon as I connect my device it is giving me the following errors:
1) "couldn't find the mandatory host http header"
2)"addition of standard header pragma is discouraged as a future version of the RESTlet API will directly support it"
Can anyone please help me in solving this issue?
Thanks in advance
The question's description text is not very helpful... can you please elaborate?
What is "htc mobile", is there a specific device model and Android OS version?
What do you mean by "log messages"? Are you referring to the output in LogCat?
Can you try with a NEW - unmodified - Worklight app (with the Android environment) and see if you still get these errors?
Do you see Worklight-related logs regardless of these errors? Is the app working?
Right now this does not seem to be a Worklight-related issue.
There are some questions already in Stackoverflow that seem to touch these supposed issues. You can go over them:
Android LogCat continuously repeating a warning: "Addition of standard header .... not allowed"
Logcat continously shows messages
A common thread between them seems to be some OTHER app that is leaking. Try closing as many apps before installing the Worklight app.
In LogCat you can also create a filter to see log messages related ONLY to the app, and not to anything else that may be happening in the device (with other apps).
Related
Am facing an unusual problem on blackberry, after i have signed my app with the 3 keys and say "load onto device" via Eclipse Java Plugin for Blackberry - the app loads successfully on the device, but when i click on it to launch it - does not open up, nor even a error or a dialog pops up. Please Help - Cant find a solution for this!
I have often had this issue using the 9800 device. After loading apps to the device it starts "not launching". If you go to options -> application manager -> your app's permissions you might see some permissions as custom. Setting these to "allow" fixes it. After a while it stopped launching even when allowed, deleting the app and letting the device reboot fixes it.
This is my personal experience, I don't know what the official bug/fix is
Implement logging in your application. Log every step on the application startup and write log to a text file, located on device SD Card.
When your application has been installed and you have tried to launch it, check this text file to find out, what is going wrong with your application.
Also there is internal logging mechanism, you may employ it, instead of logging to text file.
From my point of view internal log is more suitable for simple logging purposes. If you want complex logging, then text file located on SDCard is preferred.
Try to start the app, then check the device event log. To open the event log viewer, hold 'Alt' and then press L,G,L,G. You will likely see an error explaining the problem in the event log viewer.
i am trying to debug an Application I am developing using mono touch, but when I try to access Crash Reports in Xcode Organizer, I can't find any (and I know the app crashed at least 10 times).
I only see 5 files which process name is "Unknown".
I tried to locate the crash reports in
~/Library/Logs/CrashReporter/MobileDevice
But even there I couldn't find the reports.
Any ideas what Im missing?
Thanks!
Something similar happened to me before when I was trying to look at persistent connection logs, maybe it will be helpful to you. It turned out I was looking at /Library/Logs instead of ~/Library/Logs, the latter library folder is not visible but the former is.
I will suggest you to try and locate them in "Console" application and it shows hidden files by default. If Console cannot find them there should be a problem with logging.
Is it possible to get the crash log from my app? I know that we can get the exception handler by NSSetUncaughtExceptionHandler, but I want to get the crash file which could be found by Organizer. I want to access that file and send to my server. Is there any supported SDK to do that?
Thanks!!
The popular service HockeyApp is based on open source software that has it's own client that lives in your app and a basic server to collect crash reports from your app.
Check out their github account for more information on setting it all up.
https://github.com/TheRealKerni/QuincyKit
I have registered an Custom URL scheme in my application. From server i send an SMS to the phone with the message starting with the custom URL scheme. example myapp://mymessageToApplication
When the SMS reaches the inbox, the messages application does not receognize the above message as a link. So, i am unable to click on the message to start by application. This happens everytime i delete the application and reinstall the application. But, when i restart my phone, the messages application recognizes the message as a link and i can click on the link to start my application. After that it all fine until i delete the current application and re-install it again through xCode on my test phone.
Does anyone aced similar issue? can anyone suggest me what could be wrong?
To add, i can type the message myapp://mymessageToApplication in browser to launch my application. It works always. So, the custom URL is registered fine. Only the messages application is not picking it up until i restart the phone.
I have filed a bug in Apple and they have replied for that. They ahve agreed that it is a known issue and they are working on it.
Below is the reply from them
This is a follow up to Bug ID# 10166363. After further investigation it has been determined that this is a known issue, which is currently being investigated by engineering. This issue has been filed in our bug database under the original Bug ID# 10053369. The original bug number being used to track this duplicate issue can be found in the State column, in this format: Duplicate/OrigBug#.
Thank you for submitting this bug report. We truly appreciate your assistance in helping us discover and isolate bugs.
Did you try to only kill and restart the messages application instead of restarting your iPhone completely?
I guess that's only because the Messages application only check which custom URL schemes are registered when it launches (and not when it is already launched but in background and is only brought to forground). Just a guess but it might be a probable explanation
(and if it is, I don't think there is anything you can do except file a bug to Apple... but check it first)
The crash log returned when your app has an error on iOS is wonderful however it would be 100 times better if it contained the console output from when your app started as part of the log. Is there a way to automatically have that information in the crash log, or have a semi-automatic system that testers could use when sending in crash logs?
I think you might want to take a look at http://apphance.com. It's exactly what you are looking for - including capability of sending problem reports from device by testers, including screenshots, you can track history of session including full console logs, you can even see crashes from out-of-memory problems which are otherwise difficult to get without physical access to the device. It's closed beta for now but soon it will be open for everyone. You can request access directly at the page.
Disclaimer: I am CTO of Polidea, company which is behind apphance and co-creator of the service.
#Medran i am not sure if this will help but if you can get the Brad Larsons videos on Advance iPhone App Development than there he says some thing about .dSYM file that will help you find the places where crash occurs. .dSYM file is made when you build your app using Xcode. See if you can find that file in your project folder its named something like this MYapp.app.dSYM