No Exception is thrown in some situations [message #1758276] |
Sun, 26 March 2017 19:09  |
Eclipse User |
|
|
|
Hello everybody,
this is my first post in this forum and I hope we will hear more. I have started to learn Kura since two days and have spent more than 20 hours but still I feel that I am at the very beginning. I hope with your helps, I will go further much faster than I would go alone.
When it comes to my question,
I am using DropBox API and with some business logic, I want to send a text file to my Dropbox account in predefined intervals. When I do it on my local computer, everything works perfect and then, I have implemented the same code in OSGI way and imported to the KURA. To some point, my code works perfect until this point in code;
String emailAdress = null;
try {
emailAdress = client.users().getCurrentAccount().getEmail(); // <-
LOGGER.info("The email adress is " + emailAdress);
} catch (DbxException e) {
LOGGER.error("Could not get the email adress. The reason is; " + e.getMessage());
}
After the first line in the try block, it does not throw any exception (i controlled by kura.log and kura-console.log) and the program gets stuck at the point because after catch block there are other log info, they will not be written as well.
Except for kura.log and kura-console.log, are there any other files, which I should check when something like that happens and how should I approch to solve such a problem?
Thanks you all in advance.
[Updated on: Tue, 28 March 2017 20:31] by Moderator
|
|
|
|
|
Re: No Exception is thrown in some situations [message #1758515 is a reply to message #1758464] |
Wed, 29 March 2017 09:49  |
Eclipse User |
|
|
|
Hello,
Standard out from the JVM will be in /var/log/kura-console.log. I am surprised the NoClassDefFoundError did not show up there. This error was likely thrown from OSGi, which may have prevented it from showing in the log file. In any case, learning to use the OSGi console is a good idea. Whenever you are having an issue with a bundle, you should always check the OSGi 'ss' and 'ls' commands first.
Thanks,
--Dave
|
|
|
Powered by
FUDForum. Page generated in 0.06881 seconds