• 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

dynamic proxy is not working

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all.
I'm reading The J2EE 1.4 tutorial , Web Serives section.
(I'm using RI 1.4)
I created a very simple web serivce that search for a person in an array.
this array is defined in the implementation class of the service end point interface.
I created a static stub client and run it without any problems and it is working.
then I tried to create a dyanmic proxy client, here is the steps :
1. config.xml file :

2. running the command :
wscompile -import -d build -nd build -f:norpcstructures -classpath build config-dynamic.xml
this command generates some class files.
here are the important fragments of this client:

when I tried to run the application, I got :
myProxy is not null then a long long, stack trace exception.
deserialization error, Null Pointer Exception at line :
result = myProxy.getPerson(args[0]);
this method returns a Person object which implements Serializabe interface.
any ideas ??
thanks.
[ December 26, 2004: Message edited by: John Todd ]
 
I am mighty! And this is a mighty small ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic