cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Bequeaith (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-1450) java2wsdl throws NullPointerException with non-public contstructor in header
Date Sat, 23 Feb 2008 00:21:21 GMT
java2wsdl throws NullPointerException with non-public contstructor in header
----------------------------------------------------------------------------

                 Key: CXF-1450
                 URL: https://issues.apache.org/jira/browse/CXF-1450
             Project: CXF
          Issue Type: Improvement
          Components: Tooling
    Affects Versions: 2.0.4
         Environment: Windows XP, JDK 1.5_x
            Reporter: Dan Bequeaith
            Priority: Minor


public class Foo
{
  Foo(){}
}

@WebService
public interface IWebService
{
  public callFoo(@WebParam (header=true) Foo aFoo);
}

By virtue of the constructor of class Foo being non-public, the java2wsdl tool throws a NullPointerException.
 At the very least, a more useful message would be outstanding.  Base case would allow this
package visibility to be accepted by the tool.  Note that the tool completes successfully
when the header annotation is left out.

Here is a copy of the stack trace...

     [java] log4j:WARN No appenders could be found for logger (org.apache.cxf.bus.spring.BusApplicationContext).
     [java] log4j:WARN Please initialize the log4j system properly.
     [java] Feb 22, 2008 6:19:08 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
     [java] INFO: Creating Service {http://ws.rcl.focus.com/}WsContentManagementService from
class com.focus.rcl.ws.WsContentManagement
     [java] Error: java.lang.NullPointerException
     [java]
     [java] java.lang.RuntimeException: java.lang.NullPointerException
     [java]     at org.apache.cxf.frontend.AbstractServiceFactory.createService(AbstractServiceFactory.java:41)
     [java]     at org.apache.cxf.tools.java2wsdl.processor.JavaToProcessor.process(JavaToProcessor.java:88)
     [java]     at org.apache.cxf.tools.java2wsdl.JavaToWSDLContainer.execute(JavaToWSDLContainer.java:58)
     [java]     at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
     [java]     at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:52)
     [java]     at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:39)
     [java]     at org.apache.cxf.tools.java2wsdl.JavaToWSDL.run(JavaToWSDL.java:74)
     [java]     at org.apache.cxf.tools.java2wsdl.JavaToWSDL.main(JavaToWSDL.java:42)
     [java] Caused by: java.lang.NullPointerException
     [java]     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.checkForElement(ReflectionServiceFactoryBean.java:819)
     [java]     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWrappedSchema(ReflectionServiceFactoryBean.java:761)
     [java]     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:317)
     [java]     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:362)
     [java]     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:156)
     [java]     at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:89)
     [java]     at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:74)
     [java]     at org.apache.cxf.frontend.AbstractServiceFactory.createService(AbstractServiceFactory.java:39)
     [java]     ... 7 more
     [java] JavaToWSDL Error : java.lang.NullPointerException
     [java]
     [java] org.apache.cxf.tools.common.ToolException: java.lang.NullPointerException
     [java]     at org.apache.cxf.tools.java2wsdl.JavaToWSDLContainer.execute(JavaToWSDLContainer.java:75)
     [java]     at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
     [java]     at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:52)
     [java]     at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:39)
     [java]     at org.apache.cxf.tools.java2wsdl.JavaToWSDL.run(JavaToWSDL.java:74)
     [java]     at org.apache.cxf.tools.java2wsdl.JavaToWSDL.main(JavaToWSDL.java:42)
     [java] Caused by: java.lang.NullPointerException
     [java]     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.checkForElement(ReflectionServiceFactoryBean.java:819)
     [java]     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWrappedSchema(ReflectionServiceFactoryBean.java:761)
     [java]     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:317)
     [java]     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:362)
     [java]     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:156)
     [java]     at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:89)
     [java]     at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:74)
     [java]     at org.apache.cxf.frontend.AbstractServiceFactory.createService(AbstractServiceFactory.java:39)
     [java]     at org.apache.cxf.tools.java2wsdl.processor.JavaToProcessor.process(JavaToProcessor.java:88)
     [java]     at org.apache.cxf.tools.java2wsdl.JavaToWSDLContainer.execute(JavaToWSDLContainer.java:58)
     [java]     ... 5 more

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


Mime
View raw message