[INFO] GCLOUD: Caused by:
[INFO] GCLOUD: org.springframework.aop.framework.AopConfigException: Unable to instantiate proxy using Objenesis, and regular proxy instantiation via default constructor fails as well; nested exception is java.lang.InstantiationException: org.springframework.boot.autoconfigure.web.HttpMessageConverters$$EnhancerBySpringCGLIB$$3ba87c15
[INFO] GCLOUD: at org.springframework.aop.framework.ObjenesisCglibAopProxy.createProxyClassAndInstance(ObjenesisCglibAopProxy.java:76)
[INFO] GCLOUD: at org.springframework.aop.framework.CglibAopProxy.getProxy(CglibAopProxy.java:201)
[INFO] GCLOUD: at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:109)
[INFO] GCLOUD: at
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/0cea8630-241b-4db9-92fa-8c988740791c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<error.txt>
People from the future:
Note the problem was resolved, and it amounts to spring controls logging, the plugin looks for logs. To unblock this, one just needs to prevent Java util logging being redirected to slf4j. This is addressed in the comments below.
Origional bug report:
Eclipse doesn't realise when a spring boot application is started.
Expected result: eclipse shows the project as started.
Actual result: eclipse shows the project as starting. However you can navigate to endpoints and see the application running correctly. And the application logs indicate that the server has started.
Replication steps:
Add spring-boot-starter-web as a dependency.
Add a SpringBootServletInitializer
Run/Debug as an appEngine project.
import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer;import org.springframework.boot.builder.SpringApplicationBuilder;import org.springframework.boot.web.support.SpringBootServletInitializer;
@SpringBootApplicationpublic class Example extends SpringBootServletInitializer {
public Example() { System.out.println("hello from example"); }
@Override protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { System.out.println("----INIT"); SpringApplicationBuilder result = application.sources(Example.class); System.out.println("----END INIT"); return application; }}
The workaround should be fixed in Spring 4.3.10
If you are still affected after implementing the workaround, please feel free to comment on the GitHub links maintained by the Spring experts.