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 "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2012/11/15 10:28:12 UTC

[jira] [Created] (DERBY-5998) Replication tests fail on CDC platforms without optional JSSE package

Knut Anders Hatlen created DERBY-5998:
-----------------------------------------

             Summary: Replication tests fail on CDC platforms without optional JSSE package
                 Key: DERBY-5998
                 URL: https://issues.apache.org/jira/browse/DERBY-5998
             Project: Derby
          Issue Type: Bug
          Components: Replication, Test
    Affects Versions: 10.9.1.1, 10.10.0.0, 10.8.3.0
         Environment: phoneME Advanced (phoneme_advanced_mr2-b168)
            Reporter: Knut Anders Hatlen
            Priority: Minor


The replication code uses the javax.net.ServerSocketFactory class, which is not part of the core API defined by Foundation Profile 1.1. It is however part of an optional security package (JSSE) defined by the same specification, so it may or may not be available on the CDC platforms that Derby runs on.

Running the replication tests on phoneME without said optional package, results in NoClassDefFoundError:

Caused by: java.lang.NoClassDefFoundError: javax.net.SocketFactory
	at org.apache.derby.impl.store.replication.net.ReplicationMessageTransmit$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Unknown Source)
	at java.security.AccessController.doPrivileged(Unknown Source)
	at org.apache.derby.impl.store.replication.net.ReplicationMessageTransmit.initConnection(Unknown Source)
	at org.apache.derby.impl.store.replication.master.MasterController.setupConnection(Unknown Source)
	at org.apache.derby.impl.store.replication.master.MasterController.startMaster(Unknown Source)
	at org.apache.derby.impl.store.raw.RawStore.startReplicationMaster(Unknown Source)
	at org.apache.derby.impl.store.access.RAMAccessManager.startReplicationMaster(Unknown Source)
	at org.apache.derby.impl.db.BasicDatabase.startReplicationMaster(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedConnection.handleStartReplicationMaster(Unknown Source)

We might fix this by rewriting the replication code so that it's not dependent on optional packages on CDC. However, there have not been any user requests for this functionality on platforms without that package, as far as I'm aware, so I suggest we just skip the replication tests for now if that package is missing.

The tests I've run on Oracle Java Micro Edition Embedded Client 1.1 (OJEC) have not revealed this problem, as OJEC comes with the optional JSSE package (it's version output lists "JSSE JSR219" under the components section). And since the reports from the weme 6.2 test runs don't show this failure, I think it's included there as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (DERBY-5998) Replication tests fail on CDC platforms without optional JSSE package

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen resolved DERBY-5998.
---------------------------------------

          Resolution: Fixed
       Fix Version/s: 10.8.3.1
                      10.10.0.0
                      10.9.1.1
    Issue & fix info:   (was: Patch Available)

Committed revision 1411160.
Backported to 10.9 (revision 1411161) and 10.8 (revision 1411163).
                
> Replication tests fail on CDC platforms without optional JSSE package
> ---------------------------------------------------------------------
>
>                 Key: DERBY-5998
>                 URL: https://issues.apache.org/jira/browse/DERBY-5998
>             Project: Derby
>          Issue Type: Bug
>          Components: Replication, Test
>    Affects Versions: 10.9.1.1, 10.10.0.0, 10.8.3.0
>         Environment: phoneME Advanced (phoneme_advanced_mr2-b168)
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>             Fix For: 10.9.1.1, 10.10.0.0, 10.8.3.1
>
>         Attachments: d5998-1a.diff
>
>
> The replication code uses the javax.net.ServerSocketFactory class, which is not part of the core API defined by Foundation Profile 1.1. It is however part of an optional security package (JSSE) defined by the same specification, so it may or may not be available on the CDC platforms that Derby runs on.
> Running the replication tests on phoneME without said optional package, results in NoClassDefFoundError:
> Caused by: java.lang.NoClassDefFoundError: javax.net.SocketFactory
> 	at org.apache.derby.impl.store.replication.net.ReplicationMessageTransmit$1.run(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Unknown Source)
> 	at org.apache.derby.impl.store.replication.net.ReplicationMessageTransmit.initConnection(Unknown Source)
> 	at org.apache.derby.impl.store.replication.master.MasterController.setupConnection(Unknown Source)
> 	at org.apache.derby.impl.store.replication.master.MasterController.startMaster(Unknown Source)
> 	at org.apache.derby.impl.store.raw.RawStore.startReplicationMaster(Unknown Source)
> 	at org.apache.derby.impl.store.access.RAMAccessManager.startReplicationMaster(Unknown Source)
> 	at org.apache.derby.impl.db.BasicDatabase.startReplicationMaster(Unknown Source)
> 	at org.apache.derby.impl.jdbc.EmbedConnection.handleStartReplicationMaster(Unknown Source)
> We might fix this by rewriting the replication code so that it's not dependent on optional packages on CDC. However, there have not been any user requests for this functionality on platforms without that package, as far as I'm aware, so I suggest we just skip the replication tests for now if that package is missing.
> The tests I've run on Oracle Java Micro Edition Embedded Client 1.1 (OJEC) have not revealed this problem, as OJEC comes with the optional JSSE package (it's version output lists "JSSE JSR219" under the components section). And since the reports from the weme 6.2 test runs don't show this failure, I think it's included there as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (DERBY-5998) Replication tests fail on CDC platforms without optional JSSE package

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5998:
--------------------------------------

    Issue & fix info: Patch Available
    
> Replication tests fail on CDC platforms without optional JSSE package
> ---------------------------------------------------------------------
>
>                 Key: DERBY-5998
>                 URL: https://issues.apache.org/jira/browse/DERBY-5998
>             Project: Derby
>          Issue Type: Bug
>          Components: Replication, Test
>    Affects Versions: 10.9.1.1, 10.10.0.0, 10.8.3.0
>         Environment: phoneME Advanced (phoneme_advanced_mr2-b168)
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: d5998-1a.diff
>
>
> The replication code uses the javax.net.ServerSocketFactory class, which is not part of the core API defined by Foundation Profile 1.1. It is however part of an optional security package (JSSE) defined by the same specification, so it may or may not be available on the CDC platforms that Derby runs on.
> Running the replication tests on phoneME without said optional package, results in NoClassDefFoundError:
> Caused by: java.lang.NoClassDefFoundError: javax.net.SocketFactory
> 	at org.apache.derby.impl.store.replication.net.ReplicationMessageTransmit$1.run(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Unknown Source)
> 	at org.apache.derby.impl.store.replication.net.ReplicationMessageTransmit.initConnection(Unknown Source)
> 	at org.apache.derby.impl.store.replication.master.MasterController.setupConnection(Unknown Source)
> 	at org.apache.derby.impl.store.replication.master.MasterController.startMaster(Unknown Source)
> 	at org.apache.derby.impl.store.raw.RawStore.startReplicationMaster(Unknown Source)
> 	at org.apache.derby.impl.store.access.RAMAccessManager.startReplicationMaster(Unknown Source)
> 	at org.apache.derby.impl.db.BasicDatabase.startReplicationMaster(Unknown Source)
> 	at org.apache.derby.impl.jdbc.EmbedConnection.handleStartReplicationMaster(Unknown Source)
> We might fix this by rewriting the replication code so that it's not dependent on optional packages on CDC. However, there have not been any user requests for this functionality on platforms without that package, as far as I'm aware, so I suggest we just skip the replication tests for now if that package is missing.
> The tests I've run on Oracle Java Micro Edition Embedded Client 1.1 (OJEC) have not revealed this problem, as OJEC comes with the optional JSSE package (it's version output lists "JSSE JSR219" under the components section). And since the reports from the weme 6.2 test runs don't show this failure, I think it's included there as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (DERBY-5998) Replication tests fail on CDC platforms without optional JSSE package

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen reassigned DERBY-5998:
-----------------------------------------

    Assignee: Knut Anders Hatlen
    
> Replication tests fail on CDC platforms without optional JSSE package
> ---------------------------------------------------------------------
>
>                 Key: DERBY-5998
>                 URL: https://issues.apache.org/jira/browse/DERBY-5998
>             Project: Derby
>          Issue Type: Bug
>          Components: Replication, Test
>    Affects Versions: 10.9.1.1, 10.10.0.0, 10.8.3.0
>         Environment: phoneME Advanced (phoneme_advanced_mr2-b168)
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>
> The replication code uses the javax.net.ServerSocketFactory class, which is not part of the core API defined by Foundation Profile 1.1. It is however part of an optional security package (JSSE) defined by the same specification, so it may or may not be available on the CDC platforms that Derby runs on.
> Running the replication tests on phoneME without said optional package, results in NoClassDefFoundError:
> Caused by: java.lang.NoClassDefFoundError: javax.net.SocketFactory
> 	at org.apache.derby.impl.store.replication.net.ReplicationMessageTransmit$1.run(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Unknown Source)
> 	at org.apache.derby.impl.store.replication.net.ReplicationMessageTransmit.initConnection(Unknown Source)
> 	at org.apache.derby.impl.store.replication.master.MasterController.setupConnection(Unknown Source)
> 	at org.apache.derby.impl.store.replication.master.MasterController.startMaster(Unknown Source)
> 	at org.apache.derby.impl.store.raw.RawStore.startReplicationMaster(Unknown Source)
> 	at org.apache.derby.impl.store.access.RAMAccessManager.startReplicationMaster(Unknown Source)
> 	at org.apache.derby.impl.db.BasicDatabase.startReplicationMaster(Unknown Source)
> 	at org.apache.derby.impl.jdbc.EmbedConnection.handleStartReplicationMaster(Unknown Source)
> We might fix this by rewriting the replication code so that it's not dependent on optional packages on CDC. However, there have not been any user requests for this functionality on platforms without that package, as far as I'm aware, so I suggest we just skip the replication tests for now if that package is missing.
> The tests I've run on Oracle Java Micro Edition Embedded Client 1.1 (OJEC) have not revealed this problem, as OJEC comes with the optional JSSE package (it's version output lists "JSSE JSR219" under the components section). And since the reports from the weme 6.2 test runs don't show this failure, I think it's included there as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (DERBY-5998) Replication tests fail on CDC platforms without optional JSSE package

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5998:
--------------------------------------

    Attachment: d5998-1a.diff

The attached patch (d5998-1a.diff) excludes all replication tests if the javax.net.ServerSocketFactory class is not available. I've verified that it skips all replication tests on phoneME Advanced without the optional package, it runs one replication test on OJEC (the others are already skipped because they require the network client driver), and it runs all tests on Java SE 7.
                
> Replication tests fail on CDC platforms without optional JSSE package
> ---------------------------------------------------------------------
>
>                 Key: DERBY-5998
>                 URL: https://issues.apache.org/jira/browse/DERBY-5998
>             Project: Derby
>          Issue Type: Bug
>          Components: Replication, Test
>    Affects Versions: 10.9.1.1, 10.10.0.0, 10.8.3.0
>         Environment: phoneME Advanced (phoneme_advanced_mr2-b168)
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: d5998-1a.diff
>
>
> The replication code uses the javax.net.ServerSocketFactory class, which is not part of the core API defined by Foundation Profile 1.1. It is however part of an optional security package (JSSE) defined by the same specification, so it may or may not be available on the CDC platforms that Derby runs on.
> Running the replication tests on phoneME without said optional package, results in NoClassDefFoundError:
> Caused by: java.lang.NoClassDefFoundError: javax.net.SocketFactory
> 	at org.apache.derby.impl.store.replication.net.ReplicationMessageTransmit$1.run(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Unknown Source)
> 	at org.apache.derby.impl.store.replication.net.ReplicationMessageTransmit.initConnection(Unknown Source)
> 	at org.apache.derby.impl.store.replication.master.MasterController.setupConnection(Unknown Source)
> 	at org.apache.derby.impl.store.replication.master.MasterController.startMaster(Unknown Source)
> 	at org.apache.derby.impl.store.raw.RawStore.startReplicationMaster(Unknown Source)
> 	at org.apache.derby.impl.store.access.RAMAccessManager.startReplicationMaster(Unknown Source)
> 	at org.apache.derby.impl.db.BasicDatabase.startReplicationMaster(Unknown Source)
> 	at org.apache.derby.impl.jdbc.EmbedConnection.handleStartReplicationMaster(Unknown Source)
> We might fix this by rewriting the replication code so that it's not dependent on optional packages on CDC. However, there have not been any user requests for this functionality on platforms without that package, as far as I'm aware, so I suggest we just skip the replication tests for now if that package is missing.
> The tests I've run on Oracle Java Micro Edition Embedded Client 1.1 (OJEC) have not revealed this problem, as OJEC comes with the optional JSSE package (it's version output lists "JSSE JSR219" under the components section). And since the reports from the weme 6.2 test runs don't show this failure, I think it's included there as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira