db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sabari S Kumar (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (DERBY-3830) NPE connecting to a database with an empty username
Date Mon, 22 Dec 2008 09:14:44 GMT

     [ https://issues.apache.org/jira/browse/DERBY-3830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sabari S Kumar reassigned DERBY-3830:
-------------------------------------

    Assignee: Sabari S Kumar

> 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
>            Assignee: Sabari S Kumar
>            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.


Mime
View raw message