cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tofdragon (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-5774) JaxWsDynamicClientFactory.newInstance().createClient(“wsdl”) java.lang.reflect.UndeclaredThrowableException
Date Wed, 28 May 2014 12:00:06 GMT
tofdragon created CXF-5774:
------------------------------

             Summary: JaxWsDynamicClientFactory.newInstance().createClient(“wsdl”) java.lang.reflect.UndeclaredThrowableException
                 Key: CXF-5774
                 URL: https://issues.apache.org/jira/browse/CXF-5774
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.2
         Environment: CXF version: 2.2.12 
JDK version: 1.6
J2EE server: Tomcat5.5
            Reporter: tofdragon
             Fix For: 2.2


JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
Client client = dcf.createClient(wsdlAddress);
client.getOutInterceptors().add(new org.apache.cxf.interceptor.LoggingOutInterceptor());
client.getInInterceptors().add(new org.apache.cxf.interceptor.LoggingInInterceptor());

Sometimes,dcf.createClient(wsdlAddress) make java.lang.reflect.UndeclaredThrowableException

java.lang.reflect.UndeclaredThrowableException
        at com.sun.proxy.$Proxy78.parseSchema(Unknown Source)
        at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.addSchemas(DynamicClientFactory.java:423)
        at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:271)
        at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:198)
        at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:191)
        at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:146)

Caused by: java.lang.StackOverflowError
        at java.lang.String.indexOf(String.java:1521)
        at org.apache.xerces.dom.ElementNSImpl.setName(Unknown Source)
        at org.apache.xerces.dom.ElementNSImpl.<init>(Unknown Source)
        at org.apache.xerces.dom.CoreDocumentImpl.createElementNS(Unknown Source)
        at com.sun.xml.bind.marshaller.SAX2DOMEx.startElement(SAX2DOMEx.java:126)
        at com.sun.tools.xjc.reader.internalizer.DOMBuilder.startElement(DOMBuilder.java:88)
        at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at com.sun.tools.xjc.reader.internalizer.WhitespaceStripper.startElement(WhitespaceStripper.java:109)
        at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at com.sun.tools.xjc.reader.internalizer.VersionChecker.startElement(VersionChecker.java:98)
        at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl.startElement(AbstractReferenceFinderImpl.java:84)
        at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:239)

I don't know what's the reason,very sometimes createClient is ok,but sometime createClient
didn't work. Can anybody point me ? thanks very much.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message