Open airclear opened 6 years ago
@danielfernandez
I'm sorry but I'm unable to verify your issue. Your demo application is hugely complex, with dozens of apparently unneeded dependencies, some of them included from repositories that I don't necessarily trust. Also, it does not compile because the DebugController
class contains a String
constant larger than allowed by the Java compiler (maybe the eclipse plugin does compile it, but javac
does not).
Also, your error is raised in a PropertyOrFieldReference
class from Spring that you explicitly replace with your own code for reasons you don't explain. The code seems to be based on a decompiled version of the Spring .class
file instead of the original source code (again, for no explained reasons), so it is too difficult for me to determine the reason for your changes or how they affect the exception being thrown.
Also, your @Controller
method has a @ResponseBody
annotation meant for returning payloads, but you are returning a ModelAndView
specifying a view to be rendered.
I spent more than an hour removing dependencies, moving that huge String
to an external file, adding code for reading that external file, invalidating your PropertyOrFieldReference
implementation… and even then, when deploying the application to a Tomcat 8.5 server the /debug/index2
URL raises a 404 error, so I finally gave up. I don't have a Jetty server and that shouldn't be a factor for an issue like that to arise
Could you please provide a smaller, working test application to demonstrate this issue? Spring-Boot based would be ideal so that no additional deployment work is needed, but anyway it would be fine if it is a .war but at least it compiles, deploys and runs as expected.
@danielfernandez
sorry for waste your time,
I tried to build spring-boot application , but I can't recur the exception when I use spring-boot,
so I cut my project to a small size , and keep it can recur the exception... and that is the demo.zip
anyway, I will rebuild the demo application . see you .
@rtack
ENV
OS: OSX JAVA: 1.8.0_144 Eclipse: Oxygen.1a Release (4.7.1a) Container: Eclipse Jetty 3.9.0 Thymeleaf: 3.0.9.RELEASE Thymeleaf-spring4: 3.0.9.RELEASE
DEMO
demo: demo.zip run: Use
Eclipse Jetty 3.9.0
Test command:
Exception
resolve it in an ugly way
modify template
blocks.html
,change the var name frombox
tobox111
what's the complete solution?