Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No serializer found for class com.navercorp.pinpoint.common.util.DelegateEnumeration #11695

Open
HiroC222 opened this issue Nov 8, 2024 · 3 comments
Labels

Comments

@HiroC222
Copy link

HiroC222 commented Nov 8, 2024

What version of pinpoint are you using?

2.5.3
jdk 1.8.0.212

Describe your problem

An error is reported when the project runtime of the SpringBoot architecture is generated.
Is this a compatibility issue?

Logs

2024-11-08 12:54:15.648 | ERROR| http-nio-10201-exec-5 | controller:doBefore#92 | doBefore obj to json exception obj=org.apache.catalina.connector.RequestFacade@6876ef73,msg={}
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class com.navercorp.pinpoint.common.util.DelegateEnumeration and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: org.apache.catalina.connector.RequestFacade["headerNames"])
at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77)
at com.fasterxml.jackson.databind.SerializerProvider.reportBadDefinition(SerializerProvider.java:1277)
at com.fasterxml.jackson.databind.DatabindContext.reportBadDefinition(DatabindContext.java:400)
at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:71)
at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:33)
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:728)
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:755)

@emeroad
Copy link
Member

emeroad commented Nov 8, 2024

Can you please post the reproduction code?

Workaround

pinpoint.config

# Hide pinpoint headers.
profiler.tomcat.hidepinpointheader=true <<-- modify to disable

After modifying the above settings, pinpoint headers can be detected in tomcat header.

@emeroad emeroad added the bug label Nov 8, 2024
@HiroC222
Copy link
Author

HiroC222 commented Nov 8, 2024

Can you please post the reproduction code?

Workaround

pinpoint.config

# Hide pinpoint headers.
profiler.tomcat.hidepinpointheader=true <<-- modify to disable

After modifying the above settings, pinpoint headers can be detected in tomcat header.

thx I'll modify the config later, give it a try

@HiroC222
Copy link
Author

It didn't work, here is my config

profiler.tomcat.hidepinpointheader=false
profiler.jetty.hidepinpointheader=true
profiler.jboss.hidepinpointheader=true
profiler.resin.hidepinpointheader=true
profiler.weblogic.hidepinpointheader=true
profiler.websphere.hidepinpointheader=true
profiler.vertx.http.server.hidepinpointheader=true
profiler.undertow.hidepinpointheader=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants