SlideShare a Scribd company logo
Debugging with Java Stack Traces Daryl Banttari Analytics, Inc.
About Daryl IT Professional since 1986 ColdFusion since 1997 Java since 2003 Allaire/Macromedia Consulting 2000-2005 Webapper (SeeFusion!) Current: Analytics, Inc.
Agenda Java and ColdFusion What is a "Stack Trace"? Reading a Stack Trace Debugging with Stack Traces Gathering Stack Traces
Java and ColdFusion ColdFusion is a Java J2EE Application Servlet Engine (JRun) ColdFusion (cfmservlet) Request Threads (your application)
Java Stack Traces Snapshot in Time Shows Calls, Not Data Multiple Needed to Show Motion
"jrpp-352" runnable at java.lang.Double.parseDouble(Double.java:220)? at coldfusion.runtime.CFDouble.parseDouble(CFDouble.java:23)? at coldfusion.runtime.CfJspPage.internalIsBoolean(CfJspPage.java:707)? at coldfusion.runtime.CfJspPage._compare(CfJspPage.java:273)? at cfApplication2ecfm726408707._factor5(D:\Websites\redacted.com\Application.cfm:3)? at cfApplication2ecfm726408707.runPage(D:\Websites\redacted.com\Application.cfm:521)? at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)? at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)? at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)? at coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:30)? at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:93)? at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)? at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)? at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)? at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)? at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)? at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)? at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)? at coldfusion.CfmServlet.service(CfmServlet.java:105)? at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)? at com.seefusion.Filter.doFilter(Filter.java:49)? at com.seefusion.SeeFusion.doFilter(SeeFusion.java:1494)? at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)? at jrun.servlet.FilterChain.service(FilterChain.java:101)? at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)? at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)? at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)? at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)? at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)? at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)? at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)? at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)? at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)?
Debugging with Stack Traces Examples
Recognizing Stack Elements Jrun.* - Jrun Ignore: jrun.servlet.jrpp.ProxyEndpoint.readFully Suspect: jrun.servlet.jrpp.JrppOutputStream$SpillStream.write Coldfusion.* Functions: coldfusion.runtime.CfJspPage.* Tags: coldfusion.tagext.sql.QueryTag Probably Innocent Java java.util.* java.lang.* Suspicious Java java.net.* java.io.* Your Code! cfApplication2ecfm726408707.runPage(D:\Websites\redacted.com\Application.cfm:577)?
Gathering Stack Traces SeeFusion / SeeStack CF8 Enterprise Server Monitor jstack
Summary Stack Traces are snapshots of threads Multiple traces may be needed to diagnose slow/hung threads Read thread stacks from bottom to top Look for code line numbers and keywords
Q&A Daryl Banttari Analytics, Inc.
Ad

Recommended

HotSpotコトハジメ
HotSpotコトハジメ
Yasumasa Suenaga
 
Spark summit2014 techtalk - testing spark
Spark summit2014 techtalk - testing spark
Anu Shetty
 
A new execution model for Nashorn in Java 9
A new execution model for Nashorn in Java 9
Marcus Lagergren
 
Real World Android Akka
Real World Android Akka
Taisuke Oe
 
Devoxx17 - Préparez-vous à la modularité selon Java 9
Devoxx17 - Préparez-vous à la modularité selon Java 9
Alexis Hassler
 
From Hadoop to Spark, Max Skrynnikov
From Hadoop to Spark, Max Skrynnikov
Sigma Software
 
JavaCro'14 - Is there Kotlin after Java 8 – Ivan Turčinović and Igor Buzatović
JavaCro'14 - Is there Kotlin after Java 8 – Ivan Turčinović and Igor Buzatović
HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
 
Javascript TDD with Jasmine, Karma, and Gulp
Javascript TDD with Jasmine, Karma, and Gulp
All Things Open
 
Unit testing of spark applications
Unit testing of spark applications
Knoldus Inc.
 
Preparing your code for Java 9
Preparing your code for Java 9
Deepu Xavier
 
KrakenJS
KrakenJS
PayPal
 
Jvm operation casual talks
Jvm operation casual talks
Yusaku Watanabe
 
Beyond Parallelize and Collect by Holden Karau
Beyond Parallelize and Collect by Holden Karau
Spark Summit
 
Resilient Applications with Akka Persistence - Scaladays 2014
Resilient Applications with Akka Persistence - Scaladays 2014
Björn Antonsson
 
JavaOne 2015: From Java Code to Machine Code
JavaOne 2015: From Java Code to Machine Code
Chris Bailey
 
The Full Stack Java Developer - Josh Long
The Full Stack Java Developer - Josh Long
ploibl
 
Java
Java
Sneha Mudraje
 
Linked list (java platform se 8 )
Linked list (java platform se 8 )
charan kumar
 
Heap and stack space in java
Heap and stack space in java
Talha Ocakçı
 
Java Stack (Pilha)
Java Stack (Pilha)
Samuel Santos
 
Introduction to java and oop
Introduction to java and oop
baabtra.com - No. 1 supplier of quality freshers
 
03 Java Language And OOP Part III
03 Java Language And OOP Part III
Hari Christian
 
Polymorphism
Polymorphism
Nochiketa Chakraborty
 
01 introduction to oop and java
01 introduction to oop and java
রাকিন রাকিন
 
Java Collections Framework Inroduction with Video Tutorial
Java Collections Framework Inroduction with Video Tutorial
Marcus Biel
 
Stack, queue and hashing
Stack, queue and hashing
Dumindu Pahalawatta
 
JAVA Object Oriented Programming (OOP)
JAVA Object Oriented Programming (OOP)
Prof. Erwin Globio
 
Arrays in java
Arrays in java
Arzath Areeff
 
Oop java
Oop java
Minal Maniar
 
My lecture stack_queue_operation
My lecture stack_queue_operation
Senthil Kumar
 

More Related Content

What's hot (7)

Unit testing of spark applications
Unit testing of spark applications
Knoldus Inc.
 
Preparing your code for Java 9
Preparing your code for Java 9
Deepu Xavier
 
KrakenJS
KrakenJS
PayPal
 
Jvm operation casual talks
Jvm operation casual talks
Yusaku Watanabe
 
Beyond Parallelize and Collect by Holden Karau
Beyond Parallelize and Collect by Holden Karau
Spark Summit
 
Resilient Applications with Akka Persistence - Scaladays 2014
Resilient Applications with Akka Persistence - Scaladays 2014
Björn Antonsson
 
JavaOne 2015: From Java Code to Machine Code
JavaOne 2015: From Java Code to Machine Code
Chris Bailey
 
Unit testing of spark applications
Unit testing of spark applications
Knoldus Inc.
 
Preparing your code for Java 9
Preparing your code for Java 9
Deepu Xavier
 
KrakenJS
KrakenJS
PayPal
 
Jvm operation casual talks
Jvm operation casual talks
Yusaku Watanabe
 
Beyond Parallelize and Collect by Holden Karau
Beyond Parallelize and Collect by Holden Karau
Spark Summit
 
Resilient Applications with Akka Persistence - Scaladays 2014
Resilient Applications with Akka Persistence - Scaladays 2014
Björn Antonsson
 
JavaOne 2015: From Java Code to Machine Code
JavaOne 2015: From Java Code to Machine Code
Chris Bailey
 

Viewers also liked (20)

The Full Stack Java Developer - Josh Long
The Full Stack Java Developer - Josh Long
ploibl
 
Java
Java
Sneha Mudraje
 
Linked list (java platform se 8 )
Linked list (java platform se 8 )
charan kumar
 
Heap and stack space in java
Heap and stack space in java
Talha Ocakçı
 
Java Stack (Pilha)
Java Stack (Pilha)
Samuel Santos
 
Introduction to java and oop
Introduction to java and oop
baabtra.com - No. 1 supplier of quality freshers
 
03 Java Language And OOP Part III
03 Java Language And OOP Part III
Hari Christian
 
Polymorphism
Polymorphism
Nochiketa Chakraborty
 
01 introduction to oop and java
01 introduction to oop and java
রাকিন রাকিন
 
Java Collections Framework Inroduction with Video Tutorial
Java Collections Framework Inroduction with Video Tutorial
Marcus Biel
 
Stack, queue and hashing
Stack, queue and hashing
Dumindu Pahalawatta
 
JAVA Object Oriented Programming (OOP)
JAVA Object Oriented Programming (OOP)
Prof. Erwin Globio
 
Arrays in java
Arrays in java
Arzath Areeff
 
Oop java
Oop java
Minal Maniar
 
My lecture stack_queue_operation
My lecture stack_queue_operation
Senthil Kumar
 
Java OOP Programming language (Part 3) - Class and Object
Java OOP Programming language (Part 3) - Class and Object
OUM SAOKOSAL
 
OOP java
OOP java
xball977
 
Object Oriented Programming with Java
Object Oriented Programming with Java
backdoor
 
Encapsulation
Encapsulation
Githushan Gengaparam
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
CPD INDIA
 
The Full Stack Java Developer - Josh Long
The Full Stack Java Developer - Josh Long
ploibl
 
Linked list (java platform se 8 )
Linked list (java platform se 8 )
charan kumar
 
Heap and stack space in java
Heap and stack space in java
Talha Ocakçı
 
03 Java Language And OOP Part III
03 Java Language And OOP Part III
Hari Christian
 
Java Collections Framework Inroduction with Video Tutorial
Java Collections Framework Inroduction with Video Tutorial
Marcus Biel
 
JAVA Object Oriented Programming (OOP)
JAVA Object Oriented Programming (OOP)
Prof. Erwin Globio
 
My lecture stack_queue_operation
My lecture stack_queue_operation
Senthil Kumar
 
Java OOP Programming language (Part 3) - Class and Object
Java OOP Programming language (Part 3) - Class and Object
OUM SAOKOSAL
 
Object Oriented Programming with Java
Object Oriented Programming with Java
backdoor
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
CPD INDIA
 
Ad

Recently uploaded (20)

Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Information Security Response Team Nepal_npCERT_Vice_President_Sudan_Jha.pdf
Information Security Response Team Nepal_npCERT_Vice_President_Sudan_Jha.pdf
ICT Frame Magazine Pvt. Ltd.
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Priyanka Aash
 
The Future of AI Agent Development Trends to Watch.pptx
The Future of AI Agent Development Trends to Watch.pptx
Lisa ward
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Information Security Response Team Nepal_npCERT_Vice_President_Sudan_Jha.pdf
Information Security Response Team Nepal_npCERT_Vice_President_Sudan_Jha.pdf
ICT Frame Magazine Pvt. Ltd.
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Priyanka Aash
 
The Future of AI Agent Development Trends to Watch.pptx
The Future of AI Agent Development Trends to Watch.pptx
Lisa ward
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
Ad

Java Stack Traces

  • 1. Debugging with Java Stack Traces Daryl Banttari Analytics, Inc.
  • 2. About Daryl IT Professional since 1986 ColdFusion since 1997 Java since 2003 Allaire/Macromedia Consulting 2000-2005 Webapper (SeeFusion!) Current: Analytics, Inc.
  • 3. Agenda Java and ColdFusion What is a "Stack Trace"? Reading a Stack Trace Debugging with Stack Traces Gathering Stack Traces
  • 4. Java and ColdFusion ColdFusion is a Java J2EE Application Servlet Engine (JRun) ColdFusion (cfmservlet) Request Threads (your application)
  • 5. Java Stack Traces Snapshot in Time Shows Calls, Not Data Multiple Needed to Show Motion
  • 6. "jrpp-352" runnable at java.lang.Double.parseDouble(Double.java:220)? at coldfusion.runtime.CFDouble.parseDouble(CFDouble.java:23)? at coldfusion.runtime.CfJspPage.internalIsBoolean(CfJspPage.java:707)? at coldfusion.runtime.CfJspPage._compare(CfJspPage.java:273)? at cfApplication2ecfm726408707._factor5(D:\Websites\redacted.com\Application.cfm:3)? at cfApplication2ecfm726408707.runPage(D:\Websites\redacted.com\Application.cfm:521)? at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)? at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)? at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)? at coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:30)? at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:93)? at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)? at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)? at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)? at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)? at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)? at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)? at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)? at coldfusion.CfmServlet.service(CfmServlet.java:105)? at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)? at com.seefusion.Filter.doFilter(Filter.java:49)? at com.seefusion.SeeFusion.doFilter(SeeFusion.java:1494)? at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)? at jrun.servlet.FilterChain.service(FilterChain.java:101)? at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)? at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)? at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)? at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)? at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)? at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)? at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)? at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)? at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)?
  • 7. Debugging with Stack Traces Examples
  • 8. Recognizing Stack Elements Jrun.* - Jrun Ignore: jrun.servlet.jrpp.ProxyEndpoint.readFully Suspect: jrun.servlet.jrpp.JrppOutputStream$SpillStream.write Coldfusion.* Functions: coldfusion.runtime.CfJspPage.* Tags: coldfusion.tagext.sql.QueryTag Probably Innocent Java java.util.* java.lang.* Suspicious Java java.net.* java.io.* Your Code! cfApplication2ecfm726408707.runPage(D:\Websites\redacted.com\Application.cfm:577)?
  • 9. Gathering Stack Traces SeeFusion / SeeStack CF8 Enterprise Server Monitor jstack
  • 10. Summary Stack Traces are snapshots of threads Multiple traces may be needed to diagnose slow/hung threads Read thread stacks from bottom to top Look for code line numbers and keywords
  • 11. Q&A Daryl Banttari Analytics, Inc.