Milan Plancik opened SPR-14784 and commented
Dear team,
could you please have a look into following issue which occurs on Websphere liberty profile (last versioning naming convention for wlp says, that the version is 16.0.0.2)
I think simple web page with "hello world" should reproduce the issue, while executed on wlp.
Launching srv1 (WebSphere Application Server 16.0.0.2/wlp-1.0.13.cl160220160526-2258) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_40-b43 (en_US)
[AUDIT ] CWWKE0001I: The server srv1 has been launched.
[AUDIT ] CWWKE0100I: This product is licensed for development, and limited production use. The full license terms can be viewed here: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/license/base_ilan/ilan/16.0.0.2/lafiles/en.html
[WARNING ] CWWKS3103W: There are no users defined for the BasicRegistry configuration of ID basic.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[WARNING ] SRVE9967W: The manifest class path activation.jar can not be found in jar file file:/C:/work/was6/wlp/usr/servers/srv1/apps/expanded/web.war/WEB-INF/lib/mail-1.4.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path activation.jar can not be found in jar file file:/C:/work/was6/wlp/usr/servers/srv1/apps/expanded/web.war/WEB-INF/lib/mail-1.4.jar or its parent.
[ERROR ] CWWKS9582E: The [defaultSSLConfig] sslRef attributes required by the orb element with the defaultOrb id have not been resolved within 10 seconds. As a result, the applications will not start. Ensure that you have included a keyStore element and that Secure Sockets Layer (SSL) is configured correctly. If the sslRef is defaultSSLConfig, then add a keyStore element with the id defaultKeyStore and a password.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/webapp/
[AUDIT ] CWWKZ0001I: Application web started in 23,482 seconds.
[AUDIT ] CWWKF0012I: The server installed the following features: [mdb-3.2, webProfile-7.0, jaxrs-2.0, json-1.0, appSecurity-2.0, jpa-2.1, jaspic-1.1, distributedMap-1.0, jaxb-2.2, jaxws-2.2, ssl-1.0, jdbc-4.1, managedBeans-1.0, jsf-2.2, appClientSupport-1.0, jacc-1.5, ejbHome-3.2, wasJmsClient-2.0, cdi-1.2, wasJmsSecurity-1.0, jaxrsClient-2.0, ejbRemote-3.2, javaMail-1.5, batch-1.0, j2eeManagement-1.1, websocket-1.1, el-3.0, beanValidation-1.1, ejbPersistentTimer-3.2, jca-1.7, wasJmsServer-1.0, servlet-3.1, ejb-3.2, jsp-2.3, jndi-1.0, jsonp-1.0, concurrent-1.0, ejbLite-3.2, jcaInboundSecurity-1.0, javaee-7.0].
[AUDIT ] CWWKF0011I: The server srv1 is ready to run a smarter planet.
[WARNING ] @Bean
method ScopeConfiguration.stepScope is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired
, @Resource
and @PostConstruct
within the method's declaring @Configuration
class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @Bean
javadoc for complete details.
[WARNING ] @Bean
method ScopeConfiguration.jobScope is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired
, @Resource
and @PostConstruct
within the method's declaring @Configuration
class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @Bean
javadoc for complete details.
2016-10-03-14:21:44.000244 INFO [LargeThreadPool-thread-61] G10CdsToolDataSourceSpringConfig - G10SteeringDataSourceSpringConfig->DataSource=com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource@4072986e
2016-10-03-14:21:44.000923 INFO [LargeThreadPool-thread-61] G10CdsToolDataSourceSpringConfig - G10SteeringDataSourceSpringConfig->DataSource->Connection=com.ibm.ws.rsadapter.jdbc.WSJdbcConnection@3ef08ca9
2016-10-03-14:21:44.000927 INFO [LargeThreadPool-thread-61] G10CdsToolDataSourceSpringConfig - G10SteeringDataSourceSpringConfig->DataSource->Connection->Metadata->UserName=some user name
[WARNING ] org.springframework.batch.item.ItemStreamReader is an interface. The implementing class will not be queried for annotation based listener configurations. If using @StepScope
on a @Bean
method, be sure to return the implementing class so listner annotations can be used.
[ERROR ] SRVE0777E: Exception thrown by application class 'com.ibm.ws.http.channel.internal.outbound.HttpOutputStreamImpl.validate:203'
java.io.IOException: Stream is closed
at com.ibm.ws.http.channel.internal.outbound.HttpOutputStreamImpl.validate(HttpOutputStreamImpl.java:203)
at [internal classes]
at org.springframework.http.converter.AbstractGenericHttpMessageConverter.write(AbstractGenericHttpMessageConverter.java:101)
at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:232)
at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.handleReturnValue(RequestResponseBodyMethodProcessor.java:173)
at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:81)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:130)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at [internal classes]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at [internal classes]
thank you With regards milan
Affects: 4.3.3
1 votes, 6 watchers
Comment From: spring-projects-issues
Kazuki Shimizu commented
Hi Milan Plancik, did you solve this problem ?If you cannot solve this problem, i will suggest to push a repro project to the https://github.com/spring-projects/spring-framework-issues .
Thanks.
Comment From: spring-projects-issues
Kazuki Shimizu commented
Hi Sébastien Deleuze, I found a similar issue. see #18484. Is this related with this issue ?
Comment From: spring-projects-issues
Robert Blackwell commented
I found this same issue.
After reverting back several versions and testing each one, I was able to determine that the bug was introduced in the 4.1 branch. 4.0.9 is the latest version without the bug (as far as I am aware).
Comment From: spring-projects-issues
Sébastien Deleuze commented
Kazuki Shimizu Robert Blackwell I have downloaded WebSphere Liberty 17.0.0.2, generated a Spring Boot application via start.spring.io (with WAR packaging and Web dependency), created a simple @RestController
with a @GetMapping("/")
handler method that returns "foo"
but i can't reproduce this issue. Could you provide a repro project to allow me to see the issue?
Comment From: spring-projects-issues
Sébastien Deleuze commented
Without any additional feedback, I will have to close this issue. Please let me know if you can provide me a repro project before RC3.
Comment From: jblayneyXpanxion
I'm seeing this on WAS Liberty 19.0.0.11
You have to use a @PostMapping @sdeleuze