Author Topic: Distribuované programovanie  (Read 54858 times)

luky

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
Re: Distribuované programovanie
« Reply #150 on: 12.11.2011, 01:06:22 »
Neviete niekto poradiť prečo mi v metode initialize

vyhadzuje výnimku že MD5withRSA nepozná pre príkaz

 KeyPairGenerator generator = KeyPairGenerator.getInstance(algoritmus);

algoritmus je definovaný ako premenná triedy

private String algoritmus = "MD5withRSA";

treba objekt toho generátora vytvoriť nejak inak?
public PublicKey initialize(String string, String string1) throws ShareMeException {
       File suborKlucov = new File(string1);
       if(suborKlucov.exists()){ 
            try {
                ObjectInputStream citajprud = new ObjectInputStream(new FileInputStream(suborKlucov));
                 kluce = (KeyPair) citajprud.readObject();
            } catch (ClassNotFoundException ex) {
                Logger.getLogger(CryptographyImpl.class.getName()).log(Level.SEVERE, null, ex);
            } catch (IOException ex) {
                Logger.getLogger(CryptographyImpl.class.getName()).log(Level.SEVERE, null, ex);
            }
         return null;
       }
       else{
            {
                ObjectOutputStream pisKluce = null;
                try {
                    KeyPairGenerator generator = KeyPairGenerator.getInstance(algoritmus);
                    generator.initialize(IConstants.KEY_LENGTH);
                    kluce = generator.genKeyPair();
                    pisKluce = new ObjectOutputStream(new FileOutputStream(string1));
                    pisKluce.writeObject(kluce); //zapisanie klucov do suboru
                } catch (NoSuchAlgorithmException ex) {
                    Logger.getLogger(CryptographyImpl.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IOException ex) {
                    Logger.getLogger(CryptographyImpl.class.getName()).log(Level.SEVERE, null, ex);
                }  finally {
                    try {
                        pisKluce.close();
                    } catch (IOException ex) {
                        Logger.getLogger(CryptographyImpl.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }
            }
        return kluce.getPublic();
       }
    }

Code: [Select]
BUILD SUCCESSFUL
Total time: 0 seconds
rnue072@dslab:~% java -classpath ./classes:./lib/ShareMe.jar at.ac.tuwien.infosys.rnue.helpers.search.SearchMain {resources/myprops.props}
Server object resolved.
VYPIS 3
11.11.2011 18:59:14 at.ac.tuwien.infosys.rnue.implementation.security.CryptographyImpl initialize
SEVERE: null
java.security.NoSuchAlgorithmException: MD5withRSA KeyPairGenerator not available
        at java.security.KeyPairGenerator.getInstance(KeyPairGenerator.java:176)
        at at.ac.tuwien.infosys.rnue.implementation.security.CryptographyImpl.initialize(Unknown Source)
        at at.ac.tuwien.infosys.rnue.implementation.security.SecurityHelperImpl.<init>(Unknown Source)
        at at.ac.tuwien.infosys.rnue.implementation.ShareMeImpl.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at at.ac.tuwien.infosys.rnue.helpers.search.SearchMain.main(SearchMain.java:55)
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at at.ac.tuwien.infosys.rnue.helpers.search.SearchMain.main(SearchMain.java:55)
Caused by: java.lang.NullPointerException
        at at.ac.tuwien.infosys.rnue.implementation.security.CryptographyImpl.initialize(Unknown Source)
        at at.ac.tuwien.infosys.rnue.implementation.security.SecurityHelperImpl.<init>(Unknown Source)
        at at.ac.tuwien.infosys.rnue.implementation.ShareMeImpl.<init>(Unknown Source)
        ... 5 more
Could not instantiate implementation class (or other error)!
null
Exit 1
« Last Edit: 12.11.2011, 01:10:40 by luky »

Gabho

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Distribuované programovanie
« Reply #151 on: 12.11.2011, 02:31:06 »
cawte, prave som spravil trojku a myslim ze funguje, lenze ked dam hladat daky subor tak mi vypise zoznam uzlov dvakrat. Aj s podpisom a aj bez. Ma to robit tak, ci mam niekde chybu? A este v myprops.props ked zmenim nazov suboru keyfile tak mi program hadze chybu ze sa nenasli podpisy, ale ked necham xxx (predtym som nemal nic nastavene tak mi to vygenerovalo toto ako keyfile) tak to ide, ale ked dam vygenerovat novy subor tak to hadze chybu:D neviete preco?:)

Mám taký pocit že musíš starý kľúč odregistrovať, ale neviem ešte ako  :)

luky

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
Re: Distribuované programovanie
« Reply #152 on: 12.11.2011, 13:35:50 »
No mal by som sa učiť čítať  ;D
nie KeyPairGenerator generator = KeyPairGenerator.getInstance("MD5withRSA");
ale bu
KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA");

luky

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
Re: Distribuované programovanie
« Reply #153 on: 12.11.2011, 16:49:28 »
cawte, prave som spravil trojku a myslim ze funguje, lenze ked dam hladat daky subor tak mi vypise zoznam uzlov dvakrat. Aj s podpisom a aj bez. Ma to robit tak, ci mam niekde chybu? A este v myprops.props ked zmenim nazov suboru keyfile tak mi program hadze chybu ze sa nenasli podpisy, ale ked necham xxx (predtym som nemal nic nastavene tak mi to vygenerovalo toto ako keyfile) tak to ide, ale ked dam vygenerovat novy subor tak to hadze chybu:D neviete preco?:)

Mám taký pocit že musíš starý kľúč odregistrovať, ale neviem ešte ako  :)
aj mne by sa to zišlo vedieť  resp. v ktorej časti odregistrovať:)

Shwollo

  • Sr. Member
  • ****
  • Posts: 436
    • View Profile
Re: Distribuované programovanie
« Reply #154 on: 12.11.2011, 17:39:26 »
nemáte nejaké onfo o písomke (otázkach) ??
nepíšte mi SS - radšej mi píšte mail. (tá obálka pod mojim avatarom :)))

smelyzajo

  • Full Member
  • ***
  • Posts: 243
    • View Profile
Re: Distribuované programovanie
« Reply #155 on: 12.11.2011, 17:59:32 »
vie niekto co sa treba ucit na ten zapocet???

fazy

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Distribuované programovanie
« Reply #156 on: 12.11.2011, 18:50:33 »
Vie niekto ako odregistrovate ten key? lebo ide mi to stale iba s jednym a ked dam novy vygenerovat tak mi to hadze chybu, ze je nespravny kluc.

cayka

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: Distribuované programovanie
« Reply #157 on: 12.11.2011, 20:07:15 »
nema tu niekto cvicenia bud v pondelok alebo utorok 7,30??..

Alebo co sa treba ucit na ten zapocet?

mato99

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: Distribuované programovanie
« Reply #158 on: 12.11.2011, 21:01:56 »
Vie niekto ako odregistrovate ten key? lebo ide mi to stale iba s jednym a ked dam novy vygenerovat tak mi to hadze chybu, ze je nespravny kluc.

je to napisane aj v tutoriali: na objekte ICertificationAuthority zavolas unregisterKey(String meno, String tvojeHeslo)

luky

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
Re: Distribuované programovanie
« Reply #159 on: 13.11.2011, 01:43:32 »
seriously, koho je uzhorod? :D

problém?

luky

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
Re: Distribuované programovanie
« Reply #160 on: 13.11.2011, 01:59:51 »
seriously, koho je uzhorod? :D

problém?
ani nie, len ze mas to dojebané

Myslíš meno alebo že nefunguje uzol?

Lebo my vyhadzuje výnimku keď dám vyhľadávať:

java.rmi.NotBoundException: shareme023
        at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106)
        at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
        at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        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$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
        at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
        at java.rmi.Naming.lookup(Naming.java:84)
        at at.ac.tuwien.infosys.rnue.implementation.ShareMeImpl.search(Unknown Source)
        at at.ac.tuwien.infosys.rnue.helpers.search.SearchMain.main(SearchMain.java:82)

luky

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
Re: Distribuované programovanie
« Reply #161 on: 13.11.2011, 02:05:03 »
java.rmi.NotBoundException: shareme023
to vidim aj ja
Code: [Select]
ShareMeImpl: Search - EXCEPTION: java.rmi.NotBoundException: shareme023.
ale preco to pise aj london?
ale to nie je Londýn ale niekto kto si pomenoval uzol ShareMeInLondon
Mne túto výnimku vyhadzuje aj pri iných uzloch
ale pri Martini a ShareMe023node cele vyhľadavanie skončí (asi nemajú 3) ale ako ich odignorovať?
« Last Edit: 13.11.2011, 02:08:10 by luky »

HejaHop

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Distribuované programovanie
« Reply #162 on: 13.11.2011, 04:03:35 »
neviete kde by to mohlo viaznut? toto mi vypise ak dam nieco hladat
Code: [Select]
ShareMe server started.
Enter search string (abort with 'bye <password>'): txt
Not Bound Exception! MattiasRMI
at.ac.tuwien.infosys.rnue.helpers.ShareMeException: Applicant is not verified!
        at at.ac.tuwien.infosys.rnue.implementation.search.SearchEngineImpl.search(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        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$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
        at at.ac.tuwien.infosys.rnue.implementation.search.SearchEngineImpl_Stub.search(Unknown Source)
        at at.ac.tuwien.infosys.rnue.implementation.ShareMeImpl.search(Unknown Source)
        at at.ac.tuwien.infosys.rnue.helpers.search.SearchMain.main(SearchMain.java:82)
Error!
at.ac.tuwien.infosys.rnue.helpers.ShareMeException: Applicant is not verified!
Search request for <txt> finished.

Eriik

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Distribuované programovanie
« Reply #163 on: 13.11.2011, 04:11:39 »
neviete niekto preco mi to pri vyhladavani hadze NullPointerException ?  konkretne nieco také :

Code: [Select]
java.lang.NullPointerException
        at at.ac.tuwien.infosys.rnue.implementation.security.SecurityHelperImpl.getPublicKeyFromCA(Unknown Source)
        at at.ac.tuwien.infosys.rnue.implementation.search.SearchEngineImpl.search(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        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$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
        at at.ac.tuwien.infosys.rnue.implementation.search.SearchEngineImpl_Stub.search(Unknown Source)
        at at.ac.tuwien.infosys.rnue.implementation.ShareMeImpl.search(Unknown Source)
        at at.ac.tuwien.infosys.rnue.helpers.search.SearchMain.main(SearchMain.java:82)
Generic Error!
java.lang.NullPointerException

momentalne to vyhodi ked sa snazi prejst tieto uzly :
rmi://147.232.40.99:7236/RMIBajsko
rmi://dslab:7506/FBI

je chyba u mna ?

HejaHop

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Distribuované programovanie
« Reply #164 on: 13.11.2011, 04:16:47 »
neviete niekto preco mi to pri vyhladavani hadze NullPointerException ?  konkretne nieco také :

Code: [Select]
java.lang.NullPointerException
        at at.ac.tuwien.infosys.rnue.implementation.security.SecurityHelperImpl.getPublicKeyFromCA(Unknown Source)
        at at.ac.tuwien.infosys.rnue.implementation.search.SearchEngineImpl.search(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        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$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
        at at.ac.tuwien.infosys.rnue.implementation.search.SearchEngineImpl_Stub.search(Unknown Source)
        at at.ac.tuwien.infosys.rnue.implementation.ShareMeImpl.search(Unknown Source)
        at at.ac.tuwien.infosys.rnue.helpers.search.SearchMain.main(SearchMain.java:82)
Generic Error!
java.lang.NullPointerException

momentalne to vyhodi ked sa snazi prejst tieto uzly :
rmi://147.232.40.99:7236/RMIBajsko
rmi://dslab:7506/FBI

je chyba u mna ?

Pozeram že maš to iste čo ja. Mne vypisuje presne to iste a neviem prist v com je chyba

felipe

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: Distribuované programovanie
« Reply #165 on: 13.11.2011, 04:55:58 »
neviete niekto preco mi to pri vyhladavani hadze NullPointerException ?  konkretne nieco také :

Code: [Select]
java.lang.NullPointerException
        at at.ac.tuwien.infosys.rnue.implementation.security.SecurityHelperImpl.getPublicKeyFromCA(Unknown Source)
        at at.ac.tuwien.infosys.rnue.implementation.search.SearchEngineImpl.search(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        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$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
        at at.ac.tuwien.infosys.rnue.implementation.search.SearchEngineImpl_Stub.search(Unknown Source)
        at at.ac.tuwien.infosys.rnue.implementation.ShareMeImpl.search(Unknown Source)
        at at.ac.tuwien.infosys.rnue.helpers.search.SearchMain.main(SearchMain.java:82)
Generic Error!
java.lang.NullPointerException

momentalne to vyhodi ked sa snazi prejst tieto uzly :
rmi://147.232.40.99:7236/RMIBajsko
rmi://dslab:7506/FBI

je chyba u mna ?

Pozeram že maš to iste čo ja. Mne vypisuje presne to iste a neviem prist v com je chyba

zalozme si klub  :buttrock:

Eriik

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Distribuované programovanie
« Reply #166 on: 13.11.2011, 05:26:28 »
ked ti to funguje s havajom alebo s yourmom alebo s nejakou nodou tych ludi co maju uz aj web rozbehany tak chyba nie je u teba...
tak aspoň som si pri zisťovaní chyby zopakoval celú jednotku aj dvojku .. :D dík za odpoveď

Painkiller03

  • Full Member
  • ***
  • Posts: 166
    • View Profile
Re: Distribuované programovanie
« Reply #167 on: 13.11.2011, 15:35:43 »
nazdar páni.Co sa ucite na zápočet?

Gabho

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Distribuované programovanie
« Reply #168 on: 14.11.2011, 05:32:53 »
Paralič vravel, že bude test z jednotky a dvojky. Treba si pozrieť, ako to funguje. Takým štúdijným materiálom by mohli byť návody na tie úlohy. Keď si robil zadanie sám a pamätáš sa, čo si tam robil, nemal by si mať problém.

smelyzajo

  • Full Member
  • ***
  • Posts: 243
    • View Profile
Re: Distribuované programovanie
« Reply #169 on: 14.11.2011, 21:35:32 »

mal dnes niekto zapocet?? ak tak ake boli otazky???

ricco102831

  • Sr. Member
  • ****
  • Posts: 324
    • View Profile
Re: Distribuované programovanie
« Reply #170 on: 14.11.2011, 23:13:44 »
joooj ja debil som presvyhol 120% termiiiin :)

luky

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
Re: Distribuované programovanie
« Reply #171 on: 19.11.2011, 16:38:42 »

Neviete niekto poradiť aby mi keď sa snaží zaregistrovať službu nevyhadzovalo výnimku lebo hľadal som ale všade je odpoveď z ktorej vyplýva že táto časť kódu sa dá spraviť dvoma spôsobmi a mi používame druhý spôsob ktorý by nemal hádzať túto výnimku a viď.  aj tak ju hádže.

 int rmiRegistryport = Integer.parseInt(parameter.getProperty(IConstants.RMI_REGISTRY_PORT));
 LocateRegistry.createRegistry(rmiRegistryport);
 searchEngine = new SearchEngineImpl(parameter.getProperty(IConstants.FILE_BASE), prefixURL, null);
String rmiAdress ="rmi://"+ parameter.getProperty(IConstants.RMI_REGISTRY_HOST)+":"+ parameter.getProperty(IConstants.RMI_REGISTRY_PORT) + "/" + parameter.getProperty(IConstants.RMI_SERVICE_NAME);
 Naming.rebind(rmiAdress, searchEngine); //registracia servera

Code: [Select]
   
java.rmi.ConnectException: Connection refused to host: dslab; nested exception is:
        java.net.ConnectException: Connection refused
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
        at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
        at java.rmi.Naming.rebind(Naming.java:160)
        at at.ac.tuwien.infosys.rnue.implementation.ShareMeImpl.start(Unknown Source)
        at at.ac.tuwien.infosys.rnue.helpers.search.SearchMain.main(SearchMain.java:56)
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at java.net.Socket.connect(Socket.java:478)
        at java.net.Socket.<init>(Socket.java:375)
        at java.net.Socket.<init>(Socket.java:189)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
        ... 7 more

puwel

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Distribuované programovanie
« Reply #172 on: 22.11.2011, 07:09:10 »
Pracuje niekto na 4ke? Ako sa vytvara ten HTML formular?

ursus

  • Hero Member
  • *****
  • Posts: 595
    • View Profile
Re: Distribuované programovanie
« Reply #173 on: 22.11.2011, 19:46:49 »
btw vysledky zapoctovky ?
So this router walks into the doctor’s office…
- Doctor, it hurts when IP.

Baron

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Distribuované programovanie
« Reply #174 on: 23.11.2011, 03:20:48 »
Could not create implementation class via reflection! Aborting!
Java.lang.ClassNotFoundException: at.ac.tuwien.infosys.rnue.implementation.http.HTTPServerImpl
Exit 1

Niekto nejake skusenosti, alebo napad, kde mam hladat chybu?