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.
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.
How to use this file for testing
“Java Stack Trace (log)” is a deterministic Novus Examples fixture for Log parsing, Error handling. Access logs and JSON-lines application logs — for testing log parsers, tailers, and ingestion pipelines.
Documented properties for this file: Java. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.
Data fixtures document their exact quirks — delimiters, encodings, null handling, schema, and row counts — in the spec table. Point your parser or importer at the file and assert it handles the documented edge cases; clean and deliberately-messy siblings make before/after diffs straightforward.
Code examples
grep -i error stacktrace-java.log | head
awk '{print $1, $2, $NF}' stacktrace-java.log | headRelated files
- logLog Sample — App Json StructuredTiny SAMPLE log excerpt (app-json-structured) for parser and alert-rule tests.

- logLog Sample — Cloudflare Ray SampleTiny SAMPLE log excerpt (cloudflare-ray-sample) for parser and alert-rule tests.

- logLog Sample — Multiline StacktraceTiny SAMPLE log excerpt (multiline-stacktrace) for parser and alert-rule tests.

- logLog Sample — Nginx Access SampleTiny SAMPLE log excerpt (nginx-access-sample) for parser and alert-rule tests.

- logLog Sample — Nginx Error SampleTiny SAMPLE log excerpt (nginx-error-sample) for parser and alert-rule tests.

- logLog Sample — Systemd Journal ExcerptTiny SAMPLE log excerpt (systemd-journal-excerpt) for parser and alert-rule tests.

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