java.lang.NullPointerException

MuleSoft JIRA | Guillermo Fernandes | 6 months ago
  1. 0

    If the domain fails to be deployed then when an application is about to be deployed a NPE is thrown and also the status logged in console throws another NPE. Domain: {code} INFO 2016-06-01 14:43:56,798 [WrapperListener_start_runner] org.mule.runtime.module.launcher.DefaultArchiveDeployer: ================== New Exploded Artifact: my-domain ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider jdk.nashorn.api.scripting.NashornScriptEngineFactory not found ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider apple.applescript.AppleScriptEngineFactory not found ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider org.jruby.embed.jsr223.JRubyEngineFactory not found ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider jdk.nashorn.api.scripting.NashornScriptEngineFactory not found ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider apple.applescript.AppleScriptEngineFactory not found ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider org.jruby.embed.jsr223.JRubyEngineFactory not found INFO 2016-06-01 14:44:01,480 [WrapperListener_start_runner] org.mule.runtime.module.launcher.domain.DefaultMuleDomain: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Disposing domain 'my-domain' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ERROR 2016-06-01 14:44:01,544 [WrapperListener_start_runner] org.mule.runtime.module.launcher.DefaultArchiveDeployer: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Failed to deploy artifact 'my-domain', see below + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ org.mule.runtime.module.launcher.DeploymentInitException: SAXParseException: The prefix "validation" for element "validation:config" is not bound. ... {code} Then application throws a NPE: {code} INFO 2016-06-01 14:44:24,291 [WrapperListener_start_runner] org.mule.runtime.module.launcher.DefaultArchiveDeployer: ================== New Exploded Artifact: validations-classloader-isolation ERROR 2016-06-01 14:44:35,182 [WrapperListener_start_runner] org.mule.runtime.module.launcher.DefaultArchiveDeployer: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Failed to deploy exploded artifact: + + 'validations-classloader-isolation', see below + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ java.lang.NullPointerException at org.mule.runtime.module.launcher.application.DefaultApplicationFactory.createAppFrom(DefaultApplicationFactory.java:97) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.application.DefaultApplicationFactory.createArtifact(DefaultApplicationFactory.java:84) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.application.DefaultApplicationFactory.createArtifact(DefaultApplicationFactory.java:42) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.DefaultArchiveDeployer.deployExplodedApp(DefaultArchiveDeployer.java:283) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.DefaultArchiveDeployer.deployExplodedArtifact(DefaultArchiveDeployer.java:114) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.DefaultArchiveDeployer.deployExplodedArtifact(DefaultArchiveDeployer.java:41) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.DeploymentDirectoryWatcher.deployExplodedApps(DeploymentDirectoryWatcher.java:290) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:151) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.MuleDeploymentService.start(MuleDeploymentService.java:120) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.MuleContainer.start(MuleContainer.java:175) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65] at org.mule.runtime.module.reboot.MuleContainerWrapper.start(MuleContainerWrapper.java:52) ~[mule-module-boot-ee-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:4242) ~[wrapper-3.5.29.jar:3.5.29] {code} Finally the MuleDeploymentService throws another NPE: {code} INFO 2016-06-01 14:44:35,185 [WrapperListener_start_runner] org.mule.runtime.module.launcher.DeploymentDirectoryWatcher: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Mule is up and kicking (every 5000ms) + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ERROR 2016-06-01 15:32:15,272 [WrapperListener_start_runner] org.mule.runtime.module.launcher.MuleDeploymentService: java.lang.NullPointerException {code}

    MuleSoft JIRA | 6 months ago | Guillermo Fernandes
    java.lang.NullPointerException
  2. 0

    If the domain fails to be deployed then when an application is about to be deployed a NPE is thrown and also the status logged in console throws another NPE. Domain: {code} INFO 2016-06-01 14:43:56,798 [WrapperListener_start_runner] org.mule.runtime.module.launcher.DefaultArchiveDeployer: ================== New Exploded Artifact: my-domain ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider jdk.nashorn.api.scripting.NashornScriptEngineFactory not found ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider apple.applescript.AppleScriptEngineFactory not found ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider org.jruby.embed.jsr223.JRubyEngineFactory not found ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider jdk.nashorn.api.scripting.NashornScriptEngineFactory not found ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider apple.applescript.AppleScriptEngineFactory not found ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider org.jruby.embed.jsr223.JRubyEngineFactory not found INFO 2016-06-01 14:44:01,480 [WrapperListener_start_runner] org.mule.runtime.module.launcher.domain.DefaultMuleDomain: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Disposing domain 'my-domain' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ERROR 2016-06-01 14:44:01,544 [WrapperListener_start_runner] org.mule.runtime.module.launcher.DefaultArchiveDeployer: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Failed to deploy artifact 'my-domain', see below + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ org.mule.runtime.module.launcher.DeploymentInitException: SAXParseException: The prefix "validation" for element "validation:config" is not bound. ... {code} Then application throws a NPE: {code} INFO 2016-06-01 14:44:24,291 [WrapperListener_start_runner] org.mule.runtime.module.launcher.DefaultArchiveDeployer: ================== New Exploded Artifact: validations-classloader-isolation ERROR 2016-06-01 14:44:35,182 [WrapperListener_start_runner] org.mule.runtime.module.launcher.DefaultArchiveDeployer: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Failed to deploy exploded artifact: + + 'validations-classloader-isolation', see below + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ java.lang.NullPointerException at org.mule.runtime.module.launcher.application.DefaultApplicationFactory.createAppFrom(DefaultApplicationFactory.java:97) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.application.DefaultApplicationFactory.createArtifact(DefaultApplicationFactory.java:84) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.application.DefaultApplicationFactory.createArtifact(DefaultApplicationFactory.java:42) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.DefaultArchiveDeployer.deployExplodedApp(DefaultArchiveDeployer.java:283) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.DefaultArchiveDeployer.deployExplodedArtifact(DefaultArchiveDeployer.java:114) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.DefaultArchiveDeployer.deployExplodedArtifact(DefaultArchiveDeployer.java:41) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.DeploymentDirectoryWatcher.deployExplodedApps(DeploymentDirectoryWatcher.java:290) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:151) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.MuleDeploymentService.start(MuleDeploymentService.java:120) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.launcher.MuleContainer.start(MuleContainer.java:175) ~[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65] at org.mule.runtime.module.reboot.MuleContainerWrapper.start(MuleContainerWrapper.java:52) ~[mule-module-boot-ee-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:4242) ~[wrapper-3.5.29.jar:3.5.29] {code} Finally the MuleDeploymentService throws another NPE: {code} INFO 2016-06-01 14:44:35,185 [WrapperListener_start_runner] org.mule.runtime.module.launcher.DeploymentDirectoryWatcher: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Mule is up and kicking (every 5000ms) + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ERROR 2016-06-01 15:32:15,272 [WrapperListener_start_runner] org.mule.runtime.module.launcher.MuleDeploymentService: java.lang.NullPointerException {code}

    MuleSoft JIRA | 6 months ago | Guillermo Fernandes
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 org.mule.runtime.module.launcher.application.DefaultApplicationFactory.createAppFrom()
    2. org.mule.runtime
      MuleContainer.start
      1. org.mule.runtime.module.launcher.application.DefaultApplicationFactory.createAppFrom(DefaultApplicationFactory.java:97)[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
      2. org.mule.runtime.module.launcher.application.DefaultApplicationFactory.createArtifact(DefaultApplicationFactory.java:84)[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
      3. org.mule.runtime.module.launcher.application.DefaultApplicationFactory.createArtifact(DefaultApplicationFactory.java:42)[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
      4. org.mule.runtime.module.launcher.DefaultArchiveDeployer.deployExplodedApp(DefaultArchiveDeployer.java:283)[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
      5. org.mule.runtime.module.launcher.DefaultArchiveDeployer.deployExplodedArtifact(DefaultArchiveDeployer.java:114)[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
      6. org.mule.runtime.module.launcher.DefaultArchiveDeployer.deployExplodedArtifact(DefaultArchiveDeployer.java:41)[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
      7. org.mule.runtime.module.launcher.DeploymentDirectoryWatcher.deployExplodedApps(DeploymentDirectoryWatcher.java:290)[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
      8. org.mule.runtime.module.launcher.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:151)[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
      9. org.mule.runtime.module.launcher.MuleDeploymentService.start(MuleDeploymentService.java:120)[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
      10. org.mule.runtime.module.launcher.MuleContainer.start(MuleContainer.java:175)[mule-module-launcher-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
      10 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_65]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_65]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_65]
      4. java.lang.reflect.Method.invoke(Method.java:497)[?:1.8.0_65]
      4 frames
    4. org.mule.runtime
      MuleContainerWrapper.start
      1. org.mule.runtime.module.reboot.MuleContainerWrapper.start(MuleContainerWrapper.java:52)[mule-module-boot-ee-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
      1 frame
    5. Java Service Wrapper
      WrapperManager$11.run
      1. org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:4242)[wrapper-3.5.29.jar:3.5.29]
      1 frame