[
https://issues.apache.org/jira/browse/HADOOP-5432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682908#action_12682908
]
zhiyong zhang commented on HADOOP-5432:
---------------------------------------
The unit test code in HdfsProxy.java
// unit testing
sslConf.set("proxy.http.test.listener.addr",
conf.get("proxy.http.test.listener.addr"));
In normal proxy start-up, if the conf file does not contain
"proxy.http.test.listener.addr" property, the start will throw Null Pointer
Exception
09/03/18 03:51:47 ERROR hdfsproxy.HdfsProxy: java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at java.util.Properties.setProperty(Properties.java:143)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:403)
at org.apache.hadoop.hdfsproxy.HdfsProxy.initialize(HdfsProxy.java:71)
at org.apache.hadoop.hdfsproxy.HdfsProxy.<init>(HdfsProxy.java:52)
at
org.apache.hadoop.hdfsproxy.HdfsProxy.createHdfsProxy(HdfsProxy.java:269)
at org.apache.hadoop.hdfsproxy.HdfsProxy.main(HdfsProxy.java:277)
> TestHdfsProxy fails on 0.20
> ---------------------------
>
> Key: HADOOP-5432
> URL: https://issues.apache.org/jira/browse/HADOOP-5432
> Project: Hadoop Core
> Issue Type: Bug
> Components: contrib/hdfsproxy
> Affects Versions: 0.20.0
> Reporter: Chris Douglas
> Assignee: Chris Douglas
> Fix For: 0.20.0
>
> Attachments: 5432-0.patch, 5432-0v20.patch
>
>
> TestHdfsProxy fails with the following exception:
> {noformat}
> 09/03/06 18:28:05 ERROR mortbay.log: EXCEPTION
> java.lang.NullPointerException
> at
> org.mortbay.jetty.security.SslSocketConnector.createFactory(SslSocketConnector.java:215)
> at
> org.mortbay.jetty.security.SslSocketConnector.newServerSocket(SslSocketConnector.java:423)
> at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73)
> at org.apache.hadoop.http.HttpServer.start(HttpServer.java:420)
> at org.apache.hadoop.hdfsproxy.HdfsProxy.start(HdfsProxy.java:96)
> at
> org.apache.hadoop.hdfsproxy.TestHdfsProxy.testHdfsProxyInterface(TestHdfsProxy.java:232)
> 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 junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
> at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
> at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.