You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Daniel John Debrunner <dj...@debrunners.com> on 2005/01/21 15:37:01 UTC

NSinSameJVM test failure on Linux?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is anyone else seeing this test failure on Linux?
(I'm building and running on Suse 9.0).

Any recent commit that may have caused it, I thought I was getting clean
test runs on that platform a week ago?

Dan.


********* Diff file
derbyall/derbynetmats/DerbyNet/derbynetmats/NSinSameJVM.diff
*** Start: NSinSameJVM jdk1.4.2 DerbyNet derbynetmats:derbynetmats
2005-01-20 17:12:03 ***
6 del
< main-NSinSameJVM: Connected to database NSinSameJVMTestDB;create=true
7 del
< getting ready to shutdown
8 del
< Connection number: 3.
9 del
< Shutdown successful.
9 add
> null
> java.lang.NullPointerException
> agentThread[DRDAConnThread_2,5,derby.daemons]
> null
> java.lang.NullPointerException
> FAIL: Unexpected exceptionExecution failed due to a distribution
protocol error that caused deallocation of the conversation.  A DRDA
Data Stream Syntax Error was detected.  Reason:
0xccom.ibm.db2.jcc.c.DisconnectException: Execution failed due to a
distribution protocol error that caused deallocation of the
conversation.  A DRDA Data Stream Syntax Error was detected.  Reason: 0xc
Test Failed.
*** End:   NSinSameJVM jdk1.4.2 DerbyNet derbynetmats:derbynetmats
2005-01-20 17:12:14 ***
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFB8ROMIv0S4qsbfuQRAszPAJ4sTMzOmC9MT9STa1cYp2nHARX87ACff+nS
mjM/5UhZAc92wri1dEFhZNc=
=FH4T
-----END PGP SIGNATURE-----


Re: NSinSameJVM test failure on Linux?

Posted by Daniel John Debrunner <dj...@debrunners.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kathey Marsden wrote:


> I changed this test with r125447 in preparation for the new client.
> The net result should be the same as what we had before.
>
> Is there an exception in the tmp file, DerbyNet.out or DerbyNet.err?

derby.log has

java.lang.NullPointerException
		 at
org.apache.derby.impl.drda.DRDAConnThread.writeSQLCAGRP(DRDAConnThread.java:5076)
		 at
org.apache.derby.impl.drda.DRDAConnThread.writeSQLCARD(DRDAConnThread.java:4882)
		 at
org.apache.derby.impl.drda.DRDAConnThread.parseDRDAConnection(DRDAConnThread.java:1042)
		 at
org.apache.derby.impl.drda.DRDAConnThread.exchangeServerAttributes(DRDAConnThread.java:950)
		 at
org.apache.derby.impl.drda.DRDAConnThread.sessionInitialState(DRDAConnThread.java:563)
		 at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:219)
null
java.lang.NullPointerException
		 at
org.apache.derby.impl.drda.DRDAConnThread.writeSQLCAGRP(DRDAConnThread.java:5076)
		 at
org.apache.derby.impl.drda.DRDAConnThread.writeSQLCARD(DRDAConnThread.java:4882)
		 at
org.apache.derby.impl.drda.DRDAConnThread.parseDRDAConnection(DRDAConnThread.java:1042)
		 at
org.apache.derby.impl.drda.DRDAConnThread.exchangeServerAttributes(DRDAConnThread.java:950)
		 at
org.apache.derby.impl.drda.DRDAConnThread.sessionInitialState(DRDAConnThread.java:563)
		 at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:219)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFB8TSdIv0S4qsbfuQRAk/SAJ4xu3at/YMJVWSTYXCI2wb/TmlcUgCgo6Mi
tsel4JOQFzV9E0bV4nlBrp0=
=lpQ2
-----END PGP SIGNATURE-----


Re: NSinSameJVM test failure on Linux?

Posted by Kathey Marsden <km...@Sourcery.Org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daniel John Debrunner wrote:
> Is anyone else seeing this test failure on Linux?
> (I'm building and running on Suse 9.0).
>
> Any recent commit that may have caused it, I thought I was getting clean
> test runs on that platform a week ago?
>
> Dan.
>
>
> ********* Diff file
> derbyall/derbynetmats/DerbyNet/derbynetmats/NSinSameJVM.diff
> *** Start: NSinSameJVM jdk1.4.2 DerbyNet derbynetmats:derbynetmats
> 2005-01-20 17:12:03 ***
> 6 del
> < main-NSinSameJVM: Connected to database NSinSameJVMTestDB;create=true
> 7 del
> < getting ready to shutdown
> 8 del
> < Connection number: 3.
> 9 del
> < Shutdown successful.
> 9 add
>
>>>null
>>>java.lang.NullPointerException
>>>agentThread[DRDAConnThread_2,5,derby.daemons]
>>>null
>>>java.lang.NullPointerException
>>>FAIL: Unexpected exceptionExecution failed due to a distribution
>
> protocol error that caused deallocation of the conversation.  A DRDA
> Data Stream Syntax Error was detected.  Reason:
> 0xccom.ibm.db2.jcc.c.DisconnectException: Execution failed due to a
> distribution protocol error that caused deallocation of the
> conversation.  A DRDA Data Stream Syntax Error was detected.  Reason: 0xc
> Test Failed.
> *** End:   NSinSameJVM jdk1.4.2 DerbyNet derbynetmats:derbynetmats
> 2005-01-20 17:12:14 ***

I changed this test with r125447 in preparation for the new client.
The net result should be the same as what we had before.

Is there an exception in the tmp file, DerbyNet.out or DerbyNet.err?

Thanks

Kathey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB8S7AG0h36bFmkocRAg07AJ9K99krNtmpq3TVYHy7FAkum8uRTACgkHk9
iVJhCaLoE6PzUG1qmI+LBQs=
=W/wA
-----END PGP SIGNATURE-----

Re: NSinSameJVM test failure on Linux?

Posted by Kathey Marsden <km...@Sourcery.Org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daniel John Debrunner wrote:

> Is anyone else seeing this test failure on Linux?
> (I'm building and running on Suse 9.0).
>
> Any recent commit that may have caused it, I thought I was getting clean
> test runs on that platform a week ago?
>
> Dan.

I was talking to Dan about this failure and have some more information.
Below is an excerpt from the derby.log.  There seem to be three issues here.

1) When I changed the test there was an extra '/' in the url, causing  a
failure because the db directory could not be created in /.  I changed
the test and it now passes now on Linux.

2)  Network Server throws an NPE because one of the arguments of the
SQLException is null in this code.  It shouldn't do so.
// arguments are variable part of a message
	Object[] args = ce.getArguments();
	for (int i = 0; args != null &&  i < args.length; i++)
		sqlerrmc += args[i].toString() + separator;
					

3) This exception seems to have null arguments which doesn't seem right.
   ERROR XBM0H: Directory /NSinSameJVMTestDB cannot be created.


I filed bug Derby-128 for the NPE

Thanks


Kathey

ERROR XBM0H: Directory /NSinSameJVMTestDB cannot be created.
		 at
org.apache.derby.iapi.error.StandardException.newException(StandardException.java:322)
		 at
org.apache.derby.impl.services.monitor.PersistentServiceImpl$8.run(PersistentServiceImpl.java:668)
		 at java.security.AccessController.doPrivileged(Native Method)
		 at
org.apache.derby.impl.services.monitor.PersistentServiceImpl.createServiceRoot(PersistentServiceImpl.java:632)
		 at
org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1756)
		 at
org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(BaseMonitor.java:1018)
		 at
org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Monitor.java:578)
		 at
org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(EmbedConnection.java:1504)
		 at
org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:215)
		 at
org.apache.derby.impl.jdbc.EmbedConnection20.<init>(EmbedConnection20.java:56)
		 at
org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:72)
		 at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:73)
		 at org.apache.derby.jdbc.Driver169.connect(Driver169.java:175)
		 at org.apache.derby.impl.drda.Database.makeConnection(Database.java:245)
		 at
org.apache.derby.impl.drda.DRDAConnThread.getConnFromDatabaseName(DRDAConnThread.java:1160)
		 at
org.apache.derby.impl.drda.DRDAConnThread.verifyUserIdPassword(DRDAConnThread.java:1138)
		 at
org.apache.derby.impl.drda.DRDAConnThread.parseSECCHK(DRDAConnThread.java:2613)
		 at
org.apache.derby.impl.drda.DRDAConnThread.parseDRDAConnection(DRDAConnThread.java:1001)
		 at
org.apache.derby.impl.drda.DRDAConnThread.exchangeServerAttributes(DRDAConnThread.java:950)
		 at
org.apache.derby.impl.drda.DRDAConnThread.sessionInitialState(DRDAConnThread.java:563)
		 at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:219)
Cleanup action completed
2005-01-21 01:12:12.794 GMT Thread[DRDAConnThread_2,5,derby.daemons]
(DATABASE = /NSinSameJVMTestDB), (DRDAID = {2}), Failed to create
database '/NSinSameJVMTestDB', see the next exception for details.
2005-01-21 01:12:12.795 GMT Thread[DRDAConnThread_2,5,derby.daemons]
(DATABASE = /NSinSameJVMTestDB), (DRDAID = {2}), Directory
/NSinSameJVMTestDB cannot be created.
2005-01-21 01:12:12.816 GMT Thread[DRDAConnThread_2,5,derby.daemons]
(DATABASE = /NSinSameJVMTestDB), (DRDAID =
NF000001.A9FB-4124733202448020360{2}), Failed to create database
'/NSinSameJVMTestDB', see the next exception for details.
2005-01-21 01:12:12.816 GMT Thread[DRDAConnThread_2,5,derby.daemons]
(DATABASE = /NSinSameJVMTestDB), (DRDAID =
NF000001.A9FB-4124733202448020360{2}), null
null
java.lang.NullPointerException
		 at
org.apache.derby.impl.drda.DRDAConnThread.writeSQLCAGRP(DRDAConnThread.java:5076)
		 at
org.apache.derby.impl.drda.DRDAConnThread.writeSQLCARD(DRDAConnThread.java:4882)
		 at
org.apache.derby.impl.drda.DRDAConnThread.parseDRDAConnection(DRDAConnThread.java:1042)
		 at
org.apache.derby.impl.drda.DRDAConnThread.exchangeServerAttributes(DRDAConnThread.java:950)
		 at
org.apache.derby.impl.drda.DRDAConnThread.sessionInitialState(DRDAConnThread.java:563)
		 at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:219)
null
java.lang.NullPointerException
		 at
org.apache.derby.impl.drda.DRDAConnThread.writeSQLCAGRP(DRDAConnThread.java:5076)
		 at
org.apache.derby.impl.drda.DRDAConnThread.writeSQLCARD(DRDAConnThread.java:4882)
		 at
org.apache.derby.impl.drda.DRDAConnThread.parseDRDAConnection(DRDAConnThread.java:1042)
		 at
org.apache.derby.impl.drda.DRDAConnThread.exchangeServerAttributes(DRDAConnThread.java:950)
		 at
org.apache.derby.impl.drda.DRDAConnThread.sessionInitialState(DRDAConnThread.java:563)
		 at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:219)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB8UfnG0h36bFmkocRArUwAJ0RtqSUT+JFuVz1BHp+TnPwB+7SOQCdHyKB
yWr9/t3DVlMsymBOymI/DIs=
=izpb
-----END PGP SIGNATURE-----