You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by David Van Couvering <da...@vancouvering.com> on 2010/06/19 05:57:02 UTC

Hanging forever on database bootup during unit testing

I have a bunch of unit tests that I run as a suite.  The first test that
tries to boot up the Derby database hangs, with the CPU spiked at 100%.
 When I stop the process, here is where it is stuck, repeatedly (see stack
trace below).

When I run the same test by itself, it's slow to boot, but it doesn't hang.
 The database is small, it actually has no rows in it.

Any ideas?  Should I be reverting back to 10.4? I seem to be having a lot of
issues with 10.5 and booting/shutdown.  This is a serious problem; if it
happens in production it will be a Very Big Deal.

Thanks,

David

Thread [main] (Suspended)
ZipFile$1(InflaterInputStream).<init>(InputStream, Inflater, int) line: not
available
 ZipFile$1.<init>(ZipFile, InputStream, Inflater, int,
ZipFile$ZipFileInputStream) line: not available
 JarFile(ZipFile).getInputStream(String) line: not available
JarFile(ZipFile).getInputStream(ZipEntry) line: not available
 JarFile.getManifestFromReference() line: not available
JarFile.getManifest() line: not available
 URLClassPath$JarLoader$2.getManifest() line: not available
Launcher$AppClassLoader(URLClassLoader).defineClass(String, Resource) line:
not available
 URLClassLoader.access$000(URLClassLoader, String, Resource) line: not
available
URLClassLoader$1.run() line: not available
 AccessController.doPrivileged(PrivilegedExceptionAction<T>,
AccessControlContext) line: not available [native method]
 Launcher$AppClassLoader(URLClassLoader).findClass(String) line: not
available
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: not
available
 Launcher$AppClassLoader.loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not available
 Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: not
available
Class<T>.forName0(String, boolean, ClassLoader) line: not available [native
method]
 Class<T>.forName(String) line: not available
FileMonitor(BaseMonitor).getImplementations(Properties, boolean) line: not
available
 FileMonitor(BaseMonitor).getDefaultImplementations() line: not available
FileMonitor(BaseMonitor).runWithState(Properties, PrintStream) line: not
available
 FileMonitor.<init>(Properties, PrintStream) line: not available
Monitor.startMonitor(Properties, PrintStream) line: not available
 JDBCBoot.boot(String, PrintStream) line: not available
EmbeddedDriver.boot() line: not available
 EmbeddedDriver.<clinit>() line: not available
AutoloadedDriver.getDriverModule() line: not available
 AutoloadedDriver.connect(String, Properties) line: not available
DriverManager.getConnection(String, Properties, ClassLoader) line: not
available
 DriverManager.getConnection(String, String, String) line: not available


-- 
David W. Van Couvering

http://www.linkedin.com/in/davidvc
http://davidvancouvering.blogspot.com
http://twitter.com/dcouvering

Re: Hanging forever on database bootup during unit testing

Posted by David Van Couvering <da...@vancouvering.com>.
Hm, OK, thanks for the tip, it's good to know what direction to look into.

I'm not on that dev machine now, and I have to see what Eclipse is using,
but it's a version of Java 6 on XP.

David

On Sat, Jun 19, 2010 at 7:38 AM, Kathey Marsden <kmarsdenderby@sbcglobal.net
> wrote:

>  On 6/18/2010 8:57 PM, David Van Couvering wrote:
>
> I have a bunch of unit tests that I run as a suite.  The first test that
> tries to boot up the Derby database hangs, with the CPU spiked at 100%.
>  When I stop the process, here is where it is stuck, repeatedly (see stack
> trace below).
>
> It looks like it is the jvm having trouble just extracting  from the jar
> file, so I am doubtful that changing your Derby version would help.  I am
> curious the platform and jvm versions and if this problem began with with a
> change of either.
>
>
>
>
>  Thread [main] (Suspended)
>  ZipFile$1(InflaterInputStream).<init>(InputStream, Inflater, int) line:
> not available
>  ZipFile$1.<init>(ZipFile, InputStream, Inflater, int,
> ZipFile$ZipFileInputStream) line: not available
>  JarFile(ZipFile).getInputStream(String) line: not available
>  JarFile(ZipFile).getInputStream(ZipEntry) line: not available
>  JarFile.getManifestFromReference() line: not available
>  JarFile.getManifest() line: not available
>  URLClassPath$JarLoader$2.getManifest() line: not available
>  Launcher$AppClassLoader(URLClassLoader).defineClass(String, Resource)
> line: not available
>  URLClassLoader.access$000(URLClassLoader, String, Resource) line: not
> available
>  URLClassLoader$1.run() line: not available
>  AccessController.doPrivileged(PrivilegedExceptionAction<T>,
> AccessControlContext) line: not available [native method]
>  Launcher$AppClassLoader(URLClassLoader).findClass(String) line: not
> available
>  Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: not
> available
>  Launcher$AppClassLoader.loadClass(String, boolean) line: not available
>  Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not
> available
>  Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: not
> available
>  Class<T>.forName0(String, boolean, ClassLoader) line: not available
> [native method]
>  Class<T>.forName(String) line: not available
>  FileMonitor(BaseMonitor).getImplementations(Properties, boolean) line:
> not available
>  FileMonitor(BaseMonitor).getDefaultImplementations() line: not available
>  FileMonitor(BaseMonitor).runWithState(Properties, PrintStream) line: not
> available
>  FileMonitor.<init>(Properties, PrintStream) line: not available
>  Monitor.startMonitor(Properties, PrintStream) line: not available
>  JDBCBoot.boot(String, PrintStream) line: not available
>  EmbeddedDriver.boot() line: not available
>  EmbeddedDriver.<clinit>() line: not available
>  AutoloadedDriver.getDriverModule() line: not available
>  AutoloadedDriver.connect(String, Properties) line: not available
>  DriverManager.getConnection(String, Properties, ClassLoader) line: not
> available
>  DriverManager.getConnection(String, String, String) line: not available
>
>
> --
> David W. Van Couvering
>
> http://www.linkedin.com/in/davidvc
> http://davidvancouvering.blogspot.com
> http://twitter.com/dcouvering
>
>
>


-- 
David W. Van Couvering

http://www.linkedin.com/in/davidvc
http://davidvancouvering.blogspot.com
http://twitter.com/dcouvering

Re: Hanging forever on database bootup during unit testing

Posted by Kathey Marsden <km...@sbcglobal.net>.
On 6/18/2010 8:57 PM, David Van Couvering wrote:
> I have a bunch of unit tests that I run as a suite.  The first test 
> that tries to boot up the Derby database hangs, with the CPU spiked at 
> 100%.  When I stop the process, here is where it is stuck, repeatedly 
> (see stack trace below).
It looks like it is the jvm having trouble just extracting  from the jar 
file, so I am doubtful that changing your Derby version would help.  I 
am curious the platform and jvm versions and if this problem began with 
with a change of either.

>
>
> Thread [main] (Suspended)
> ZipFile$1(InflaterInputStream).<init>(InputStream, Inflater, int) 
> line: not available
> ZipFile$1.<init>(ZipFile, InputStream, Inflater, int, 
> ZipFile$ZipFileInputStream) line: not available
> JarFile(ZipFile).getInputStream(String) line: not available
> JarFile(ZipFile).getInputStream(ZipEntry) line: not available
> JarFile.getManifestFromReference() line: not available
> JarFile.getManifest() line: not available
> URLClassPath$JarLoader$2.getManifest() line: not available
> Launcher$AppClassLoader(URLClassLoader).defineClass(String, Resource) 
> line: not available
> URLClassLoader.access$000(URLClassLoader, String, Resource) line: not 
> available
> URLClassLoader$1.run() line: not available
> AccessController.doPrivileged(PrivilegedExceptionAction<T>, 
> AccessControlContext) line: not available [native method]
> Launcher$AppClassLoader(URLClassLoader).findClass(String) line: not 
> available
> Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 
> not available
> Launcher$AppClassLoader.loadClass(String, boolean) line: not available
> Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not 
> available
> Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: 
> not available
> Class<T>.forName0(String, boolean, ClassLoader) line: not available 
> [native method]
> Class<T>.forName(String) line: not available
> FileMonitor(BaseMonitor).getImplementations(Properties, boolean) line: 
> not available
> FileMonitor(BaseMonitor).getDefaultImplementations() line: not available
> FileMonitor(BaseMonitor).runWithState(Properties, PrintStream) line: 
> not available
> FileMonitor.<init>(Properties, PrintStream) line: not available
> Monitor.startMonitor(Properties, PrintStream) line: not available
> JDBCBoot.boot(String, PrintStream) line: not available
> EmbeddedDriver.boot() line: not available
> EmbeddedDriver.<clinit>() line: not available
> AutoloadedDriver.getDriverModule() line: not available
> AutoloadedDriver.connect(String, Properties) line: not available
> DriverManager.getConnection(String, Properties, ClassLoader) line: not 
> available
> DriverManager.getConnection(String, String, String) line: not available
>
>
> -- 
> David W. Van Couvering
>
> http://www.linkedin.com/in/davidvc
> http://davidvancouvering.blogspot.com
> http://twitter.com/dcouvering