Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

EJB3.0 Web Service RMI problem  RSS feed

Praveena Chordia
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am implementing EJB3 web service .
IDE is eclipse
Application Server is JBoss

Server side is doing properly ,when I am running my following client

public class Client {
public static void main(String[] args) throws Exception {
System.out.println("Starting Test Client");
URL url = new URL(
QName qname = new QName("",

System.out.println("Creating a service Using: \n\t" + url + " \n\tand "
+ qname);
ServiceFactory factory = ServiceFactory.newInstance();
Service remote = factory.createService(url, qname);

System.out.println("Obtaining reference to a proxy object");
ImagingService proxy = (ImagingService) remote
System.out.println("Accessed local proxy: " + proxy);

String string = "John";
System.out.println("Sending: " + string);

System.out.println("Receiving: " + proxy.echo("John"));

in the statement
ImagingService proxy = (ImagingService) remote.getPort(ImagingService.class);

I am getting follwing exception.........
Starting Test Client
Creating a service Using:
and {}ImagingServiceService
Obtaining reference to a proxy object
Exception in thread "main" java.lang.UnsupportedOperationException: Cannot find operation: toString - none defined
at org.apache.axis.client.Call.setOperation(
at org.apache.axis.client.AxisClientProxy.invoke(
at $Proxy0.toString(Unknown Source)
at java.lang.String.valueOf(
at java.lang.StringBuilder.append(
at by.iba.client.Client.main(

please help me in this
Jaikiran Pai
Posts: 10447
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Let's continue this discussion in your other thread here
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!