hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HBASE-10105) SaslUtil#encodeIdentifier may throw NullPointerException
Date Fri, 27 Dec 2013 06:18:50 GMT

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

Ted Yu resolved HBASE-10105.
----------------------------

    Resolution: Later

> SaslUtil#encodeIdentifier may throw NullPointerException
> --------------------------------------------------------
>
>                 Key: HBASE-10105
>                 URL: https://issues.apache.org/jira/browse/HBASE-10105
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.99.0
>            Reporter: Ted Yu
>         Attachments: org.apache.hadoop.hbase.security.TestHBaseSaslRpcClient-output.txt
>
>
> Encountered the following exception when running TestHBaseSaslRpcClient on Mac:
> {code}
> 2013-12-08 14:18:24,754 ERROR [main] security.TestHBaseSaslRpcClient(243):
> java.lang.NullPointerException
>   at java.lang.String.<init>(String.java:593)
>   at org.apache.hadoop.hbase.security.SaslUtil.encodeIdentifier(SaslUtil.java:38)
>   at org.apache.hadoop.hbase.security.HBaseSaslRpcClient$SaslClientCallbackHandler.<init>(HBaseSaslRpcClient.java:259)
>   at org.apache.hadoop.hbase.security.HBaseSaslRpcClient.<init>(HBaseSaslRpcClient.java:78)
>   at org.apache.hadoop.hbase.security.TestHBaseSaslRpcClient.assertSuccessCreationDigestPrincipal(TestHBaseSaslRpcClient.java:240)
>   at org.apache.hadoop.hbase.security.TestHBaseSaslRpcClient.testHBaseSaslRpcClientCreation(TestHBaseSaslRpcClient.java:122)
>   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 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
>   at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>   at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
>   at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>   at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
>   at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
>   at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>   at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
>   at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
>   at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
>   at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
>   at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
>   at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>   at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
>   at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:234)
>   at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:133)
>   at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:114)
>   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 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:188)
>   at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:166)
>   at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
>   at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:101)
>   at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
> 2013-12-08 14:18:24,755 DEBUG [main] security.HBaseSaslRpcClient(76): Creating SASL DIGEST-MD5
client to authenticate to service at null
> {code}
> Here is related code:
> {code}
>     return new String(Base64.encodeBase64(identifier));
> {code}
> Looks like Base64.encodeBase64() returned a null.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message