[Issue 588] New - Generate incorrect metadata for user defined exception if it do not have instance attribute defined

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

[Issue 588] New - Generate incorrect metadata for user defined exception if it do not have instance attribute defined

by xliu-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://jax-ws.dev.java.net/issues/show_bug.cgi?id=588
                 Issue #|588
                 Summary|Generate incorrect metadata for user defined exception
                        | if it do not have instance attribute defined
               Component|jax-ws
                 Version|2.1.4
                Platform|All
              OS/Version|Windows XP
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P1
            Subcomponent|wsgen
             Assigned to|issues@jax-ws
             Reported by|xliu






------- Additional comments from xliu@... Wed Jun 25 17:44:47 +0000 2008 -------
The wsgen version 2.1.3/2.1.4 can not generate the correct metadata for user
defined exception if it does not have instance attribute.  For example

public class UserException extends Exception {
    private static final long serialVersionUID = 1L;
    public UserException() {super();}
    public UserException(final String msg, final Throwable cause)
{super(msg,cause);}
    public UserException(final String msg) { super(msg);}
    public UserException(final Throwable cause) { super(cause); }
}

Instead generate the following metadata:

@XmlRootElement(name = "NotificationException", namespace =
"http://service.notification.westernasset.com/")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NotificationException", namespace =
"http://service.notification.westernasset.com/", propOrder = {
    "message"
})
public class UserExceptionBean {...}

It generate the following:

@XmlRootElement(name = "NotificationException", namespace =
"http://service.notification.westernasset.com/")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NotificationException", namespace =
"http://service.notification.westernasset.com/")
public class NotificationExceptionBean {...}

It cause the issue during the server startup (on JBOSS4.2.2.GA and native ms
version 3.0.2.GA).

Please help, Thanks.

Louie

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


[Issue 588] Generate incorrect metadata for user defined exception if it do not have instance attribute defined

by jitu-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://jax-ws.dev.java.net/issues/show_bug.cgi?id=588



User jitu changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|issues@jax-ws             |ramapulavarthi
--------------------------------------------------------------------------------




------- Additional comments from jitu@... Wed Jul  9 15:15:53 +0000 2008 -------
Assigning it to Rama

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


[Issue 588] Generate incorrect metadata for user defined exception if it do not have instance attribute defined

by jitu-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://jax-ws.dev.java.net/issues/show_bug.cgi?id=588



User jitu changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |INVALID
--------------------------------------------------------------------------------




------- Additional comments from jitu@... Wed Jul  9 18:31:24 +0000 2008 -------
If there is only one property in the exception bean, why should the tool
generate propOrder ? I tried with JAX-WS RI 2.1.4 runtime and didn't find any
issue. Hence marking it as invalid. This may be issue with JBOSS's runtime.

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

LightInTheBox - Buy quality products at wholesale price