Results 1 to 8 of 8
  1. #1
    JavaDesigner is offline Member
    Join Date
    Oct 2009
    Posts
    4
    Rep Power
    0

    Default Large data over RMI

    Hello,

    I am looking for library to transfer large data over RMI (about 2GB data). It will be great with complete example.

    Pozdrawiam :D

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    See if this project helps.
    Looks promising.

  3. #3
    JavaDesigner is offline Member
    Join Date
    Oct 2009
    Posts
    4
    Rep Power
    0

    Default

    Ok, I spent 3 hours to recognize it, but I can't implementation some client and server. On this website is example

    openhms.sourceforge.net/rmiio/xref-test/index.html

    but all time I got bag in compilation. I tried everything. If anybody can write working simple client , server I would be in debt.

    Pozdrawiam,

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    No one is going to write the codes for you. If you don't want to write the code yourself then start googling and hoping.
    If you want to get help to write the code yourself then post the error messages that you got.

  5. #5
    JavaDesigner is offline Member
    Join Date
    Oct 2009
    Posts
    4
    Rep Power
    0

    Default

    Ok, I got the sample code from site :

    FileServer.java
    RemoteFileServer.java
    TestClient.java
    TestServer.java

    And the error message

    I write under NetBeans.
    Exception in thread "main" java.rmi.ServerError: Error occurred in server thread; nested exception is:
    java.lang.NoClassDefFoundError: com/healthmarketscience/rmiio/RemoteInputStream
    at sun.rmi.server.UnicastServerRef.oldDispatch(Unicas tServerRef.java:393)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:250)
    at sun.rmi.transport.Transport$1.run(Transport.java:1 59)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport. java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(StreamRemoteCall.java:255)
    at sun.rmi.transport.StreamRemoteCall.executeCall(Str eamRemoteCall.java:233)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:3 59)
    at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
    at TestServer.main(TestServer.java:94)
    Caused by: java.lang.NoClassDefFoundError: com/healthmarketscience/rmiio/RemoteInputStream
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.ja va:2427)
    at java.lang.Class.privateGetPublicMethods(Class.java :2547)
    at java.lang.Class.getMethods(Class.java:1410)
    at sun.misc.ProxyGenerator.generateClassFile(ProxyGen erator.java:409)
    at sun.misc.ProxyGenerator.generateProxyClass(ProxyGe nerator.java:306)
    at java.lang.reflect.Proxy.getProxyClass(Proxy.java:5 01)
    at sun.rmi.server.LoaderHandler.loadProxyClass(Loader Handler.java:680)
    at sun.rmi.server.LoaderHandler.loadProxyClass(Loader Handler.java:669)
    at sun.rmi.server.LoaderHandler.loadProxyClass(Loader Handler.java:592)
    at java.rmi.server.RMIClassLoader$2.loadProxyClass(RM IClassLoader.java:628)
    at java.rmi.server.RMIClassLoader.loadProxyClass(RMIC lassLoader.java:294)
    at sun.rmi.server.MarshalInputStream.resolveProxyClas s(MarshalInputStream.java:238)
    at java.io.ObjectInputStream.readProxyDesc(ObjectInpu tStream.java:1531)
    at java.io.ObjectInputStream.readClassDesc(ObjectInpu tStream.java:1493)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1732)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputSt ream.java:351)
    at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknow n Source)
    at sun.rmi.server.UnicastServerRef.oldDispatch(Unicas tServerRef.java:386)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:250)
    at sun.rmi.transport.Transport$1.run(Transport.java:1 59)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport. java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: com.healthmarketscience.rmiio.RemoteInputStream
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 52)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:320)
    ... 30 more

  6. #6
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    That tells you you are missing a class com/healthmarketscience/rmiio/RemoteInputStream. If it's not public domain then you are stumped.
    Last edited by r035198x; 10-16-2009 at 09:45 PM.

  7. #7
    JavaDesigner is offline Member
    Join Date
    Oct 2009
    Posts
    4
    Rep Power
    0

    Default

    com/healthmarketscience/rmiio is the name of jar packet downloaded from sourceforge.

    Thanks for help.

  8. #8
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    So add the jar file to the classpath when running the program.

Similar Threads

  1. Reading large XML
    By gkumar in forum XML
    Replies: 3
    Last Post: 08-06-2009, 05:38 AM
  2. Replies: 3
    Last Post: 02-28-2009, 10:17 AM
  3. Replies: 7
    Last Post: 02-11-2009, 10:14 PM
  4. Replies: 1
    Last Post: 12-28-2008, 11:25 AM
  5. parsing/storing large text data
    By hkansal in forum New To Java
    Replies: 4
    Last Post: 10-19-2008, 07:34 PM

Posting Permissions

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