Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1022

Undeploying an EAR with Tapestry causing an InputStream exception in Glassfish 2.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 5.1.0.5
    • None
    • tapestry-ioc
    • None

    Description

      When I try to undeploy my EAR application that contains Tapestry, an exception is thrown as the stackTrace below shows. But, at least, the application could be undeploy without any consequences.

      [#|2010-02-19T10:09:16.972+0100|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpWorkerThread-14848-1;|
      SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@1adaaab0|#]

      [#|2010-02-19T10:09:18.152+0100|WARNING|sun-appserver2.1|javax.enterprise.system.core.classloading|_ThreadID=15;_ThreadName=httpWorkerThread-14848-1;_RequestID=f985072a-1db3-4c5f-bb85-88434104dbd2;|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.EJBClassLoader$SentinelInputStream.<init>(EJBClassLoader.java:1166)
      at com.sun.enterprise.loader.EJBClassLoader$InternalJarURLConnection.getInputStream(EJBClassLoader.java:1259)
      at java.net.URL.openStream(URL.java:1010)
      at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1232)
      at com.sun.enterprise.loader.EJBClassLoader.getResourceAsStream(EJBClassLoader.java:796)
      at org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClassLoader.java:1288)
      at org.apache.tapestry5.VersionUtils.readVersionNumber(VersionUtils.java:43)
      at org.apache.tapestry5.services.TapestryModule.contributeFactoryDefaults(TapestryModule.java:2007)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tapestry5.ioc.internal.ContributionDefImpl.invokeMethod(ContributionDefImpl.java:110)
      at org.apache.tapestry5.ioc.internal.ContributionDefImpl.contribute(ContributionDefImpl.java:71)
      at org.apache.tapestry5.ioc.internal.RegistryImpl$4.run(RegistryImpl.java:470)
      at org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(OperationTrackerImpl.java:52)
      at org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(OperationTrackerImpl.java:50)
      at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68)
      at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationTrackerImpl.java:48)
      at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.run(PerThreadOperationTracker.java:56)
      at org.apache.tapestry5.ioc.internal.RegistryImpl.addToMappedConfiguration(RegistryImpl.java:466)
      at org.apache.tapestry5.ioc.internal.RegistryImpl.getMappedConfiguration(RegistryImpl.java:416)
      at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$3.invoke(ServiceResourcesImpl.java:126)
      at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$3.invoke(ServiceResourcesImpl.java:124)
      at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68)
      at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68)
      at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:941)
      at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl.getMappedConfiguration(ServiceResourcesImpl.java:120)
      at org.apache.tapestry5.ioc.internal.AbstractServiceCreator.getMappedConfiguration(AbstractServiceCreator.java:142)
      at org.apache.tapestry5.ioc.internal.AbstractServiceCreator.access$300(AbstractServiceCreator.java:35)
      at org.apache.tapestry5.ioc.internal.AbstractServiceCreator$1.findResource(AbstractServiceCreator.java:107)
      at org.apache.tapestry5.ioc.internal.util.DelegatingInjectionResources.findResource(DelegatingInjectionResources.java:38)
      at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateInjection(InternalUtils.java:201)
      at org.apache.tapestry5.ioc.internal.util.InternalUtils.access$000(InternalUtils.java:43)
      at org.apache.tapestry5.ioc.internal.util.InternalUtils$2.invoke(InternalUtils.java:256)
      at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68)
      at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68)
      at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:941)
      at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParameters(InternalUtils.java:260)
      at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParametersForConstructor(InternalUtils.java:227)
      at org.apache.tapestry5.ioc.internal.ConstructorServiceCreator.createObject(ConstructorServiceCreator.java:56)
      at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
      at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68)
      at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68)
      at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:941)
      at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
      at org.apache.tapestry5.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29)
      at org.apache.tapestry5.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:46)
      at org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:60)
      at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
      at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68)
      at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68)
      at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:941)
      at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
      at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:68)
      at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:57)
      at $SymbolProvider_126e57ceacd.delegate($SymbolProvider_126e57ceacd.java)
      at $SymbolProvider_126e57ceacd.valueForSymbol($SymbolProvider_126e57ceacd.java)
      at org.apache.tapestry5.ioc.internal.services.SymbolSourceImpl$SymbolExpansion.expandSymbol(SymbolSourceImpl.java:123)
      at org.apache.tapestry5.ioc.internal.services.SymbolSourceImpl$SymbolExpansion.valueForSymbol(SymbolSourceImpl.java:99)
      at org.apache.tapestry5.ioc.internal.services.SymbolSourceImpl.valueForSymbol(SymbolSourceImpl.java:214)
      at $SymbolSource_126e57ceac7.valueForSymbol($SymbolSource_126e57ceac7.java)
      at org.apache.tapestry5.internal.TapestryAppInitializer.announceStartup(TapestryAppInitializer.java:177)
      at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:93)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:273)
      at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:385)
      at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:119)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4498)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:5317)
      at com.sun.enterprise.web.WebModule.start(WebModule.java:353)
      at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
      at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
      at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
      at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:192)
      at com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1742)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1247)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:971)
      at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
      at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
      at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:637)

      #]

      [#|2010-02-19T10:09:18.156+0100|INFO|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=15;_ThreadName=httpWorkerThread-14848-1;mysample-ear-1.0-SNAPSHOT;|CORE5022: All ejb(s) of [mysample-ear-1.0-SNAPSHOT] were unloaded successfully!|#]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              prevole Laurent Prévost
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: