[
https://issues.jboss.org/browse/AS7-1288?page=com.atlassian.jira.plugin.s...
]
Ed Roberts commented on AS7-1288:
---------------------------------
I have had a very similar NPE stack pop out on 7.2.0.Alpha1, but slightly different line
numbers. Is this the same problem ?
{code}
2013-02-12 16:14:33,117 ERROR [stderr](vfs-shutdown) Exception in thread
"vfs-shutdown" java.lang.NullPointerException
2013-02-12 16:14:33,117 ERROR [stderr](vfs-shutdown) at
org.jboss.vfs.TempFileProvider$DeleteTask.run(TempFileProvider.java:151)
2013-02-12 16:14:33,117 ERROR [stderr](vfs-shutdown) at
org.jboss.vfs.TempFileProvider.close(TempFileProvider.java:132)
2013-02-12 16:14:33,117 ERROR [stderr](vfs-shutdown) at
org.jboss.osgi.vfs30.VirtualFileAdaptor30$2.run(VirtualFileAdaptor30.java:110)
{code}
The cause of the exception in this case is the org.jboss.osgi.vfs30.VirtualFileAdaptor30.
It creates a TempFileProvider with a null executor, then adds a Shutdown hook to call the
close method.
When the hook is triggered, if the first attempt to recursively delete the temporary
directory .../vfs/osgitmp* fails, the executor is asked to schedule another attempt, and
bang. Should the TempFileProvider throw an NPE if a null executor is passed in ?
NPE in thread "vfs-shutdown"
-----------------------------
Key: AS7-1288
URL:
https://issues.jboss.org/browse/AS7-1288
Project: Application Server 7
Issue Type: Bug
Components: VFS
Affects Versions: 7.0.0.Final
Environment: 7.1.0.Alpha1 Jenkins build 1402
Reporter: Juergen Zimmermann
Assignee: David Lloyd
Fix For: Open To Community
When I shutdown a standalone server I'm getting a NPE. The shutdown command is:
jboss-admin.bat --connect command=:shutdown
Console log:
...
18:24:55,990 INFO [org.jboss.as.logging] Restored bootstrap log handlers
18:24:55,990 INFO [org.jboss.as.jmx.JMXConnectorService] JMX remote connector stopped
18:24:56,075 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped:
jboss-as-osgi-configadmin:7.1.0.Alpha1-SNAPSHOT
18:24:56,125 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped:
org.apache.felix.log:1.0.0
18:24:56,230 INFO [org.apache.catalina.core.StandardContext] Container
org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/] has not been
started
18:24:56,286 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped:
org.apache.felix.configadmin:1.2.8
18:24:56,323 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped:
jboss-osgi-logging:1.0.0
18:24:56,330 INFO [com.arjuna.ats.jbossatx] ARJUNA32018: Destroying
TransactionManagerService
18:24:56,331 INFO [com.arjuna.ats.jbossatx] ARJUNA32014: Stopping transaction recovery
manager
18:24:56,368 ERROR [stderr] Exception in thread "vfs-shutdown"
java.lang.NullPointerException
18:24:56,368 ERROR [stderr] at
org.jboss.vfs.TempFileProvider$DeleteTask.run(TempFileProvider.java:151)
18:24:56,368 ERROR [stderr] at
org.jboss.vfs.TempFileProvider.close(TempFileProvider.java:132)
18:24:56,368 ERROR [stderr] at
org.jboss.osgi.vfs30.VirtualFileAdaptor30$2.run(VirtualFileAdaptor30.java:94)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira