No Exception is thrown in some situations [message #1758276] |
Sun, 26 March 2017 23:09 |
Fatih o. Messages: 5 Registered: March 2017 |
Junior Member |
|
|
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: Wed, 29 March 2017 00:31] Report message to a moderator
|
|
|
|
Re: No Exception is thrown in some situations [message #1758464 is a reply to message #1758448] |
Wed, 29 March 2017 00:36 |
Fatih o. Messages: 5 Registered: March 2017 |
Junior Member |
|
|
No, JVM does not crash.
After this question, I have learnt how to debug an Osgi application in Kura and detected that it threw actually an exception (java.lang.NoClassDefFoundError). However, it is not written to log files of the Kura.
A follow up question, Where should be checked to see the exceptions (logs), which are thrown by JVM or any other application/process (not defined specifically with logger) ?
Thank you for your answer.
[Updated on: Wed, 29 March 2017 00:40] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03456 seconds