java.lang.IllegalArgumentException: InputStream cannot be null

Liferay Issues | Kyle Stiemann | 1 year ago
  1. 0

    When Util is included as a dependency of a JSF project which does not have a *{{faces-config.xml}}*, the project fails to deploy with the following exception: {code} Nov 04, 2015 11:08:01 PM com.liferay.faces.util.config.internal.FacesConfigScannerImpl scan SEVERE: InputStream cannot be null java.lang.IllegalArgumentException: InputStream cannot be null at javax.xml.parsers.SAXParser.parse(SAXParser.java:191) at com.liferay.faces.util.config.internal.FacesConfigDescriptorParserImpl.parse(FacesConfigDescriptorParserImpl.java:228) at com.liferay.faces.util.config.internal.FacesConfigScannerImpl.scan(FacesConfigScannerImpl.java:148) at com.liferay.faces.util.config.internal.ApplicationConfigInitializerImpl.initialize(ApplicationConfigInitializerImpl.java:76) at com.liferay.faces.util.event.internal.ApplicationStartupListener.processSystemEvent(ApplicationStartupListener.java:61) at com.liferay.faces.util.event.internal.ApplicationStartupListenerCompat.processEvent(ApplicationStartupListenerCompat.java:41) at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106) at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2166) at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2139) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303) at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:601) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:370) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1879) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}

    Liferay Issues | 1 year ago | Kyle Stiemann
    java.lang.IllegalArgumentException: InputStream cannot be null
  2. 0

    ClassLoader.getSystemResourceAsStream giving null exception

    Stack Overflow | 2 years ago
    java.lang.IllegalArgumentException: InputStream cannot be null
  3. 0

    How to load different version of my jar in jbos... | JBoss Developer

    jboss.org | 1 year ago
    java.lang.IllegalArgumentException: InputStream cannot be null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JBAS-7130] Stack trace when starting up "all" configuration - JBoss Issue Tracker

    jboss.org | 8 months ago
    java.lang.IllegalArgumentException: InputStream cannot be null
  6. 0

    Need to access a file from inside web app (Servlets forum at JavaRanch)

    coderanch.com | 1 year ago
    java.lang.IllegalArgumentException: InputStream cannot be null

  1. lribeiro 166 times, last 6 months ago
1 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.IllegalArgumentException

    InputStream cannot be null

    at javax.xml.parsers.SAXParser.parse()
  2. Java RT
    SAXParser.parse
    1. javax.xml.parsers.SAXParser.parse(SAXParser.java:191)
    1 frame
  3. com.liferay.faces
    ApplicationStartupListenerCompat.processEvent
    1. com.liferay.faces.util.config.internal.FacesConfigDescriptorParserImpl.parse(FacesConfigDescriptorParserImpl.java:228)
    2. com.liferay.faces.util.config.internal.FacesConfigScannerImpl.scan(FacesConfigScannerImpl.java:148)
    3. com.liferay.faces.util.config.internal.ApplicationConfigInitializerImpl.initialize(ApplicationConfigInitializerImpl.java:76)
    4. com.liferay.faces.util.event.internal.ApplicationStartupListener.processSystemEvent(ApplicationStartupListener.java:61)
    5. com.liferay.faces.util.event.internal.ApplicationStartupListenerCompat.processEvent(ApplicationStartupListenerCompat.java:41)
    5 frames
  4. JavaEE 7
    SystemEvent.processListener
    1. javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
    1 frame
  5. JSF
    ConfigureListener.contextInitialized
    1. com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2166)
    2. com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2139)
    3. com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303)
    4. com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:601)
    5. com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:370)
    6. com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216)
    6 frames
  6. Glassfish Core
    HostConfig$DeployWar.run
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
    7. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
    8. org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1879)
    8 frames
  7. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    5. java.lang.Thread.run(Thread.java:745)
    5 frames