You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by "Xavier Toth (JIRA)" <ji...@apache.org> on 2005/12/29 16:58:03 UTC
[jira] Created: (WSS-31) Improve logging when crypto class constructor fails
Improve logging when crypto class constructor fails
---------------------------------------------------
Key: WSS-31
URL: http://issues.apache.org/jira/browse/WSS-31
Project: WSS4J
Type: Improvement
Reporter: Xavier Toth
Assigned to: Davanum Srinivas
If the instantiation of the crypto class fails try and get the real cause and log it so that users will know what to fix.
Diff of CryptoFactory.java:
119,130c119
< } catch (java.lang.reflect.InvocationTargetException e) {
< Throwable cause = e.getCause();
< if (cause != null) {
< cause.printStackTrace();
< log.error("Unable to instantiate (1): " + cryptoClassName, cause);
< }
< else {
< e.printStackTrace();
< log.error("Unable to instantiate (1): " + cryptoClassName, e);
< }
< }
< catch (java.lang.Exception e) {
---
> } catch (java.lang.Exception e) {
139,148c128,130
< Throwable cause = e.getCause();
< if (cause != null) {
< cause.printStackTrace();
< log.error("Unable to instantiate (2): " + cryptoClassName, cause);
< }
< else {
< e.printStackTrace();
< log.error("Unable to instantiate (2): " + cryptoClassName, e);
< }
< throw new RuntimeException(cryptoClassName + " cannot create instance");
---
> e.printStackTrace();
> log.error("Unable to instantiate (2): " + cryptoClassName, e);
> throw new RuntimeException(cryptoClassName + " cannot create instance");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
Re: [jira] Created: (WSS-31) Improve logging when crypto class constructor fails
Posted by Ted Toth <te...@yahoo.com>.
This can be close JIRA had a problem and I didn't know the WSS-30 had been created.
"Xavier Toth (JIRA)" <ji...@apache.org> wrote: Improve logging when crypto class constructor fails
---------------------------------------------------
Key: WSS-31
URL: http://issues.apache.org/jira/browse/WSS-31
Project: WSS4J
Type: Improvement
Reporter: Xavier Toth
Assigned to: Davanum Srinivas
If the instantiation of the crypto class fails try and get the real cause and log it so that users will know what to fix.
Diff of CryptoFactory.java:
119,130c119
< } catch (java.lang.reflect.InvocationTargetException e) {
< Throwable cause = e.getCause();
< if (cause != null) {
< cause.printStackTrace();
< log.error("Unable to instantiate (1): " + cryptoClassName, cause);
< }
< else {
< e.printStackTrace();
< log.error("Unable to instantiate (1): " + cryptoClassName, e);
< }
< }
< catch (java.lang.Exception e) {
---
> } catch (java.lang.Exception e) {
139,148c128,130
< Throwable cause = e.getCause();
< if (cause != null) {
< cause.printStackTrace();
< log.error("Unable to instantiate (2): " + cryptoClassName, cause);
< }
< else {
< e.printStackTrace();
< log.error("Unable to instantiate (2): " + cryptoClassName, e);
< }
< throw new RuntimeException(cryptoClassName + " cannot create instance");
---
> e.printStackTrace();
> log.error("Unable to instantiate (2): " + cryptoClassName, e);
> throw new RuntimeException(cryptoClassName + " cannot create instance");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
---------------------------------
Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping
[jira] Closed: (WSS-31) Improve logging when crypto class
constructor fails
Posted by "Werner Dittmann (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WSS-31?page=all ]
Werner Dittmann closed WSS-31:
------------------------------
Resolution: Fixed
> Improve logging when crypto class constructor fails
> ---------------------------------------------------
>
> Key: WSS-31
> URL: http://issues.apache.org/jira/browse/WSS-31
> Project: WSS4J
> Type: Improvement
> Reporter: Xavier Toth
> Assignee: Davanum Srinivas
>
> If the instantiation of the crypto class fails try and get the real cause and log it so that users will know what to fix.
> Diff of CryptoFactory.java:
> 119,130c119
> < } catch (java.lang.reflect.InvocationTargetException e) {
> < Throwable cause = e.getCause();
> < if (cause != null) {
> < cause.printStackTrace();
> < log.error("Unable to instantiate (1): " + cryptoClassName, cause);
> < }
> < else {
> < e.printStackTrace();
> < log.error("Unable to instantiate (1): " + cryptoClassName, e);
> < }
> < }
> < catch (java.lang.Exception e) {
> ---
> > } catch (java.lang.Exception e) {
> 139,148c128,130
> < Throwable cause = e.getCause();
> < if (cause != null) {
> < cause.printStackTrace();
> < log.error("Unable to instantiate (2): " + cryptoClassName, cause);
> < }
> < else {
> < e.printStackTrace();
> < log.error("Unable to instantiate (2): " + cryptoClassName, e);
> < }
> < throw new RuntimeException(cryptoClassName + " cannot create instance");
> ---
> > e.printStackTrace();
> > log.error("Unable to instantiate (2): " + cryptoClassName, e);
> > throw new RuntimeException(cryptoClassName + " cannot create instance");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
[jira] Closed: (WSS-31) Improve logging when crypto class
constructor fails
Posted by "Werner Dittmann (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WSS-31?page=all ]
Werner Dittmann closed WSS-31:
------------------------------
Resolution: Fixed
> Improve logging when crypto class constructor fails
> ---------------------------------------------------
>
> Key: WSS-31
> URL: http://issues.apache.org/jira/browse/WSS-31
> Project: WSS4J
> Type: Improvement
> Reporter: Xavier Toth
> Assignee: Davanum Srinivas
>
> If the instantiation of the crypto class fails try and get the real cause and log it so that users will know what to fix.
> Diff of CryptoFactory.java:
> 119,130c119
> < } catch (java.lang.reflect.InvocationTargetException e) {
> < Throwable cause = e.getCause();
> < if (cause != null) {
> < cause.printStackTrace();
> < log.error("Unable to instantiate (1): " + cryptoClassName, cause);
> < }
> < else {
> < e.printStackTrace();
> < log.error("Unable to instantiate (1): " + cryptoClassName, e);
> < }
> < }
> < catch (java.lang.Exception e) {
> ---
> > } catch (java.lang.Exception e) {
> 139,148c128,130
> < Throwable cause = e.getCause();
> < if (cause != null) {
> < cause.printStackTrace();
> < log.error("Unable to instantiate (2): " + cryptoClassName, cause);
> < }
> < else {
> < e.printStackTrace();
> < log.error("Unable to instantiate (2): " + cryptoClassName, e);
> < }
> < throw new RuntimeException(cryptoClassName + " cannot create instance");
> ---
> > e.printStackTrace();
> > log.error("Unable to instantiate (2): " + cryptoClassName, e);
> > throw new RuntimeException(cryptoClassName + " cannot create instance");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
Re: [jira] Created: (WSS-31) Improve logging when crypto class constructor fails
Posted by Ted Toth <te...@yahoo.com>.
This can be close JIRA had a problem and I didn't know the WSS-30 had been created.
"Xavier Toth (JIRA)" <ji...@apache.org> wrote: Improve logging when crypto class constructor fails
---------------------------------------------------
Key: WSS-31
URL: http://issues.apache.org/jira/browse/WSS-31
Project: WSS4J
Type: Improvement
Reporter: Xavier Toth
Assigned to: Davanum Srinivas
If the instantiation of the crypto class fails try and get the real cause and log it so that users will know what to fix.
Diff of CryptoFactory.java:
119,130c119
< } catch (java.lang.reflect.InvocationTargetException e) {
< Throwable cause = e.getCause();
< if (cause != null) {
< cause.printStackTrace();
< log.error("Unable to instantiate (1): " + cryptoClassName, cause);
< }
< else {
< e.printStackTrace();
< log.error("Unable to instantiate (1): " + cryptoClassName, e);
< }
< }
< catch (java.lang.Exception e) {
---
> } catch (java.lang.Exception e) {
139,148c128,130
< Throwable cause = e.getCause();
< if (cause != null) {
< cause.printStackTrace();
< log.error("Unable to instantiate (2): " + cryptoClassName, cause);
< }
< else {
< e.printStackTrace();
< log.error("Unable to instantiate (2): " + cryptoClassName, e);
< }
< throw new RuntimeException(cryptoClassName + " cannot create instance");
---
> e.printStackTrace();
> log.error("Unable to instantiate (2): " + cryptoClassName, e);
> throw new RuntimeException(cryptoClassName + " cannot create instance");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
---------------------------------
Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping