• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NullPointerException and createFault()

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I am using Axis 1.4 webService in my application, which is in production on JDK 1.4. Everything was working fine till today. Today I have added one method, which is taking String as input parameter and when I am invoking that method from client, I am getting following error



I have already verified that while calling this method, my String input parameter is not null.

Initially client was sending user�s ID to the webService. At that time I have added following method in webservice and it was working fine



Now due to some of the business requirement change, client is sending me user�s email address, so I have added following method in webservice and this is not working



The control even goes to the first line of this method; it is failing immediately on invocation. I have verified all generated stubs and other source files and every where this method has proper signature and everything.

If you have any idea, how to solve this error then please do let me know.

Thanks in advance!
 
Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

While posting my question, I made a samll mistake. In the last paragraph of question I have mentioned that

The control even goes to the first line of this method; it is failing immediately on invocation.

Please not that control is not goes to the method, so read it as follows

The control even DOESN'T goes to the first line of this method; it is failing immediately on invocation.

Thanks
 
Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

If you have any solution to my problem, then please do let me know.
This is urgent!

Thanks in advance!
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dhananjay

Looking at what you are facing your call is not going to your delegate class itself from which your Webservice must be called. what it means it that there is a problem with the client side implementation or the parameter you are passing is wrong or the SOAP request is not happening properly.

See your implementation in the Facade whether you are doing any operation before the method call. It may be that your code is falling or validation is going wrong before the call itself. Use of a primitive datatype like Sring should not cause any problems since all versions of Axis support it.

Regards
Vikram K
 
Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

The problem got solved, but with wiered solution.

After trying many options, then I just commented all the implementation of webService and returned hardcode 'true' from the delegate itself. After building an application, application called the method properly till delegate.

Then I have un-commented implementation and again build the source code. This time everything worked fine.

I know this is not a solution and it will not work for anyother. But I am posting it as my experience.

Thanks
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic