[jira] [Updated] (GERONIMO-4576) Make persistence exceptions more visible to client

2014-12-03 Thread Christian Schneider (JIRA)

 [ 
https://issues.apache.org/jira/browse/GERONIMO-4576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schneider updated GERONIMO-4576:
--
Attachment: GERONIMO-4576-1.patch

I attached a patch that fixes this issue. The problem was that calling 
setRollbackOnly() created a quite uninformative exception and set it using 
markRollbackCause(e). Then at a later point the real exception could not be set 
anymore as markRollbackCause only sets the exception if the current one is not 
set.

My patch avoids the generic exception and only calls markRollbackCause if a 
real exception was given.

> Make persistence exceptions more visible to client
> --
>
> Key: GERONIMO-4576
> URL: https://issues.apache.org/jira/browse/GERONIMO-4576
> Project: Geronimo
>  Issue Type: Improvement
>  Security Level: public(Regular issues) 
>  Components: persistence
>Affects Versions: 2.2
> Environment: Linux, Windows
>Reporter: Joe Bohn
>Priority: Minor
> Fix For: Wish List
>
> Attachments: GERONIMO-4576-1.patch
>
>
> See http://issues.apache.org/jira/browse/GERONIMO-3907  for details of the 
> original problem.   That core problem was resolved.  However, upon resolution 
> it was mentioned that it would be beneficial to report more specific failure 
> information back to the client.  From GERONIMO-3907:
> Ralf Baumhof - 06/May/08 06:17 AM
> Today if have tested the new Geronimo release 2.1.1 (published on 
> 28.04.2008). The problem is now fixed. If the server gets an error on trying 
> a commit, this error is now thrown to the web bean.
> Exception text:
> javax.ejb.EJBTransactionRolledbackException: Transaction was rolled back, 
> presumably because setRollbackOnly was called during a synchronization: 
> Unable to commit: transaction marked for rollback Root Cause: 
> javax.transaction.TransactionRolledbackException : Transaction was rolled 
> back, presumably because setRollbackOnly was called during a synchronization: 
> Unable to commit: transaction marked for rollback
> Unfortunately there is no proper root cause attached to the exception. So the 
> cause can only be seen in the server console, but can not be reported to the 
> user. It would be very nice if you could change this in a later release.
> Thanks for your help.
> Vincent MATHON - 06/Nov/08 02:03 AM
> I agree that exceptions on the server side should not be thrown to the client 
> side since such exceptions types might not be known by the client. However, 
> for unit testing purpose, it is useful to attach the root cause to the 
> RollBackException. I have modified a few lines in 
> org.apache.geronimo.transaction.manager.TransactionImpl.java to attach the 
> root cause in case of RollBackException and it works for my unit testing 
> purpose (I have not enough background on the java transaction architecture 
> topic to submit a patch for production). It would be great to define a 
> configuration parameter that permits to provide the root cause to the client 
> and keep the current behaviour that does not by default.
> Geoff Callender - 22/Dec/08 03:36 AM
> It's useful for more than unit testing - it's essential to be able to inform 
> the client what's wrong with the request. I've added some examples of this to 
> https://issues.apache.org/jira/browse/OPENEJB-782 .



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: [DISCUSS] Make a new geronimo javamail 1.4 spec release

2014-12-03 Thread Romain Manni-Bucau
1.8.0 sounds good. If anyone with a setup to run TCKs can do it it
would be awesome otherwise we can do a 1.8.0-alpha-1 without this
check.


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-12-03 13:59 GMT+01:00 Hendrik Dev :
> Hi Devs,
>
> last geronimo javamail 1.4 spec release (1.7.1) was back in 2010.
> Since then the following issues were fixed:
>
> GERONIMO-5842
> GERONIMO-6165
> GERONIMO-6438
> GERONIMO-6471
> GERONIMO-6480
> GERONIMO-6530
> + some NOTICE/legal stuff
>
> I'd like to propose to make a new release (1.7.2 or maybe 1.8.0 ?)
> because of the above mentioned fixes and the fact that this is
> prerequisite to make a new javamail 1.4 provider impl release (which
> will fix a lot of longstanding bugs).
>
> I volunteer to drive this but i need some help because geronimo
> release/QA process is new to me.
> Maybe its also necessary/useful to run the TCKs to which i had no access 
> (yet).
>
> Opinions?
>
> Thanks
> Hendrik
>
>
> --
> Hendrik Saly (salyh, hendrikdev22)
> @hendrikdev22
> PGP: 0x22D7F6EC


[DISCUSS] Make a new geronimo javamail 1.4 spec release

2014-12-03 Thread Hendrik Dev
Hi Devs,

last geronimo javamail 1.4 spec release (1.7.1) was back in 2010.
Since then the following issues were fixed:

GERONIMO-5842
GERONIMO-6165
GERONIMO-6438
GERONIMO-6471
GERONIMO-6480
GERONIMO-6530
+ some NOTICE/legal stuff

I'd like to propose to make a new release (1.7.2 or maybe 1.8.0 ?)
because of the above mentioned fixes and the fact that this is
prerequisite to make a new javamail 1.4 provider impl release (which
will fix a lot of longstanding bugs).

I volunteer to drive this but i need some help because geronimo
release/QA process is new to me.
Maybe its also necessary/useful to run the TCKs to which i had no access (yet).

Opinions?

Thanks
Hendrik


-- 
Hendrik Saly (salyh, hendrikdev22)
@hendrikdev22
PGP: 0x22D7F6EC


[jira] [Commented] (GERONIMO-6455) API jar for JSR 343 - JMS 2.0

2014-12-03 Thread Martyn Taylor (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-6455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14232948#comment-14232948
 ] 

Martyn Taylor commented on GERONIMO-6455:
-

HI [~johndament]

I've spoke briefly to [~romain.manni-bucau], one of the Geronimo developers who 
is more than happy for a JMS API spec jar to be contributed to Geronimo and 
will push  to get it in.  Are you able to open a PR with your patch.  I presume 
the correct place for the PR is here: https://github.com/apache/geronimo-specs/ 

Regards
Martyn

> API jar for JSR 343 - JMS 2.0
> -
>
> Key: GERONIMO-6455
> URL: https://issues.apache.org/jira/browse/GERONIMO-6455
> Project: Geronimo
>  Issue Type: Sub-task
>  Security Level: public(Regular issues) 
>Reporter: Kevin Sutter
>
> Update jar for Java EE 7.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)