You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2011/01/20 10:23:44 UTC

[jira] Created: (CAY-1526) Preferences: java.lang.IllegalArgumentException: Key too long

Preferences: java.lang.IllegalArgumentException: Key too long
-------------------------------------------------------------

                 Key: CAY-1526
                 URL: https://issues.apache.org/jira/browse/CAY-1526
             Project: Cayenne
          Issue Type: Bug
          Components: Modeler
    Affects Versions: 3.1M1
            Reporter: Andrus Adamchik
            Assignee: Olga Tkacheva


This affects Cayenne 3.1. When entering a long path for a JDBC driver, e.g.:

[1] /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar

The modeler generates an error:

1/3/11 2:12:00 PM	[0x0-0x15015].CayenneModeler[267]	Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Key too long: /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
1/3/11 2:12:05 PM	[0x0-0x15015].CayenneModeler[267]		at org.apache.cayenne.pref.CayennePreferenceEditor.save(CayennePreferenceEditor.java:125)

We need to revisit all places where filesystem paths are used as preference keys, and either stop using them as key names somehow (maybe they should be "values", not keys). If they absolutely have to be used as keys, we may hash them to a 32 char-long string


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


[jira] [Updated] (CAY-1526) Preferences: java.lang.IllegalArgumentException: Key too long

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

Dzmitry Kazimirchyk updated CAY-1526:
-------------------------------------

    Attachment:     (was: CAY-1526-patch.txt)

> Preferences: java.lang.IllegalArgumentException: Key too long
> -------------------------------------------------------------
>
>                 Key: CAY-1526
>                 URL: https://issues.apache.org/jira/browse/CAY-1526
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>         Attachments: CAY-1526-patch.txt
>
>
> This affects Cayenne 3.1. When entering a long path for a JDBC driver, e.g.:
> [1] /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> The modeler generates an error:
> 1/3/11 2:12:00 PM	[0x0-0x15015].CayenneModeler[267]	Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Key too long: /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> 1/3/11 2:12:05 PM	[0x0-0x15015].CayenneModeler[267]		at org.apache.cayenne.pref.CayennePreferenceEditor.save(CayennePreferenceEditor.java:125)
> We need to revisit all places where filesystem paths are used as preference keys, and either stop using them as key names somehow (maybe they should be "values", not keys). If they absolutely have to be used as keys, we may hash them to a 32 char-long string

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (CAY-1526) Preferences: java.lang.IllegalArgumentException: Key too long

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

Dzmitry Kazimirchyk updated CAY-1526:
-------------------------------------

    Attachment:     (was: CAY-1526-patch2.txt)

> Preferences: java.lang.IllegalArgumentException: Key too long
> -------------------------------------------------------------
>
>                 Key: CAY-1526
>                 URL: https://issues.apache.org/jira/browse/CAY-1526
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>
> This affects Cayenne 3.1. When entering a long path for a JDBC driver, e.g.:
> [1] /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> The modeler generates an error:
> 1/3/11 2:12:00 PM	[0x0-0x15015].CayenneModeler[267]	Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Key too long: /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> 1/3/11 2:12:05 PM	[0x0-0x15015].CayenneModeler[267]		at org.apache.cayenne.pref.CayennePreferenceEditor.save(CayennePreferenceEditor.java:125)
> We need to revisit all places where filesystem paths are used as preference keys, and either stop using them as key names somehow (maybe they should be "values", not keys). If they absolutely have to be used as keys, we may hash them to a 32 char-long string

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (CAY-1526) Preferences: java.lang.IllegalArgumentException: Key too long

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

Dzmitry Kazimirchyk updated CAY-1526:
-------------------------------------

    Comment: was deleted

(was: Fixed error with long classpath value. Now classpath is stored at preference value, preference key stores its id.)

> Preferences: java.lang.IllegalArgumentException: Key too long
> -------------------------------------------------------------
>
>                 Key: CAY-1526
>                 URL: https://issues.apache.org/jira/browse/CAY-1526
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>
> This affects Cayenne 3.1. When entering a long path for a JDBC driver, e.g.:
> [1] /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> The modeler generates an error:
> 1/3/11 2:12:00 PM	[0x0-0x15015].CayenneModeler[267]	Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Key too long: /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> 1/3/11 2:12:05 PM	[0x0-0x15015].CayenneModeler[267]		at org.apache.cayenne.pref.CayennePreferenceEditor.save(CayennePreferenceEditor.java:125)
> We need to revisit all places where filesystem paths are used as preference keys, and either stop using them as key names somehow (maybe they should be "values", not keys). If they absolutely have to be used as keys, we may hash them to a 32 char-long string

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (CAY-1526) Preferences: java.lang.IllegalArgumentException: Key too long

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

Andrus Adamchik closed CAY-1526.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1M3
         Assignee: Andrus Adamchik  (was: Olga Tkacheva)

> Preferences: java.lang.IllegalArgumentException: Key too long
> -------------------------------------------------------------
>
>                 Key: CAY-1526
>                 URL: https://issues.apache.org/jira/browse/CAY-1526
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.1M3
>
>         Attachments: CAY-1526-patch.txt
>
>
> This affects Cayenne 3.1. When entering a long path for a JDBC driver, e.g.:
> [1] /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> The modeler generates an error:
> 1/3/11 2:12:00 PM	[0x0-0x15015].CayenneModeler[267]	Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Key too long: /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> 1/3/11 2:12:05 PM	[0x0-0x15015].CayenneModeler[267]		at org.apache.cayenne.pref.CayennePreferenceEditor.save(CayennePreferenceEditor.java:125)
> We need to revisit all places where filesystem paths are used as preference keys, and either stop using them as key names somehow (maybe they should be "values", not keys). If they absolutely have to be used as keys, we may hash them to a 32 char-long string

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (CAY-1526) Preferences: java.lang.IllegalArgumentException: Key too long

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

Dzmitry Kazimirchyk updated CAY-1526:
-------------------------------------

    Attachment: CAY-1526-patch.txt

Now preference values are used to store classpath.

> Preferences: java.lang.IllegalArgumentException: Key too long
> -------------------------------------------------------------
>
>                 Key: CAY-1526
>                 URL: https://issues.apache.org/jira/browse/CAY-1526
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>         Attachments: CAY-1526-patch.txt
>
>
> This affects Cayenne 3.1. When entering a long path for a JDBC driver, e.g.:
> [1] /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> The modeler generates an error:
> 1/3/11 2:12:00 PM	[0x0-0x15015].CayenneModeler[267]	Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Key too long: /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> 1/3/11 2:12:05 PM	[0x0-0x15015].CayenneModeler[267]		at org.apache.cayenne.pref.CayennePreferenceEditor.save(CayennePreferenceEditor.java:125)
> We need to revisit all places where filesystem paths are used as preference keys, and either stop using them as key names somehow (maybe they should be "values", not keys). If they absolutely have to be used as keys, we may hash them to a 32 char-long string

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (CAY-1526) Preferences: java.lang.IllegalArgumentException: Key too long

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

Dzmitry Kazimirchyk updated CAY-1526:
-------------------------------------

    Comment: was deleted

(was: Now preference values are used to store classpath.)

> Preferences: java.lang.IllegalArgumentException: Key too long
> -------------------------------------------------------------
>
>                 Key: CAY-1526
>                 URL: https://issues.apache.org/jira/browse/CAY-1526
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>         Attachments: CAY-1526-patch2.txt
>
>
> This affects Cayenne 3.1. When entering a long path for a JDBC driver, e.g.:
> [1] /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> The modeler generates an error:
> 1/3/11 2:12:00 PM	[0x0-0x15015].CayenneModeler[267]	Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Key too long: /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> 1/3/11 2:12:05 PM	[0x0-0x15015].CayenneModeler[267]		at org.apache.cayenne.pref.CayennePreferenceEditor.save(CayennePreferenceEditor.java:125)
> We need to revisit all places where filesystem paths are used as preference keys, and either stop using them as key names somehow (maybe they should be "values", not keys). If they absolutely have to be used as keys, we may hash them to a 32 char-long string

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAY-1526) Preferences: java.lang.IllegalArgumentException: Key too long

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

Dzmitry Kazimirchyk updated CAY-1526:
-------------------------------------

    Attachment: CAY-1526-patch.txt

> Preferences: java.lang.IllegalArgumentException: Key too long
> -------------------------------------------------------------
>
>                 Key: CAY-1526
>                 URL: https://issues.apache.org/jira/browse/CAY-1526
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>         Attachments: CAY-1526-patch.txt
>
>
> This affects Cayenne 3.1. When entering a long path for a JDBC driver, e.g.:
> [1] /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> The modeler generates an error:
> 1/3/11 2:12:00 PM	[0x0-0x15015].CayenneModeler[267]	Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Key too long: /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> 1/3/11 2:12:05 PM	[0x0-0x15015].CayenneModeler[267]		at org.apache.cayenne.pref.CayennePreferenceEditor.save(CayennePreferenceEditor.java:125)
> We need to revisit all places where filesystem paths are used as preference keys, and either stop using them as key names somehow (maybe they should be "values", not keys). If they absolutely have to be used as keys, we may hash them to a 32 char-long string

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (CAY-1526) Preferences: java.lang.IllegalArgumentException: Key too long

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

Dzmitry Kazimirchyk updated CAY-1526:
-------------------------------------

    Attachment:     (was: CAY-1526-patch.txt)

> Preferences: java.lang.IllegalArgumentException: Key too long
> -------------------------------------------------------------
>
>                 Key: CAY-1526
>                 URL: https://issues.apache.org/jira/browse/CAY-1526
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>         Attachments: CAY-1526-patch2.txt
>
>
> This affects Cayenne 3.1. When entering a long path for a JDBC driver, e.g.:
> [1] /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> The modeler generates an error:
> 1/3/11 2:12:00 PM	[0x0-0x15015].CayenneModeler[267]	Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Key too long: /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> 1/3/11 2:12:05 PM	[0x0-0x15015].CayenneModeler[267]		at org.apache.cayenne.pref.CayennePreferenceEditor.save(CayennePreferenceEditor.java:125)
> We need to revisit all places where filesystem paths are used as preference keys, and either stop using them as key names somehow (maybe they should be "values", not keys). If they absolutely have to be used as keys, we may hash them to a 32 char-long string

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (CAY-1526) Preferences: java.lang.IllegalArgumentException: Key too long

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

Dzmitry Kazimirchyk updated CAY-1526:
-------------------------------------

    Attachment: CAY-1526-patch2.txt

Fixed error with long classpath value. Now classpath is stored at preference value, preference key stores its id.

> Preferences: java.lang.IllegalArgumentException: Key too long
> -------------------------------------------------------------
>
>                 Key: CAY-1526
>                 URL: https://issues.apache.org/jira/browse/CAY-1526
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>         Attachments: CAY-1526-patch.txt, CAY-1526-patch2.txt
>
>
> This affects Cayenne 3.1. When entering a long path for a JDBC driver, e.g.:
> [1] /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> The modeler generates an error:
> 1/3/11 2:12:00 PM	[0x0-0x15015].CayenneModeler[267]	Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Key too long: /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> 1/3/11 2:12:05 PM	[0x0-0x15015].CayenneModeler[267]		at org.apache.cayenne.pref.CayennePreferenceEditor.save(CayennePreferenceEditor.java:125)
> We need to revisit all places where filesystem paths are used as preference keys, and either stop using them as key names somehow (maybe they should be "values", not keys). If they absolutely have to be used as keys, we may hash them to a 32 char-long string

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAY-1526) Preferences: java.lang.IllegalArgumentException: Key too long

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

Dzmitry Kazimirchyk updated CAY-1526:
-------------------------------------

    Attachment: CAY-1526-patch.txt

Fixed error with long classpath. Classpath now stored in preferences values, keys are used to store ids.

> Preferences: java.lang.IllegalArgumentException: Key too long
> -------------------------------------------------------------
>
>                 Key: CAY-1526
>                 URL: https://issues.apache.org/jira/browse/CAY-1526
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>         Attachments: CAY-1526-patch.txt
>
>
> This affects Cayenne 3.1. When entering a long path for a JDBC driver, e.g.:
> [1] /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> The modeler generates an error:
> 1/3/11 2:12:00 PM	[0x0-0x15015].CayenneModeler[267]	Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Key too long: /Users/user/development/tools/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar
> 1/3/11 2:12:05 PM	[0x0-0x15015].CayenneModeler[267]		at org.apache.cayenne.pref.CayennePreferenceEditor.save(CayennePreferenceEditor.java:125)
> We need to revisit all places where filesystem paths are used as preference keys, and either stop using them as key names somehow (maybe they should be "values", not keys). If they absolutely have to be used as keys, we may hash them to a 32 char-long string

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira