Skip to content

Conversation

@felixbarny
Copy link
Member

Spotted in a log, running version 1.15.0:

java.lang.NullPointerException at co.elastic.apm.agent.matcher.WildcardMatcher$SimpleWildcardMatcher.indexOf(WildcardMatcher.java:387) at co.elastic.apm.agent.matcher.WildcardMatcher$SimpleWildcardMatcher.matches(WildcardMatcher.java:376) at co.elastic.apm.agent.servlet.ServletTransactionHelper.applyDefaultTransactionName(ServletTransactionHelper.java:194) at co.elastic.apm.agent.servlet.ServletTransactionHelper.doOnAfter(ServletTransactionHelper.java:186) at co.elastic.apm.agent.servlet.ServletTransactionHelper.onAfter(ServletTransactionHelper.java:164) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79) 
Copy link
Contributor

@eyalkoren eyalkoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It means we will have an extra space at the end of the transaction name -

. Do we care?

String servletPath, @Nullable String pathInfo, @Nullable String contentTypeHeader, boolean deactivate) {
@Nullable String servletPath, @Nullable String pathInfo, @Nullable String contentTypeHeader, boolean deactivate) {
if (servletPath == null) {
// the servlet path is specified as non-null but WebLogic does return null...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Classic...

@felixbarny felixbarny merged commit 849260b into elastic:master Apr 16, 2020
@felixbarny felixbarny deleted the fix-weblogic-npe branch April 16, 2020 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants