On 11 February 2014 23:26, Dan Tran <dant...@gmail.com> wrote:

> Thanks Stuart for this confirmation, I am seeing this exact issue happen on
> both 3.1.x and 3.2. My build uses truezip-maven-plugin
>

Yep, TrueZip will leave a JVM shutdown hook registered unless you
explicitly unmount the virtual file system after you're done with it - in
most cases this is just an oversight and unmounting will also help conserve
resources, see example in
https://github.com/klieber/phantomjs-maven-plugin/pull/19/files


> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 19.347s
> [INFO] Finished at: Tue Feb 11 15:24:26 PST 2014
> [INFO] Final Memory: 33M/698M
> [INFO]
> ------------------------------------------------------------------------
> java.lang.NoClassDefFoundError: de/schlichtherle/truezip/fs/FsSyncOptions
>         at
>
> de.schlichtherle.truezip.fs.FsSyncShutdownHook$Hook.run(FsSyncShutdownHook.java:93)
> Caused by: java.lang.ClassNotFoundException:
> de.schlichtherle.truezip.fs.FsSyncOptions
>         at
>
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.ja
> va:50)
>         at
>
> org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:
> 259)
>         at
>
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
>         at
>
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
>         ... 1 more
>
>
> On Tue, Feb 11, 2014 at 3:20 PM, Stuart McCulloch <mccu...@gmail.com>
> wrote:
>
> > On 11 February 2014 22:15, Olivier Lamy <ol...@apache.org> wrote:
> >
> > > Noticed this non blocking issue when using activemq plugin to start an
> > > activemq instance:
> > >
> > > [INFO] BUILD SUCCESS
> > >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > [INFO] Total time: 17.840s
> > >
> > > [INFO] Finished at: Wed Feb 12 09:12:23 EST 2014
> > >
> > > [INFO] Final Memory: 33M/733M
> > >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > [INFO] Apache ActiveMQ 5.9.0 (localhost,
> > > ID:mb-olamy.local-49682-1392156741632-0:1) is shutting down
> > >
> > > [INFO] Connector tcp://localhost:49681 stopped
> > >
> > > Exception in thread "ActiveMQ ShutdownHook"
> > > java.lang.NoClassDefFoundError:
> > > org/apache/activemq/transport/vm/VMTransportFactory
> > >
> >
> > I suspect this is related to the change in Classworlds 2.4.1+ to use the
> > new ClassLoader.close() method available in Java7 to forcibly close
> plugin
> > ClassLoaders when the plugin/container realm is disposed. This happens
> > after the Maven build is finished, but before JVM shutdown hooks run.
> >
> > Any plugin that registers a JVM shutdown hook which tries to load
> > classes/resources from the original plugin realm will throw a NCDFE -
> > you'll probably see similar issues if a plugin forks threads that are
> still
> > running after the plugin/container realm has been disposed and
> subsequently
> > try to load classes.
> >
> > ( note that the same error will likely occur with Maven 3.1.1 since it
> uses
> > the same version of Classworlds )
> >
> >
> > > at
> org.apache.activemq.broker.BrokerService.stop(BrokerService.java:733)
> > >
> > > at
> > >
> >
> org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:2348)
> > >
> > > at
> > org.apache.activemq.broker.BrokerService$6.run(BrokerService.java:2315)
> > >
> > > Caused by: java.lang.ClassNotFoundException:
> > > org.apache.activemq.transport.vm.VMTransportFactory
> > >
> > > at
> > >
> >
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> > >
> > > at
> > >
> >
> org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
> > >
> > > at
> > >
> >
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
> > >
> > > at
> > >
> >
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
> > >
> > > ... 3 more
> > >
> > > Not blocker as it work as expected but just a bit annoying
> > >
> > > On 12 February 2014 07:37, Jason van Zyl <ja...@takari.io> wrote:
> > > > Couple issues cropped up so I'm canceling the vote.
> > > >
> > > > On Feb 10, 2014, at 9:18 PM, Jason van Zyl <ja...@takari.io> wrote:
> > > >
> > > >> Hi,
> > > >>
> > > >> Time to release Maven 3.2.0!
> > > >>
> > > >> Here is a link to Jira with 33 issues resolved:
> > > >>
> > >
> >
> https://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10500&version=15565
> > > >>
> > > >> Staging repo:
> > > >> https://repository.apache.org/content/repositories/maven-1005/
> > > >>
> > > >> The distributable binaries and sources for testing can be found
> here:
> > > >>
> > >
> >
> https://repository.apache.org/content/repositories/maven-1005/org/apache/maven/apache-maven/3.2.0/
> > > >>
> > > >> Specifically the zip, tarball, and source archives can be found
> here:
> > > >>
> > >
> >
> https://repository.apache.org/content/repositories/maven-1005/org/apache/maven/apache-maven/3.2.0/apache-maven-3.2.0-bin.zip
> > > >>
> > >
> >
> https://repository.apache.org/content/repositories/maven-1005/org/apache/maven/apache-maven/3.2.0/apache-maven-3.2.0-bin.tar.gz
> > > >>
> > >
> >
> https://repository.apache.org/content/repositories/maven-1005/org/apache/maven/apache-maven/3.2.0/apache-maven-3.2.0-src.zip
> > > >>
> > >
> >
> https://repository.apache.org/content/repositories/maven-1005/org/apache/maven/apache-maven/3.2.0/apache-maven-3.2.0-src.tar.gz
> > > >>
> > > >> Source release checksum(s):
> > > >> apache-maven-3.2.0-src.zip sha1:
> > > 4bc1ad352c07eef6e6b92c4923d1578d813bc57b
> > > >>
> > > >> Staging site:
> > > >> http://people.apache.org/~jvanzyl/maven-3.2.0/
> > > >>
> > > >> Vote open for 72 hours.
> > > >>
> > > >> [ ] +1
> > > >> [ ] +0
> > > >> [ ] -1
> > > >>
> > > >> Thanks,
> > > >>
> > > >> The Maven Team
> > > >> Thanks,
> > > >>
> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> > > >> For additional commands, e-mail: dev-h...@maven.apache.org
> > > >>
> > > >
> > > > Thanks,
> > > >
> > > > Jason
> > > >
> > > > ----------------------------------------------------------
> > > > Jason van Zyl
> > > > Founder,  Apache Maven
> > > > http://twitter.com/jvanzyl
> > > > http://twitter.com/takari_io
> > > > ---------------------------------------------------------
> > > >
> > > > A language that doesn't affect the way you think about programming is
> > > not worth knowing.
> > > >
> > > >  -- Alan Perlis
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Olivier Lamy
> > > Ecetera: http://ecetera.com.au
> > > http://twitter.com/olamy | http://linkedin.com/in/olamy
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: dev-h...@maven.apache.org
> > >
> > >
> >
> >
> > --
> > Cheers, Stuart
> >
>



-- 
Cheers, Stuart

Reply via email to