Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@eecslab-10:/home/mes258/EECS325/EECS325/Project1/p2p# javac p2p.java
- p2p.java:280: error: cannot find symbol
- queryID = (int) (Math.random() * 9999 + 1000);
- ^
- symbol: variable queryID
- location: class p2p
- p2p.java:281: error: cannot find symbol
- P1OUT.writeBytes("Q:("+queryID+");("+file+")");
- ^
- symbol: variable queryID
- location: class p2p
- p2p.java:311: error: no suitable method found for read(byte[])
- while((count = GNFIN.read(bytes)) > 0){
- ^
- method BufferedReader.read(char[],int,int) is not applicable
- (actual and formal argument lists differ in length)
- method BufferedReader.read() is not applicable
- (actual and formal argument lists differ in length)
- method Reader.read(char[],int,int) is not applicable
- (actual and formal argument lists differ in length)
- method Reader.read(char[]) is not applicable
- (actual argument byte[] cannot be converted to char[] by method invocation conversion)
- method Reader.read() is not applicable
- (actual and formal argument lists differ in length)
- method Reader.read(CharBuffer) is not applicable
- (actual argument byte[] cannot be converted to CharBuffer by method invocation conversion)
- p2p.java:373: error: cannot find symbol
- BufferedReader SerIN = new BufferedReader(new InputStreamReader(peer.getInputStream()));
- ^
- symbol: method getInputStream()
- location: variable peer of type ServerSocket
- p2p.java:374: error: cannot find symbol
- DataOutputStream SerOUT = new DataOutputStream(peer.getOutputStream());
- ^
- symbol: method getOutputStream()
- location: variable peer of type ServerSocket
- p2p.java:381: error: cannot find symbol
- }else if(portSr.equals(peerInfo[5])){
- ^
- symbol: variable portSr
- location: class listen
- p2p.java:422: error: cannot find symbol
- FileIn.close();
- ^
- symbol: variable FileIn
- location: class listenFile
- 7 errors
- root@eecslab-10:/home/mes258/EECS325/EECS325/Project1/p2p# c
- root@eecslab-10:/home/mes258/EECS325/EECS325/Project1/p2p# javac p2p.java
- p2p.java:280: error: cannot find symbol
- queryID = (int) (Math.random() * 9999 + 1000);
- ^
- symbol: variable queryID
- location: class p2p
- p2p.java:281: error: cannot find symbol
- P1OUT.writeBytes("Q:("+queryID+");("+file+")");
- ^
- symbol: variable queryID
- location: class p2p
- p2p.java:311: error: no suitable method found for read(byte[])
- while((count = GNFIN.read(bytes)) > 0){
- ^
- method BufferedReader.read(char[],int,int) is not applicable
- (actual and formal argument lists differ in length)
- method BufferedReader.read() is not applicable
- (actual and formal argument lists differ in length)
- method Reader.read(char[],int,int) is not applicable
- (actual and formal argument lists differ in length)
- method Reader.read(char[]) is not applicable
- (actual argument byte[] cannot be converted to char[] by method invocation conversion)
- method Reader.read() is not applicable
- (actual and formal argument lists differ in length)
- method Reader.read(CharBuffer) is not applicable
- (actual argument byte[] cannot be converted to CharBuffer by method invocation conversion)
- p2p.java:373: error: cannot find symbol
- BufferedReader SerIN = new BufferedReader(new InputStreamReader(peer.getInputStream()));
- ^
- symbol: method getInputStream()
- location: variable peer of type ServerSocket
- p2p.java:374: error: cannot find symbol
- DataOutputStream SerOUT = new DataOutputStream(peer.getOutputStream());
- ^
- symbol: method getOutputStream()
- location: variable peer of type ServerSocket
- p2p.java:381: error: cannot find symbol
- }else if(portSr.equals(peerInfo[5])){
- ^
- symbol: variable portSr
- location: class listen
- p2p.java:422: error: cannot find symbol
- FileIn.close();
- ^
- symbol: variable FileIn
- location: class listenFile
- 7 errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement