spring-projects / spring-projects/spring-ldap

Possible ClassCastException when creating ConversionServiceConverterManager

Open
#454 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
375
Forks
501
Avg merge
6h 4m
Merged PRs (30d)
63

Description

If GenericConversionService was loaded by WebappClassLoader and thread context classloader is, for example, activemq-osgi classloader, then ClassCastException will be thrown in https://github.com/spring-projects/spring-ldap/blob/master/core/src/main/java/org/springframework/ldap/odm/typeconversion/impl/ConversionServiceConverterManager.java#L45

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at core/src/main/java/org/springframework/ldap/odm/typeconversion/impl/ConversionServiceConverterManager.java#L45 and inspect how the GenericConversionService is obtained and cast. Reproduce the WebappClassLoader and activemq-osgi classloader combination, then verify the reported ClassCastException no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.