From users-return-60657-apmail-myfaces-users-archive=myfaces.apache.org@myfaces.apache.org Thu Jun 6 07:12:11 2013 Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (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: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 39475 invoked by uid 500); 6 Jun 2013 07:12:08 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 39467 invoked by uid 99); 6 Jun 2013 07:12:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (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: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [46.140.144.71] (HELO keys.bwo.ch) (46.140.144.71) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 07:12:00 +0000 Received: from bwoxa004.bwo.local ([192.168.101.20]:7555) by keys.bwo.ch with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1UkUM6-0005sc-1U for users@myfaces.apache.org; Thu, 06 Jun 2013 09:11:30 +0200 Received: from keys.bwo.ch ([192.168.100.22]) 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: <51B02662.9000307@anantadvantages.com> In-Reply-To: <51B02662.9000307@anantadvantages.com> Accept-Language: de-CH, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.100.119] 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 apache.org 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 [mailto:sgupta@anantadvantages.com]=20 Gesendet: Donnerstag, 6. Juni 2013 08:04 An: users@myfaces.apache.org 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(UploadRequestWrapper.java:83) com.sun.faces.context.ExternalContextImpl.setRequestCharacterEncoding(Exte= rnalContextImpl.java:212) javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(Ext= ernalContextWrapper.java:561) javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(Ext= ernalContextWrapper.java:561) javax.faces.application.ViewHandler.initView(ViewHandler.java:488) 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(RestoreViewPhase.java:115= ) com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) 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/*