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/10/03 19:00:51 UTC

[jira] Created: (DERBY-3100) java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003, Vista)

java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003, Vista)
----------------------------------------------------------------------------------------------------

                 Key: DERBY-3100
                 URL: https://issues.apache.org/jira/browse/DERBY-3100
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.4.0.0
         Environment: from http://dbtg.thresher.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-575338.html: vista and win2003

            Reporter: Myrna van Lunteren


This failure is gleaned from the nightly tests posted to the list. The test started failing on September 13.

The stack is:
1) testTableFunctions(org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest)java.lang.NumberFormatException: For input string: "13,00"
	at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
	at java.lang.Double.parseDouble(Double.java:510)
	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.readDoubleTag(TableFunctionTest.java:1647)
	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.vtiCosting(TableFunctionTest.java:1124)
	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.testTableFunctions(TableFunctionTest.java:797)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)


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


[jira] Closed: (DERBY-3100) java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003, Vista)

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

Myrna van Lunteren closed DERBY-3100.
-------------------------------------


> java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003, Vista)
> ----------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3100
>                 URL: https://issues.apache.org/jira/browse/DERBY-3100
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.4.0.0
>         Environment: from http://dbtg.thresher.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-575338.html: vista and win2003
>            Reporter: Myrna van Lunteren
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.4.0.0
>
>         Attachments: parsedouble.diff
>
>
> This failure is gleaned from the nightly tests posted to the list. The test started failing on September 13.
> The stack is:
> 1) testTableFunctions(org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest)java.lang.NumberFormatException: For input string: "13,00"
> 	at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
> 	at java.lang.Double.parseDouble(Double.java:510)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.readDoubleTag(TableFunctionTest.java:1647)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.vtiCosting(TableFunctionTest.java:1124)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.testTableFunctions(TableFunctionTest.java:797)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)

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


[jira] Updated: (DERBY-3100) java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003, Vista)

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

Knut Anders Hatlen updated DERBY-3100:
--------------------------------------

    Attachment: parsedouble.diff

The attached patch replaces a call to Double.parseDouble() with NumberFormat.parse(). NumberFormat uses the current locale when it parses the number and therefore also works in non-English locales. I have successfully run TableFunctionTest with locale set to en_US and no_NO.ISO8859-1@nynorsk with this patch.

> java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003, Vista)
> ----------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3100
>                 URL: https://issues.apache.org/jira/browse/DERBY-3100
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.4.0.0
>         Environment: from http://dbtg.thresher.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-575338.html: vista and win2003
>            Reporter: Myrna van Lunteren
>            Assignee: Knut Anders Hatlen
>         Attachments: parsedouble.diff
>
>
> This failure is gleaned from the nightly tests posted to the list. The test started failing on September 13.
> The stack is:
> 1) testTableFunctions(org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest)java.lang.NumberFormatException: For input string: "13,00"
> 	at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
> 	at java.lang.Double.parseDouble(Double.java:510)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.readDoubleTag(TableFunctionTest.java:1647)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.vtiCosting(TableFunctionTest.java:1124)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.testTableFunctions(TableFunctionTest.java:797)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)

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


[jira] Resolved: (DERBY-3100) java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003, Vista)

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

Knut Anders Hatlen resolved DERBY-3100.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 10.4.0.0

Committed revision 581704.

> java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003, Vista)
> ----------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3100
>                 URL: https://issues.apache.org/jira/browse/DERBY-3100
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.4.0.0
>         Environment: from http://dbtg.thresher.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-575338.html: vista and win2003
>            Reporter: Myrna van Lunteren
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.4.0.0
>
>         Attachments: parsedouble.diff
>
>
> This failure is gleaned from the nightly tests posted to the list. The test started failing on September 13.
> The stack is:
> 1) testTableFunctions(org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest)java.lang.NumberFormatException: For input string: "13,00"
> 	at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
> 	at java.lang.Double.parseDouble(Double.java:510)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.readDoubleTag(TableFunctionTest.java:1647)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.vtiCosting(TableFunctionTest.java:1124)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.testTableFunctions(TableFunctionTest.java:797)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)

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


[jira] Assigned: (DERBY-3100) java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003, Vista)

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

Knut Anders Hatlen reassigned DERBY-3100:
-----------------------------------------

    Assignee: Knut Anders Hatlen

> java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003, Vista)
> ----------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3100
>                 URL: https://issues.apache.org/jira/browse/DERBY-3100
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.4.0.0
>         Environment: from http://dbtg.thresher.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-575338.html: vista and win2003
>            Reporter: Myrna van Lunteren
>            Assignee: Knut Anders Hatlen
>
> This failure is gleaned from the nightly tests posted to the list. The test started failing on September 13.
> The stack is:
> 1) testTableFunctions(org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest)java.lang.NumberFormatException: For input string: "13,00"
> 	at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
> 	at java.lang.Double.parseDouble(Double.java:510)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.readDoubleTag(TableFunctionTest.java:1647)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.vtiCosting(TableFunctionTest.java:1124)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.testTableFunctions(TableFunctionTest.java:797)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)

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


[jira] Commented: (DERBY-3100) java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003, Vista)

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-3100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532209 ] 

Knut Anders Hatlen commented on DERBY-3100:
-------------------------------------------

I see the same failure on OpenSolaris when I run the test with locale set to no_NO.ISO8859-1@nynorsk.

> java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003, Vista)
> ----------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3100
>                 URL: https://issues.apache.org/jira/browse/DERBY-3100
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.4.0.0
>         Environment: from http://dbtg.thresher.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-575338.html: vista and win2003
>            Reporter: Myrna van Lunteren
>
> This failure is gleaned from the nightly tests posted to the list. The test started failing on September 13.
> The stack is:
> 1) testTableFunctions(org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest)java.lang.NumberFormatException: For input string: "13,00"
> 	at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
> 	at java.lang.Double.parseDouble(Double.java:510)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.readDoubleTag(TableFunctionTest.java:1647)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.vtiCosting(TableFunctionTest.java:1124)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.testTableFunctions(TableFunctionTest.java:797)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)

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