Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Failed to upgrade Axis2 1.6.1 to 1.6.2

 
M Gee
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The upgrade Axis2 1.6.1 to 1.6.2 should be a simple task because Axis2 1.6.2 is a maintenance release but it fails...

Here are my upgrade steps:
1. Generate wsdl2java -> no errors
2. Build xyz.aar file -> the same working code used for Axis2 v1.6.1
3. Start Tomcat with Axis2 + xyz.aar -> error

Observed logged error:
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:109)
The xyz.aar service, which is not valid, caused The following error occurred during schema generation: null
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)
. . .
Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: null
at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:106)
. . .
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)
. . .
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)
. . .
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:732)
. . .

Unfortunately I cannot modify WSDL because it's used in other production code.
What could cause the exception and how this NPE could be debugged?

Thanks
-mg
 
g tsuji
Ranch Hand
Posts: 656
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can check out the AXIS2-5474
https://issues.apache.org/jira/browse/AXIS2-5474
which contains a tentative patch in the build of kernel of revision 3693 (the posted by P Le Berre).

Maybe if the update is not driven because you're looking for some particularly behaviour new in 1.6.2, leave it for the testers to deal with their bugs until they settle with a more stable revision?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic