You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by chengy <ch...@yahoo.com.cn> on 2010/01/18 09:59:04 UTC

Load Definition error

Today,I update cxf to 2.2.5,but when try below code,it throws exception and
very slow:

String url =
"http://www.webxml.com.cn/WebServices/RandomFontsWebService.asmx?wsdl";
OASISCatalogManager.getCatalogManager(getBus()).loadContextCatalogs();
Definition d = ((WSDLManager)
getBus().getExtension(WSDLManager.class)).getDefinition(url);

Exception in thread "main" java.lang.AbstractMethodError:
org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
	at org.apache.cxf.staxutils.StaxUtils.addLocation(StaxUtils.java:941)
	at org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:799)
	at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:868)
	at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:217)
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:179)
-- 
View this message in context: http://old.nabble.com/Load-Definition-error-tp27207665p27207665.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Load Definition error

Posted by Daniel Kulp <dk...@apache.org>.
You have an OLD version of xerces on your classpath someplace.    Definitely 
check your dependencies.

Dan


On Mon January 18 2010 3:59:04 am chengy wrote:
> Today,I update cxf to 2.2.5,but when try below code,it throws exception and
> very slow:
> 
> String url =
> "http://www.webxml.com.cn/WebServices/RandomFontsWebService.asmx?wsdl";
> OASISCatalogManager.getCatalogManager(getBus()).loadContextCatalogs();
> Definition d = ((WSDLManager)
> getBus().getExtension(WSDLManager.class)).getDefinition(url);
> 
> Exception in thread "main" java.lang.AbstractMethodError:
> org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lan
> g/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object; at
>  org.apache.cxf.staxutils.StaxUtils.addLocation(StaxUtils.java:941) at
>  org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:799) at
>  org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:868) at
>  org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
> 	at
> org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:2
> 17) at
> org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:17
> 9)
> 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog