Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. root@eecslab-10:/home/mes258/EECS325/EECS325/Project1/p2p# javac p2p.java
  2. p2p.java:280: error: cannot find symbol
  3. queryID = (int) (Math.random() * 9999 + 1000);
  4. ^
  5. symbol: variable queryID
  6. location: class p2p
  7. p2p.java:281: error: cannot find symbol
  8. P1OUT.writeBytes("Q:("+queryID+");("+file+")");
  9. ^
  10. symbol: variable queryID
  11. location: class p2p
  12. p2p.java:311: error: no suitable method found for read(byte[])
  13. while((count = GNFIN.read(bytes)) > 0){
  14. ^
  15. method BufferedReader.read(char[],int,int) is not applicable
  16. (actual and formal argument lists differ in length)
  17. method BufferedReader.read() is not applicable
  18. (actual and formal argument lists differ in length)
  19. method Reader.read(char[],int,int) is not applicable
  20. (actual and formal argument lists differ in length)
  21. method Reader.read(char[]) is not applicable
  22. (actual argument byte[] cannot be converted to char[] by method invocation conversion)
  23. method Reader.read() is not applicable
  24. (actual and formal argument lists differ in length)
  25. method Reader.read(CharBuffer) is not applicable
  26. (actual argument byte[] cannot be converted to CharBuffer by method invocation conversion)
  27. p2p.java:373: error: cannot find symbol
  28. BufferedReader SerIN = new BufferedReader(new InputStreamReader(peer.getInputStream()));
  29. ^
  30. symbol: method getInputStream()
  31. location: variable peer of type ServerSocket
  32. p2p.java:374: error: cannot find symbol
  33. DataOutputStream SerOUT = new DataOutputStream(peer.getOutputStream());
  34. ^
  35. symbol: method getOutputStream()
  36. location: variable peer of type ServerSocket
  37. p2p.java:381: error: cannot find symbol
  38. }else if(portSr.equals(peerInfo[5])){
  39. ^
  40. symbol: variable portSr
  41. location: class listen
  42. p2p.java:422: error: cannot find symbol
  43. FileIn.close();
  44. ^
  45. symbol: variable FileIn
  46. location: class listenFile
  47. 7 errors
  48. root@eecslab-10:/home/mes258/EECS325/EECS325/Project1/p2p# c
  49. root@eecslab-10:/home/mes258/EECS325/EECS325/Project1/p2p# javac p2p.java
  50. p2p.java:280: error: cannot find symbol
  51. queryID = (int) (Math.random() * 9999 + 1000);
  52. ^
  53. symbol: variable queryID
  54. location: class p2p
  55. p2p.java:281: error: cannot find symbol
  56. P1OUT.writeBytes("Q:("+queryID+");("+file+")");
  57. ^
  58. symbol: variable queryID
  59. location: class p2p
  60. p2p.java:311: error: no suitable method found for read(byte[])
  61. while((count = GNFIN.read(bytes)) > 0){
  62. ^
  63. method BufferedReader.read(char[],int,int) is not applicable
  64. (actual and formal argument lists differ in length)
  65. method BufferedReader.read() is not applicable
  66. (actual and formal argument lists differ in length)
  67. method Reader.read(char[],int,int) is not applicable
  68. (actual and formal argument lists differ in length)
  69. method Reader.read(char[]) is not applicable
  70. (actual argument byte[] cannot be converted to char[] by method invocation conversion)
  71. method Reader.read() is not applicable
  72. (actual and formal argument lists differ in length)
  73. method Reader.read(CharBuffer) is not applicable
  74. (actual argument byte[] cannot be converted to CharBuffer by method invocation conversion)
  75. p2p.java:373: error: cannot find symbol
  76. BufferedReader SerIN = new BufferedReader(new InputStreamReader(peer.getInputStream()));
  77. ^
  78. symbol: method getInputStream()
  79. location: variable peer of type ServerSocket
  80. p2p.java:374: error: cannot find symbol
  81. DataOutputStream SerOUT = new DataOutputStream(peer.getOutputStream());
  82. ^
  83. symbol: method getOutputStream()
  84. location: variable peer of type ServerSocket
  85. p2p.java:381: error: cannot find symbol
  86. }else if(portSr.equals(peerInfo[5])){
  87. ^
  88. symbol: variable portSr
  89. location: class listen
  90. p2p.java:422: error: cannot find symbol
  91. FileIn.close();
  92. ^
  93. symbol: variable FileIn
  94. location: class listenFile
  95. 7 errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement