1 Reply Latest reply on Mar 17, 2009 5:44 AM by Alejandro Guizar

    bpel fault handler problem ----- plsssss help

    lakshmiprasad K Newbie

      Hi all,

      I have a problem with jbpm fault handler....

      We have a custom Exception class XSLTransformServiceException which is being used by XSLTTransform webservice.

      This XSLTransformServiceException extends Exception and we want to get the error message(by using getMessage()) from the Exception class and assign this message to one of my webservice request variable.

      But We are getting this Exception as NULL.

      Code follows:

      
      /**@Copyright (c) 2008 HCL Technologies Limited. All Rights Reserved.
       *
       * @project : GRCMIP
       *
       */
      package org.hcl.grcmip.rds.exception;
      
      import javax.xml.bind.annotation.XmlAccessType;
      import javax.xml.bind.annotation.XmlAccessorType;
      import javax.xml.bind.annotation.XmlElement;
      import javax.xml.bind.annotation.XmlType;
      
      import org.hcl.grcmip.common.exception.ServiceException;
      
      /**
       * This class is used to handle XSLTransformServiceException for XSLT service
       * @author Rajyalakshmi.S
       *
       */
      
      
      @javax.xml.ws.WebFault(name="XSLTransformFault")
      @XmlAccessorType(XmlAccessType.FIELD)
      @XmlType(name = "XSLTransformFault", propOrder = {
       "message"
      })
      public class XSLTransformServiceException extends ServiceException {
      
       @XmlElement(name = "message")
       protected String message = null;
      
       public XSLTransformServiceException(String message) {
       super(message);
       this.message=message;
      
      
       }
      
       /**
       * @param message
       * @param cause
       */
       public XSLTransformServiceException(String message, Throwable cause) {
      
       super(message, cause);
       this.message=message;
       }
      
       /**
       * @param exception
       * @param message
       */
       public XSLTransformServiceException(Throwable exception, String message) {
       super(message, exception);
       this.message=message;
       }
      
       /**
       * @param message
       * @param exception
       * @param errCode
       */
       public XSLTransformServiceException(String message, Throwable exception, int errCode) {
       super(message, exception, errCode);
       this.message=message;
       //setMessage(message);
       }
      
       public String getMessage(){
      
       return super.getMessage();
       }
      
      
      
      }



      Please help me if you already came across such problem..........

      Regards,
      Lakshmi