hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhiyong zhang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-5386) To Probe free ports dynamically for Unit test to replace fixed ports
Date Wed, 11 Mar 2009 04:00:50 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-5386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

zhiyong zhang updated HADOOP-5386:
----------------------------------

    Attachment: HADOOP-5386.patch

Addressed in-compatible javac and java version problem with ant "exec" task.
[echo]  Free Ports: startup-Exception in thread "main" java.lang.UnsupportedClassVersionError:
Bad version number in .class file
     [echo] 	at java.lang.ClassLoader.defineClass1(Native Method)
     [echo] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
     [echo] 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
     [echo] 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
     [echo] 	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
     [echo] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
     [echo] 	at java.security.AccessController.doPrivileged(Native Method)
     [echo] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [echo] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [echo] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
     [echo] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
     [echo] 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) / http-Exception
in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file

Now use ${env.JAVA_HOME}/bin/java instead of java.

> To Probe free ports dynamically for Unit test to replace fixed ports
> --------------------------------------------------------------------
>
>                 Key: HADOOP-5386
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5386
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/hdfsproxy
>    Affects Versions: 0.21.0
>            Reporter: zhiyong zhang
>            Assignee: zhiyong zhang
>             Fix For: 0.21.0
>
>         Attachments: HADOOP-5386.patch, HADOOP-5386.patch, HADOOP-5386.patch, HADOOP-5386.patch
>
>
> Currently hdfsproxy unit test uses Cactus in-container test. It uses three fixed ports.
one for tomcat start-up/shut-down, another for tomcat http-port and the third for tomcat https-port.

> If theses ports are already in use, ant build will fail. To fix this, we decided to use
a java program to probe the free ports dynamically and update the tomcat conf with these free
ports. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message