JavaDB connection error (network protocol)
        Posted  
        
            by oO
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by oO
        
        
        
        Published on 2009-09-18T18:32:48Z
        Indexed on 
            2010/04/27
            17:53 UTC
        
        
        Read the original article
        Hit count: 425
        
I'm trying to connect to derby using this:
dbProperties.put("create", "true");
dbProperties.put("dataEncryption", "true");
dbProperties.put("encryptionAlgorithm", "DES/CBC/NoPadding");
dbProperties.put("encryptionKey", "1234567890123456");
dbProperties.put("securityMechanism", ClientDataSource.STRONG_PASSWORD_SUBSTITUTE_SECURITY);
//  protocol is dbProperties.getProperty("derby.url", "jdbc:derby://localhost:1527/");
dbConnection = DriverManager.getConnection(protocol + dbName, dbProperties);
but i get an error:
A connection could not be established because the database name (...) is larger than the maximum length allowed by the network protocol.
Is there a way to increase this length?
© Stack Overflow or respective owner