title: Oracle 11g Enterprise Manager Login Fail Internal Error has Occured
body: <p>I have installed Oracle 11g on my Windows 10 machine. I followed <a href="https://docs.oracle.com/cd/B28359_01/install.111/b32006/reqs.htm" rel="nofollow noreferrer">all preinstallation requirements</a>.</p>
  
  <p>When trying to log in to the Enterprise manager via this link:</p>
  
  
  
  <pre class="lang-none prettyprint-override"><code>https://localhost:1158/em
  </code></pre>
  
  <p>I get the error:</p>
  
  <blockquote>
    <p>Internal Error has occurred. Check the log file for details.</p>
  </blockquote>
  
  <p>I have found log files and it looks like this is the relevant entry:</p>
  
  <pre class="lang-none prettyprint-override"><code>2017-09-17 07:36:53,631 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.344 - java.lang.NullPointerException
  java.lang.NullPointerException
      at oracle.sysman.emSDK.emd.comm.EMDClient.getURL(EMDClient.java:1570)
      at oracle.sysman.emSDK.emd.comm.EMDClient.getConnection(EMDClient.java:1266)
      at oracle.sysman.emSDK.emd.comm.EMDClient.getConnection(EMDClient.java:1242)
      at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1689)
      at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:981)
      at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:340)
      at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:154)
      at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:416)
      at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:605)
      at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:325)
      at java.lang.Thread.run(Thread.java:595)
  </code></pre>
  
  <p>I have tried to set the unique name in environment variables, I thought maybe Java was the problem so I updated my JDK to 8. I am still getting the same error, and my SQL Plus will not open, as soon as I put in the correct credentials it closes. Also I have configured a Listener and tested, test was successful.</p>