Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

question about webservice-----the Date type as the signature  RSS feed

zb cong
Ranch Hand
Posts: 416
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i publish a simple class as webservice(expose the method named testInOut),in the testInOut method,there is a input parameter is "java.util.Date" type,when i test it in the "WebLogic Webservice standard testing home page",it threw following exception:

Failed to invoke service:
java.lang.NullPointerException java.lang.NullPointerException at at at at at at weblogic.webservice.server.servlet.ServletBase.getJavaParams( at weblogic.webservice.server.servlet.ServletBase.invokeOperation( at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation( at weblogic.webservice.server.servlet.ServletBase.handleGet( at weblogic.webservice.server.servlet.ServletBase.doGet( at weblogic.webservice.server.servlet.WebServiceServlet.doGet( at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at weblogic.servlet.internal.ServletStubImpl$ at weblogic.servlet.internal.ServletStubImpl.invokeServlet( at weblogic.servlet.internal.ServletStubImpl.invokeServlet( at weblogic.servlet.internal.WebAppServletContext$ at at weblogic.servlet.internal.WebAppServletContext.invokeServlet( at weblogic.servlet.internal.ServletRequestImpl.execute( at weblogic.kernel.ExecuteThread.execute( at

if i replace the parameter as "String" type,it works well,i wonder if i can take the object type as the input parameter of the webservice method,if yes,how?
thank you!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!