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 "Myrna van Lunteren (JIRA)" <ji...@apache.org> on 2007/04/14 06:31:15 UTC

[jira] Created: (DERBY-2547) possible NullPointerException in client/am/ProductLevel

possible NullPointerException in client/am/ProductLevel
-------------------------------------------------------

                 Key: DERBY-2547
                 URL: https://issues.apache.org/jira/browse/DERBY-2547
             Project: Derby
          Issue Type: Bug
          Components: Network Client
    Affects Versions: 10.3.0.0
            Reporter: Myrna van Lunteren
            Priority: Trivial


Encountered a NPE that doesn't make it to the application/end-user when debugging test jdbcapi/DataSourceTest in one of my eclipse workspaces;

org/apache/derby/client/am/ProductLevel
constructor; 
     versionLevel_ = Integer.parseInt(productID.substring(3,5)); 

NPE because  productID was null




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


[jira] Resolved: (DERBY-2547) possible NullPointerException in client/am/ProductLevel

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

Myrna van Lunteren resolved DERBY-2547.
---------------------------------------

    Resolution: Duplicate

I'm marking this one as a duplicate.
I did a simple check by adding a println to the identified line in the code, then ran DataSourceTest, and there was no situation where there was a null productID - until I added testJira95ds in to the client run.
So, I definitely think it's a dup of DERBY-3407 / DERBY-2498 - and those have something of a repro described.

> possible NullPointerException in client/am/ProductLevel
> -------------------------------------------------------
>
>                 Key: DERBY-2547
>                 URL: https://issues.apache.org/jira/browse/DERBY-2547
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.3.1.4
>            Reporter: Myrna van Lunteren
>            Assignee: Abhilash T.G
>            Priority: Trivial
>
> Encountered a NPE that doesn't make it to the application/end-user when debugging test jdbcapi/DataSourceTest in one of my eclipse workspaces;
> org/apache/derby/client/am/ProductLevel
> constructor; 
>      versionLevel_ = Integer.parseInt(productID.substring(3,5)); 
> NPE because  productID was null

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


[jira] Commented: (DERBY-2547) possible NullPointerException in client/am/ProductLevel

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568255#action_12568255 ] 

Kristian Waagan commented on DERBY-2547:
----------------------------------------

I agree with Dan, some more investigation should be done.
You might get some pointers from looking at the relevant code in the embedded driver, *assuming* this bug is the same as the one I reported earlier today.

> possible NullPointerException in client/am/ProductLevel
> -------------------------------------------------------
>
>                 Key: DERBY-2547
>                 URL: https://issues.apache.org/jira/browse/DERBY-2547
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.3.1.4
>            Reporter: Myrna van Lunteren
>            Assignee: Abhilash T.G
>            Priority: Trivial
>
> Encountered a NPE that doesn't make it to the application/end-user when debugging test jdbcapi/DataSourceTest in one of my eclipse workspaces;
> org/apache/derby/client/am/ProductLevel
> constructor; 
>      versionLevel_ = Integer.parseInt(productID.substring(3,5)); 
> NPE because  productID was null

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


[jira] Assigned: (DERBY-2547) possible NullPointerException in client/am/ProductLevel

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

Abhilash T.G reassigned DERBY-2547:
-----------------------------------

    Assignee: Abhilash T.G

> possible NullPointerException in client/am/ProductLevel
> -------------------------------------------------------
>
>                 Key: DERBY-2547
>                 URL: https://issues.apache.org/jira/browse/DERBY-2547
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.3.1.4
>            Reporter: Myrna van Lunteren
>            Assignee: Abhilash T.G
>            Priority: Trivial
>
> Encountered a NPE that doesn't make it to the application/end-user when debugging test jdbcapi/DataSourceTest in one of my eclipse workspaces;
> org/apache/derby/client/am/ProductLevel
> constructor; 
>      versionLevel_ = Integer.parseInt(productID.substring(3,5)); 
> NPE because  productID was null

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


[jira] Commented: (DERBY-2547) possible NullPointerException in client/am/ProductLevel

Posted by "Jazarine Jamal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568222#action_12568222 ] 

Jazarine Jamal commented on DERBY-2547:
---------------------------------------

What do you think should be the value of versionLevel_ if productID is NULL.

> possible NullPointerException in client/am/ProductLevel
> -------------------------------------------------------
>
>                 Key: DERBY-2547
>                 URL: https://issues.apache.org/jira/browse/DERBY-2547
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.3.1.4
>            Reporter: Myrna van Lunteren
>            Assignee: Abhilash T.G
>            Priority: Trivial
>
> Encountered a NPE that doesn't make it to the application/end-user when debugging test jdbcapi/DataSourceTest in one of my eclipse workspaces;
> org/apache/derby/client/am/ProductLevel
> constructor; 
>      versionLevel_ = Integer.parseInt(productID.substring(3,5)); 
> NPE because  productID was null

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


[jira] Commented: (DERBY-2547) possible NullPointerException in client/am/ProductLevel

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568268#action_12568268 ] 

Myrna van Lunteren commented on DERBY-2547:
-------------------------------------------

I cannot remember even what fixture I was stepping through when I saw this, nor a do I have a repro. I do remember specifically that things seemed to go on successfully *after* the NPE.

> possible NullPointerException in client/am/ProductLevel
> -------------------------------------------------------
>
>                 Key: DERBY-2547
>                 URL: https://issues.apache.org/jira/browse/DERBY-2547
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.3.1.4
>            Reporter: Myrna van Lunteren
>            Assignee: Abhilash T.G
>            Priority: Trivial
>
> Encountered a NPE that doesn't make it to the application/end-user when debugging test jdbcapi/DataSourceTest in one of my eclipse workspaces;
> org/apache/derby/client/am/ProductLevel
> constructor; 
>      versionLevel_ = Integer.parseInt(productID.substring(3,5)); 
> NPE because  productID was null

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


[jira] Commented: (DERBY-2547) possible NullPointerException in client/am/ProductLevel

Posted by "Daniel John Debrunner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568243#action_12568243 ] 

Daniel John Debrunner commented on DERBY-2547:
----------------------------------------------

Is productID being null here correct? With an NPE it's best to first find out why the reference is null, rather than just handling the case when it is null not to throw an NPE.

> possible NullPointerException in client/am/ProductLevel
> -------------------------------------------------------
>
>                 Key: DERBY-2547
>                 URL: https://issues.apache.org/jira/browse/DERBY-2547
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.3.1.4
>            Reporter: Myrna van Lunteren
>            Assignee: Abhilash T.G
>            Priority: Trivial
>
> Encountered a NPE that doesn't make it to the application/end-user when debugging test jdbcapi/DataSourceTest in one of my eclipse workspaces;
> org/apache/derby/client/am/ProductLevel
> constructor; 
>      versionLevel_ = Integer.parseInt(productID.substring(3,5)); 
> NPE because  productID was null

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


[jira] Commented: (DERBY-2547) possible NullPointerException in client/am/ProductLevel

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568212#action_12568212 ] 

Kristian Waagan commented on DERBY-2547:
----------------------------------------

Seems I just created a possible duplicate for this issue (DERBY-3407).
Don't know if it is the same bug, but there is a vague description on how to reproduce the NPE there.

> possible NullPointerException in client/am/ProductLevel
> -------------------------------------------------------
>
>                 Key: DERBY-2547
>                 URL: https://issues.apache.org/jira/browse/DERBY-2547
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.3.1.4
>            Reporter: Myrna van Lunteren
>            Assignee: Abhilash T.G
>            Priority: Trivial
>
> Encountered a NPE that doesn't make it to the application/end-user when debugging test jdbcapi/DataSourceTest in one of my eclipse workspaces;
> org/apache/derby/client/am/ProductLevel
> constructor; 
>      versionLevel_ = Integer.parseInt(productID.substring(3,5)); 
> NPE because  productID was null

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


[jira] Commented: (DERBY-2547) possible NullPointerException in client/am/ProductLevel

Posted by "Abhilash T.G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568188#action_12568188 ] 

Abhilash T.G commented on DERBY-2547:
-------------------------------------

Could you please relate as to how did this NPE occur so that I can reproduce it on my system.

> possible NullPointerException in client/am/ProductLevel
> -------------------------------------------------------
>
>                 Key: DERBY-2547
>                 URL: https://issues.apache.org/jira/browse/DERBY-2547
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.3.1.4
>            Reporter: Myrna van Lunteren
>            Assignee: Abhilash T.G
>            Priority: Trivial
>
> Encountered a NPE that doesn't make it to the application/end-user when debugging test jdbcapi/DataSourceTest in one of my eclipse workspaces;
> org/apache/derby/client/am/ProductLevel
> constructor; 
>      versionLevel_ = Integer.parseInt(productID.substring(3,5)); 
> NPE because  productID was null

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