• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic Proxy is not working  RSS feed

Hussein Baghdadi
clojure forum advocate
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • 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 contains Persons objects which in turn contains an instance of class Address.
both Person and Address classes implements Serilalizable interface..
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.
Null Pointer Exception at line :
result = myProxy.getPerson(args[0]);
any ideas ??
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!