File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Failed to upgrade Axis2 1.6.1 to 1.6.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Failed to upgrade Axis2 1.6.1 to 1.6.2" Watch "Failed to upgrade Axis2 1.6.1 to 1.6.2" New topic
Author

Failed to upgrade Axis2 1.6.1 to 1.6.2

M Gee
Greenhorn

Joined: Feb 04, 2013
Posts: 1
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

Joined: Jan 18, 2011
Posts: 507
    
    3
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Failed to upgrade Axis2 1.6.1 to 1.6.2