You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by Ahmad Shahzad <as...@gmail.com> on 2010/08/03 05:27:09 UTC
Annotation processing error... HELP!!
Hi All,
Can anyone guide me regarding this error, i get this error when i
compile the hadoop with ant. one more thing, i just un tar the hadoop
folder, so, i have changed nothing no code in hadoop directory.
When 'ant' it says:
Compiling 5 source files to /usr/local/hadoop/build/classes
[javac] Annotation processing got disabled, since it requires a 1.6
compliant JVM
gives me a long list of warning and a few errors like:
1. ERROR in
/usr/local/hadoop/src/core/org/apache/hadoop/fs/permission/AccessControlException.java
(at line 59)
[javac] super(cause);
[javac] ^^^^^^^^^^^^^
[javac] The constructor IOException(Throwable) is undefined
[javac] ----------
[javac] ----------
[javac] 2. ERROR in
/usr/local/hadoop/src/core/org/apache/hadoop/http/HttpServer.java
[javac] (at line 509)
[javac] throw new IOException("Problem starting http server", e);
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] The constructor IOException(String, Exception) is undefined
[javac] ----------
[javac] ----------
[javac] 3. ERROR in
/usr/local/hadoop/src/core/org/apache/hadoop/ipc/Server.java (at line 954)
[javac] Subject.doAs(call.connection.user,
[javac] new PrivilegedExcepti
[javac] onAction<Writable>() {
[javac] @Override
[javac] public Writable run() throws
Exception {
[javac] // make the call
[javac]
[javac] return call(call.connection.protocol,
[javac] call.param,
call.timestamp);
[javac]
[javac] }
[javac] }
[javac]
[javac] );
[javac]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] Type mismatch: cannot convert from Object to Writable
[javac] ----------
[javac] ----------
[javac] 4. ERROR in
/usr/local/hadoop/src/core/org/apache/hadoop/net/SocksSocketFactory.java (at
line 62)
[javac] return new Socket(proxy);
[javac] ^^^^^^^^^^^^^^^^^
[javac] The constructor Socket(Proxy) is undefined
[javac] ----------
[javac] ----------
[javac] 5. ERROR in
/usr/local/hadoop/src/core/org/apache/hadoop/security/authorize/ConfiguredPolicy.java
(at line 44)
[javac] public class ConfiguredPolicy extends Policy implements
Configurable {
[javac] ^^^^^^^^^^^^^^^^
[javac] The type ConfiguredPolicy must implement the inherited abstract
method Policy.getPermissions(CodeSource)
[javac] ----------
[javac] ----------
[javac] 6. WARNING in
/usr/local/hadoop/src/core/org/apache/hadoop/security/AccessControlException.java
[javac] (at line 24)
[javac] extends
org.apache.hadoop.fs.permission.AccessControlException {
[javac]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] The type AccessControlException is deprecated
[javac] ----------
[javac] 7. WARNING in
/usr/local/hadoop/src/core/org/apache/hadoop/security/AccessControlException.java
(at line 34)
[javac] super("Permission denied.");
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] The constructor AccessControlException(String) is deprecated
[javac] ----------
ANY IDEA!!!!!
Ahmad