You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eventually, the result like org/springextensions/gef/serializationCommandResponseInstantiator$Synthetic2, is incorrect.
Note there is supposed to be a slash (/) between serialization and Command actually.
Expected result would be like org/springextensions/gef/serialization/CommandResponseInstantiator$Synthetic2 instead.
Next, it will replace all of the slashes (/) by dots (.) and then try to load the class by the string, which leads to ClassNotFoundException further.
Example error message
The message below was generated by a simple project powered by spring-boot-starter-web, spring-data-geode and geode-core which does nothing other than just starting up.
Uh oh!
There was an error while loading. Please reload this page.
Description
It is trying to get a fully qualified class name, using the package (
PKG
) joined by (+
) the simple class name (clazz.getSimpleName()
) as below.spring-data-geode/spring-data-geode/src/main/java/org/springframework/data/gemfire/serialization/AsmInstantiatorGenerator.java
Line 172 in 544656e
However, there is no separator, i.e. slash (
/
) between the package and the class.Furthermore, there is also no trailing slash (
/
) for the package which is defined as below.spring-data-geode/spring-data-geode/src/main/java/org/springframework/data/gemfire/serialization/AsmInstantiatorGenerator.java
Line 48 in 544656e
Eventually, the result like
org/springextensions/gef/serializationCommandResponseInstantiator$Synthetic2
, is incorrect.Note there is supposed to be a slash (
/
) betweenserialization
andCommand
actually.Expected result would be like
org/springextensions/gef/serialization/CommandResponseInstantiator$Synthetic2
instead.Next, it will replace all of the slashes (
/
) by dots (.
) and then try to load the class by the string, which leads toClassNotFoundException
further.Example error message
The message below was generated by a simple project powered by
spring-boot-starter-web
,spring-data-geode
andgeode-core
which does nothing other than just starting up.Test case
Currently the test case is just simply checking for the symbol of inner class (
$
) as below, with no further validation.spring-data-geode/spring-data-geode/src/test/java/org/springframework/data/gemfire/serialization/AsmInstantiatorFactoryTest.java
Lines 72 to 76 in 544656e
The text was updated successfully, but these errors were encountered: