Results 1 to 3 of 3
  1. #1
    Eimo is offline Member
    Join Date
    Oct 2010
    Posts
    26
    Rep Power
    0

    Default Client/Server with CORBA

    Hi,

    I'm doing a client/server program that can calculate + 4 6 or - 6 4. I wanted to ask how can I read a line with spaces and return the result to the client????

  2. #2
    Eimo is offline Member
    Join Date
    Oct 2010
    Posts
    26
    Rep Power
    0

    Default

    If anyone can help please.... I'm trying to run a Client/Server program using CORBA and when I put this line in the command:
    java CalServer -ORBInitialPort 2500
    It gives me this error:


    Exception in thread "main" java.lang.NoClassDefFoundError: _final/CalcPOA
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java :632)
    at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader .java:277)
    at java.net.URLClassLoader.access$000(URLClassLoader. java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 212)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 19)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 64)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:332)
    Caused by: java.lang.ClassNotFoundException: _final.CalcPOA
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 19)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 64)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:332)
    ... 12 more
    Could not find the main class: CalcServer. Program will exit.

    So, I could not initiate the connection :( can anyone advice please....

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by Eimo View Post
    Hi,

    I'm doing a client/server program that can calculate + 4 6 or - 6 4. I wanted to ask how can I read a line with spaces and return the result to the client????
    Remove all the spaces from the string and do necessary conversions before do the calculations.

Similar Threads

  1. Replies: 2
    Last Post: 09-24-2010, 11:31 AM
  2. java client in corba problem
    By tajfun010 in forum Networking
    Replies: 12
    Last Post: 08-01-2010, 09:50 PM
  3. Replies: 3
    Last Post: 07-29-2009, 04:52 AM
  4. Replies: 1
    Last Post: 10-05-2008, 03:12 PM
  5. Identify Client in Socket Client Server Application
    By masadjie in forum Networking
    Replies: 1
    Last Post: 12-20-2007, 09:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •