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
I use this code in a EJB context in the glassfish 3.1 server
SimpleJdbcTestUtils.executeSqlScript(new SimpleJdbcTemplate(
new SingleConnectionDataSource(jdbcConnection, true)),
new ClassPathResource("script.sql"), false);
There is not failure, but the following warning :
24 nov. 2011 15:27:28 com.sun.enterprise.loader.ASURLClassLoader$SentinelInputStream report
ATTENTION: Input stream has been finalized or forced closed without being explicitly closed; stream instantiation reported in following stack trace
java.lang.Throwable
at com.sun.enterprise.loader.ASURLClassLoader$SentinelInputStream.<init>(ASURLClassLoader.java:1230)
at com.sun.enterprise.loader.ASURLClassLoader.getResourceAsStream(ASURLClassLoader.java:878)
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:155)
at org.springframework.core.io.support.EncodedResource.getReader(EncodedResource.java:92)
at org.springframework.test.jdbc.SimpleJdbcTestUtils.executeSqlScript(SimpleJdbcTestUtils.java:139)
at org.springframework.test.jdbc.SimpleJdbcTestUtils.executeSqlScript(SimpleJdbcTestUtils.java:113)
at com.cs.services.bcmonitoring.itests.init.DbInitializerBean.initDb(DbInitializerBean.java:45)
I tried to just close it by myself, but it's a completely internal object that can't be accessed by the caller.
Affects: 3.0.6, 3.1 RC1
The text was updated successfully, but these errors were encountered:
Mickaël LEDUQUE opened SPR-8872 and commented
I use this code in a EJB context in the glassfish 3.1 server
SimpleJdbcTestUtils.executeSqlScript(new SimpleJdbcTemplate(
new SingleConnectionDataSource(jdbcConnection, true)),
new ClassPathResource("script.sql"), false);
There is not failure, but the following warning :
24 nov. 2011 15:27:28 com.sun.enterprise.loader.ASURLClassLoader$SentinelInputStream report
ATTENTION: Input stream has been finalized or forced closed without being explicitly closed; stream instantiation reported in following stack trace
java.lang.Throwable
at com.sun.enterprise.loader.ASURLClassLoader$SentinelInputStream.<init>(ASURLClassLoader.java:1230)
at com.sun.enterprise.loader.ASURLClassLoader.getResourceAsStream(ASURLClassLoader.java:878)
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:155)
at org.springframework.core.io.support.EncodedResource.getReader(EncodedResource.java:92)
at org.springframework.test.jdbc.SimpleJdbcTestUtils.executeSqlScript(SimpleJdbcTestUtils.java:139)
at org.springframework.test.jdbc.SimpleJdbcTestUtils.executeSqlScript(SimpleJdbcTestUtils.java:113)
at com.cs.services.bcmonitoring.itests.init.DbInitializerBean.initDb(DbInitializerBean.java:45)
I tried to just close it by myself, but it's a completely internal object that can't be accessed by the caller.
Affects: 3.0.6, 3.1 RC1
The text was updated successfully, but these errors were encountered: