facebook

Null date in webservice

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #273361 Reply

    rbrand
    Member

    I have a webservice that accepts an object (or bean). I have tested it, running it within MyEclipse on Tomcat 5.5. and JVM 1.5.0. I call it from both the MyEclipseIDE and from a php script with no problem. However, when I deploy the war file to a different server, I get the following error:
    Fatal error: Uncaught SoapFault exception: [soap:Client] Couldn’t set property {http://**.***.*********.com}date on **.***.*********.MyObject@708d30. null in import.php:391
    Stack trace:
    #0 [internal function]: SoapClient->__call(‘saveNewObject…’, Array)
    #1 import.php(391): SoapClient->saveNewObject(Object(stdClass))
    thrown in import.php on line 391

    The date is not null, and is set to “2007-05-23T00:00:00.000Z”

    I then realized that the server is running JVM 1.6.0. I updated my MyEclipse tomcat deployement to point to 1.5, and get the same error, both from within MyEclipse and php.

    The server is using:
    Apache Tomcat/5.5.17
    JVM 1.6.0_02-b05

    The Dev env is using:
    Apache Tomcat/5.5.23
    JVM 1.5.0_11-b03 and was switched to JVM 1.6.0

    Any ideas?

    Regards

    Rian

    #273557 Reply

    Riyad Kalla
    Member

    Rian,
    So the web service totally dies when you try and run it using JDK 6? Seems odd… I suppose you could try using Tomcat 6 and see if that helps.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Null date in webservice

You must be logged in to post in the forum log in