axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeyakumaran.C" <jkuma...@vijayaba.cse.mrt.ac.lk>
Subject Instantiation Exception
Date Tue, 29 Jul 2003 08:00:30 GMT
Hi,
I am working in creating a complex type service.
axis gives an error 
Error : java.lang.InstantiationException: samples.userguide.Point.Point
my Point class is below.
public class Point {

int x;

int y;

public String operations(Order ord) {

int num = ord.getNum();

int x = ord.getX();

int y = ord.getY(); 

Point p = new Point();

if (num == 1) {

p.setX(x * x);

p.setY(y * y);

} else if (num == 2) {

p.setX(x);

p.setY(2 * x + 5);

} else {

p.x = x;

p.y = y;

}

String str = "x = "+p.getX()+" y = " +p.getY();

return str;

}

public int getX() {

return x;

}

public int getY() {

return y;

}

public void setX(int i) {

x = i;

}

public void setY(int i) {

y = i;

}

}

my bean class is Order which is not attached here.

Can anybody help for it.

I followed the example5 in the axis for trying out this service.

Thank u

Jeyakumaran.C



Mime
View raw message