Skip to content
Novus Examples
log916 B

Java Stack Trace (log)

A realistic Java stack trace — a Spring-style NullPointerException with a nested 'Caused by' chain and '... N more' elision. A fixture for testing stack-trace parsers, error groupers, and log viewers.

Preview — first 12 lineslog
2026-01-15 10:22:41.882 ERROR 14872 --- [http-nio-8080-exec-3] c.e.api.OrderController  : Unhandled exception
java.lang.NullPointerException: Cannot invoke "com.example.model.Customer.getEmail()" because "customer" is null
	at com.example.api.OrderService.notify(OrderService.java:142)
	at com.example.api.OrderService.placeOrder(OrderService.java:88)
	at com.example.api.OrderController.create(OrderController.java:54)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:255)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1089)
Caused by: java.lang.IllegalStateException: customer lookup returned no rows for id=4021
	at com.example.api.CustomerRepository.findById(CustomerRepository.java:67)
	... 6 more

Specifications

Language
Java
Exception
NullPointerException
Has Caused By
true
Frames
8

What is a .log file?

LOG files are plain-text records of events emitted by software, typically one entry per line with a timestamp, severity, and message. There is no single standard, so formats range from unstructured text to structured JSON lines. They are central to debugging, monitoring, and auditing.

How to use this file

Use an example LOG file to test log parsers, timestamp and severity extraction, line-oriented streaming, and ingestion into monitoring or analysis pipelines.

Generated by generation/data_logs.py. Free for any use, no attribution required — license.