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 "Manjula Kutty (JIRA)" <ji...@apache.org> on 2007/07/26 21:01:10 UTC

[jira] Created: (DERBY-2979) Illegal Argument exception while running the svt, mailjdbc

Illegal Argument exception while running the svt, mailjdbc
----------------------------------------------------------

                 Key: DERBY-2979
                 URL: https://issues.apache.org/jira/browse/DERBY-2979
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.3.1.3
            Reporter: Manjula Kutty
            Priority: Minor
             Fix For: 10.4.0.0


java.lang.IllegalArgumentException: n must be positive
        at java.util.Random.nextInt(Random.java:262)
        at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.readMail(DbTask
s.java:196)
        at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.readInbox(Browse
.java:73)
        at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.run(Browse.java:
48)
num: 6


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


[jira] Commented: (DERBY-2979) Illegal Argument exception while running the svt, mailjdbc

Posted by "Mamta A. Satoor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535355 ] 

Mamta A. Satoor commented on DERBY-2979:
----------------------------------------

Your explanation of the row count sounds correct about how the value can't be < 0. thanks for checking Manjula.

> Illegal Argument exception while running the svt, mailjdbc
> ----------------------------------------------------------
>
>                 Key: DERBY-2979
>                 URL: https://issues.apache.org/jira/browse/DERBY-2979
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.3.1.4
>            Reporter: Manjula Kutty
>            Assignee: Manjula Kutty
>            Priority: Minor
>             Fix For: 10.4.0.0
>
>         Attachments: DERBY-2979_diff, DERBY-2979_stat
>
>
> java.lang.IllegalArgumentException: n must be positive
>         at java.util.Random.nextInt(Random.java:262)
>         at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.readMail(DbTask
> s.java:196)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.readInbox(Browse
> .java:73)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.run(Browse.java:
> 48)
> num: 6

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


[jira] Commented: (DERBY-2979) Illegal Argument exception while running the svt, mailjdbc

Posted by "Mamta A. Satoor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531696 ] 

Mamta A. Satoor commented on DERBY-2979:
----------------------------------------

Manjula, I just have one minor comment. I noticed that except one change, all the other changes in the patch look for <= 0. But one change (towards the end in the patch) looks as follows 
if (count == 0)
Should we be checking for <= 0 rather than == 0, ie is it possible for count to have a value less than 0? 


> Illegal Argument exception while running the svt, mailjdbc
> ----------------------------------------------------------
>
>                 Key: DERBY-2979
>                 URL: https://issues.apache.org/jira/browse/DERBY-2979
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.3.1.4
>            Reporter: Manjula Kutty
>            Assignee: Manjula Kutty
>            Priority: Minor
>             Fix For: 10.4.0.0
>
>         Attachments: DERBY-2979_diff, DERBY-2979_stat
>
>
> java.lang.IllegalArgumentException: n must be positive
>         at java.util.Random.nextInt(Random.java:262)
>         at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.readMail(DbTask
> s.java:196)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.readInbox(Browse
> .java:73)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.run(Browse.java:
> 48)
> num: 6

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


[jira] Updated: (DERBY-2979) Illegal Argument exception while running the svt, mailjdbc

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

Manjula Kutty updated DERBY-2979:
---------------------------------

    Derby Info: [Patch Available]

> Illegal Argument exception while running the svt, mailjdbc
> ----------------------------------------------------------
>
>                 Key: DERBY-2979
>                 URL: https://issues.apache.org/jira/browse/DERBY-2979
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.3.1.4
>            Reporter: Manjula Kutty
>            Assignee: Manjula Kutty
>            Priority: Minor
>             Fix For: 10.4.0.0
>
>         Attachments: DERBY-2979_diff, DERBY-2979_stat
>
>
> java.lang.IllegalArgumentException: n must be positive
>         at java.util.Random.nextInt(Random.java:262)
>         at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.readMail(DbTask
> s.java:196)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.readInbox(Browse
> .java:73)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.run(Browse.java:
> 48)
> num: 6

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


[jira] Commented: (DERBY-2979) Illegal Argument exception while running the svt, mailjdbc

Posted by "Manjula Kutty (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531863 ] 

Manjula Kutty commented on DERBY-2979:
--------------------------------------

Thanks for looking in to my patch. I will look into it and if necessary will uploead another patch

> Illegal Argument exception while running the svt, mailjdbc
> ----------------------------------------------------------
>
>                 Key: DERBY-2979
>                 URL: https://issues.apache.org/jira/browse/DERBY-2979
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.3.1.4
>            Reporter: Manjula Kutty
>            Assignee: Manjula Kutty
>            Priority: Minor
>             Fix For: 10.4.0.0
>
>         Attachments: DERBY-2979_diff, DERBY-2979_stat
>
>
> java.lang.IllegalArgumentException: n must be positive
>         at java.util.Random.nextInt(Random.java:262)
>         at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.readMail(DbTask
> s.java:196)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.readInbox(Browse
> .java:73)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.run(Browse.java:
> 48)
> num: 6

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


[jira] Assigned: (DERBY-2979) Illegal Argument exception while running the svt, mailjdbc

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

Manjula Kutty reassigned DERBY-2979:
------------------------------------

    Assignee: Manjula Kutty

> Illegal Argument exception while running the svt, mailjdbc
> ----------------------------------------------------------
>
>                 Key: DERBY-2979
>                 URL: https://issues.apache.org/jira/browse/DERBY-2979
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.3.1.3
>            Reporter: Manjula Kutty
>            Assignee: Manjula Kutty
>            Priority: Minor
>             Fix For: 10.4.0.0
>
>
> java.lang.IllegalArgumentException: n must be positive
>         at java.util.Random.nextInt(Random.java:262)
>         at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.readMail(DbTask
> s.java:196)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.readInbox(Browse
> .java:73)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.run(Browse.java:
> 48)
> num: 6

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


[jira] Updated: (DERBY-2979) Illegal Argument exception while running the svt, mailjdbc

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

Manjula Kutty updated DERBY-2979:
---------------------------------

    Attachment: DERBY-2979_diff
                DERBY-2979_stat

Please find the attached files to fix this issue. Please review and if looks good please commit.


> Illegal Argument exception while running the svt, mailjdbc
> ----------------------------------------------------------
>
>                 Key: DERBY-2979
>                 URL: https://issues.apache.org/jira/browse/DERBY-2979
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.3.1.4
>            Reporter: Manjula Kutty
>            Assignee: Manjula Kutty
>            Priority: Minor
>             Fix For: 10.4.0.0
>
>         Attachments: DERBY-2979_diff, DERBY-2979_stat
>
>
> java.lang.IllegalArgumentException: n must be positive
>         at java.util.Random.nextInt(Random.java:262)
>         at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.readMail(DbTask
> s.java:196)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.readInbox(Browse
> .java:73)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.run(Browse.java:
> 48)
> num: 6

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


[jira] Reopened: (DERBY-2979) Illegal Argument exception while running the svt, mailjdbc

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

Myrna van Lunteren reopened DERBY-2979:
---------------------------------------


I have seen this error even after the fix - in the test output to the console. For instance:
with derby 10.5.1.0 (757599):
java.lang.IllegalArgumentException
	at java.util.Random.nextInt(Unknown Source)
	at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.moveToFolders(DbTasks.java:359)
	at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.moveToFolders(Browse.java:82)
	at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.run(Browse.java:50)

(after: java.lang.IllegalArgumentException
	at java.util.Random.nextInt(Unknown Source)
	at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.moveToFolders(DbTasks.java:359)
	at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.moveToFolders(Browse.java:82)
	at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.run(Browse.java:50))

> Illegal Argument exception while running the svt, mailjdbc
> ----------------------------------------------------------
>
>                 Key: DERBY-2979
>                 URL: https://issues.apache.org/jira/browse/DERBY-2979
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.3.1.4
>            Reporter: Manjula Kutty
>            Assignee: Manjula Kutty
>            Priority: Minor
>             Fix For: 10.3.2.1, 10.4.1.3
>
>         Attachments: DERBY-2979_diff, DERBY-2979_stat
>
>
> java.lang.IllegalArgumentException: n must be positive
>         at java.util.Random.nextInt(Random.java:262)
>         at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.readMail(DbTask
> s.java:196)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.readInbox(Browse
> .java:73)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.run(Browse.java:
> 48)
> num: 6

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


[jira] Commented: (DERBY-2979) Illegal Argument exception while running the svt, mailjdbc

Posted by "Manjula Kutty (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535349 ] 

Manjula Kutty commented on DERBY-2979:
--------------------------------------

The variable count is getting the value from the folder table and it can not have a value less than 0. So if the table does not have any rows , then the value of the count will be 0. Does that make sense? Please let me know if that is not the case.

> Illegal Argument exception while running the svt, mailjdbc
> ----------------------------------------------------------
>
>                 Key: DERBY-2979
>                 URL: https://issues.apache.org/jira/browse/DERBY-2979
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.3.1.4
>            Reporter: Manjula Kutty
>            Assignee: Manjula Kutty
>            Priority: Minor
>             Fix For: 10.4.0.0
>
>         Attachments: DERBY-2979_diff, DERBY-2979_stat
>
>
> java.lang.IllegalArgumentException: n must be positive
>         at java.util.Random.nextInt(Random.java:262)
>         at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.readMail(DbTask
> s.java:196)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.readInbox(Browse
> .java:73)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.run(Browse.java:
> 48)
> num: 6

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


[jira] Resolved: (DERBY-2979) Illegal Argument exception while running the svt, mailjdbc

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

Myrna van Lunteren resolved DERBY-2979.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 10.3.2.0
       Derby Info:   (was: [Patch Available])

I applied the patch to the trunk with revision 585297 and merged to 10.3 branch with revision 585303.  
I only built, didn't run the test. 

> Illegal Argument exception while running the svt, mailjdbc
> ----------------------------------------------------------
>
>                 Key: DERBY-2979
>                 URL: https://issues.apache.org/jira/browse/DERBY-2979
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.3.1.4
>            Reporter: Manjula Kutty
>            Assignee: Manjula Kutty
>            Priority: Minor
>             Fix For: 10.3.2.0, 10.4.0.0
>
>         Attachments: DERBY-2979_diff, DERBY-2979_stat
>
>
> java.lang.IllegalArgumentException: n must be positive
>         at java.util.Random.nextInt(Random.java:262)
>         at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.readMail(DbTask
> s.java:196)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.readInbox(Browse
> .java:73)
>         at org.apache.derbyTesting.system.mailjdbc.tasks.Browse.run(Browse.java:
> 48)
> num: 6

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