Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Unable to sendViaPost to url

  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Unable to sendViaPost to url

    Hello,

    When I am trying to call from web service client I am getting following error.I have used weblogic 10 MP2,Axis2 1.5 and eclipse.
    [INFO] Unable to sendViaPost to url[http://10.227.76.116:7001/GenericWeb...tomerProfile/]
    org.apache.axis2.AxisFault: customer cannot be null!!
    at org.apache.axis2.AxisFault.makeFault(AxisFault.jav a:430)
    at org.apache.axis2.transport.http.SOAPMessageFormatt er.writeTo(SOAPMessageFormatter.java:83)
    at org.apache.axis2.transport.http.AxisRequestEntity. writeRequest(AxisRequestEntity.java:84)
    at org.apache.commons.httpclient.methods.EntityEnclos ingMethod.writeRequestBody(EntityEnclosingMethod.j ava:499)
    at org.apache.commons.httpclient.HttpMethodBase.write Request(HttpMethodBase.java:2114)
    at org.apache.commons.httpclient.HttpMethodBase.execu te(HttpMethodBase.java:1096)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:346)
    at org.apache.axis2.transport.http.AbstractHTTPSender .executeMethod(AbstractHTTPSender.java:542)
    at org.apache.axis2.transport.http.HTTPSender.sendVia Post(HTTPSender.java:199)
    at org.apache.axis2.transport.http.HTTPSender.send(HT TPSender.java:76)
    at org.apache.axis2.transport.http.CommonsHTTPTranspo rtSender.writeMessageWithCommons(CommonsHTTPTransp ortSender.java:400)
    at org.apache.axis2.transport.http.CommonsHTTPTranspo rtSender.invoke(CommonsHTTPTransportSender.java:22 5)
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine .java:435)
    at org.apache.axis2.description.OutInAxisOperationCli ent.send(OutInAxisOperation.java:402)
    at org.apache.axis2.description.OutInAxisOperationCli ent.executeImpl(OutInAxisOperation.java:229)
    at org.apache.axis2.client.OperationClient.execute(Op erationClient.java:165)
    at com.pfizer.epf.customerprofile.services.CustomerPr ofileStub.updateCustomer(CustomerProfileStub.java: 373)
    at com.pfizer.epf.customerprofile.services.TestClient .main(TestClient.java:468)
    Caused by: org.apache.axis2.databinding.ADBException: customer cannot be null!!
    at com.pfizer.epf.customerprofile.services.CustomerPr ofileStub$UpdateCustomer.serialize(CustomerProfile Stub.java:39940)
    at com.pfizer.epf.customerprofile.services.CustomerPr ofileStub$UpdateCustomer.serialize(CustomerProfile Stub.java:39886)
    at com.pfizer.epf.customerprofile.services.CustomerPr ofileStub$UpdateCustomer$1.serialize(CustomerProfi leStub.java:39874)
    at org.apache.axis2.databinding.ADBDataSource.seriali ze(ADBDataSource.java:93)
    at org.apache.axiom.om.impl.llom.OMSourcedElementImpl .internalSerializeAndConsume(OMSourcedElementImpl. java:738)
    at org.apache.axiom.om.impl.llom.OMElementImpl.intern alSerialize(OMElementImpl.java:966)
    at org.apache.axiom.om.impl.llom.OMElementImpl.intern alSerializeAndConsume(OMElementImpl.java:995)
    at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.s erializeInternally(SOAPEnvelopeImpl.java:254)
    at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.i nternalSerialize(SOAPEnvelopeImpl.java:242)
    at org.apache.axiom.om.impl.llom.OMElementImpl.intern alSerializeAndConsume(OMElementImpl.java:995)
    at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize AndConsume(OMNodeImpl.java:486)
    at org.apache.axis2.transport.http.SOAPMessageFormatt er.writeTo(SOAPMessageFormatter.java:79)
    ... 19 more

    anybody please help.


  2. #2
    Junior Member
    Join Date
    Jan 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Unable to sendViaPost to url

    Can anybody tell which version of eclipse is compatible with Weblogic 10.0 MP2?

  3. #3
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Unable to sendViaPost to url

    No clue, latest eclipse maybe?

    I think you are getting an error because "customer cannot be null!!"

    // Json

Similar Threads

  1. Replies: 1
    Last Post: April 7th, 2011, 07:01 AM
  2. Replies: 8
    Last Post: January 6th, 2010, 08:59 AM
  3. Unable to open web service tester page
    By oneofthelions in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: December 13th, 2009, 05:20 PM
  4. Unable to create a new connection!
    By fh84 in forum JDBC & Databases
    Replies: 1
    Last Post: November 20th, 2009, 04:58 PM