You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Thomas Diesler (JIRA)" <ji...@apache.org> on 2008/04/08 14:49:24 UTC

[jira] Commented: (CXF-1510) Cannot handle anonymous bare requests

    [ https://issues.apache.org/jira/browse/CXF-1510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586781#action_12586781 ] 

Thomas Diesler commented on CXF-1510:
-------------------------------------

@WebService(endpointInterface="org.jboss.test.ws.jaxws.anonymous.Anonymous", serviceName="AnonymousService")
public class AnonymousImpl implements Anonymous
{
   public AnonymousResponse echoAnonymous(AnonymousRequest request)
   {
      AnonymousResponse response = new AnonymousResponse();
      response.message = request.message;

      return response;
   }
}

@XmlType(name="")
@XmlAccessorType(XmlAccessType.FIELD)
public class AnonymousRequest
{
   @XmlElement
   public String message;
}

@XmlType(name="")
@XmlAccessorType(XmlAccessType.FIELD)
public class AnonymousResponse
{
   @XmlElement
   public String message;
}



> Cannot handle anonymous bare requests
> -------------------------------------
>
>                 Key: CXF-1510
>                 URL: https://issues.apache.org/jira/browse/CXF-1510
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.5
>            Reporter: Thomas Diesler
>
> [tdiesler@tddell trunk]$ ant -Dtest=jaxws/anonymous test
> tests-run-internal:
>     [junit] Running org.jboss.test.ws.jaxws.anonymous.AnonymousTestCase
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 7.294 sec
>     [junit] Test org.jboss.test.ws.jaxws.anonymous.AnonymousTestCase FAILED
> 14:43:30,862 ERROR [[AnonymousService]] Allocate exception for servlet AnonymousService
> java.lang.NullPointerException
>         at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createBareMessage(ReflectionServiceFactoryBean.java:951)
>         at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:330)
>         at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:368)
>         at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:162)
>         at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:97)
>         at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:74)

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