You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Gary Rudolph <Ga...@eharmony.com> on 2008/06/19 07:18:21 UTC

WSDL causes NullPointerException

Any ideas on why the attached WSDL may be causing a  
NullPointerException as a proxy on startup?

 From the trace it leads me to believe it's related to the binding.  
Are there any requirements on things being in different namespaces?

FYI, these WSDL's and Schemas work fine with JAX-WS RI as well as CXF.  
It just seems Synapse/Axis is breaking.


2008-06-18 20:58:35,702 [192.168.13.198-yukon] [main]  INFO  
ProxyService Building Axis service for Proxy service : my-matches_mock
2008-06-18 20:58:36,011 [192.168.13.198-yukon] [main] ERROR  
WSDL11ToAxisServiceBuilder
java.lang.NullPointerException
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.addQNameReference(WSDL11ToAxisServiceBuilder.java:1143)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.addQNameReference(WSDL11ToAxisServiceBuilder.java:1085)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateBinding(WSDL11ToAxisServiceBuilder.java:686)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateEndpoint(WSDL11ToAxisServiceBuilder.java:538)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateEndpoints(WSDL11ToAxisServiceBuilder.java:489)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateService(WSDL11ToAxisServiceBuilder.java:363)
	at  
org 
.apache 
.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:349)
	at  
org 
.apache 
.synapse 
.core 
.axis2 
.SynapseInitializationModule.init(SynapseInitializationModule.java:134)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory 
.initModules(ConfigurationContextFactory.java:226)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory.init(ConfigurationContextFactory.java:204)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory 
.createConfigurationContext(ConfigurationContextFactory.java:80)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory 
.createConfigurationContextFromFileSystem 
(ConfigurationContextFactory.java:184)
	at org.apache.synapse.ServerManager.start(ServerManager.java:106)
	at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
2008-06-18 20:58:36,014 [192.168.13.198-yukon] [main] ERROR  
ProxyService Error building service from WSDL
org.apache.axis2.AxisFault
	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateService(WSDL11ToAxisServiceBuilder.java:397)
	at  
org 
.apache 
.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:349)
	at  
org 
.apache 
.synapse 
.core 
.axis2 
.SynapseInitializationModule.init(SynapseInitializationModule.java:134)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory 
.initModules(ConfigurationContextFactory.java:226)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory.init(ConfigurationContextFactory.java:204)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory 
.createConfigurationContext(ConfigurationContextFactory.java:80)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory 
.createConfigurationContextFromFileSystem 
(ConfigurationContextFactory.java:184)
	at org.apache.synapse.ServerManager.start(ServerManager.java:106)
	at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
Caused by: java.lang.NullPointerException
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.addQNameReference(WSDL11ToAxisServiceBuilder.java:1143)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.addQNameReference(WSDL11ToAxisServiceBuilder.java:1085)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateBinding(WSDL11ToAxisServiceBuilder.java:686)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateEndpoint(WSDL11ToAxisServiceBuilder.java:538)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateEndpoints(WSDL11ToAxisServiceBuilder.java:489)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateService(WSDL11ToAxisServiceBuilder.java:363)
	... 8 more
2008-06-18 20:58:36,016 [192.168.13.198-yukon] [main] FATAL  
ServerManager Synaps startup failed...
org.apache.synapse.SynapseException: Error building service from WSDL
	at  
org 
.apache 
.synapse.core.axis2.ProxyService.handleException(ProxyService.java:615)
	at  
org 
.apache 
.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:362)
	at  
org 
.apache 
.synapse 
.core 
.axis2 
.SynapseInitializationModule.init(SynapseInitializationModule.java:134)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory 
.initModules(ConfigurationContextFactory.java:226)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory.init(ConfigurationContextFactory.java:204)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory 
.createConfigurationContext(ConfigurationContextFactory.java:80)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory 
.createConfigurationContextFromFileSystem 
(ConfigurationContextFactory.java:184)
	at org.apache.synapse.ServerManager.start(ServerManager.java:106)
	at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
Caused by: org.apache.axis2.AxisFault
	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateService(WSDL11ToAxisServiceBuilder.java:397)
	at  
org 
.apache 
.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:349)
	... 7 more
Caused by: java.lang.NullPointerException
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.addQNameReference(WSDL11ToAxisServiceBuilder.java:1143)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.addQNameReference(WSDL11ToAxisServiceBuilder.java:1085)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateBinding(WSDL11ToAxisServiceBuilder.java:686)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateEndpoint(WSDL11ToAxisServiceBuilder.java:538)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateEndpoints(WSDL11ToAxisServiceBuilder.java:489)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateService(WSDL11ToAxisServiceBuilder.java:363)
	... 8 more
Exception in thread "main" org.apache.synapse.SynapseException:  
Synapse startup failed
	at org.apache.synapse.ServerManager.start(ServerManager.java:167)
	at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
Caused by: org.apache.synapse.SynapseException: Error building service  
from WSDL
	at  
org 
.apache 
.synapse.core.axis2.ProxyService.handleException(ProxyService.java:615)
	at  
org 
.apache 
.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:362)
	at  
org 
.apache 
.synapse 
.core 
.axis2 
.SynapseInitializationModule.init(SynapseInitializationModule.java:134)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory 
.initModules(ConfigurationContextFactory.java:226)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory.init(ConfigurationContextFactory.java:204)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory 
.createConfigurationContext(ConfigurationContextFactory.java:80)
	at  
org 
.apache 
.axis2 
.context 
.ConfigurationContextFactory 
.createConfigurationContextFromFileSystem 
(ConfigurationContextFactory.java:184)
	at org.apache.synapse.ServerManager.start(ServerManager.java:106)
	... 1 more
Caused by: org.apache.axis2.AxisFault
	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateService(WSDL11ToAxisServiceBuilder.java:397)
	at  
org 
.apache 
.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:349)
	... 7 more
Caused by: java.lang.NullPointerException
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.addQNameReference(WSDL11ToAxisServiceBuilder.java:1143)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.addQNameReference(WSDL11ToAxisServiceBuilder.java:1085)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateBinding(WSDL11ToAxisServiceBuilder.java:686)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateEndpoint(WSDL11ToAxisServiceBuilder.java:538)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateEndpoints(WSDL11ToAxisServiceBuilder.java:489)
	at  
org 
.apache 
.axis2 
.description 
.WSDL11ToAxisServiceBuilder 
.populateService(WSDL11ToAxisServiceBuilder.java:363)


I submitted a bug, but I'm guessing that probably wasn't necessary.
https://issues.apache.org/jira/browse/SYNAPSE-363

Thanks, Gary


Re: WSDL causes NullPointerException

Posted by Gary Rudolph <Ga...@eharmony.com>.
Asankha,
It is a free tool from WS-I. It tests for WS-I BP 1.0/1.1 compliance  
(depends on profile). It's pretty decent as it catches most things.

The first link is the download (Interoperability Testing Tools 1.1).  
The second link look at the Analyzer section to see how to use it.

http://www.ws-i.org/deliverables/workinggroup.aspx?wg=testingtools
http://www.ibm.com/developerworks/webservices/library/ws-wsitest/

Thanks, Gary

On Jun 19, 2008, at 6:59 PM, Asankha C. Perera wrote:

> Gary
>> Nevermind, it was something on our side. The WSDL was not WS-I
>> compliant, but JAX-WS RI and CXF we're filling in the blanks.
> I found out that there were problems with the WSDL too through  
> Netbeans
> IDE.. but didn't have time to dig deeper..
>> Fixed it after running it through the wsi analyzer.
> Is this a free/open source tool? If so from where can I get it?
>
> asankha


Re: WSDL causes NullPointerException

Posted by "Asankha C. Perera" <as...@wso2.com>.
Gary
> Nevermind, it was something on our side. The WSDL was not WS-I 
> compliant, but JAX-WS RI and CXF we're filling in the blanks. 
I found out that there were problems with the WSDL too through Netbeans 
IDE.. but didn't have time to dig deeper..
> Fixed it after running it through the wsi analyzer.
Is this a free/open source tool? If so from where can I get it?

asankha

Re: WSDL causes NullPointerException

Posted by Ruwan Linton <ru...@gmail.com>.
Nice to hear that you got it to work.

Thanks for informing us :-)

Thanks,
Ruwan

On Thu, Jun 19, 2008 at 11:04 PM, Gary Rudolph <Ga...@eharmony.com>
wrote:

>
> Nevermind, it was something on our side. The WSDL was not WS-I compliant,
> but JAX-WS RI and CXF we're filling in the blanks. Fixed it after running it
> through the wsi analyzer.
>
> Thanks, Gary
>
>
> On Jun 18, 2008, at 11:30 PM, Ruwan Linton wrote:
>
>  Asankha,
>>
>> It is in the JIRA [https://issues.apache.org/jira/browse/SYNAPSE-363]
>>
>> Thanks,
>> Ruwan
>>
>> On Thu, Jun 19, 2008 at 11:57 AM, Asankha C. Perera <as...@wso2.com>
>> wrote:
>>
>>  Gary
>>>
>>>  Any ideas on why the attached WSDL may be causing a NullPointerException
>>>> as a proxy on startup?
>>>>
>>>>  I think you missed attaching the WSDL.. :)
>>>
>>> asankha
>>>
>>>
>>
>>
>> --
>> Ruwan Linton
>> http://wso2.org - "Oxygenating the Web Services Platform"
>> http://ruwansblog.blogspot.com/
>>
>
>


-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/

Re: WSDL causes NullPointerException

Posted by Gary Rudolph <Ga...@eharmony.com>.
Nevermind, it was something on our side. The WSDL was not WS-I  
compliant, but JAX-WS RI and CXF we're filling in the blanks. Fixed it  
after running it through the wsi analyzer.

Thanks, Gary

On Jun 18, 2008, at 11:30 PM, Ruwan Linton wrote:

> Asankha,
>
> It is in the JIRA [https://issues.apache.org/jira/browse/SYNAPSE-363]
>
> Thanks,
> Ruwan
>
> On Thu, Jun 19, 2008 at 11:57 AM, Asankha C. Perera <as...@wso2.com>
> wrote:
>
>> Gary
>>
>>> Any ideas on why the attached WSDL may be causing a  
>>> NullPointerException
>>> as a proxy on startup?
>>>
>> I think you missed attaching the WSDL.. :)
>>
>> asankha
>>
>
>
>
> --
> Ruwan Linton
> http://wso2.org - "Oxygenating the Web Services Platform"
> http://ruwansblog.blogspot.com/


Re: WSDL causes NullPointerException

Posted by Ruwan Linton <ru...@gmail.com>.
Asankha,

It is in the JIRA [https://issues.apache.org/jira/browse/SYNAPSE-363]

Thanks,
Ruwan

On Thu, Jun 19, 2008 at 11:57 AM, Asankha C. Perera <as...@wso2.com>
wrote:

> Gary
>
>> Any ideas on why the attached WSDL may be causing a NullPointerException
>> as a proxy on startup?
>>
> I think you missed attaching the WSDL.. :)
>
> asankha
>



-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/

Re: WSDL causes NullPointerException

Posted by "Asankha C. Perera" <as...@wso2.com>.
Gary
> Any ideas on why the attached WSDL may be causing a 
> NullPointerException as a proxy on startup?
I think you missed attaching the WSDL.. :)

asankha

Re: WSDL causes NullPointerException

Posted by Gary Rudolph <Ga...@eharmony.com>.
FYI, I attached the error in a text file as it was poorly formatted.