From Thu Jun 6 07:12:11 2013 Return-Path: X-Original-To: Delivered-To: Received: from ( []) by (Postfix) with SMTP id 9C56C1021C for ; Thu, 6 Jun 2013 07:12:11 +0000 (UTC) Received: (qmail 39500 invoked by uid 500); 6 Jun 2013 07:12:09 -0000 Delivered-To: Received: (qmail 39475 invoked by uid 500); 6 Jun 2013 07:12:08 -0000 Mailing-List: contact; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list Received: (qmail 39467 invoked by uid 99); 6 Jun 2013 07:12:07 -0000 Received: from (HELO ( by (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 07:12:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: Received-SPF: pass ( local policy) Received: from [] (HELO ( by (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 07:12:00 +0000 Received: from bwoxa004.bwo.local ([]:7555) by with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1UkUM6-0005sc-1U for; Thu, 06 Jun 2013 09:11:30 +0200 Received: from ([]) by bwoxa004.bwo.local (PGP Universal service); Thu, 06 Jun 2013 09:11:30 +0200 X-PGP-Universal: processed; by bwoxa004.bwo.local on Thu, 06 Jun 2013 09:11:30 +0200 Received: from BWOSA001.bwo.local ([fe80::b830:cb2:19e5:3c4b]) by BWOSA001.bwo.local ([fe80::b830:cb2:19e5:3c4b%10]) with mapi id 14.01.0339.001; Thu, 6 Jun 2013 09:11:29 +0200 From: Krebs Roland / BWO Systems AG To: MyFaces Discussion Subject: AW: Trinidad: Null pointer exception in trinidad Thread-Topic: Trinidad: Null pointer exception in trinidad Thread-Index: AQHOYnvlmMXum1kvvESraRcLOi6KBpkoRCQQ Date: Thu, 6 Jun 2013 07:11:29 +0000 Message-ID: <19A9F10ED49E604BAB7F708C56DE7CCB1B902964@BWOSA001.bwo.local> References: <> In-Reply-To: <> Accept-Language: de-CH, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [] MIME-Version: 1.0 Content-Language: de-DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on Hello Sandeep The core dump says that no encoding has been set, so try to add on top of y= our xhtml file your encoding, so for example: or Regards, Roland -----Urspr=FCngliche Nachricht----- Von: Sandeep Gupta []=20 Gesendet: Donnerstag, 6. Juni 2013 08:04 An: Betreff: Trinidad: Null pointer exception in trinidad Hi I am using trinidad 2.0 in Jboss AS7 environment (JSF builtin Jboss) on win= dows . I am trying to upload a file to server using trinidad fileupload (tr= :inputFile) component. When the form is submitted to server on pressing a commandButton, I get Nul= lpointer exception. I have tried using tomahawk inputFileUpload component i= nstaed of trinidad component for inputfile but the NPE remains same. Any help/pointers to resolve this issue will be greatly appreciated. rgds Sandeep Gupta java.lang.NullPointerException org.apache.myfaces.trinidadinternal.config.upload.UploadRequestWrapper.set= CharacterEncoding( com.sun.faces.context.ExternalContextImpl.setRequestCharacterEncoding(Exte= javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(Ext= javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(Ext= javax.faces.application.ViewHandler.initView( com.sun.faces.application.view.MultiViewHandler.initView(MultiViewHandler.= java:111) javax.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.jav= a:274) javax.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.jav= a:274) com.sun.faces.lifecycle.RestoreViewPhase.doPhase( ) com.sun.faces.lifecycle.LifecycleImpl.execute( javax.faces.webapp.FacesServlet.service( Here is my attachFile.xhtml Choose File Here is relevant portions of web.xml trinidad org.apache.myfaces.trinidad.webapp.TrinidadFilter=20 trinidad faces Faces Servlet javax.faces.we= bapp.FacesServlet 1 faces javax.faces.webapp.FacesServlet resources org.apache.myfaces.trinidad.webapp.ResourceServlet=20 Faces Servlet *.xhtml Faces Servlet *.jsf resources /adf/*