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 32FDC1028A for ; Thu, 6 Jun 2013 07:30:12 +0000 (UTC) Received: (qmail 72622 invoked by uid 500); 6 Jun 2013 07:30:09 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 72567 invoked by uid 500); 6 Jun 2013 07:30:09 -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 72554 invoked by uid 99); 6 Jun 2013 07:30:08 -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:30:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=RCVD_IN_DNSWL_LOW,TO_NO_BRKTS_PCNT X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.220.49] (HELO mail-pa0-f49.google.com) (209.85.220.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 07:30:00 +0000 Received: by mail-pa0-f49.google.com with SMTP id lj1so1546832pab.36 for ; Thu, 06 Jun 2013 00:29:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=BMwD7yde+pn+YWfwQneVbL3dRGckLQCX81cer6LhdyE=; b=k5SMm6qU0ADOlPl3RH82Dfmk+4DV0A6F1dNLK+4PggeuUt3cJANwJwIFCWJiKb16Va rhIhKD2fVy9ugrnhIRdCsSdCYY0oxHTZl/QQP6lGcE90FCoUZWLzOho+fuICRTVwiQxf I9FumrcaR00+OZnx3WnkSZd7HqrZ4fO6rdrveHS8D5NhyYlf/H3YqnAoqtQQSgGYUBnV lKQSiiy2mpFJPwaDVxXRvFY1rNdSvIJ1Gj1fq6jMfvdv1ndQtMa0MD7iSgzFXnG7zuV1 D5oqt8KPRqXAk5z6uqigcjHs3ro8F2Jz5OtvvhStlnjtj8ZgC1QUXpkfgKnkuSz2ZmKH 00Ow== X-Received: by 10.68.185.194 with SMTP id fe2mr36099504pbc.45.1370503759378; Thu, 06 Jun 2013 00:29:19 -0700 (PDT) Received: from [192.168.1.6] ([122.177.220.247]) by mx.google.com with ESMTPSA id nk2sm17080071pbc.43.2013.06.06.00.29.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Jun 2013 00:29:18 -0700 (PDT) Message-ID: <51B03A48.1050602@anantadvantages.com> Date: Thu, 06 Jun 2013 12:59:12 +0530 From: Sandeep Gupta User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: users@myfaces.apache.org Subject: Re: AW: Trinidad: Null pointer exception in trinidad References: <51B02662.9000307@anantadvantages.com> <19A9F10ED49E604BAB7F708C56DE7CCB1B902964@BWOSA001.bwo.local> In-Reply-To: <19A9F10ED49E604BAB7F708C56DE7CCB1B902964@BWOSA001.bwo.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQkOz42wlgsh9EWadM/Gxhp5RqljfzEhJzaTTdwRwFTOSa8xFcB9pQeyzZ4qIq7K/wIhUWpi X-Virus-Checked: Checked by ClamAV on apache.org Hi I tried adding on top of file and deployed the project. On pressing coomandbutton to open dialog for file attachment, now it gives error (and dialog does not open) It is giving Facelet exception "The processing instruction target matching "[xX][mM][lL]" is not allowed" Thanks anyway for suggestion. regards Sandeep On 6/6/2013 12:41 PM, Krebs Roland / BWO Systems AG wrote: > Hello Sandeep > > The core dump says that no encoding has been set, so try to add on top of your xhtml file your encoding, so for example: > > or > > > Regards, > Roland > > -----Urspr�ngliche Nachricht----- > Von: Sandeep Gupta [mailto:sgupta@anantadvantages.com] > 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 windows . 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 Nullpointer exception. I have tried using tomahawk inputFileUpload component instaed 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.setCharacterEncoding(UploadRequestWrapper.java:83) > com.sun.faces.context.ExternalContextImpl.setRequestCharacterEncoding(ExternalContextImpl.java:212) > javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(ExternalContextWrapper.java:561) > javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(ExternalContextWrapper.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.java:274) > javax.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.java: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 > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > xmlns:f="http://java.sun.com/jsf/core" > xmlns:h="http://java.sun.com/jsf/html" > xmlns:ui="http://java.sun.com/jsf/facelets" > xmlns:tr="http://myfaces.apache.org/trinidad" > xmlns:t="http://myfaces.apache.org/tomahawk" > > > > > Choose File > > > > > > > > > > > > inlineStyle="width:100%;"> > > inlineStyle="width:100%;"> > action="#{PackageJSFBean.doneAttachFile}"> > action="#{PackageJSFBean.cancelAttachFile}" > immediate="true"> > > > > > > > > label="Identifers file" > valueChangeListener="#{PackageJSFBean.onSelecthlIdFile}"> > > > > > > > > > > > > > > > > > Here is relevant portions of web.xml > > > trinidad > org.apache.myfaces.trinidad.webapp.TrinidadFilter > > > > > trinidad > faces > > > > > > Faces Servlet javax.faces.webapp.FacesServlet > 1 > > > > faces > javax.faces.webapp.FacesServlet > > > > resources > org.apache.myfaces.trinidad.webapp.ResourceServlet > > > > > > Faces Servlet > *.xhtml > > > > Faces Servlet > *.jsf > > > > resources > /adf/* > >