dev@glassfish.java.net

Re: [V3] NPE and other problems stopping domain started via 'java -jar'

From: Sahoo <sahoo_at_sun.com>
Date: Thu, 07 Aug 2008 01:22:22 +0530

If I remember correctly, I have seen this issue long back. My analysis
at that point was our shutdown sequence was not correct. I don't know if
the team responsible for that code path did something or not.

Thanks,
Sahoo

Marina Vatkina wrote:
> This happens on the newly unzipped web.zip. (my ws is at rev 21598)
>
> If I start GF using 'java -jar' and on another shell do
> 'glassfish/bin/asadmin stop-domain', I see the stack trace [1] on the
> 1st screen.
>
> If I start GF, and then run QL, with it's process of stopping the
> domain I'd get zillions of stack traces [2] or similar, and then
> message [3].
>
> thanks,
> -marina
>
> [1]
> SEVERE: java.lang.NullPointerException
> Aug 6, 2008 10:42:07 AM
> SEVERE: at
> org.apache.felix.framework.Felix._uninstallBundle(Felix.java:2120)
> Aug 6, 2008 10:42:07 AM
> SEVERE: at
> org.apache.felix.framework.Felix.uninstallBundle(Felix.java:2078)
> Aug 6, 2008 10:42:07 AM
> SEVERE: at
> org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:415)
> Aug 6, 2008 10:42:07 AM
> SEVERE: at
> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.uninstall(OSGiModuleImpl.java:184)
>
> Aug 6, 2008 10:42:07 AM
> SEVERE: at
> org.jvnet.hk2.osgiadapter.OSGiModulesRegistryImpl.shutdown(OSGiModulesRegistryImpl.java:141)
>
> Aug 6, 2008 10:42:07 AM
> SEVERE: at
> com.sun.enterprise.v3.services.impl.HouseKeeper.preDestroy(HouseKeeper.java:64)
>
> Aug 6, 2008 10:42:07 AM
> SEVERE: at
> com.sun.hk2.component.AbstractWombInhabitantImpl.dispose(AbstractWombInhabitantImpl.java:74)
>
> Aug 6, 2008 10:42:07 AM
> SEVERE: at
> com.sun.hk2.component.SingletonInhabitant.release(SingletonInhabitant.java:66)
>
> Aug 6, 2008 10:42:07 AM
> SEVERE: at
> com.sun.hk2.component.LazyInhabitant.release(LazyInhabitant.java:112)
> Aug 6, 2008 10:42:07 AM
> SEVERE: at
> com.sun.enterprise.v3.admin.StopDomainCommand.execute(StopDomainCommand.java:78)
>
> Aug 6, 2008 10:42:07 AM
> SEVERE: at
> com.sun.enterprise.v3.admin.CommandRunner$2.run(CommandRunner.java:298)
>
> [2]
> INFO: ERROR: Error writing persistent state to bundle archive.
> (java.io.FileNotFoundException:
> /export/v3/gfs/glassfish/domains/domain1/.felix/gf/bundle8/bundle.state
> (No such file or directory))
> Aug 6, 2008 10:40:44 AM
> SEVERE: java.io.FileNotFoundException:
> /export/v3/gfs/glassfish/domains/domain1/.felix/gf/bundle8/bundle.state
> (No such file or directory)
> Aug 6, 2008 10:40:44 AM
> SEVERE: at java.io.FileOutputStream.open(Native Method)
> Aug 6, 2008 10:40:44 AM
> SEVERE: at
> java.io.FileOutputStream.<init>(FileOutputStream.java:179)
> Aug 6, 2008 10:40:44 AM
> SEVERE: at
> java.io.FileOutputStream.<init>(FileOutputStream.java:131)
> Aug 6, 2008 10:40:44 AM
> SEVERE: at
> org.apache.felix.framework.util.SecureAction.getFileOutputStream(SecureAction.java:365)
>
> Aug 6, 2008 10:40:44 AM
> SEVERE: at
> org.apache.felix.framework.cache.BundleArchive.setPersistentState(BundleArchive.java:352)
>
> Aug 6, 2008 10:40:44 AM
> SEVERE: at
> org.apache.felix.framework.BundleInfo.setPersistentStateUninstalled(BundleInfo.java:442)
>
> Aug 6, 2008 10:40:44 AM
> SEVERE: at
> org.apache.felix.framework.Felix._uninstallBundle(Felix.java:2128)
>
> [3]
> INFO: ERROR: Error stopping bundle. (java.lang.IllegalStateException:
> Queue full)
> Aug 6, 2008 10:40:44 AM
> SEVERE: java.lang.IllegalStateException: Queue full
> Aug 6, 2008 10:40:44 AM com.sun.enterprise.v3.admin.CommandRunner$2 run
> SEVERE: Queue full
> java.lang.IllegalStateException: Queue full
> at java.util.AbstractQueue.add(AbstractQueue.java:64)
> at
> com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:503)
>
> at java.util.logging.Logger.log(Logger.java:452)
> at java.util.logging.Logger.doLog(Logger.java:474)
> at java.util.logging.Logger.logp(Logger.java:590)
> at
> com.sun.common.util.logging.LoggingOutputStream.flush(LoggingOutputStream.java:90)
>
> at java.io.PrintStream.write(PrintStream.java:414)
> at
> sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
> at
> sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
>
> at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:115)
> at
> java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:169)
> at java.io.PrintStream.write(PrintStream.java:459)
> at java.io.PrintStream.print(PrintStream.java:616)
> at java.io.PrintStream.println(PrintStream.java:753)
> at
> org.apache.jasper.util.SystemLogHandler.println(SystemLogHandler.java:258)
>
> at
> org.apache.jasper.util.SystemLogHandler.println(SystemLogHandler.java:258)
>
> at java.lang.Throwable.printStackTrace(Throwable.java:462)
> at java.lang.Throwable.printStackTrace(Throwable.java:452)
> at
> com.sun.enterprise.v3.admin.StopDomainCommand.execute(StopDomainCommand.java:80)
>
> at
> com.sun.enterprise.v3.admin.CommandRunner$2.run(CommandRunner.java:298)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>