[ http://jira.jboss.com/jira/browse/JBWS-
2185?page=comments#action_12413145 ]
Thomas Diesler commented on JBWS-2185:
--------------------------------------
JBossAS-5.0.0.Beta4, JBossAS-4.2.2.GA
> NPE in JBossXSEntityResolver while deploying wsconsume
generated WS
>
------------------------------------------------------------
-------
>
> Key: JBWS-2185
> URL: http://ji
ra.jboss.com/jira/browse/JBWS-2185
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-native
> Environment: Recognized on Linux 2.6.24-16/x86
using Sun's JDK 1.5.0_07-b03
> Reproduced on Windows Vista/x86 using Sun's JDK
1.5.0_14-b03
> Reporter: Maximilian Schmidt
> Assigned To: Thomas Diesler
>
> Deploying a bottom-up webservice, which uses complex
messages (compiled from eGIF/UBL2 schemas), results in a NPE
as shown below:
> java.lang.NullPointerException
> at
org.jboss.ws.metadata.wsdl.xmlschema.JBossXSEntityResolver.g
etXMLInputSource(JBossXSEntityResolver.java:167)
> at
org.jboss.ws.metadata.wsdl.xmlschema.JBossXSEntityResolver.r
esolveEntity(JBossXSEntityResolver.java:135)
> at
org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknow
n Source)
> at
org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Un
known Source)
> at
org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchem
a(Unknown Source)
> at
org.apache.xerces.impl.xs.traversers.XSDHandler.constructTre
es(Unknown Source)
> at
org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(
Unknown Source)
> at
org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown
Source)
> at
org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknow
n Source)
> at
org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:182)
> at
org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Read
er.java:391)
> at
org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Read
er.java:406)
> at
org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL1
1Reader.java:172)
> at
org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDef
initionsFactory.java:128)
> at
org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataB
uilder.processOrGenerateWSDL(JAXWSWebServiceMetaDataBuilder.
java:373)
> at
org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataB
uilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilde
r.java:158)
> at
org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuild
er.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java
:50)
> at
org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.
buildMetaData(JAXWSMetaDataBuilderJSE.java:63)
> at
org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.cre
ate(UnifiedMetaDataDeploymentAspect.java:66)
> at
org.jboss.wsf.framework.deployment.DeploymentAspectManagerIm
pl.deploy(DeploymentAspectManagerImpl.java:115)
> at
org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(A
rchiveDeployerHook.java:97)
> at
org.jboss.wsf.container.jboss42.DeployerInterceptor.start(De
ployerInterceptor.java:90)
> at
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInt
erceptor.start(SubDeployerInterceptorSupport.java:188)
> at
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeploy
erInterceptor.java:95)
> at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBea
nInvoker.java:264)
> at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.j
ava:659)
> at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:21
0)
> at $Proxy45.start(Unknown Source)
> at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:10
25)
> at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:8
19)
> at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:7
82)
> at
sun.reflect.GeneratedMethodAccessor20.invoke(Unknown
Source)
> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(Reflecte
dDispatcher.java:155)
> at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(Abstract
Interceptor.java:133)
> at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invo
ke(ModelMBeanOperationInterceptor.java:142)
> at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBea
nInvoker.java:264)
> at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.j
ava:659)
> at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:21
0)
> at $Proxy9.deploy(Unknown Source)
> at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URL
DeploymentScanner.java:421)
> at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDe
ploymentScanner.java:610)
> at
org.jboss.deployment.scanner.AbstractDeploymentScanner$Scann
erThread.doScan(AbstractDeploymentScanner.java:263)
> at
org.jboss.deployment.scanner.AbstractDeploymentScanner$Scann
erThread.loop(AbstractDeploymentScanner.java:274)
> at
org.jboss.deployment.scanner.AbstractDeploymentScanner$Scann
erThread.run(AbstractDeploymentScanner.java:225)
> Generating a WSDL from classes using wsprovide and
afterwards way back to code using wsconsume results in a web
service that on deployment produces the very same error,
although wsprovide/wsconsume work flawlessly. See the
mentioned forum thread for more information or take a look
at
> ht
tp://page.mi.fu-berlin.de/schmidtm/jbossws-jaxb/
> where the mentioned WSDL along with an eclipse/ant
project that generates a deployable WAR can be found and
used to reproduce the problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atl
assian.com/software/jira
_______________________________________________
jbossws-issues mailing list
jbossws-issues lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossws-issues
a>
|