You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Björn Hamann (JIRA)" <ji...@apache.org> on 2007/09/21 10:51:51 UTC

[jira] Created: (AXIS2-3222) OMException with the message "localname can not be null or empty"

OMException with the message "localname can not be null or empty"
-----------------------------------------------------------------

                 Key: AXIS2-3222
                 URL: https://issues.apache.org/jira/browse/AXIS2-3222
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.3
            Reporter: Björn Hamann


I am getting an OMException in my generated MessageReiceiverInOut-Class when using a wsdl fault in my wsdl (enclosed).

In the method invokeBusinessLogic the thrown EfmServiceException is caught an the method toOM is called to create the OMElement for the fault:

            if (e.getFaultMessage() != null){
                f.setDetail(toOM(e.getFaultMessage(),false));
            }

In the method toOM the following code is generated to create the OMElement:

factory.createOMElement(source, "", namespace);

Here the empty string is raising a OMException with the message "localname can not be null or empty". If the e.getFaultMessage() returns null everything works fine, but of course no data is transportet to the client.

-- 
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@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3222) OMException with the message "localname can not be null or empty"

Posted by "Björn Hamann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529350 ] 

Björn Hamann commented on AXIS2-3222:
-------------------------------------

I forgot to mention that the problem occurs when using jaxbri databinding.

> OMException with the message "localname can not be null or empty"
> -----------------------------------------------------------------
>
>                 Key: AXIS2-3222
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3222
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3
>            Reporter: Björn Hamann
>         Attachments: EfmService_1_0.wsdl
>
>
> I am getting an OMException in my generated MessageReiceiverInOut-Class when using a wsdl fault in my wsdl (enclosed).
> In the method invokeBusinessLogic the thrown EfmServiceException is caught an the method toOM is called to create the OMElement for the fault:
>             if (e.getFaultMessage() != null){
>                 f.setDetail(toOM(e.getFaultMessage(),false));
>             }
> In the method toOM the following code is generated to create the OMElement:
> factory.createOMElement(source, "", namespace);
> Here the empty string is raising a OMException with the message "localname can not be null or empty". If the e.getFaultMessage() returns null everything works fine, but of course no data is transportet to the client.

-- 
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@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-3222) OMException with the message "localname can not be null or empty"

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-3222.
-------------------------------------------------

    Resolution: Fixed
      Assignee: Amila Chinthaka Suriarachchi

fixed the issue.

> OMException with the message "localname can not be null or empty"
> -----------------------------------------------------------------
>
>                 Key: AXIS2-3222
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3222
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3
>            Reporter: Björn Hamann
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments: EfmService_1_0.wsdl
>
>
> I am getting an OMException in my generated MessageReiceiverInOut-Class when using a wsdl fault in my wsdl (enclosed).
> In the method invokeBusinessLogic the thrown EfmServiceException is caught an the method toOM is called to create the OMElement for the fault:
>             if (e.getFaultMessage() != null){
>                 f.setDetail(toOM(e.getFaultMessage(),false));
>             }
> In the method toOM the following code is generated to create the OMElement:
> factory.createOMElement(source, "", namespace);
> Here the empty string is raising a OMException with the message "localname can not be null or empty". If the e.getFaultMessage() returns null everything works fine, but of course no data is transportet to the client.

-- 
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@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-3222) OMException with the message "localname can not be null or empty"

Posted by "Björn Hamann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Björn Hamann updated AXIS2-3222:
--------------------------------

    Attachment: EfmService_1_0.wsdl

the wsdl

> OMException with the message "localname can not be null or empty"
> -----------------------------------------------------------------
>
>                 Key: AXIS2-3222
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3222
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3
>            Reporter: Björn Hamann
>         Attachments: EfmService_1_0.wsdl
>
>
> I am getting an OMException in my generated MessageReiceiverInOut-Class when using a wsdl fault in my wsdl (enclosed).
> In the method invokeBusinessLogic the thrown EfmServiceException is caught an the method toOM is called to create the OMElement for the fault:
>             if (e.getFaultMessage() != null){
>                 f.setDetail(toOM(e.getFaultMessage(),false));
>             }
> In the method toOM the following code is generated to create the OMElement:
> factory.createOMElement(source, "", namespace);
> Here the empty string is raising a OMException with the message "localname can not be null or empty". If the e.getFaultMessage() returns null everything works fine, but of course no data is transportet to the client.

-- 
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@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org