axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heard (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-4445) NPE in DefaultSchemaGenerator when generating a wrapped array schema for an inner class
Date Fri, 11 May 2012 14:48:52 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273308#comment-13273308
] 

Oliver Heard commented on AXIS2-4445:
-------------------------------------

This is an odd one because with a particularly complex WSDL I have the NPE is caused only
on 1.6.2 and NOT on 1.6.1. Whereas the example AAR uploaded by Detelin causes the error on
both 1.6.1 and 1.6.2 (which is a much simpler example) .Unfortunately I can't provide the
complex WSDL due to an NDA.

The complex WSDL I mentioned above was generated by the .NET web services platform. It looks
like this is related to the way .NET generates wrapped arrays, which may help in reproducing
the issue.

If I'm successful in producing an equivalent WSDL that causes the 1.6.2 NPE and not 1.6.1
I'll update this post.

I've included the stack trace given by 1.6.2 below:
org.apache.axis2.deployment.DeploymentException: The following error occurred during schema
generation: null
	at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:150)
	at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
	at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
	at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
	at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
	at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:73)
	at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:94)
	at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:93)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during
schema generation: null
	at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:432)
	at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101)
	at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:143)
	... 12 more
Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during
schema generation: null
	at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:396)
	... 14 more
Caused by: java.lang.NullPointerException
	at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:606)
	at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaforFieldsandProperties(DefaultSchemaGenerator.java:730)
	at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:623)
	at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaTypeforNameCommon(DefaultSchemaGenerator.java:1092)
	at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaForType(DefaultSchemaGenerator.java:996)
	at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.processMethods(DefaultSchemaGenerator.java:385)
	at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:273)
	at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:468)
	at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:388)
	... 14 more
                
> NPE in DefaultSchemaGenerator when generating a wrapped array schema for an inner class
> ---------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4445
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4445
>             Project: Axis2
>          Issue Type: Sub-task
>          Components: kernel
>    Affects Versions: 1.5
>            Reporter: Detelin Yordanov
>         Attachments: DefaultSchemaGenerator.diff, WrappedArrayInnerClassService.aar
>
>
> When generating the schema for a class'  field which is an inner class, with the wrapped
array support turned on, a NPE gets thrown:
> Caused by: java.lang.NullPointerException
>         at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaforFieldsandProperties(DefaultSchemaGenerator.java:703)
>         at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:555)
>         at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaForType(DefaultSchemaGenerator.java:862)
>         at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.processMethods(DefaultSchemaGenerator.java:334)
>         at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:252)
>         at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:514)
>         at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:386)
> Reason seems to be that the type table is searched for a complex type e.g. Data$Number,
while it should be Data_Number (replacing the dollar character with an underscore).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message