java.lang.NullPointerException

Atlassian JIRA | Ivan Benko [Atlassian] | 7 years ago
  1. 0

    UWC Importer Admin 1.1 installed successfully, both modules enabled. Running 3.1-SNAPSHOT and accessing {{http://localhost:8080/admin/uwcimporter/uwcimporter.action}} (Admin > import from Another Wiki}} causes NPE: {noformat} 2009-08-24 11:47:51,438 ERROR [http-8080-Processor24] [plugins.uwc.uwcimporter.UWCImporterAction] getProperties Could not load props file: /resources/Webui.properties -- url: /admin/uwcimporter/uwcimporter.action | userName: admin | referer: http://localhost:8080/admin/uwcimporter/uwcimporter.action | action: uwcimporter java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:365) at java.util.Properties.load(Properties.java:293) at com.atlassian.confluence.plugins.uwc.uwcimporter.UWCImporterAction.getProperties(UWCImporterAction.java:76) at com.atlassian.confluence.plugins.uwc.uwcimporter.UWCImporterAction.getTextDirectly(UWCImporterAction.java:61) at com.atlassian.confluence.plugins.uwc.uwcimporter.UWCImporterAction.getText(UWCImporterAction.java:45) at sun.reflect.GeneratedMethodAccessor182.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378) at com.atlassian.confluence.velocity.introspection.UnboxingMethod.invoke(UnboxingMethod.java:31) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) {noformat} It seems as the plugin is using its own custom i18n properties files that can not be loaded. MR reviewed and wondered why the plugin is not using the usual i18n approach? Between - downloaded the UWC converter and was able to import pages from MediaWiki successfully.

    Atlassian JIRA | 7 years ago | Ivan Benko [Atlassian]
    java.lang.NullPointerException
  2. 0

    UWC Importer Admin 1.1 installed successfully, both modules enabled. Running 3.1-SNAPSHOT and accessing {{http://localhost:8080/admin/uwcimporter/uwcimporter.action}} (Admin > import from Another Wiki}} causes NPE: {noformat} 2009-08-24 11:47:51,438 ERROR [http-8080-Processor24] [plugins.uwc.uwcimporter.UWCImporterAction] getProperties Could not load props file: /resources/Webui.properties -- url: /admin/uwcimporter/uwcimporter.action | userName: admin | referer: http://localhost:8080/admin/uwcimporter/uwcimporter.action | action: uwcimporter java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:365) at java.util.Properties.load(Properties.java:293) at com.atlassian.confluence.plugins.uwc.uwcimporter.UWCImporterAction.getProperties(UWCImporterAction.java:76) at com.atlassian.confluence.plugins.uwc.uwcimporter.UWCImporterAction.getTextDirectly(UWCImporterAction.java:61) at com.atlassian.confluence.plugins.uwc.uwcimporter.UWCImporterAction.getText(UWCImporterAction.java:45) at sun.reflect.GeneratedMethodAccessor182.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378) at com.atlassian.confluence.velocity.introspection.UnboxingMethod.invoke(UnboxingMethod.java:31) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) {noformat} It seems as the plugin is using its own custom i18n properties files that can not be loaded. MR reviewed and wondered why the plugin is not using the usual i18n approach? Between - downloaded the UWC converter and was able to import pages from MediaWiki successfully.

    Atlassian JIRA | 7 years ago | Ivan Benko [Atlassian]
    java.lang.NullPointerException
  3. 0

    Eclipse won't read a config file

    Stack Overflow | 6 years ago | Ankur
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem Deploying .war on Tomcat 5 (Null pointer exception)

    Stack Overflow | 5 years ago | Halo
    java.lang.NullPointerException
  6. 0

    Reading From Config File Outside Jar Java

    Stack Overflow | 3 years ago | user2385057
    java.lang.NullPointerException
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.util.Properties$LineReader.readLine()
  2. Java RT
    Properties.load
    1. java.util.Properties$LineReader.readLine(Properties.java:365)
    2. java.util.Properties.load(Properties.java:293)
    2 frames
  3. com.atlassian.confluence
    UWCImporterAction.getText
    1. com.atlassian.confluence.plugins.uwc.uwcimporter.UWCImporterAction.getProperties(UWCImporterAction.java:76)
    2. com.atlassian.confluence.plugins.uwc.uwcimporter.UWCImporterAction.getTextDirectly(UWCImporterAction.java:61)
    3. com.atlassian.confluence.plugins.uwc.uwcimporter.UWCImporterAction.getText(UWCImporterAction.java:45)
    3 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor182.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:585)
    3 frames
  5. Apache Velocity
    UberspectImpl$VelMethodImpl.invoke
    1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
    2. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
    2 frames
  6. com.atlassian.confluence
    UnboxingMethod.invoke
    1. com.atlassian.confluence.velocity.introspection.UnboxingMethod.invoke(UnboxingMethod.java:31)
    1 frame
  7. Apache Velocity
    ASTMethod.execute
    1. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
    1 frame