cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Tam (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-524) java2wsdl fails if SEI throws exception other than RMIException
Date Thu, 12 Apr 2007 22:27:15 GMT
java2wsdl fails if SEI throws exception other than RMIException
---------------------------------------------------------------

                 Key: CXF-524
                 URL: https://issues.apache.org/jira/browse/CXF-524
             Project: CXF
          Issue Type: Bug
            Reporter: William Tam
         Attachments: test.tar.gz

After applying the patch for CXF-523 (ConcurrentModificationException thrown by createJAXBContext),
the use case hit the next error.

untar the attached tarball to C:\dbtest and run the following command:
java2wsdl -cp C:\dbtest  com.iona.dbtest.Database

org.apache.cxf.tools.common.ToolException
        at org.apache.cxf.tools.java2wsdl.JavaToWSDL.execute(JavaToWSDL.java:90)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:84)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:52)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:39)
        at org.apache.cxf.tools.java2wsdl.JavaToWSDL.runTool(JavaToWSDL.java:110)
        at org.apache.cxf.tools.java2wsdl.JavaToWSDL.main(JavaToWSDL.java:101)
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
java.lang.StackTraceElement does not have a no-arg default constructor.
        this problem is related to the following location:
                at java.lang.StackTraceElement
                at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
                at java.lang.Throwable
                at java.lang.Exception
                at com.iona.dbtest.DBServiceFault_Exception
        at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:389)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:236)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:368)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
        at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContext(JAXBDataBinding.java:356)
        at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:246)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:211)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:228)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:128)
        at org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:73)
        at org.apache.cxf.tools.java2wsdl.processor.internal.ServiceBuilder.build(ServiceBuilder.java:39)
        at org.apache.cxf.tools.java2wsdl.processor.JavaToProcessor.process(JavaToProcessor.java:58)
        at org.apache.cxf.tools.java2wsdl.JavaToWSDL.execute(JavaToWSDL.java:73)

        ... 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