You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Vedran Vidović (JIRA)" <ji...@apache.org> on 2011/02/24 13:38:45 UTC

[jira] Created: (OPENJPA-1951) missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats

missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats
----------------------------------------------------------------------------------------

                 Key: OPENJPA-1951
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1951
             Project: OpenJPA
          Issue Type: Bug
          Components: jdbc
    Affects Versions: 2.0.1
            Reporter: Vedran Vidović


Key cant-set-value is missing in properties file org.apache.openjpa.jdbc.meta.strats in openjpa-jdbc-2.0.1.jar so we don't get descriptive message in case this exception occurs.
To reproduce it set some field as not nullable in jpa and try to update it with null value.


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

       

[jira] Commented: (OPENJPA-1951) missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats

Posted by "Vedran Vidović (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998957#comment-12998957 ] 

Vedran Vidović commented on OPENJPA-1951:
-----------------------------------------

For now I temporarily copied a properties file in our project to override one in a jar package (and added a missing key, copied from 2.1.0 version). We will switch to 2.0.2 when it becomes available from a maven2 repo.

Thanks for a quick fix :)

> missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1951
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1951
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.0.1
>            Reporter: Vedran Vidović
>            Assignee: Michael Dick
>             Fix For: 2.0.2, 2.1.0, 2.2.0
>
>
> Key cant-set-value is missing in properties file org.apache.openjpa.jdbc.meta.strats in openjpa-jdbc-2.0.1.jar so we don't get descriptive message in case this exception occurs.
> To reproduce it set some field as not nullable in jpa and try to update it with null value.

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

       

[jira] Issue Comment Edited: (OPENJPA-1951) missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats

Posted by "Vedran Vidović (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998880#comment-12998880 ] 

Vedran Vidović edited comment on OPENJPA-1951 at 2/24/11 3:12 PM:
------------------------------------------------------------------

Unfortunately an OpenJPA 2.1.x can't be used with jdk 1.5, here is a simple test which can prove that:
java -cp openjpa-jdbc-2.1.0.jar org.apache.openjpa.jdbc.meta.MappingTool
The java class could not be loaded. java.lang.UnsupportedClassVersionError: (org/apache/openjpa/jdbc/meta/MappingTool) bad major version at offset=6

And this stops us from using new version in a current project :(

      was (Author: vvidovic):
    Unfortunately an OpenJPA 2.1.x CAN'T be used with jdk 1.5, here is a simple test which can prove that:
java -cp openjpa-jdbc-2.1.0.jar org.apache.openjpa.jdbc.meta.MappingTool
The java class could not be loaded. java.lang.UnsupportedClassVersionError: (org/apache/openjpa/jdbc/meta/MappingTool) bad major version at offset=6

And this stops us from using new version in a current project :(
  
> missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1951
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1951
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.0.1
>            Reporter: Vedran Vidović
>            Assignee: Michael Dick
>             Fix For: 2.0.2, 2.1.0, 2.2.0
>
>
> Key cant-set-value is missing in properties file org.apache.openjpa.jdbc.meta.strats in openjpa-jdbc-2.0.1.jar so we don't get descriptive message in case this exception occurs.
> To reproduce it set some field as not nullable in jpa and try to update it with null value.

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

       

[jira] Commented: (OPENJPA-1951) missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats

Posted by "Michael Dick (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998921#comment-12998921 ] 

Michael Dick commented on OPENJPA-1951:
---------------------------------------

OpenJPA 2.0.2 should work for you - when it's released. I can give you a patch for the openjpa jar if you need something in the mean time (or you can grab a snapshot build for 2.0.2). 

> missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1951
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1951
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.0.1
>            Reporter: Vedran Vidović
>            Assignee: Michael Dick
>             Fix For: 2.0.2, 2.1.0, 2.2.0
>
>
> Key cant-set-value is missing in properties file org.apache.openjpa.jdbc.meta.strats in openjpa-jdbc-2.0.1.jar so we don't get descriptive message in case this exception occurs.
> To reproduce it set some field as not nullable in jpa and try to update it with null value.

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

       

[jira] Resolved: (OPENJPA-1951) missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats

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

Michael Dick resolved OPENJPA-1951.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.0
                   2.2.0
                   2.0.2
         Assignee: Michael Dick

This issue was originally reported on the users mailing list:
http://markmail.org/message/mfsloxguhitlrrsn

This issue has already been fixed in 

2.0.x: revision 1068004
2.1.x: revision 1068002
trunk: revision 1067989

> missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1951
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1951
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.0.1
>            Reporter: Vedran Vidović
>            Assignee: Michael Dick
>             Fix For: 2.0.2, 2.2.0, 2.1.0
>
>
> Key cant-set-value is missing in properties file org.apache.openjpa.jdbc.meta.strats in openjpa-jdbc-2.0.1.jar so we don't get descriptive message in case this exception occurs.
> To reproduce it set some field as not nullable in jpa and try to update it with null value.

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

       

[jira] Commented: (OPENJPA-1951) missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats

Posted by "Vedran Vidović (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998838#comment-12998838 ] 

Vedran Vidović commented on OPENJPA-1951:
-----------------------------------------

This key is present in 2.1.0 version (4 days ago) but this version is compiled with java 1.6 and we can't use it in our environment (WebSphere 6.1).

> missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1951
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1951
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.0.1
>            Reporter: Vedran Vidović
>
> Key cant-set-value is missing in properties file org.apache.openjpa.jdbc.meta.strats in openjpa-jdbc-2.0.1.jar so we don't get descriptive message in case this exception occurs.
> To reproduce it set some field as not nullable in jpa and try to update it with null value.

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

       

[jira] Commented: (OPENJPA-1951) missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats

Posted by "Kevin Sutter (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998867#comment-12998867 ] 

Kevin Sutter commented on OPENJPA-1951:
---------------------------------------

Hi.  Even though OpenJPA 2.1.x is built with Java 6, it *should* still run okay with Java 5.  You won't have access to the MetaModel annotation processor (code generation), but that wouldn't be new for your environment.  I am in the process of updating this old article [1] to explain how to use OpenJPA 2.x in WebSphere v6.1 environment (non-managed, of course) and I have not had any problems running the samples and tests in this environment.  The updated article should be posted soon on Developer Works.

I'm not trying to justify not fixing this in OpenJPA 2.0.x, but I thought I would let you know that I think the OpenJPA 2.1.x driver would work for you as well.

[1]  http://www.ibm.com/developerworks/websphere/techjournal/0612_barcia/0612_barcia.html

> missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1951
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1951
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.0.1
>            Reporter: Vedran Vidović
>
> Key cant-set-value is missing in properties file org.apache.openjpa.jdbc.meta.strats in openjpa-jdbc-2.0.1.jar so we don't get descriptive message in case this exception occurs.
> To reproduce it set some field as not nullable in jpa and try to update it with null value.

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

       

[jira] Commented: (OPENJPA-1951) missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats

Posted by "Kevin Sutter (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998927#comment-12998927 ] 

Kevin Sutter commented on OPENJPA-1951:
---------------------------------------

You are correct, Vedran.  My mistake.  All of my testing and experimentation was with OpenJPA 2.0.x.  The OpenJPA 2.1.x (and beyond) binaries require Java 6 for the runtime.  Thanks for the clarification.

> missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1951
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1951
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.0.1
>            Reporter: Vedran Vidović
>            Assignee: Michael Dick
>             Fix For: 2.0.2, 2.1.0, 2.2.0
>
>
> Key cant-set-value is missing in properties file org.apache.openjpa.jdbc.meta.strats in openjpa-jdbc-2.0.1.jar so we don't get descriptive message in case this exception occurs.
> To reproduce it set some field as not nullable in jpa and try to update it with null value.

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

       

[jira] Issue Comment Edited: (OPENJPA-1951) missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats

Posted by "Vedran Vidović (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998880#comment-12998880 ] 

Vedran Vidović edited comment on OPENJPA-1951 at 2/24/11 3:12 PM:
------------------------------------------------------------------

Unfortunately an OpenJPA 2.1.x CAN'T be used with jdk 1.5, here is a simple test which can prove that:
java -cp openjpa-jdbc-2.1.0.jar org.apache.openjpa.jdbc.meta.MappingTool
The java class could not be loaded. java.lang.UnsupportedClassVersionError: (org/apache/openjpa/jdbc/meta/MappingTool) bad major version at offset=6

And this stops us from using new version in a current project :(

      was (Author: vvidovic):
    Unfortunately an OpenJPA 2.1.x CAN'T be used with jdk 1.5, here is a simple test which can prove that:
java -cp openjpa-jdbc-2.1.0.jar org.apache.openjpa.jdbc.meta.MappingTool
The java class could not be loaded. java.lang.UnsupportedClassVersionError: (org/apache/openjpa/jdbc/meta/MappingTool) bad major version at offset=6

And this stops us from using it in current project :(
  
> missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1951
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1951
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.0.1
>            Reporter: Vedran Vidović
>            Assignee: Michael Dick
>             Fix For: 2.0.2, 2.1.0, 2.2.0
>
>
> Key cant-set-value is missing in properties file org.apache.openjpa.jdbc.meta.strats in openjpa-jdbc-2.0.1.jar so we don't get descriptive message in case this exception occurs.
> To reproduce it set some field as not nullable in jpa and try to update it with null value.

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

       

[jira] Commented: (OPENJPA-1951) missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats

Posted by "Vedran Vidović (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998880#comment-12998880 ] 

Vedran Vidović commented on OPENJPA-1951:
-----------------------------------------

Unfortunately an OpenJPA 2.1.x CAN'T be used with jdk 1.5, here is a simple test which can prove that:
java -cp openjpa-jdbc-2.1.0.jar org.apache.openjpa.jdbc.meta.MappingTool
The java class could not be loaded. java.lang.UnsupportedClassVersionError: (org/apache/openjpa/jdbc/meta/MappingTool) bad major version at offset=6

And this stops us from using it in current project :(

> missing key "cant-set-value" in localizer properties org.apache.openjpa.jdbc.meta.strats
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1951
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1951
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.0.1
>            Reporter: Vedran Vidović
>            Assignee: Michael Dick
>             Fix For: 2.0.2, 2.1.0, 2.2.0
>
>
> Key cant-set-value is missing in properties file org.apache.openjpa.jdbc.meta.strats in openjpa-jdbc-2.0.1.jar so we don't get descriptive message in case this exception occurs.
> To reproduce it set some field as not nullable in jpa and try to update it with null value.

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