NPE in ServiceUtils
-------------------
Key: CXF-1522
URL: https://issues.apache.org/jira/browse/CXF-1522
Project: CXF
Issue Type: Bug
Affects Versions: 2.0.5
Reporter: Thomas Diesler
[EMAIL PROTECTED] trunk]$ ant -Dtest=jaxws/jbws1566 test
Buildfile: build.xml
tests-prepare:
[echo] -----------------------------------------------
[echo] jboss.home =
/home/tdiesler/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA
[echo] excludesfile =
/home/tdiesler/svn/jbossws/stack/cxf/trunk/src/test/resources/test-excludes-jboss422.txt
[echo] java.home = /usr/java/jdk1.5.0_12/jre
[echo] jboss.bind = localhost
[echo] -----------------------------------------------
tests-classpath-jboss50:
tests-classpath-jboss42:
tests-classpath:
tests-init:
test:
tests-prepare:
[echo] -----------------------------------------------
[echo] jboss.home =
/home/tdiesler/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA
[echo] excludesfile =
/home/tdiesler/svn/jbossws/stack/cxf/trunk/src/test/resources/test-excludes-jboss422.txt
[echo] java.home = /usr/java/jdk1.5.0_12/jre
[echo] jboss.bind = localhost
[echo] -----------------------------------------------
tests-classpath-jboss50:
tests-classpath-jboss42:
tests-classpath:
tests-init:
tests-run-internal:
[junit] Running org.jboss.test.ws.jaxws.jbws1566.c.JBWS1566TestCase
[junit] wsdl
URL:http://localhost:8080/jaxwstest/Jaxb20StatelessTestBean?wsdl
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 6.004 sec
[junit] Test org.jboss.test.ws.jaxws.jbws1566.c.JBWS1566TestCase FAILED
BUILD SUCCESSFUL
Total time: 10 seconds
[EMAIL PROTECTED] trunk]$ cat
output/tests/reports/TEST-org.jboss.test.ws.jaxws.jbws1566.c.JBWS1566TestCase.txt
Testsuite: org.jboss.test.ws.jaxws.jbws1566.c.JBWS1566TestCase
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 6.004 sec
------------- Standard Output ---------------
wsdl URL:http://localhost:8080/jaxwstest/Jaxb20StatelessTestBean?wsdl
------------- ---------------- ---------------
Testcase: testWebService took 4.668 sec
Caused an ERROR
null
java.lang.NullPointerException
at
org.apache.cxf.helpers.ServiceUtils.makeServiceNameFromClassName(ServiceUtils.java:42)
at
org.apache.cxf.service.factory.DefaultServiceConfiguration.getFaultName(DefaultServiceConfiguration.java:75)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.getFaultName(ReflectionServiceFactoryBean.java:1631)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.setFaultClassInfo(ReflectionServiceFactoryBean.java:643)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeClassInfo(ReflectionServiceFactoryBean.java:550)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperation(JaxWsServiceFactoryBean.java:173)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSDLOperations(ReflectionServiceFactoryBean.java:482)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperations(JaxWsServiceFactoryBean.java:182)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:280)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:366)
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.jaxws.ServiceImpl.createPort(ServiceImpl.java:353)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:265)
at javax.xml.ws.Service.getPort(Service.java:120)
at
org.jboss.test.ws.jaxws.jbws1566.c.JBWS1566TestCase.testWebService(JBWS1566TestCase.java:62)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.