You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Michael Dick (JIRA)" <ji...@apache.org> on 2007/10/24 20:08:50 UTC

[jira] Created: (OPENJPA-416) Unclear exception if an unknown external value is used

Unclear exception if an unknown external value is used
------------------------------------------------------

                 Key: OPENJPA-416
                 URL: https://issues.apache.org/jira/browse/OPENJPA-416
             Project: OpenJPA
          Issue Type: Bug
    Affects Versions: 1.0.0, 0.9.7, 0.9.6
            Reporter: Michael Dick
            Priority: Minor
             Fix For: 1.0.1, 1.1.0


If you have specified ExternalValues for a field in an entity the transaction will be rolledback, but the root exception doesn't provide any information on what went wrong. 

Here's an example : 

<openjpa-1.1.0-SNAPSHOT-r420667:587896M fatal store error> org.apache.openjpa.persistence.RollbackException: null
	at org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:469)
	at mdd.tests.TestExternalValues.testUnrecognizedExternalValue(TestExternalValues.java:40)
<snip>
Caused by: <openjpa-1.1.0-SNAPSHOT-r420667:587896M nonfatal general error> org.apache.openjpa.persistence.PersistenceException: null
	at org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1778)
<snip>
	... 19 more
Caused by: java.lang.NullPointerException
	at org.apache.openjpa.kernel.StateManagerImpl.fetchInt(StateManagerImpl.java:2168)
	at org.apache.openjpa.jdbc.meta.strats.PrimitiveFieldStrategy.update(PrimitiveFieldStrategy.java:157)
<snip>
	... 23 more

The exception should be made more meaningful. 

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


[jira] Assigned: (OPENJPA-416) Unclear exception if an unknown external value is used

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

Michael Dick reassigned OPENJPA-416:
------------------------------------

    Assignee: Michael Dick

> Unclear exception if an unknown external value is used
> ------------------------------------------------------
>
>                 Key: OPENJPA-416
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-416
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 0.9.6, 0.9.7, 1.0.0
>            Reporter: Michael Dick
>            Assignee: Michael Dick
>            Priority: Minor
>             Fix For: 1.0.1, 1.1.0
>
>
> If you have specified ExternalValues for a field in an entity the transaction will be rolledback, but the root exception doesn't provide any information on what went wrong. 
> Here's an example : 
> <openjpa-1.1.0-SNAPSHOT-r420667:587896M fatal store error> org.apache.openjpa.persistence.RollbackException: null
> 	at org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:469)
> 	at mdd.tests.TestExternalValues.testUnrecognizedExternalValue(TestExternalValues.java:40)
> <snip>
> Caused by: <openjpa-1.1.0-SNAPSHOT-r420667:587896M nonfatal general error> org.apache.openjpa.persistence.PersistenceException: null
> 	at org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1778)
> <snip>
> 	... 19 more
> Caused by: java.lang.NullPointerException
> 	at org.apache.openjpa.kernel.StateManagerImpl.fetchInt(StateManagerImpl.java:2168)
> 	at org.apache.openjpa.jdbc.meta.strats.PrimitiveFieldStrategy.update(PrimitiveFieldStrategy.java:157)
> <snip>
> 	... 23 more
> The exception should be made more meaningful. 

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


[jira] Closed: (OPENJPA-416) Unclear exception if an unknown external value is used

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

Michael Dick closed OPENJPA-416.
--------------------------------

    Resolution: Fixed

> Unclear exception if an unknown external value is used
> ------------------------------------------------------
>
>                 Key: OPENJPA-416
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-416
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 0.9.6, 0.9.7, 1.0.0
>            Reporter: Michael Dick
>            Assignee: Michael Dick
>            Priority: Minor
>             Fix For: 1.0.1, 1.1.0
>
>
> If you have specified ExternalValues for a field in an entity the transaction will be rolledback, but the root exception doesn't provide any information on what went wrong. 
> Here's an example : 
> <openjpa-1.1.0-SNAPSHOT-r420667:587896M fatal store error> org.apache.openjpa.persistence.RollbackException: null
> 	at org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:469)
> 	at mdd.tests.TestExternalValues.testUnrecognizedExternalValue(TestExternalValues.java:40)
> <snip>
> Caused by: <openjpa-1.1.0-SNAPSHOT-r420667:587896M nonfatal general error> org.apache.openjpa.persistence.PersistenceException: null
> 	at org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1778)
> <snip>
> 	... 19 more
> Caused by: java.lang.NullPointerException
> 	at org.apache.openjpa.kernel.StateManagerImpl.fetchInt(StateManagerImpl.java:2168)
> 	at org.apache.openjpa.jdbc.meta.strats.PrimitiveFieldStrategy.update(PrimitiveFieldStrategy.java:157)
> <snip>
> 	... 23 more
> The exception should be made more meaningful. 

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