All Questions
43 questions
0
votes
1
answer
157
views
I have a problem with my react native application. When I try to run my application, this message pops up:
enter image description here
I tried add into android studio setings>build, execution, deployment>compiler few opction into gradle, like "--stacktrace or --debug" but that dont work. ...
0
votes
1
answer
723
views
How to get last few stack frames instead of a complete stack trace in Java 8?
There is the Stack Walking API in Java 9 which allows us to get only the last couple of stack frames. But I am stuck with Java 8. In Java 8 we can get the Stack trace with either Thread.currentThread()...
1
vote
1
answer
564
views
How can I debug a NullPointerException where the stacktrace doesn't reference my classes?
I have a table whose rows are filtered based on a text input.
I recently put the predicate in a delayed system (full code below) to avoid freezing the UI while the large dataset is filtered.
I can ...
0
votes
0
answers
217
views
Android: How to read stack traces which don't specify MY LINES of code
My app users are reporting errors which cause their stack traces to show up in Google Play Developer Console. But the problem is that several of these logs/traces do not include information about my ...
0
votes
1
answer
72
views
How can I determine which original source code was a lambda anonymous type? [duplicate]
Consider a stack trace (from jstack, in this case) like the following:
"main" #1 prio=5 os_prio=0 tid=0x00007fbb18027800 nid=0x5286 in
Object.wait() [0x00007fbb1e75d000]
java.lang.Thread.State: ...
13
votes
5
answers
520
views
Is it possible to track down which expression caused an NPE?
When I get an NPE, I'll get a stack trace with line number.
That's helpful, but if the line is very dense and/or contains nested expression, it's still impossible to figure out which reference was ...
12
votes
3
answers
2k
views
Java "Thread-2" without stack prevents termination
I have a pretty complex java program, which doesn't terminate.
The eclipse debugger is showing a thread that can be suspended, but has no stack trace.
It is called "Thread-2".
The jstack -l output ...
1
vote
1
answer
2k
views
Stack trace not found in Output during Netbeans 7.4 debugging session
In Netbeans 7.4, I set a breakpoint at the point where my program quit working and began debugging.
The first print statement printed; second didn't.
In the debugger, execution stopped here:
Even ...
4
votes
3
answers
3k
views
Get actual class from stack trace element
Using Eclipse I can set a breakpoint and see current stack trace on debug view:
But when I inspect stack trace using Thread.currentThread().getStackTrace(), the information I get is not exactly the ...
1
vote
1
answer
1k
views
How do I find the line of my code causing an error when the stacktrace only shows native methods in eclipse
The short question is when using eclipse, how can I find out what line of my code triggered the error in cases where the stacktrace and debugger call stack don't reveal anything other than Android ...
0
votes
1
answer
49
views
Viewing value of variable from higher stack level when breakpoint hit without manually climbing stack
Is it possible to view the value of a variable from a higher stack level when hitting a breakpoint in eclipse? IE say we have the following functions -
void foo(){
for(int i=0;i<100;i++){
...
1
vote
2
answers
2k
views
How to figure out why thread is stuck?
I see this thread in my jstack that does not appear to be moving at all. Any pointers on how to figure out why it's stuck? I don't see any locks or anything, the only suspicious thing is the "Object....
0
votes
2
answers
2k
views
Is there a Linux command to print the current stack of a running Java process
Situation:
I have a Java1.7 process running in CentOS6 with multiple threads. The process currently halts (i.e., stuck in some kind of loop or waiting function). Due to the complexity nature of the ...
4
votes
2
answers
4k
views
How to read NumberFormatException error message?
[NOTE] Add to the answer below for other good tips for reading the stack trace
I am getting an error in a program that I am making and I don't know how to fix it.
The user has to choose options from ...
3
votes
2
answers
6k
views
Difference between dumpstack() and printStackTrace()
I am trying to get the stack trace of the underlying C code that is called from the android Java app code and tried using
dumpStack() and printStackTrace() without any success.
Just was curious is ...