java.lang.NullPointerException

Atlassian JIRA | Gurleen Anand [Atlassian] | 6 years ago
  1. 0

    A {{config.xml}} with a blank proxy port configuration, such as: {noformat} <http bind=":8060" proxy-port=""/> {noformat} will fail to startup the application with the exception: {noformat} 2011-05-01 17:26:54,598 INFO [main ] fisheye.app RootConfig-load - loading config from file: /usr/local/fisheye/FISHEYE_INST/config.xml 2011-05-01 17:26:55,718 ERROR [main ] fisheye.app RootConfig-load - Errors parsing /usr/local/fisheye/FISHEYE_INST/config.xml: 2011-05-01 17:26:55,719 ERROR [main ] fisheye.app RootConfig-logXmlErrors - at line 159: Invalid decimal value: expected at least one digit 2011-05-01 17:26:55,721 INFO [main ] fisheye.app Run-mainImpl - CE com.cenqua.fisheye.config.ConfigException: Error parsing config file (see logs): /usr/local/fisheye/FISHEYE_INST/config.xml at com.cenqua.fisheye.config.RootConfig.load(RootConfig.java:183) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:102) at com.cenqua.fisheye.ctl.Run.main(Run.java:69) 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 com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:113) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:41) {noformat} Additionally, it seems like there is no way to remove the proxy port configuration via the UI, once it has been set. All attempts to remove the port number and saving it will fail with the following exception in the logs: {noformat} java.lang.NullPointerException at java.io.File.<init>(File.java:222) at com.cenqua.fisheye.web.admin.util.SSLUtils.isCorrectKeystorePassword(SSLUtils.java:33) at com.cenqua.fisheye.web.admin.actions.EditServerSettingsAction.isCorrectKeystorePassword(EditServerSettingsAction.java:312) 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) {noformat} There are no on-screen errors reported and the original value is still retained in the proxy port field after deleting and saving. *Workaround:* Edit the above configuration in {{config.xml}} as follows: {noformat} <http bind=":8060"/> {noformat} and restart Fisheye.

    Atlassian JIRA | 6 years ago | Gurleen Anand [Atlassian]
    java.lang.NullPointerException
  2. 0

    A {{config.xml}} with a blank proxy port configuration, such as: {noformat} <http bind=":8060" proxy-port=""/> {noformat} will fail to startup the application with the exception: {noformat} 2011-05-01 17:26:54,598 INFO [main ] fisheye.app RootConfig-load - loading config from file: /usr/local/fisheye/FISHEYE_INST/config.xml 2011-05-01 17:26:55,718 ERROR [main ] fisheye.app RootConfig-load - Errors parsing /usr/local/fisheye/FISHEYE_INST/config.xml: 2011-05-01 17:26:55,719 ERROR [main ] fisheye.app RootConfig-logXmlErrors - at line 159: Invalid decimal value: expected at least one digit 2011-05-01 17:26:55,721 INFO [main ] fisheye.app Run-mainImpl - CE com.cenqua.fisheye.config.ConfigException: Error parsing config file (see logs): /usr/local/fisheye/FISHEYE_INST/config.xml at com.cenqua.fisheye.config.RootConfig.load(RootConfig.java:183) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:102) at com.cenqua.fisheye.ctl.Run.main(Run.java:69) 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 com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:113) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:41) {noformat} Additionally, it seems like there is no way to remove the proxy port configuration via the UI, once it has been set. All attempts to remove the port number and saving it will fail with the following exception in the logs: {noformat} java.lang.NullPointerException at java.io.File.<init>(File.java:222) at com.cenqua.fisheye.web.admin.util.SSLUtils.isCorrectKeystorePassword(SSLUtils.java:33) at com.cenqua.fisheye.web.admin.actions.EditServerSettingsAction.isCorrectKeystorePassword(EditServerSettingsAction.java:312) 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) {noformat} There are no on-screen errors reported and the original value is still retained in the proxy port field after deleting and saving. *Workaround:* Edit the above configuration in {{config.xml}} as follows: {noformat} <http bind=":8060"/> {noformat} and restart Fisheye.

    Atlassian JIRA | 6 years ago | Gurleen Anand [Atlassian]
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. ajinkya_w 1 times, last 2 months ago
  2. emmanuelstroem 1 times, last 4 months ago
  3. adawolfs 31 times, last 2 months ago
  4. Diogo Jaym 6 times, last 5 months ago
  5. Bardh 7 times, last 6 months ago
6 more registered users
20 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at java.io.File.<init>()
  2. Java RT
    File.<init>
    1. java.io.File.<init>(File.java:222)
    1 frame
  3. com.cenqua.fisheye
    EditServerSettingsAction.isCorrectKeystorePassword
    1. com.cenqua.fisheye.web.admin.util.SSLUtils.isCorrectKeystorePassword(SSLUtils.java:33)
    2. com.cenqua.fisheye.web.admin.actions.EditServerSettingsAction.isCorrectKeystorePassword(EditServerSettingsAction.java:312)
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames