[jira] Created: (AXIS2-3412) Custom exception handling issue with pojos

View: New views
16 Messages — Rating Filter:   Alert me  

[jira] Created: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Custom exception handling issue with pojos
------------------------------------------

                 Key: AXIS2-3412
                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
    Affects Versions: nightly
         Environment: winxp, jdk15
            Reporter: Charitha Kankanamge
            Assignee: Amila Chinthaka Suriarachchi
            Priority: Critical
         Attachments: CustomexceptionService.aar

'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.

A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.

Steps to reproduce:
===============
1. Create service impl class and custom exception class as follows
public class CustomexceptionService {
       
          public int addOneToPositiveValue(int value) throws CustomException {
                if(value < 1) {
                    throw(new CustomException());
                }
               
                return(value + 1);
            }
        }

public class CustomException extends Exception{
       
         private static final long serialVersionUID = 999999999;
            public CustomException() {
                super();
            }
            public String toString() {
                return(super.toString() + "org.test.CustomException");
            }

}

2. Create a service archive and deploy the service
3. Generate client stub using the ?wsdl of the service
wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
4. Check the generated stub



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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Updated: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Charitha Kankanamge updated AXIS2-3412:
---------------------------------------

    Attachment: CustomexceptionService.aar

Attached service archive

> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: CustomexceptionService.aar
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Commented: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/jira/browse/AXIS2-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553655 ]

Pär Malmqvist commented on AXIS2-3412:
--------------------------------------

Note that this JIRA includes two issues.
The first issue is that the code doesn't compile for a nightly build.

The second issue is that Custom Exceptions probably not is handled that well when using "code-first" approach.
Its hard to catch the custom exceptions at client side.
So dont forget to check this link please, http://marc.info/?l=axis-user&m=119805625224409&w=2 

> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: CustomexceptionService.aar
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Commented: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/jira/browse/AXIS2-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553674 ]

Amila Chinthaka Suriarachchi commented on AXIS2-3412:
-----------------------------------------------------

hi charitha,
Could you please attach you wsdl?
Please note that here wsdl2java has nothing do with the way you generate the wsdl. it only concerns about the wsdl with which it going to generate the client. if you report these errors accordingly it is easy to us to debug and fix the issue.


> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: CustomexceptionService.aar
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Updated: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Charitha Kankanamge updated AXIS2-3412:
---------------------------------------

    Attachment: CustomExceptionService.wsdl

Attached wsdl

> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: CustomexceptionService.aar, CustomExceptionService.wsdl
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Commented: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/jira/browse/AXIS2-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553707 ]

Charitha Kankanamge commented on AXIS2-3412:
--------------------------------------------

Hello Amila,
Actually I didn't explicitly use a wsdl for codegen. As I mentioned in the steps, I used ?wsdl of the attached service. I have attached it for your reference.

regards
Charitha

> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: CustomexceptionService.aar, CustomExceptionService.wsdl
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Assigned: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Amila Chinthaka Suriarachchi reassigned AXIS2-3412:
---------------------------------------------------

    Assignee: Deepal Jayasinghe  (was: Amila Chinthaka Suriarachchi)

fixed the stub compilation error. Please look at the code-first part.

> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>         Attachments: CustomexceptionService.aar, CustomExceptionService.wsdl
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Updated: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Davanum Srinivas updated AXIS2-3412:
------------------------------------

    Fix Version/s: 1.4

> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>             Fix For: 1.4
>
>         Attachments: CustomexceptionService.aar, CustomExceptionService.wsdl
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Commented: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/jira/browse/AXIS2-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576962#action_12576962 ]

Deepal Jayasinghe commented on AXIS2-3412:
------------------------------------------

Hi Charitha,

With some of the fixes I did in last few days this issue should be fixed.

Thank you!
Deepal

> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>             Fix For: 1.4
>
>         Attachments: CustomexceptionService.aar, CustomExceptionService.wsdl
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Resolved: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Deepal Jayasinghe resolved AXIS2-3412.
--------------------------------------

    Resolution: Fixed

Please reopen the issue , if you still have that

Thank you!
Deepal

> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>             Fix For: 1.4
>
>         Attachments: CustomexceptionService.aar, CustomExceptionService.wsdl
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Commented: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/jira/browse/AXIS2-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578430#action_12578430 ]

Pär Malmqvist commented on AXIS2-3412:
--------------------------------------

The "code-first" approach still doesn't work for me.
I tried the snapshot 20080313 and I see no difference from when the issue was reported.
The response from the server is still a huge stacktrace and not a clean CustomException in the detail field.

Please look at: http://marc.info/?l=axis-user&m=119805625224409&w=2

If you think the issue is resolved please explain what you have done and how I can try it.
I might do anything wrong then.

Thanks.

/Pär

 


> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>             Fix For: 1.4
>
>         Attachments: CustomexceptionService.aar, CustomExceptionService.wsdl
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Commented: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/jira/browse/AXIS2-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578437#action_12578437 ]

Pär Malmqvist commented on AXIS2-3412:
--------------------------------------


I have made a comment but I dont know how to reopen the issue.
 
/Pär> Date: Tue, 11 Mar 2008 21:26:46 -0700> From: jira@...> To: par_malmqvist@...> Subject: [jira] Resolved: (AXIS2-3412) Custom exception handling issue with pojos> > > [ https://issues.apache.org/jira/browse/AXIS2-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]> > Deepal Jayasinghe resolved AXIS2-3412.> --------------------------------------> > Resolution: Fixed> > Please reopen the issue , if you still have that> > Thank you!> Deepal> > > Custom exception handling issue with pojos> > ------------------------------------------> >> > Key: AXIS2-3412> > URL: https://issues.apache.org/jira/browse/AXIS2-3412> > Project: Axis 2.0 (Axis2)> > Issue Type: Bug> > Affects Versions: nightly> > Environment: winxp, jdk15> > Reporter: Charitha Kankanamge> > Assignee: Deepal Jayasinghe> > Priority: Critical> > Fix For: 1.4> >> > Attachments: CustomexceptionService.aar, CustomExceptionService.wsdl> >> >> > 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception. > > A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.> > Steps to reproduce:> > ===============> > 1. Create service impl class and custom exception class as follows> > public class CustomexceptionService {> > > > public int addOneToPositiveValue(int value) throws CustomException {> > if(value < 1) {> > throw(new CustomException());> > }> > > > return(value + 1);> > }> > }> > public class CustomException extends Exception{> > > > private static final long serialVersionUID = 999999999;> > public CustomException() {> > super();> > }> > public String toString() {> > return(super.toString() + "org.test.CustomException");> > }> > }> > 2. Create a service archive and deploy the service> > 3. Generate client stub using the ?wsdl of the service> > wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest> > 4. Check the generated stub> > -- > This message is automatically generated by JIRA.> -> You can reply to this email to add a comment to the issue online.>


> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>             Fix For: 1.4
>
>         Attachments: CustomexceptionService.aar, CustomExceptionService.wsdl
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Reopened: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Charitha Kankanamge reopened AXIS2-3412:
----------------------------------------


Reopened the issue as requested by Pär Malmqvist.

> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>             Fix For: 1.4
>
>         Attachments: CustomexceptionService.aar, CustomExceptionService.wsdl
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Updated: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Davanum Srinivas updated AXIS2-3412:
------------------------------------

    Fix Version/s:     (was: 1.4)

wont' fix for 1.4 unless someone chips in with a patch.

thanks,
dims

> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>         Attachments: CustomexceptionService.aar, CustomExceptionService.wsdl
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@...
For additional commands, e-mail: axis-dev-help@...


[jira] Updated: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Nandana Mihindukulasooriya updated AXIS2-3412:
----------------------------------------------

    Attachment: AXIS2-3412.patch

Tested this with Axis2 1.4.1 and worked fine. Didn't get a chance to test with the trunk.

> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>         Attachments: AXIS2-3412.patch, CustomexceptionService.aar, CustomExceptionService.wsdl
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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


[jira] Commented: (AXIS2-3412) Custom exception handling issue with pojos

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/jira/browse/AXIS2-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772489#action_12772489 ]

Amit Mishra commented on AXIS2-3412:
------------------------------------

After applying the above patch I am able to catch exception in my CustomException but I am not getting the proper exception message. Instead I am getting the name of the CustomException (e.g. CustomExceptionException0) in the message.

Please let me know If someone else also has faced the similar issue?

> Custom exception handling issue with pojos
> ------------------------------------------
>
>                 Key: AXIS2-3412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>         Attachments: AXIS2-3412.patch, CustomexceptionService.aar, CustomExceptionService.wsdl
>
>
> 'Duplicate nested type CustomException' Compile error can be seen in the generated stub if a service is deployed using a pojo which throws a custom exception.
> A similar issue has been reported by par Malmqvist in the Axis2 user list. See http://marc.info/?l=axis-user&m=119805625224409&w=2 for more information.
> Steps to reproduce:
> ===============
> 1. Create service impl class and custom exception class as follows
> public class CustomexceptionService {
>
>  public int addOneToPositiveValue(int value) throws CustomException {
>        if(value < 1) {
>            throw(new CustomException());
>        }
>      
>        return(value + 1);
>    }
> }
> public class CustomException extends Exception{
>
> private static final long serialVersionUID = 999999999;
>    public CustomException() {
>        super();
>    }
>    public String toString() {
>        return(super.toString() + "org.test.CustomException");
>    }
> }
> 2. Create a service archive and deploy the service
> 3. Generate client stub using the ?wsdl of the service
> wsdl2java.bat -uri http://10.100.1.118:9762/services/CustomExceptionService?wsdl -o C:\wsas\wsas-2.2\qa-build2\wso2wsas-SNAPSHOT\bin\out -p org.mytest
> 4. Check the generated stub

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