cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: org.apache.cxf.wsdl11.WSDLManagerImpl - ArrayIndexOutOfBoundsException during initialization
Date Fri, 24 Sep 2010 17:58:48 GMT

Honestly, I have no idea what could cause this.   Looking at the code in 
addExtensions, there isn't any place that we would be using a "1" for an 
index.   Thus, it must be occuring inside one of the other methods that it is 
calling.  Without a full stack trace from where the Exception was originally 
thrown, I'm not sure how to approach this.

Can you grab the source jar for CXF and possibly remote debug into it and 
trace into the methods?   That may at least help narrow things down.

Dan


On Friday 24 September 2010 12:15:40 pm Dirk wrote:
> Hi Dan,
> 
> thanks for your reply. I found out, that the problem occurs during
> JAXBExtensionHelper.addExtensions(registry, parentType, elementType);
> 
>     for the following values:
>     elementType = org.apache.cxf.ws.addressing.wsdl.UsingAddressing  and
>     parentType = javax.wsdl.Binding
> 
> I also did the following to make sure it's nothing special in my
> implementation.
> 
> 1) Download the latest samples and deployed the helloworld.war out of
> wsdl_first_xmlbeans-sample
> ===> same problem
> 
> 2) Packaged the war into an ear as described here
> http://cxf.apache.org/docs/application-server-specific-configuration-guide.
> html#ApplicationServerSpecificConfigurationGuide-Packwarinanear%252Cdeployt
> heearwithweblogicapplication.xml ===> same problem
> 
> The war works on a BEA 9.2 on Windows but not on the unix (HP/UX) where
> it's supposed to be deployed to.
> 
> Here are some more details you may need to know:
> 
> java.vm.specification.vendor=Sun Microsystems Inc.
> java.runtime.version=1.5.0.08-_04_may_2007_06_31
> java.version=1.5.0.08
> java.endorsed.dirs=/testdata/wls_domains_920/lib/endorsed
> sun.boot.class.path=/testdata/wls_domains_920/lib/*endorsed/geronimo-ws-**m
> etadata_2.0_spec-1.1.1.jar*:/testdata/wls_domains_920/lib/*endorsed/js.**ja
> r*:/opt/java1.5/jre/lib/rt.jar:/opt/java1.5/jre/lib/i18n.jar:/opt/java1.5/j
> re/lib/sunrsasign.jar:/opt/java1.5/jre/lib/jsse.jar:/opt/java1.5/jre/lib/jc
> e.jar:/opt/java1.5/jre/lib/charsets.jar:/opt/java1.5/jre/classes
> java.class.path=:/data/bea923/patch_weblogic923/profiles/default/sys_manif
> est_classpath/weblogic_patch.jar:/opt/java1.5/lib/tools.jar:/data/bea923/we
> blogic92/server/lib/weblogic_sp.jar:/data/bea923/weblogic92/server/lib/webl
> ogic.jar:/data/bea923/weblogic92/server/lib/*webservices.jar*::/data/bea923
> /weblogic92/common/eval/pointbase/lib/pbclient51.jar:/data/bea923/weblogic9
> 2/server/lib/xqrl.jar::
> 
> 
> And here's the stacktrace which actually does'nt give you more
> informations:
> 
> weblogic.application.ModuleException: [HTTP:101216]Servlet: "cxf" failed
> to preload on startup in Web application: "/helloworld".
> java.lang.RuntimeException:
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in URL
> [zip:/data/wls_domains_920/Prov_EW2/servers/AdminServer/tmp/_WL_user/hellow
> orld/bexav1/war/WEB-INF/lib/cxf-2.2.10.jar!/META-INF/cxf/cxf.fixml]:
> Instantiation of bean failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]:
> Constructor threw exception; nested exception is
> java.lang.ArrayIndexOutOfBoundsException: 1
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined
> in URL
> [zip:/data/wls_domains_920/Prov_EW2/servers/AdminServer/tmp/_WL_user/hellow
> orld/bexav1/war/WEB-INF/lib/cxf-2.2.10.jar!/META-INF/cxf/cxf.fixml]:
> Instantiation of bean failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]:
> Constructor threw exception; nested exception is
> java.lang.ArrayIndexOutOfBoundsException: 1
> Caused by: org.springframework.beans.BeanInstantiationException: Could
> not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]:
> Constructor threw exception; nested exception is
> java.lang.ArrayIndexOutOfBoundsException: 1
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
> java.lang.ArrayIndexOutOfBoundsException: 1
> 
> Thanks in advance,
> Dirk
> 
> Daniel Kulp schrieb:
> > Is there a full stack trace for it?   In particular a line number.
> > 
> > Dan
> > 
> > On Thursday 23 September 2010 10:31:57 am Dirk wrote:
> >> Hi,
> >> 
> >> I have created a war file which could be deployed successfully on a BEA
> >> Weblogic 9.2. on Windows.
> >> 
> >> Trying to deploy and start the same war on a Unix environment failes
> >> with a ArrayIndexOutOfBoundsException during initialization of
> >> WSDLManagerImpl like this:/
> >> /
> >> 
> >> /Context initialization failed //
> >> org.springframework.beans.factory.BeanCreationException: Error creating
> >> bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path
> >> resource [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested
> >> exception is org.springframework.beans.BeanInstantiationException: Could
> >> not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]:
> >> Constructor threw exception; nested exception is
> >> java.lang.ArrayIndexOutOfBoundsException: 1
> >> Caused by: org.springframework.beans.BeanInstantiationException: *Could
> >> not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]:
> >> Constructor threw exception; nested exception is
> >> java.lang.ArrayIndexOutOfBoundsException: 1*/
> >> 
> >> Any idea?
> >> 
> >> Cheers,
> >> Dirk

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

Mime
View raw message