I'm attaching the file Upload bean,facesConfig.xml and web.xml please help me out of this issue.I'm getting a null pointer Exception.Please help me out of this.
 
Regds,
Chandru.
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
  <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
  </context-param>
  <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  </listener>
  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
  </servlet-mapping>
  
  <filter>
        <filter-name>extensionsFilter</filter-name>
        <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
        <init-param>
            <param-name>uploadMaxFileSize</param-name>
            <param-value>100m</param-value>
           
        </init-param>
        <init-param>
            <param-name>uploadThresholdSize</param-name>
            <param-value>100k</param-value>
           
        </init-param>
        <!--
        <init-param>
            <param-name>uploadRepositoryPath</param-name>
            <param-value>/temp</param-value>
            <description>Set the path where the intermediary files will be stored.
            </description>
        </init-param>
        -->
    </filter>

    <filter-mapping>
        <filter-name>extensionsFilter</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
	
   <servlet>
    <servlet-name>XMLDHTTPServlet</servlet-name>
    <servlet-class>panaceaFLweb.utility.XMLDTHttpServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet-mapping> 
		<servlet-name>XMLDHTTPServlet</servlet-name>
		<url-pattern>/XMLDHTTPServlet</url-pattern>
	</servlet-mapping>
  
</web-app>

Attachment: CtlUploadBean.java
Description: Binary data

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd";>
<faces-config>
    <managed-bean>
        <description>Bean used to handle all User-based operations.</description>
        <managed-bean-name>CtlCurrBean</managed-bean-name>
        <managed-bean-class>panaceaFLweb.FLCtlbean.CtlCurrBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    	<description>Bean used to handle all User-based operations.</description>
        <managed-bean-name>CtlStateBean</managed-bean-name>
        <managed-bean-class>panaceaFLweb.FLCtlbean.CtlStateBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
        <description>Bean used to handle all User-based operations.</description>
        <managed-bean-name>CtldocBean</managed-bean-name>
        <managed-bean-class>panaceaFLweb.FLCtlbean.CtldocBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
        <description>Bean used to handle all User-based operations.</description>
        <managed-bean-name>CtlItstatBean</managed-bean-name>
        <managed-bean-class>panaceaFLweb.FLCtlbean.CtlItstatBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    	<description>Bean used to handle all User-based operations.</description>
        <managed-bean-name>CtlReligionBean</managed-bean-name>
        <managed-bean-class>panaceaFLweb.FLCtlbean.CtlReligionBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
     <managed-bean>
    	<description>Bean used to handle all User-based operations.</description>
        <managed-bean-name>CtlGlmastBean</managed-bean-name>
        <managed-bean-class>panaceaFLweb.FLCtlbean.CtlGlmastBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    	<description>Bean used to handle all User-based operations.</description>
        <managed-bean-name>CtlFileBean</managed-bean-name>
        <managed-bean-class>panaceaFLweb.FLCtlbean.CtlFileBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    	<description>Bean used to handle all User-based operations.</description>
        <managed-bean-name>CtlClienttdsBean</managed-bean-name>
        <managed-bean-class>panaceaFLweb.FLCtlbean.CtlClienttdsBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
		<managed-bean-name>CtlDsaBean</managed-bean-name>
		<managed-bean-class>panaceaFLweb.FLCtlbean.CtlDsaBean</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
    
     <managed-bean>
        <description>Bean used to handle all User-based operations. </description>
        <managed-bean-name>CtlUploadBean</managed-bean-name>
        <managed-bean-class>panaceaFLweb.FLCtlbean.CtlUploadBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    
    
    <navigation-rule>
    <from-view-id> /Mcurrency.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"success" </from-outcome>
       <to-view-id>/Mcurrency.jsp/</to-view-id>
    </navigation-case>
    
	</navigation-rule>
	<navigation-rule>
    <from-view-id> /Mcurrency.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"failure" </from-outcome>
       <to-view-id>/Mcurrency.jsp/</to-view-id>
    </navigation-case>
    
	</navigation-rule>
	<navigation-rule>
    <from-view-id> /MState.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"success" </from-outcome>
       <to-view-id>/MState.jsp/</to-view-id>
    </navigation-case>
    
	</navigation-rule>
	<navigation-rule>
    <from-view-id> /MState.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"failure" </from-outcome>
       <to-view-id>/MState.jsp/</to-view-id>
    </navigation-case>
    
	</navigation-rule>
	<navigation-rule>
    <from-view-id> /MDoccodes.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"success" </from-outcome>
       <to-view-id>/MDoccodes.jsp/</to-view-id>
    </navigation-case>
    
	</navigation-rule>
	<navigation-rule>
    <from-view-id> /MDoccodes.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"failure" </from-outcome>
       <to-view-id>/MDoccodes.jsp/</to-view-id>
    </navigation-case>
  	</navigation-rule>
  	
  	<navigation-rule>
    <from-view-id> /MReligion.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"success" </from-outcome>
       <to-view-id>/MReligion.jsp/</to-view-id>
    </navigation-case>
    
	</navigation-rule>
	<navigation-rule>
    <from-view-id> /MReligion.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"failure" </from-outcome>
       <to-view-id>/MReligion.jsp/</to-view-id>
    </navigation-case>
  	</navigation-rule>
  	
  	<navigation-rule>
    <from-view-id> /MItstat.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"success" </from-outcome>
       <to-view-id>/MItstat.jsp/</to-view-id>
    </navigation-case>
    
	</navigation-rule>
	<navigation-rule>
    <from-view-id> /MItstat.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"failure" </from-outcome>
       <to-view-id>/MItstat.jsp/</to-view-id>
    </navigation-case>
  	</navigation-rule>
  	
  	<navigation-rule>
    <from-view-id> /MGlmast.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"success" </from-outcome>
       <to-view-id>/MGlmast.jsp/</to-view-id>
    </navigation-case>
    
	</navigation-rule>
	<navigation-rule>
    <from-view-id> /MGlmast.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"failure" </from-outcome>
       <to-view-id>/MGlmast.jsp/</to-view-id>
    </navigation-case>
  	</navigation-rule>
  	
  	<navigation-rule>
    <from-view-id> /Sample.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"success" </from-outcome>
       <to-view-id>/Sample.jsp/</to-view-id>
    </navigation-case>
    
	</navigation-rule>
	<navigation-rule>
    <from-view-id> /Sample.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"failure" </from-outcome>
       <to-view-id>/Sample.jsp/</to-view-id>
    </navigation-case>
  	</navigation-rule>
  	
  	<navigation-rule>
    <from-view-id> /Mclienttds.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"success" </from-outcome>
       <to-view-id>/Mclienttds.jsp/</to-view-id>
    </navigation-case>
    
	</navigation-rule>
	<navigation-rule>
    <from-view-id> /Mclienttds.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"failure" </from-outcome>
       <to-view-id>/Mclienttds.jsp/</to-view-id>
    </navigation-case>
  	</navigation-rule>
  	
  	<navigation-rule>
    <from-view-id> /MDsa.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"success" </from-outcome>
       <to-view-id>/MDsa.jsp/</to-view-id>
    </navigation-case>
    
	</navigation-rule>
	<navigation-rule>
    <from-view-id> /MDsa.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"failure" </from-outcome>
       <to-view-id>/MDsa.jsp/</to-view-id>
    </navigation-case>
  	</navigation-rule>
  	
  	
  	<navigation-rule>
    <from-view-id> /EINVDOCIMAGE.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"success" </from-outcome>
       <to-view-id>/EINVDOCIMAGE.jsp/</to-view-id>
    </navigation-case>
   </navigation-rule>
	
	<navigation-rule>
    <from-view-id> /EINVDOCIMAGE.jsp/</from-view-id>
    <navigation-case>
       <from-outcome>"failure" </from-outcome>
       <to-view-id>/EINVDOCIMAGE.jsp/</to-view-id>
    </navigation-case>
  </navigation-rule>
  	
  	
  	
</faces-config>

Reply via email to