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 "Kristian Waagan (JIRA)" <ji...@apache.org> on 2008/12/10 09:14:44 UTC

[jira] Commented: (DERBY-3830) NPE connecting to a database with an empty username

    [ https://issues.apache.org/jira/browse/DERBY-3830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12655136#action_12655136 ] 

Kristian Waagan commented on DERBY-3830:
----------------------------------------

Can you please specify how you obtained the connection?
I tried a few alternatives, but couldn't reproduce the error.
Can you reproduce it locally?
And which VM did you use?

Since the values inserted into the Hashtable/Properties are taken from another Hashtable/Properties, I'm having some trouble understanding what's going on.


Thanks,

> NPE connecting to a database with an empty username
> ---------------------------------------------------
>
>                 Key: DERBY-3830
>                 URL: https://issues.apache.org/jira/browse/DERBY-3830
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions: 10.4.1.3
>         Environment: EclipseLink 1.0
>            Reporter: Gili
>            Priority: Minor
>
> Connecting with username="" and password="" causes a NPE to be thrown:
> java.sql.SQLException: Java exception: ': java.lang.NullPointerException'.
>         at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
>         at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
>         at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
>         at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
>         at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
>         at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
>         at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
>         at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
>         at java.sql.DriverManager.getConnection(DriverManager.java:582)
>         at java.sql.DriverManager.getConnection(DriverManager.java:154)
>         at org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:97)
>         ... 28 more
> Caused by: java.sql.SQLException: Java exception: ': java.lang.NullPointerException'.
>         at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
>         at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
>         ... 43 more
> Caused by: java.lang.NullPointerException
>         at java.util.Hashtable.put(Hashtable.java:394)
>         at org.apache.derby.impl.jdbc.EmbedConnection.filterProperties(Unknown Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
>         ... 37 more
> I am expecting to be able to create and connect to a database with an empty username/password combination

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.